summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/macmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum2001-12-081-2/+2
| | | | | | | | | | | | | type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment.
* Merged changes made on r22b2-branch between r22b2 and r22b2-mac (theJack Jansen2001-11-301-7/+3
| | | | changes from start of branch upto r22b2 were already merged, of course).
* Removed unused variable.Jack Jansen2001-11-061-1/+0
|
* Some escaped newlines had spaces between the backslash and the newline. Also ↵Jack Jansen2001-10-231-7/+4
| | | | slightly changed the comment on xstat().
* SF patch #462296: Add attributes to os.stat results; by Nick Mathewson.Guido van Rossum2001-10-181-36/+123
| | | | | | | | | | | | | | | | | This is a big one, touching lots of files. Some of the platforms aren't tested yet. Briefly, this changes the return value of the os/posix functions stat(), fstat(), statvfs(), fstatvfs(), and the time functions localtime(), gmtime(), and strptime() from tuples into pseudo-sequences. When accessed as a sequence, they behave exactly as before. But they also have attributes like st_mtime or tm_year. The stat return value, moreover, has a few platform-specific attributes that are not available through the sequence interface (because everybody expects the sequence to have a fixed length, these couldn't be added there). If your platform's struct stat doesn't define st_blksize, st_blocks or st_rdev, they won't be accessible from Python either. (Still missing is a documentation update.)
* test_glob found a nasty bug in GUSI opendir(): it will not fail when called ↵Jack Jansen2001-08-111-0/+18
| | | | on files, but in stead open the parent directory! We now explicitly test for the argument being a directory and simulate ENOTDIR otherwise.
* (Finally) converted to new-style args.Jack Jansen2001-08-031-37/+136
| | | | | | | Added an optional (and ignored) 3d parameter to open() to make the signature compatible with posixmodule. Added the various O_ constants (by stealing the code from posixmodule). test_fileinput now passes.
* Be more sensible about when to use TARGET_API_MAC_OS8 in stead of ↵Jack Jansen2001-05-121-6/+6
| | | | !TARGET_API_MAC_CARBON. This should greatly facilitate porting stuff to OSX in its MachO/BSD incarnation.
* xstat() will never be implemented under Carbon. Fortunately it also doesn't ↵Jack Jansen2001-01-121-5/+5
| | | | appear to be used anywhere.
* Added a prototype for mstats().Jack Jansen2000-08-251-0/+2
|
* Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.Jack Jansen2000-07-141-6/+6
|
* Got rid of __SC__ ifdefs.Jack Jansen2000-07-111-4/+0
|
* ANSIfication step 1: get rid of Py_PROTO and Py_FPROTO.Jack Jansen2000-07-111-15/+15
|
* Removed USE_STDWIN support.Jack Jansen2000-06-041-12/+1
|
* Made the core toolbox modules carbon-compatible using the new greylist ↵Jack Jansen2000-06-021-0/+18
| | | | | | feature of bgen: non-carbon methods are still included in non-carbon MacPython. The issue of backward compatibility of Python code is still open. Macmodule and macosmodule have also been carbonified. Some functionality is still missing there.
* Fixed to work again without USE_GUSIJack Jansen2000-05-121-4/+1
|
* Started on GUSI2 and threading support.Jack Jansen2000-04-071-8/+18
|
* Add fstat() if using GUSIJack Jansen1998-02-201-24/+29
|
* New exception interfaceJack Jansen1997-10-071-3/+2
|
* - Changed the m# format for PyArg_ParseTuple back to s#Jack Jansen1997-05-071-1/+1
| | | | - c2pstr has moved to a different include file
* - Changed GestaltEqu.h to Gestalt.hJack Jansen1997-02-241-1/+1
| | | | | | | | - Changed FragLoader.h to CodeFragments.h - Removed Desk.h - Regenerated bgen modules from new universal headers - Changed some of the s# in PyArg_ParseTuple to m# (unfortunately: this should have been a different commit)
* Comments around identifier after #endifJack Jansen1997-02-201-1/+1
|
* Added/updated copyright noticesJack Jansen1997-01-311-1/+1
| | | | (and the &*^$%@ resource files got binhexed again, sigh)
* RenamedJack Jansen1997-01-301-185/+184
|
* Malloc debugging now flagged with USE_MALLOC_DEBUGJack Jansen1996-10-231-6/+3
|
* Fixed xstat to again include resroucefork size, creator, type. ObtainJack Jansen1996-10-151-14/+50
| | | | | thru macstat(), but other values via stat() (so os.stat() and os.xstat() agree).
* GUSI mkdir() lost its dummy second argJack Jansen1996-08-061-0/+4
|
* Replaced previous gusi-chdir() fix by a call to PyMac_FixGUSIcd()Jack Jansen1996-03-061-0/+10
| | | | after each chdir call.
* Mods by Guido: mkdir 2nd arg optional and remove as alias for unlink.Jack Jansen1996-02-211-2/+14
|
* - Added Guido's fixesJack Jansen1996-02-201-45/+28
| | | | | - Removed CW4 ifdefs - Rationalized ifdefs for dup, fdopen
* Modified for GUSIJack Jansen1996-02-141-1/+45
|
* add xstat (extended stat, returns resource fork size and creator/type)Guido van Rossum1995-08-081-1/+32
|
* Ported to CodeWarrior 6Jack Jansen1995-06-091-0/+1
|
* explicitly init flags in methodlistGuido van Rossum1995-02-191-1/+1
|
* add __SC__ ifdefGuido van Rossum1995-02-171-1/+1
|
* malloc debug only on ppcGuido van Rossum1995-02-131-1/+1
|
* CodeWarrior 5 has more unixisms (open/close/read/write)Jack Jansen1995-01-261-10/+13
|
* Make malloc stats routine available under MetroWerksJack Jansen1995-01-221-0/+4
|
* More Pstring() stuff and some cosmeticsJack Jansen1995-01-181-1/+16
|
* 1995 copyrightGuido van Rossum1995-01-081-2/+2
|
* Ported to MetroWerks, which misses file-descriptor like functionality.Jack Jansen1994-12-141-0/+22
|
* Completed (hopefully) the unification of THINK 6.0 and MPW 3.2Guido van Rossum1994-08-291-7/+20
| | | | | | | versions -- they now share config.c and config.h, and statting is always done through macstat.[ch] (THINK's <stat.h> defines funny constants). Also the configuration of stdwin is done differently: you have to define USE_STDWIN to the compiler prefix.
* Intermediate version of changes after porting to MPW 3.2Guido van Rossum1994-08-261-4/+4
|
* Some more changesGuido van Rossum1994-08-231-2/+2
|
* Updates for THINK C 6.0. Moved the necessary UNIX emulation routines here.Guido van Rossum1994-08-191-18/+14
|
* Change include path for unixemu headers; rename access to access_Guido van Rossum1994-06-271-4/+4
|
* Walker's changes fixed so they work in THINK C 5Guido van Rossum1994-05-061-10/+17
|
* As extended by Richard M Walker for MPWGuido van Rossum1994-05-061-79/+292
|
* Fix copyright -- 1994 instead of 1004!Guido van Rossum1994-01-181-1/+1
|
* Initial revisionGuido van Rossum1994-01-051-0/+246