| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Constructor accepts optional keyword arguments after a optional items list.
Add fromkeys() as an alternate constructor from an iterable over keys.
Expand related unittests.
|
|
|
|
| |
method for constructing new dictionaries from sequences of keys.
|
|
|
|
| |
Avoid depending on this in the test.
|
|
|
|
|
| |
allow the use of any resource except bsddb, give the option
"-uall,-bsddb".
|
|
|
|
|
|
|
|
|
|
|
|
| |
[ 635933 ] make some type attrs writable
Plus a couple of extra tests beyond what's up there.
It hasn't been as carefully reviewed as it perhaps should, so all readers
are encouraged, nay exhorted, to give this a close reading.
There are still a couple of oddities related to assigning to __name__,
but I intend to solicit python-dev's opinions on these.
|
|
|
|
|
| |
messages about MRO conflicts. (Tweaks here: don't print the message,
but compare it with an expected string.)
|
|
|
|
|
| |
non-true values to leak in. This threw-off equality testing which depends
on the underlying dictionaries having both the same keys and values.
|
| |
|
| |
|
|
|
|
| |
file directly (instead of sucking it all into a list of lines first).
|
|
|
|
| |
and only if the test input file doesn't exist.
|
|
|
|
|
| |
data it needs doesn't exist in the project. If it's a huge file,
maybe the test should be changed to be one of the -u thingies.
|
|
|
|
|
| |
XXX If NormalizationTest.txt is required to run this test, why isn't it
checked into the project?
|
| |
|
| |
|
| |
|
|
|
|
| |
Verify that the lookup for an existing name succeeds.
|
| |
|
| |
|
|
|
|
|
|
|
| |
dict() constructor. Example:
>>> dict(a=1, b=2)
{'a': 1, 'b': 2}
>>>
|
|
|
|
|
| |
- assertRaises() wasn't being called correctly
- test_warning() no longer applies
|
|
|
|
|
|
|
| |
The bsddb subproject is gone.
The _bsddb subproject is new.
There are problems here, but I'm out of time to work on this now. If
anyone can address an XXX comment or two in readme.txt, please do!
|
|
|
|
|
|
|
|
|
|
|
| |
Already supported dict() and dict(mapping).
Now supports dict(itemsequence) and
Just van Rossum's new syntax for dict(keywordargs).
Also, added related unittests.
The docs already promise dict-like behavior
so no update is needed there.
|
| |
|
|
|
|
|
|
|
| |
that is outside the integer range no longer raises OverflowError, but
returns a long object instead.
This fixes SF bug http://www.python.org/sf/635115
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Replaced docstring with comments. Prevents subclass contamination.
Added the missing __cmp__() method and a test for __cmp__().
Used try/except style in preference to has_key() followed by a look-up.
Used iteritem() where possible to save creating a long key list and
to save redundant lookups.
Expanded .update() to look for the most helpful methods first and gradually
work down to a mininum expected interface.
Expanded documentation to be more clear on how to use the class.
|
|
|
|
|
|
| |
Win98SE box, but whatever the cause, it had scrolled off the DOS box.
(There was just the "test_queue failed" summary at the end of the
regrtest run.)
|
|
|
|
|
| |
and add a mixin to UserDict.py to make it easier to implement a full
dictionary interface.
|
|
|
|
| |
algorithm, and add some new tests for the C3 algorithm.
|
|
|
|
|
| |
the name instead of enduring nanny "security warnings" from
tempfile.mktemp().
|
| |
|
|
|
|
| |
Add some simple tests of the persistence hooks.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
When mwh added extended slicing, strings and unicode became mappings.
Thus, dict was set which prevented an error when doing:
newstr = 'format without a percent' % string_value
This fix raises an exception again when there are no formats
and % with a string value.
|
|
|
|
|
|
|
|
|
|
|
| |
Armin Rigo's Draconian but effective fix for
SF bug 453523: list.sort crasher
slightly fiddled to catch more cases of list mutation. The dreaded
internal "immutable list type" is gone! OTOH, if you look at a list
*while* it's being sorted now, it will appear to be empty. Better
than a core dump.
|
| |
|
| |
|
| |
|
|
|
|
| |
binary-vs-text-mode screwups.
|
|
|
|
| |
idea what. Added liberal XXX explanations for the next guy.
|
|
|
|
|
|
|
|
| |
figure out what the code was doing. The fixes were a combination of
closing open files before deletion, opening files in binary mode, and
plain skipping things that can't work on Windows (BaseTest.decompress
uses a process gimmick that doesn't exist on Windows, and, even if it
did, assumes a "bunzip2" executable is on PATH).
|
| |
|
|
|
|
| |
failing.
|
| |
|
|
|
|
| |
bz2 tests to pass on Windows; most are still failing.
|