| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
mailing list. This causes the docs to match the default implementation.
|
|
|
|
|
| |
which has a different epoch than *nix. Jack may need to twiddle the
details.
|
|
|
|
| |
called, if the pickler found a __getinitargs__() method.
|
| |
|
|
|
|
|
|
|
|
|
| |
- the attrs value may be re-used by the parser, so the implementation
cannot rely on owning the object.
- an element with no namespace encountered in namespace mode will have a URI
of None, not "" (startElementNS() only).
Fixed a couple of minor markup issues as well.
|
| |
|
|
|
|
| |
what it is more carefully and point out some of the subtleties.
|
|
|
|
| |
older versions. (Thanks to Martijn Faassen.)
|
|
|
|
|
| |
always fill in all slots of table entries.
Fixed a few minor markup errors.
|
| |
|
|
|
|
|
| |
in the function table. Add a docstring for the function as well, since
examples should show good form.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
endings, and that it is smtplib's job to convert those to RFC 2821
line endings when sending the message.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
which is a little more strict than the other formats on some things (fixable,
but not tonight).
|
| |
|
|
|
|
|
|
|
|
| |
split parameters from the last path segment. Introduces two new functions,
urlsplit() and urlunsplit(), that do the simpler job of splitting the URL
without monkeying around with the parameters field, since that was not being
handled properly.
This closes bug #478038.
|
|
|
|
|
| |
Cleaned up some markup nits.
Add a few more of the Tk-related modules to the list of modules.
|
|
|
|
|
|
| |
instead of marshal for object serialization.
Fred, please proofread!
|
|
|
|
|
|
|
|
|
|
| |
find_class(): We no longer mask all exceptions[1] by transforming them
into SystemError. The latter is definitely not the right thing to do,
so we let any exceptions that occur in the PyObject_GetAttr() call to
simply propagate up if they occur.
[1] Note that pickle only masked ImportError, KeyError, and
AttributeError, but cPickle masked all exceptions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
load_inst(): Implement the security hook that cPickle already had.
When unpickling callables which are not classes, we look to see if the
object has an attribute __safe_for_unpickling__. If this exists and
has a true value, then we can call it to create the unpickled object.
Otherwise we raise an UnpicklingError.
find_class(): We no longer mask ImportError, KeyError, and
AttributeError by transforming them into SystemError. The latter is
definitely not the right thing to do, so we let the former three
exceptions simply propagate up if they occur, i.e. we remove the
try/except!
|
|
|
|
|
|
|
|
| |
documentation. This addresses previously undocumented parts of the
public interfaces, the differences between pickle and cPickle,
security concerns, and on and on.
Fred please proofread!
|
|
|
|
| |
clarify some of the interface.
|
| |
|
|
|
|
| |
thing in the index.
|
|
|
|
| |
dictionary().
|
|
|
|
|
|
|
| |
special-cases classic classes, it doesn't do anything about other
cases where different metaclasses are involved (except for the trivial
case where one metaclass is a subclass of the others). Also note that
it's metaclass, not metatype.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Life Preserver" by Matt Conway.
|
| |
|
|
|
|
|
|
| |
of multiple inheritance from a mix of new- and classic-style classes.
This is his patch, plus a start at some test cases from me. Will check
in more, plus a NEWS blurb, later tonight.
|
|
|
|
| |
for a month or more.
|
| |
|
| |
|
| |
|
|
|
|
| |
by Thomas Heller (patch 459442).
|
|
|
|
|
|
|
|
|
| |
used the default Darwin/* for the old code. Reversed those tests so
that compatibility code is in a switch leg with a specific version and
newer systems take the default leg.
This should allow Python to build on OSX 10.1.1 (which jumps from Darwin/1.4
to Darwin/5.1 due to a new numbering scheme).
|
|
|
|
| |
to have single "expected output" file.
|
|
|
|
|
|
|
|
|
|
| |
This gives mmap() on Windows the ability to create read-only, write-
through and copy-on-write mmaps. A new keyword argument is introduced
because the mmap() signatures diverged between Windows and Unix, so
while they (now) both support this functionality, there wasn't a way to
spell it in a common way without introducing a new spelling gimmick.
The old spellings are still accepted, so there isn't a backward-
compatibility issue here.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
uninitialized memory reads reported in bug #478001.
Note that this doesn't address the following larger issues:
- Error conditions are not documented for PyOS_*sig() in the C API.
- Nothing that actually calls PyOS_*sig() in the core interpreter and
extension modules actually /checks/ the return value of the call.
Fixing those is left as an exercise for a later day.
|
| |
|
| |
|