summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Contribution by Hannu Krosing (with some changes).Guido van Rossum1997-09-051-0/+38
| | | | | | | Added 'p' format character for Pascal string (i.e. leading length byte). This uses the count prefix line 's' does, except that the count includes the length byte; i.e. '10p' takes 10 bytes packed but has space for a length byte and 9 data bytes.
* Don't use ANSI string literal concatenation (everything is K&R compatible).Guido van Rossum1997-09-051-4/+4
|
* Get rid of most silly #include and #ifdefs near the top; these are allGuido van Rossum1997-09-051-55/+59
| | | | | | obsolete now it includes Python.h. Make all functions K&R compatible (Sue Williams).
* Now produces some reassuring output.Jeremy Hylton1997-09-041-0/+9
|
* Many more tests, including tests of many optional arguments.Jeremy Hylton1997-09-041-0/+47
|
* Several changes:Jeremy Hylton1997-09-041-125/+188
| | | | | | | | | | | | | | | | | 1. Fix bug in (de)compression objects. The final string resize used zst.total_out to determine the length of the string, but the (de)compression object will output data a little bit at a time, which means total_out is not the string size. Fix: save original value of total_out at the start of the call. 2. Be sure to Py_DECREF the result value if you exit with an exception. 3. Use PyInt_FromLong instead of Py_BuildValue 4. include more constants from the zlib header file 5. Use PyErr_Format instead of using a local buffer and sprintf.
* Added some try-excepts so that it can be imported in restricted modeGuido van Rossum1997-09-041-6/+15
| | | | | | (though some type names are undefined in that case, e.g. CodeType (inaccessible), FileType (not always accessible), and TracebackType and FrameType (inaccessible).
* The re test suite is very slow on slower hosts.Guido van Rossum1997-09-041-0/+3
| | | | To save time, only run the first and last 10 tests except in verbose mode.
* Added first line to set Emacs makefile mode (pretty colors :-)Barry Warsaw1997-09-041-0/+1
|
* (py-parse-partial-sexp-works-p): Removed as obsolete. All currentBarry Warsaw1997-09-041-20/+10
| | | | | | Emacs and XEmacs versions should have working parse-partial-sexp's. (py-emacs-features): Defined as future placeholder.
* Different test for Unix -- rely on os.sep instead of sys.platform.Guido van Rossum1997-09-031-3/+3
|
* One patch from Sjoerd and one from Jack.Guido van Rossum1997-09-031-7/+14
| | | | | | | | | | | Sjoerd: add separate administration of temporary files created y URLopener.retrieve() so cleanup can properly remove them. The old code removed everything in tempcache which was a bad idea if the user had passed a non-temp file into it. (I added a line to delete the tempcache in cleanup() -- it still seems to make sense.) Jack: in basejoin(), interpret relative paths starting in "../". This is necessary if the server uses symbolic links.
* Give in to Mike Meyer -- add *both* lib/python1.5/packages andGuido van Rossum1997-09-032-18/+40
| | | | | lib/site-python to the path (if they exist). This is a reasonable compromise.
* Give in to Mike Meyer -- add *both* lib/python1.5/packages andGuido van Rossum1997-09-031-7/+9
| | | | | lib/site-python to the path (if they exist). This is a reasonable compromise.
* #Plug small memory leaks in constructors.Guido van Rossum1997-09-033-6/+15
|
* Plug small leaks: the [de]compress object itself was never freed.Guido van Rossum1997-09-031-0/+2
|
* Added some symbols (I'm afraid more will come).Guido van Rossum1997-09-031-0/+3
|
* Change instructions to require use of PCbuild directory (instead ofGuido van Rossum1997-09-031-12/+7
| | | | just recommending it). At Mark Hammond's request.
* At Mark Hammond's suggestion:Guido van Rossum1997-09-035-17/+125
| | | | | | | - use the DLL versions of the C runtime (!) - change path settings so intermediate files go to Debug/temp or Release/temp - add resource file to python15.dll (can't remember what this does) - add a separate project to build the parser module
* Added empty PCbuild directory for use by the NT build process.Guido van Rossum1997-09-031-0/+5
|
* Added new flags and exceptions; removed AccessError exception.Guido van Rossum1997-09-031-1/+5
|
* Change [_Py_]re_compile_pattern() to return a char*.Guido van Rossum1997-09-033-12/+12
| | | | | Since it only returns an error message (or NULL) there's no reason for it to be unsigned char *, and various compilers like this better.
* Mod suggested by Donn Cave -- invoke makexp_aix relative to $0Guido van Rossum1997-09-031-2/+4
| | | | so it doesn't have to be on $PATH.
* Disable the portable multimedia modules (audioop, imageop, rgbimg) byGuido van Rossum1997-09-031-4/+5
| | | | default since they don't work on 64-bit platforms.
* #Removed debug print that was accidentally left in.Guido van Rossum1997-09-031-2/+0
|
* Add the same _keep_alive patch (by Michael Scharff) that was added toGuido van Rossum1997-09-031-0/+19
| | | | | copy.deepcopy() a while ago. Can't reproduce this but it doesn't break anything and it looks like the code could have the same problem.
* Fix the bug Jeremy was experiencing: both the close() and theGuido van Rossum1997-09-031-4/+19
| | | | | | | | | | | dealloc() functions contained code to free/DECREF the buffer (there were differences between I and O objects but the logic bug was the same). Fixed this be setting the buffer pointer to NULL and testing for that. (This also makes it safe to call close() more than once.) XXX Worry: what if you try to read() or write() once the thing is closed?
* Define BUILDNO in macbuildno.h (incremented by fullbuild)Jack Jansen1997-09-012-0/+3
|
* Can't remember...Jack Jansen1997-09-011-13/+2
|
* Added GetTicks() here, so profiling can use a decent timerJack Jansen1997-09-011-0/+9
|
* Fullbuild now maintains BUILDNO for mac buildsJack Jansen1997-09-012-15/+35
|
* Names changedJack Jansen1997-09-012-38/+38
|
* #typoGuido van Rossum1997-08-301-1/+1
|
* Document newly revamped site configuration mechanism.Guido van Rossum1997-08-302-38/+126
| | | | Damn the criticism in c.l.p!
* Added docs for 'user' customization module. Renamed libuser.texGuido van Rossum1997-08-305-3/+126
| | | | (which had UserDict/UserList) to libuserdict.tex.
* Inline PyObject_CallObject (Marc-Andre Lemburg).Guido van Rossum1997-08-302-1/+9
|
* Added os.altsep; this is '/' on DOS/Windows, and None on systems withGuido van Rossum1997-08-292-4/+16
| | | | a sane filename syntax.
* Write out the dynamic OS choice, to avoid exec statements.Guido van Rossum1997-08-291-51/+66
| | | | | Adding support for a new OS is now a bit more work, but I bet that 'dos' or 'nt' will cover most situations...
* Added -X option to suppress default import of site.py. Also split theGuido van Rossum1997-08-291-5/+13
| | | | | usage message in *three* parts under 510 bytes, for low-end ANSI compatibility.
* Added NoSite flag.Guido van Rossum1997-08-291-0/+1
|
* Two independent changes (oops):Guido van Rossum1997-08-291-4/+35
| | | | | | | | | - Changed semantics for initialized flag (again); forget the ref counting, forget the fatal errors -- redundant calls to Py_Initialize() or Py_Finalize() calls are simply ignored. - Automatically import site.py on initialization, unless a flag is set not to do this by main().
* New site.py semantics. Searches inGuido van Rossum1997-08-291-28/+103
| | | | | <*prefix>/lib/python<version>/packages for *.pth files containing directories that are appended to sys.path.
* Swap the sense of the -X option vis-a-vis Py_UseClassExceptionsFlag soBarry Warsaw1997-08-291-2/+3
| | | | | that class based exceptions are enabled by default. -X disables them in favor of the old-style string exceptions.
* Removed obsolete exception PyExc_AccessError.Barry Warsaw1997-08-291-43/+171
| | | | | | | | | | | | | | | | | | | | | Added PyErr_MemoryErrorInst to hold the pre-instantiated instance when using class based exceptions. Simplified the creation of all built-in exceptions, both class based and string based. Actually, for class based exceptions, the string ones are still created just in case there's a problem creating the class based ones (so you still get *some* exception handling!). Now the init and fini functions run through a list of structure elements, creating the strings (and optionally classes) for every entry. initerrors(): the new base class exceptions StandardError, LookupError, and NumberError are initialized when using string exceptions, to tuples containing the list of derived string exceptions. This GvR trick enables forward compatibility! One bit of nastiness is that the C code has to know the inheritance tree embodied in exceptions.py. Added the two phase init and fini functions.
* Added Py_UseClassExceptionsFlag, the variable containing the state ofBarry Warsaw1997-08-291-5/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the -X command line option. Py_Initialize(): Handle the two phase initialization of the built-in module. Py_Finalize(): Handle the two phase finalization of the built-in module. parse_syntax_error(): New function which parses syntax errors that PyErr_Print() will catch. This correctly parses such errors regardless of whether PyExc_SyntaxError is an old-style string exception or new-fangled class exception. PyErr_Print(): Many changes: 1. Normalize the exception. 2. Handle SystemExit exceptions which might be class based. Digs the exit code out of the "code" attribute. String based SystemExit is handled the same as before. 3. Handle SyntaxError exceptions which might be class based. Digs the various information bits out of the instance's attributes (see parse_syntax_error() for details). String based SyntaxError still works too. 4. Don't write the `:' after the exception if the exception is class based and has an empty string str() value.
* Added extern definition for -X flag variable.Barry Warsaw1997-08-291-0/+1
|
* New file, which is imported by the built-in module when python isBarry Warsaw1997-08-291-0/+164
| | | | | started with the -X option. This file contains the definitions for the built-in exception classes.
* Expanded r() function to handle class exceptions.Barry Warsaw1997-08-291-1/+6
|
* Parse new command line option -X which enables exception classes.Barry Warsaw1997-08-291-1/+6
|
* Declarations for two phase initialization and finalization functionsBarry Warsaw1997-08-291-2/+4
| | | | for the built-in module.