| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
* Change the default precision to 28 (to match VB's decimal type).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Added test for pickling contexts
* Renamed ExceptionList to Signals (to match wording in the spec)
* Simplified Context constructor by allowing flags=None to automatically
generate a zeroed-out flags dictionary.
* inlined _convertString() which was used only once
* _rounding_decision is private, so excluded its contants from __all__.
* added an XXX comment with concerns about subclassing signals results in
a deviation from the spec (maybe important, maybe not).
* Taught the test_suite to determine its own directory (modeled after code
in regrtest.py). Enables it to be run when the current directory is not
the test directory.
* Added a clear_flags() method to the Context API to make it easier to do
a common operation with flags.
* Fixed the trap_enablers defaults in BasicDefaultContext to match the spec.
|
|
|
|
| |
of corner cases.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
| |
|
|
|
|
| |
have been commented.)
|
| |
|
| |
|
|
|
|
| |
Now runs without exception on WinME/98.
|
|
|
|
| |
getservbyname() optional. Update the tests and the docs.
|
|
|
|
|
|
|
|
|
|
| |
regrtest.py after it ran test_frozen. This test was really only
designed to be run immediately after startup. Afterwards, other
modules could be loaded when had not been fixed-up by site.py
Took the chicken way out and only tested those modules known to
be imported by site.py.
* Normalized whitespace.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Reads better when the iterable is a generator expression.
|
|
|
|
| |
We need to write more; hopefully the barrier is a little lower now.
|
|
|
|
| |
(Contributed by Andrew Gaul.)
|
| |
|
| |
|
| |
|
|
|
|
|
| |
an alternate algorithm when the number of selected items is small
relative to the full iterable.
|
|
|
|
|
|
| |
[ 971323 ] make test_signal less annoying
after some comments on IRC from a highly opinionated australian who
wishes to remain anonymous.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
had already been installed previously.
|
| |
|
|
|
|
|
|
|
| |
datetime.datetime and datetime.time could yield insane objects. Thanks
to Jiwon Seo for the fix.
Bugfix candidate. I'll backport it to 2.3.
|
| |
|
|
|
|
|
| |
This is similar to test_normalization, so that many source trees
can reference the same test file(s).
|
| |
|
|
|
|
|
|
| |
no bug motivated their inclusion and the chance of them triggering a
problem seems unlikely. Refactor to reduce code duplication. Rename
'hamlet_scene' to 'HAMLET_SCENE'. Test is much faster now. Closes #960995.
|
| |
|
|
|
|
| |
Goal is to work in the direction of universal newline support.
|
|
|
|
| |
according to the HTML REC, but HTMLParser is already a pretty loose parser. Reported by Bernd Zimmermann.
|
|
|
|
| |
line #s; fix is to look at tb.tb_lineno, not tb.frame.f_lineno. Patch from Robin Becker and me.
|
|
|
|
|
| |
in HTTP/0.9 due to dissonance of httplib.LineAndFileWrapper and
urllib.addbase.
|
| |
|
|
|
|
| |
New regression test suite.
|
| |
|
| |
|
|
|
|
| |
addition to unicode objects.
|
|
|
|
| |
wrapped correctly.
|
|
|
|
| |
same as for the string and sequence tests.
|
| |
|
|
|
|
|
|
|
| |
iswide() for east asian width manipulation. (Inspired by David
Goodger, Reviewed by Martin v. Loewis)
- Move _PyUnicode_TypeRecord.flags to the end of the struct so that
no padding is added for UCS-4 builds. (Suggested by Martin v. Loewis)
|