summaryrefslogtreecommitdiffstats
path: root/Mac/Python
Commit message (Collapse)AuthorAgeFilesLines
* If there's an error in an fsspec argument raise MacOS.Error, not ValueError.Jack Jansen2000-01-241-1/+1
|
* Added initializer routine optionally to be used as PEF fragment ↵Jack Jansen2000-01-071-0/+34
| | | | initialization routine, which allows us to get at our own resource fork even if some shared library init routine opens other resource files.
* Added PyMac_BuildOptStr255, which returns None on a null pointer.Jack Jansen1999-12-171-0/+14
|
* Dummy functions which return unimpErr for lots of toolbox calls that are ↵Jack Jansen1999-12-121-0/+290
| | | | | | unavailable for 68K. This way we don't have to disable thm in bgen, so we can still use them on PPC.
* Oops, PLstring funcs should be "pascal". Funny this never caused problems ↵Jack Jansen1999-12-121-3/+9
| | | | before...
* First bits and pieces of appearance support: an init routine, a global flag ↵Jack Jansen1999-12-072-0/+25
| | | | | | PyMac_AppearanceCompliant (exported thru MacOS). If USE_APPEARANCE is off the code is disabled (but the variables are still there, set to 0).
* Bigger buffer size for C profiler (if profiling is enabled).Jack Jansen1999-09-301-1/+1
|
* Optimization: don't try to get a tabsize resource if we know the fileJack Jansen1999-09-301-0/+3
| | | | doesn't have one (stdin and such), OpenRF appears to be an expensive call.
* Put the applet code inside USE_MAC_APPLET_SUPPORT ifdefs, to make 68k ↵Jack Jansen1999-02-151-0/+6
| | | | standalone Python compile.
* (finally) unified the interpreter and the applet as Just suggested ages ago. TheJack Jansen1999-02-152-39/+12
| | | | resulting program is called PythonInterpreter.
* put the preferences file in a folder called "Python" inside the prefs ↵Just van Rossum1999-02-021-10/+37
| | | | folder, just like the IDE does -- jvr
* Replaced fprintf(stderr,...) with PySys_WriteStderr(...) where appropriate.Jack Jansen1998-10-121-4/+3
|
* Mods by Just to allow aliases in sys.path entriesJack Jansen1998-09-071-0/+20
|
* Support for freezing packages (Just).Jack Jansen1998-08-181-1/+32
|
* Initialize the program name before adding shared library resources (Just).Jack Jansen1998-07-311-0/+1
|
* Don't add the library file to the resource file chain if it is theJack Jansen1998-07-311-1/+18
| | | | same as the application file (Just).
* New about box, with the version mesage filled in in a text item, andJack Jansen1998-07-311-13/+14
| | | | PLstrcmp() fixed. (Just)
* The PYD resource should now contain 2 strings: one for the ppcJack Jansen1998-07-311-2/+10
| | | | | fragment name and one for the cfm68k fragment name (Just). Also, some unused variables removed.
* Re-indented properly (Just).Jack Jansen1998-07-311-173/+173
|
* If the preference filename resource is empty don't try to open orJack Jansen1998-07-131-4/+13
| | | | | | create the preferences file. This is so that frozen programs don't interfere with an existing Python installation, or leave turds in the Preferences folder.
* All import-related code has moved to macimport.c.Jack Jansen1998-07-132-224/+416
| | | | | | | | | There's also new support for importing code fragments: if a file on sys.path contains a PYD resource with resourcename equal to the name of the module to be imported this PYD resource should contain a (pascal) string with the name of a code fragment to load. This allows freezing Python programs without access to source or a development environment.
* Print message when we load a PYC resource, if verbose import flag is on.Jack Jansen1998-06-261-0/+3
|
* An applet with Popt and GUSI preferences but without alis resourceJack Jansen1998-05-071-2/+3
| | | | | didn't work, because the resource file chain was incomplete when we tried to open the preference file. Fixed.
* Incorrect argument for PyMacBuildwide()Jack Jansen1998-04-231-5/+5
|
* Added PyMac_{Get,Build}wide. These should support python longints atJack Jansen1998-04-211-0/+23
| | | | some point in the future.
* - Universal Headers 3 modsJack Jansen1998-02-201-2/+4
| | | | - Started on menubar-restore code (but it still doesn't work 100%)
* Bug fix for fast module locationJack Jansen1997-10-081-1/+1
|
* Implemented nositepython and oldexceptions flagsJack Jansen1997-10-071-0/+2
|
* Fixed for new "import dir.module" semantics. Needs accompanying fix inJack Jansen1997-10-071-0/+9
| | | | import.c (yes Guido, I'll send it tomorrow)
* Added old-exception and no-site-python options and balloon helpJack Jansen1997-09-091-3/+12
|
* The preference resource now has a version numberJack Jansen1997-09-081-16/+21
|
* sys.prefix and sys.exec_prefix are now set correctly.Jack Jansen1997-09-081-2/+2
|
* Handle systemclicks ourselves, in stead of passing them to Sioux. ThisJack Jansen1997-08-261-10/+15
| | | | | fixes (or masks?) a bug with Python becoming unreactive during time.sleep() if you have already switched applications before.
* Added (dummy) PyOS_FiniInterruptsJack Jansen1997-08-081-0/+5
|
* Adapted for 1.5a3: Py_SupressPrintingFlag is gone, andJack Jansen1997-08-081-21/+9
| | | | Py_SetProgramName replaces Py_GetProgramName
* Added PyMac_SetEventHandler which allows you to replace complete eventJack Jansen1997-06-201-43/+71
| | | | | | handling in inner loop with python code. Also move (previously machine independent) PyErr_CheckSignals here, so we can propagate exceptions in event handling code.
* Make imports faster on the Mac, byJack Jansen1997-06-121-7/+104
| | | | | | | | - Remembering whether sys.path components refer to files or folders, - Using mac-specific code to check for file existence, in stead of trying to fopen() each possible file. These mods need an accompanying mod to import.c.
* - Restore SIOUX menubar just before exiting, if the console window is keptJack Jansen1997-06-122-21/+27
| | | | | open (so the user can quit with cmd-Q, print, etc) - Removed a few unused routines
* Removed old scheduler parameterizing calls and replaced with somethingJack Jansen1997-06-032-102/+125
| | | | a bit easier to use and understand
* - Added Py_GetProgramFullPathJack Jansen1997-05-232-8/+59
| | | | | | | - Added PyMac_StopGUSISpin and have it called at exit time (fixes crash when exiting with sockets open) - Added PLstr... funcs needed by gusi: those provided by StdCLib are broken under cfm68k
* Workaround for bug in MSL and CWGUSI interaction that stopped theJack Jansen1997-05-071-0/+7
| | | | "don't close window on exit" feature to work.
* - Various names in CodeFragments.h have changedJack Jansen1997-05-071-4/+17
| | | | | | - a dummy main program was added, so we can use the standard MW MSL runtime library for main programs (in stead of rolling our own, as we did previously).
* Changed the few old routine names still used to the new onesJack Jansen1997-04-083-9/+14
| | | | Started working on MSL support
* - Changed GestaltEqu.h to Gestalt.hJack Jansen1997-02-244-4/+1
| | | | | - Changed FragLoader.h to CodeFragments.h - Removed Desk.h
* Only go into eventloop/interrupt check 10 times per secondJack Jansen1997-02-201-0/+9
|
* Added/updated copyright noticesJack Jansen1997-01-3114-6/+255
| | | | (and the &*^$%@ resource files got binhexed again, sigh)
* Added PyMac_Initialize() routine, to be used by embedding programs (inJack Jansen1997-01-151-8/+29
| | | | stead of standard Py_Initialize(), which it calls).
* Mac-specific version of getmtime (for non-GUSI Python, which needsJack Jansen1997-01-101-0/+50
| | | | different include files)
* Added profiler initialization/finalization code (if __profile__ is defined)Jack Jansen1997-01-071-1/+12
|
* Fixed FSSpec->pathname code to add colon if the fsspec points to a disk.Jack Jansen1996-11-201-0/+6
|