| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
obsolete now it includes Python.h.
Make all functions K&R compatible (Sue Williams).
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
(though some type names are undefined in that case, e.g. CodeType
(inaccessible), FileType (not always accessible), and TracebackType
and FrameType (inaccessible).
|
|
|
|
| |
To save time, only run the first and last 10 tests except in verbose mode.
|
| |
|
|
|
|
|
|
| |
Emacs and XEmacs versions should have working parse-partial-sexp's.
(py-emacs-features): Defined as future placeholder.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
lib/site-python to the path (if they exist). This is a reasonable
compromise.
|
|
|
|
|
| |
lib/site-python to the path (if they exist). This is a reasonable
compromise.
|
| |
|
| |
|
| |
|
|
|
|
| |
just recommending it). At Mark Hammond's request.
|
|
|
|
|
|
|
| |
- 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
|
| |
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
| |
so it doesn't have to be on $PATH.
|
|
|
|
| |
default since they don't work on 64-bit platforms.
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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?
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Damn the criticism in c.l.p!
|
|
|
|
| |
(which had UserDict/UserList) to libuserdict.tex.
|
| |
|
|
|
|
| |
a sane filename syntax.
|
|
|
|
|
| |
Adding support for a new OS is now a bit more work, but I bet that
'dos' or 'nt' will cover most situations...
|
|
|
|
|
| |
usage message in *three* parts under 510 bytes, for low-end ANSI
compatibility.
|
| |
|
|
|
|
|
|
|
|
|
| |
- 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().
|
|
|
|
|
| |
<*prefix>/lib/python<version>/packages for *.pth files containing
directories that are appended to sys.path.
|
|
|
|
|
| |
that class based exceptions are enabled by default. -X disables them
in favor of the old-style string exceptions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
started with the -X option. This file contains the definitions for
the built-in exception classes.
|
| |
|
| |
|
|
|
|
| |
for the built-in module.
|