- 04 Sep, 1997 5 commits
-
-
Jeremy Hylton authored
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.
-
Guido van Rossum authored
(though some type names are undefined in that case, e.g. CodeType (inaccessible), FileType (not always accessible), and TracebackType and FrameType (inaccessible).
-
Guido van Rossum authored
To save time, only run the first and last 10 tests except in verbose mode.
-
Barry Warsaw authored
-
Barry Warsaw authored
Emacs and XEmacs versions should have working parse-partial-sexp's. (py-emacs-features): Defined as future placeholder.
-
- 03 Sep, 1997 17 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
lib/site-python to the path (if they exist). This is a reasonable compromise.
-
Guido van Rossum authored
lib/site-python to the path (if they exist). This is a reasonable compromise.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
just recommending it). At Mark Hammond's request.
-
Guido van Rossum authored
- 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
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
so it doesn't have to be on $PATH.
-
Guido van Rossum authored
default since they don't work on 64-bit platforms.
-
Guido van Rossum authored
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
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?
-
- 01 Sep, 1997 5 commits
-
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
- 30 Aug, 1997 4 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
Damn the criticism in c.l.p!
-
Guido van Rossum authored
(which had UserDict/UserList) to libuserdict.tex.
-
Guido van Rossum authored
-
- 29 Aug, 1997 9 commits
-
-
Guido van Rossum authored
a sane filename syntax.
-
Guido van Rossum authored
Adding support for a new OS is now a bit more work, but I bet that 'dos' or 'nt' will cover most situations...
-
Guido van Rossum authored
usage message in *three* parts under 510 bytes, for low-end ANSI compatibility.
-
Guido van Rossum authored
-
Guido van Rossum authored
- 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().
-
Guido van Rossum authored
<*prefix>/lib/python<version>/packages for *.pth files containing directories that are appended to sys.path.
-
Barry Warsaw authored
that class based exceptions are enabled by default. -X disables them in favor of the old-style string exceptions.
-
Barry Warsaw authored
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.
-
Barry Warsaw authored
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.
-