| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
tutorial.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I don't agree it had a bug (see the report), so this is *not* a candidate
for backporting, but the docs were confusing and the Queue implementation
was old enough to vote.
Rewrote put/put_nowait/get/get_nowait from scratch, to use a pair of
Conditions (not_full and not_empty), sharing a common mutex. The code
is 1/4 the size now, and 6.25x easier to understand. For blocking
with timeout, we also get to reuse (indirectly) the tedious timeout
code from threading.Condition. The Full and Empty exceptions raised
by non-blocking calls are now easy (instead of nearly impossible) to
explain truthfully: Full is raised if and only if the Queue truly
is full when the non-blocking put call checks the queue size, and
similarly for Empty versus non-blocking get.
What I don't know is whether the new implementation is slower (or
faster) than the old one. I don't really care. Anyone who cares
a lot is encouraged to check that.
|
|
|
|
|
|
|
|
|
|
| |
Anthony Tuininga.
This is a derived patch, taking the opportunity to add some organization
to the now-large pile of datetime-related macros, and to factor out
tedious repeated text.
Also improved some clumsy wording in NEWS.
|
|
|
|
|
|
| |
that behaves as if both lists has an empty string in each of them.
Closes bug #979794 (and duplicate bug #980117).
|
|
|
|
| |
Closes bug #980938.
|
|
|
|
|
|
| |
the loop starts.
Closes bug #930024. Thanks AM Kuchling.
|
|
|
|
|
|
| |
PyArg_VaParse().
Closes patch #550732. Thanks Greg Chapman.
|
| |
|
|
|
|
|
|
| |
path. Also clarifies UNC handling and adds appropriate tests.
Applies patch #988607 to fix bug #980327. Thanks Paul Moore.
|
|
|
|
| |
Misc/ACKS.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Map conditions to related signals.
* Make contexts unhashable.
* Eliminate used "default" attribute in exception definitions.
* Eliminate the _filterfunc in favor of a straight list.
Docs:
* Eliminate documented references to conditions that are not signals.
* Eliminate parenthetical notes such as "1/0 --> Inf" which are no
longer true with the new defaults.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[ 960406 ] unblock signals in threads
although the changes do not correspond exactly to any patch attached to
that report.
Non-main threads no longer have all signals masked.
A different interface to readline is used.
The handling of signals inside calls to PyOS_Readline is now rather
different.
These changes are all a bit scary! Review and cross-platform testing
much appreciated.
|
|
|
|
| |
a typo.
|
|
|
|
| |
the checkin.
|
| |
|
| |
|
|
|
|
|
|
|
| |
during interpreter shutdown instead of masking it with another traceback about
accessing a NoneType when trying to print the exception out in the first place.
Closes bug #754449 (using patch #954922).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- weakref.ref and weakref.ReferenceType will become aliases for each
other
- weakref.ref will be a modern, new-style class with proper __new__
and __init__ methods
- weakref.WeakValueDictionary will have a lighter memory footprint,
using a new weakref.ref subclass to associate the key with the
value, allowing us to have only a single object of overhead for each
dictionary entry (currently, there are 3 objects of overhead per
entry: a weakref to the value, a weakref to the dictionary, and a
function object used as a weakref callback; the weakref to the
dictionary could be avoided without this change)
- a new macro, PyWeakref_CheckRefExact(), will be added
- PyWeakref_CheckRef() will check for subclasses of weakref.ref
This closes SF patch #983019.
|
| |
|
|
|
|
|
|
| |
The builtin eval() function now accepts any mapping for the locals argument.
Time sensitive steps guarded by PyDict_CheckExact() to keep from slowing
down the normal case. My timings so no measurable impact.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
entailed editing the urlparse module.
|
|
|
|
|
|
| |
location) in its addressing.
Closes bug #981299.
|
|
|
|
| |
getservbyname() optional. Update the tests and the docs.
|
| |
|
|
|
|
|
|
|
| |
--disable-framework build; header file was protected in an #if using the wrong
macro to check.
Closes bug #978645.
|
| |
|
| |
|
|
|
|
|
|
| |
The LaTeX is untested (well, so is the new API, for that matter).
Note that I also changed NULL to get spelled consistently in concrete.tex.
If that was a wrong thing to do, Fred should yell at me.
|
|
|
|
|
|
|
|
|
|
|
| |
New include file timefuncs.h exports private API function
_PyTime_DoubleToTimet() from timemodule.c. timemodule should export
some other functions too (look for painful bits in datetimemodule.c).
Added insane-argument checking to datetime's assorted fromtimestamp()
and utcfromtimestamp() methods. Added insane-argument tests of these
to test_datetime, and insane-argument tests for ctime(), localtime()
and gmtime() to test_time.
|
|
|
|
|
|
| |
itself.
Closes bug #919012 . Thanks Johannes Gijsbers.
|
|
|
|
| |
timestamps will lose precision thanks to time_t < double (bug #919012).
|
|
|
|
|
|
| |
have pointer addresses in uppercase.
Closes bug #934282. Thanks Robin Becker.
|
|
|
|
| |
and modules by configuring with the --enable-profiling flag.
|
|
|
|
| |
(Contributed by Andrew Gaul.)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
releases.
Ignore it, rather than breaking.
Will backport.
(and r1.1000 for Misc/NEWS!)
|
|
|
|
|
|
| |
have a __module__. Test for this case.
Bugfix candidate, will backport.
|
|
|
|
|
| |
Prevents a collision pattern that occurs with nested tuples.
(Yitz Gale provided code that repeatably demonstrated the weakness.)
|