summaryrefslogtreecommitdiffstats
path: root/Mac/Python
Commit message (Collapse)AuthorAgeFilesLines
* Merging the various tweaks for MacPython-OS9 2.3a1 back into the trunk.Jack Jansen2003-01-081-0/+3
|
* Get rid of support for Universal Headers older than 3.4 and various otherJack Jansen2002-12-131-4/+0
| | | | outdated things.
* Get rid of 2.2 "poor mans universal newlines" now that the real thingJack Jansen2002-12-131-19/+0
| | | | is implemented.
* Very outdated: this is a 68K support file.Jack Jansen2002-12-131-290/+0
|
* Getting rid of pre-Carbon (MacOS8) support. All code depending onJack Jansen2002-12-126-388/+6
| | | | | | TARGET_API_MAC_OS8 (or !TARGET_API_MAC_CARBON) is gone. Also some TARGET_API_MAC_OSX conditional code is gone, because it is no longer used on OSX-only Python (only in MacPython-OS9).
* Use PyString_CHECK_INTERNED.Jack Jansen2002-09-061-3/+3
|
* Renamed Py_Main to PyMac_Main as it has a different signature than the ↵Jack Jansen2002-08-051-4/+4
| | | | "normal" Py_Main, and that signature has appeared in a .h file.
* Fixed potential refcount problems with interned strings, adapted comments, ↵Jack Jansen2002-07-221-6/+16
| | | | added a bit more trace output if verbose > 1.
* staticforward bites the dust.Jeremy Hylton2002-07-171-1/+1
| | | | | | | | | | | | | | | The staticforward define was needed to support certain broken C compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the static keyword when it was used with a forward declaration of a static initialized structure. Standard C allows the forward declaration with static, and we've decided to stop catering to broken C compilers. (In fact, we expect that the compilers are all fixed eight years later.) I'm leaving staticforward and statichere defined in object.h as static. This is only for backwards compatibility with C extensions that might still use it. XXX I haven't updated the documentation.
* - Got rid if WITH_CYCLE_GCJack Jansen2002-07-071-12/+6
| | | | | - Cleaned up Python banner string, so the normal build for MacPython 2.3 will have a short banner.
* Changed some prototypes to match the exact definition in some faraway AppleJack Jansen2002-06-262-4/+4
| | | | header files. If we're building with precompiled headers these are in scope.
* Allow the script to have not only a TEXT filetype but also a null filetype ↵Jack Jansen2002-05-221-1/+3
| | | | (to enable files to be created from the Unix side of OSX to be droppable on the MacPython interpreter).
* Mass checkin of universal newline support.Jack Jansen2002-04-141-2/+2
| | | | | | | | Highlights: import and friends will understand any of \r, \n and \r\n as end of line. Python file input will do the same if you use mode 'U'. Everything can be disabled by configuring with --without-universal-newlines. See PEP278 for details.
* Got rid of ifdefs for long-obsolete GUSI versions and other stuff that is ↵Jack Jansen2002-04-114-197/+0
| | | | now standard (appearance, interned strings)
* Got rid of ifdefs for long-obsolete GUSI versions.Jack Jansen2002-04-111-4/+0
|
* Allow .pyc files as applets as well as .py files. .py files haveJack Jansen2002-03-291-4/+9
| | | | priority, for safety reasons.
* In MachoPython print "Pythonw" in banner to distinguish from command-lineJack Jansen2002-03-291-7/+6
| | | | | python. Removed debug output.
* Don't call PyMac_OutputSeen if we have a custom console. Fix by Alexandre ↵Jack Jansen2002-01-111-4/+6
| | | | Parenteau.
* In MachoPython, don't simulate argc/argv unless we have argc=1 and argv[1]Jack Jansen2002-01-021-2/+8
| | | | | | | | starts with "-psn_". This means the drag-and-drop continues to work as expected, but we can now also do /Applications/Python.app/Contents/MacOS/python script.py from the command line, which is a lot easier with debugging. Pressing <option> at this point also has the expected effect of opening the options dialog!
* Merging changes from release22-branch.Jack Jansen2001-12-271-0/+11
|
* Use getcwd(), not silly old getwd().Jack Jansen2001-12-141-1/+1
|
* The new menu initialization code would also add the SIOUX menus if a ↵Jack Jansen2001-12-101-1/+6
| | | | (frozen) Python program had installed its own menubar previously. We now guard against this, with a bit of a hack: FrameWork uses the same Menu ID as Sioux, and the init code checks that the text in the menu is "About SIOUX" before replacing it.
* Replace sprintf() with PyOS_snprintf().Jack Jansen2001-12-051-4/+4
|
* Merged changes made on r22b2-branch between r22b2 and r22b2-mac (theJack Jansen2001-11-301-7/+2
| | | | changes from start of branch upto r22b2 were already merged, of course).
* Fixed various problems with command-dot handling (some very old):Jack Jansen2001-11-101-45/+52
| | | | | | | | | | - Don't scan for cmd-. unless in the foreground - Scan before switching out to other processes, not after - don't scan if SchedParams.check_interrupt is false (!) - But: do scan if we're blocked on I/O One problem remains: in the last case KeyboardInterrupt is raised too late.
* MacPython -vv equivalent printed incorrect filenames, fixed. AlsoJack Jansen2001-11-051-11/+1
| | | | removed some outdated code.
* We always install the Sioux menubar, in stead of only when no menubarJack Jansen2001-11-011-0/+8
| | | | | | was installed previously. This fixes bug #476904, but I'm not 100% sure it doesn't break anything else. But if it does I'll notice tomorrow when I try to build GRiNS:-)
* Moved macfsn hackery from macmain.c to macfsmodule.c so it loadsJust van Rossum2001-10-311-29/+0
| | | | on demand instead of at startup.
* Mod by Donovan Preston to allow MacPython to live in a Python.app bundle and ↵Jack Jansen2001-10-301-34/+62
| | | | | | understand the __main__.py convention used there for applets. This gives us applets that work on both OS9 and OSX! (Although "applet" may not be the correct word for something that is going to be multimegabyte:-). But: the code is currently disabled, as it requires CodeWarrior 7 and I'm still using 6.
* Mods by Alexandre Parenteau to allow embedding programs to disable the ↵Jack Jansen2001-10-081-39/+78
| | | | | | MacPython console window completely, and optionally route console output (and input) to routines provided by the embedding app. Things don't fully work yet, but at least it doesn't break anything.
* Mods by Donovan Preston (with changes by me to make them "go with the flow")Jack Jansen2001-09-111-14/+90
| | | | | | | | | | | | | that will detect an __main__.py or __rawmain__.py in the application bundle. This file is then exectued as the main script. We now have applets in MachO Python!!! The difference between __main__ and __rawmain__ is that the former gets a complete simulated argv (so you can drop files on the applet and the script sees them in sys.argv) while the latter skips the argv simulation and the <option>key dialog. This keeps the AppleEvent that started the app intact, as well as the funny "-psn_xxxx" argv[1] argument, so the script can do with these what it wants.
* Failing to import macfsn is not a fatal error.Jack Jansen2001-09-111-1/+2
|
* Implemented PyMac_GetFullPathname for MacPython.Jack Jansen2001-09-111-3/+13
|
* Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length'Jack Jansen2001-09-102-22/+17
| | | | | | parameter for the return string (as unix pathnames are not limited by the 255 char pstring limit). Implemented the function for MachO-Python, where it returns unix pathnames.
* Changes to make these work under OSX as the main program for aJack Jansen2001-09-052-53/+113
| | | | | | | | | | fullblown drag and drop application. To my surprise it is starting to work already: Python actually executes a script dropped on it. To be done: - Make sure this still works in MacPython - Don't lose argv[0] in the process - Applet support
* Added preferences/startup options for division warningJack Jansen2001-09-012-23/+37
| | | | | | | | and accepting unix-style newlines on input. Also (finally) added a startup option to get -vv behaviour. Moved __convert_to_newlines to main.c because that's easier with the newline option.
* Experimental feature: allow \n as well as \r as newline for text files, by ↵Jack Jansen2001-08-271-0/+17
| | | | breaking in to the lowlevel I/O system. Can be disabled by defining WITHOUT_UNIX_NEWLINES.
* PATCHLEVEL is outdated, use PY_VERSION.Jack Jansen2001-08-191-1/+1
|
* Split macglue.c into two: a new mactoolboxglue.c (in ./Python)Jack Jansen2001-08-081-376/+0
| | | | | | | | | | | | with functionality needed for both unix-Python and MacPython and a new smaller ./Mac/Python/macglue.c which contains MacPython stuff only. pymactoolbox.h has moved to ./Include from ./Mac/Include and now also contains the relevant stuff from macglue.h. The net effect of this is that the ./Mac subdirectory is not needed anymore for building the unix-Python core on MacOSX (it is needed for building the extension modules).
* Got rid of 68k-Mac and other outdated ifdefs.Jack Jansen2001-08-073-26/+0
|
* Bit the bullet and enabled garbage collection (finally).Jack Jansen2001-08-071-1/+7
| | | | Also updated pyconfig.h to the current state of pyconfig.h.in.
* PyMac_GetFSSpec must be called via the dylib glue code on OSX.Jack Jansen2001-08-031-0/+1
|
* Merging appropriate 2.1.1 fixes back into the main trunk.Jack Jansen2001-08-032-1/+6
|
* config.h renamed to pyconfig.hJack Jansen2001-07-271-1/+1
|
* Fixed another case of the PyArg_Parse 'h' semantic change problem, sigh...Jack Jansen2001-07-121-1/+1
|
* Implemented minimal FSRef support, plus conversion between FSRefs, FSSpecs ↵Jack Jansen2001-07-081-61/+0
| | | | | | | | and pathnames where applicable. PyMac_GetFSSpec and PyMac_BuildFSSpec have moved to macfsmodule from macglue. These mods are untested on OSX.
* Set the default 8-bit encoding based on the system script and language.unknown2001-07-041-0/+2
|
* Don't promise mac-japanese encoding as we don't have a codec for it.unknown2001-07-041-1/+4
| | | | Return a reasonable name for the general macos exception (MacOS.Error).
* Fixed bug that prevented shared libs that are submodules of aJust van Rossum2001-06-261-1/+1
| | | | package to be loaded from a PYD resource.
* Adapted for Universal Headers 3.4: refcon type has changed (sigh) and use ↵Jack Jansen2001-06-201-6/+12
| | | | modern (UPP in stead of Proc) names for callback object creation.