| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
(The GLHACK variable isn't really needed since the change to
glmodule.c, but I'm too busy to remove it. It's harmless.)
|
|
|
|
|
|
| |
solves the conflict with curses over the 'clear' entry point much
nicer. (Jack had checked in the changes to cstubs eons ago, but I
never regenrated glmodule.c :-( )
|
|
|
|
|
|
| |
the compilation flags for the gl, fl and fm modules. This avoids a
name conflict with the curses module (both gl and curses have an entry
point called 'clear').
|
| |
|
|
|
|
| |
Also added MD5Type object.
|
|
|
|
| |
caller (in import.c) will test for errors and take appropriate action.
|
| |
|
| |
|
|
|
|
|
| |
broken; it asked for the current thread state when there was none.
Fixed by using the saved event_tstate.
|
|
|
|
|
|
| |
thread state of the thread calling mainloop() (or another event
handling function) rather than the thread state of the function that
created the client data structure.
|
|
|
|
| |
something in the latest win342 build).
|
| |
|
| |
|
|
|
|
|
| |
as the code string of code objects, as long as they support
the (readonly) buffer interface. By Greg Stein.
|
| |
|
|
|
|
| |
Remove unused decls of getloclock() and is_lockobject().
|
|
|
|
|
| |
(1) add dummy decl for strptime();
(2) move the code to set accept2dyear to the front of inittime().
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Patch by Jeff Rush.
|
|
|
|
| |
triggered in situations that are not an error.
|
|
|
|
| |
system calls.
|
| |
|
|
|
|
|
| |
native format, as void* (translated to Python int or long).
Also adds PyLong_FromVoidPtr and PyLong_AsVoidPtr to longobject.c.
|
|
|
|
| |
discovered by Marc Lemburg.
|
|
|
|
| |
"$(srcdir)/" before all source files even when is starts with "/".
|
|
|
|
|
| |
support in this module can go. The patch only deletes code
(PyLong_FromLongLong() and PyLong_AsLongLong()). By Sjoerd Mullender.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2-digit years are now converted using rules that are (according to
Fredrik Lundh) recommended by POSIX or X/Open: 0-68 mean 2000-2068,
69-99 mean 1969-1999.
2-digit years are now only accepted if time.accept2dyear is set to a
nonzero integer; if it is zero or not an integer or absent, only year
values >= 1900 are accepted. Year values 100-1899 and negative year
values are never accepted.
The initial value of time.accept2dyear depends on the environment
variable PYTHONY2K: if PYTHONY2K is set and non-empty,
time.accept2dyear is initialized to 0; if PYTHONY2K is empty or not
set, time.accept2dyear is initialized to 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I had to make a slight diddle to work with Python 1.4, which
we and some of our customers are still using. :(
I've also made a few minor enhancements:
- You can now both get and set the memo using a 'memo'
attribute. This is handy for certain advanced applications
that we have.
- Added a 'binary' attribute to get and set the binary
mode for a pickler.
- Added a somewhat experimental 'fast' attribute. When this
is set, objects are not placed in the memo during pickling.
This should lead to faster pickling and smaller pickles in
cases where:
o you *know* there are no circular references, and
o either you've:
- preloaded the memo with class information
by pickling classes in non-fast mode or by
manipilating the memo directly, or
- aren't pickling instances.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Only DECREF the class's module when the module is retrieved via
PyImport_Import. If it is retrieved from the modules dictionary with
PyDict_GetItem, it is using a borrowed reference.
2. If the module doesn't define the desired class, raise the same
SystemError that pickle.py does instead of returning an AttributeError
(which is cryptic at best).
Also, fix the PyArg_ParseTuple in cpm_loads (the externally visible
loads) function: Use "S" instead of "O" because cStringIO will croak
with a "bad arguments to internal function" if passed anything other
than a string.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
ERROR_FILE_NOT_FOUND, return an empty list instead of raising an
exception.
|
| |
|
|
|
|
|
| |
function had a reference to vPySys_WriteStderr(...) -- turn it back
into fprintf(stder, ...).
|
| |
|
|
|
|
|
|
|
|
| |
gethostbyaddr(). (Plain gethostbyname() returns only the IP address.)
This moves the code shared by gethostbyaddr() and gethostbyname_ex()
to a subroutine.
Original patch by Dan Stromberg; some tweaks by GvR.
|
| |
|
|
|
|
|
| |
status inspection" macros as functions: WEXITSTATUS(), WIFEXITED(),
WIFSIGNALED(), WIFSTOPPED(), WSTOPSIG(), WTERMSIG().
|
|
|
|
|
| |
previous version of this code would not show the offending input, even
though there was code that attempted this.)
|
| |
|
|
|
|
|
| |
get a decent error message when it's not a string (instead of
confusing errors when trying to use the thing).
|