Raymond Hettinger
00166c5532
Add merge() function to heapq.
2007-02-19 04:08:43 +00:00
Raymond Hettinger
1bff796983
Extend work on revision 52962: Eliminate redundant calls to PyObject_Hash().
2007-02-19 03:04:45 +00:00
Raymond Hettinger
d6fc72a5ae
Extend work on revision 52962: Eliminate redundant calls to PyObject_Hash().
2007-02-19 02:03:19 +00:00
Martin v. Löwis
497380f48c
Revert r53672.
2007-02-18 08:54:32 +00:00
Vinay Sajip
0c2552c073
Minor fix for currentframe (SF #1652788 ).
2007-02-17 01:37:50 +00:00
Vinay Sajip
f7ccc101d2
Minor fix for currentframe (SF #1652788 ).
2007-02-16 22:36:24 +00:00
Brett Cannon
fa6521b4fd
Make the __import__ call in encodings.__init__ absolute with a level 0 call.
2007-02-16 19:33:01 +00:00
Brett Cannon
971a012ce1
Update the encoding package's search function to use absolute imports when
...
calling __import__. This helps make the expected search locations for encoding
modules be more explicit.
One could use an explicit value for __path__ when making the call to __import__
to force the exact location searched for encodings. This would give the most
strict search path possible if one is worried about malicious code being
imported. The unfortunate side-effect of that is that if __path__ was modified
on 'encodings' on purpose in a safe way it would not be picked up in future
__import__ calls.
2007-02-15 22:54:39 +00:00
Guido van Rossum
75d26ccd7a
Some more test now pass.
2007-02-15 04:01:01 +00:00
Guido van Rossum
d81206d152
Fix the damage to UserDict and its tests.
...
Clearly this is not the right way to fix this; UserDict and MixinDict
ought to be redesigned with the new dict API in mind. But I'm not
claiming to be in charge of library redesign, I only want zero failing
tests.
2007-02-15 03:49:08 +00:00
Guido van Rossum
e34cdd1bc1
Fix for test_dict.py, thanks to Eduardo O Padoan.
2007-02-14 17:49:04 +00:00
Lars Gustäbel
d0b6040ced
A missing binary mode in AppendTest caused failures in Windows
...
Buildbot.
2007-02-14 14:45:12 +00:00
Lars Gustäbel
f19c1b5e0e
Strip the '.gz' extension from the filename that is written to the
...
gzip header.
2007-02-13 16:24:00 +00:00
Lars Gustäbel
5b1a785702
Patch #1647484 : Renamed GzipFile's filename attribute to name. The
...
filename attribute is still accessible as a property that emits a
DeprecationWarning.
2007-02-13 16:09:24 +00:00
Martin v. Löwis
84f6de9d7e
Patch #1517891 : Make 'a' create the file if it doesn't exist.
...
Fixes #1514451 .
2007-02-13 10:10:39 +00:00
Martin v. Löwis
c6d626ed9f
Patch #698833 : Support file decryption in zipfile.
2007-02-13 09:49:38 +00:00
Martin v. Löwis
ef67690eac
Patch #685268 : Consider a package's __path__ in imputil.
2007-02-13 08:35:01 +00:00
Martin v. Löwis
07aa3ed372
Patch #685268 : Consider a package's __path__ in imputil.
...
Will backport.
2007-02-13 08:34:45 +00:00
Armin Rigo
b8d6d73121
Fix the line to what is my guess at the original author's meaning.
...
(The line has no effect anyway, but is present because it's
customary call the base class __init__).
2007-02-12 16:23:24 +00:00
Martin v. Löwis
626b2e992f
Patch 1463026: Support default namespace in XMLGenerator.
...
Fixes #847665 .
2007-02-12 12:21:41 +00:00
Martin v. Löwis
2bad58f5a4
Patch 1463026: Support default namespace in XMLGenerator.
...
Fixes #847665 . Will backport.
2007-02-12 12:21:10 +00:00
Guido van Rossum
d9214d1f2c
Make dict.keys() and dict.items() comparable to sets, using == and !=.
...
(PEP 3106 requires subset comparisons too, those will come later if someone
really wants them. :-)
2007-02-12 02:23:40 +00:00
Guido van Rossum
e19aad4c7b
Fix unittest.
2007-02-12 00:23:56 +00:00
Guido van Rossum
dde4c2ca56
Fix another unit test.
2007-02-12 00:22:55 +00:00
Guido van Rossum
8b8a543a7b
Make test_logging pass.
2007-02-12 00:07:01 +00:00
Georg Brandl
c2d9d7f489
Checkin the regenerated Python-ast.c and fix test_optparse.
2007-02-11 23:06:17 +00:00
Guido van Rossum
07f2436fa8
Nailed test_weakref.py. Pfew, messy!
2007-02-11 22:59:48 +00:00
Guido van Rossum
9afbb4e364
Two more trivial fixes.
2007-02-11 18:54:18 +00:00
Guido van Rossum
cd70eee244
Another fix. Partly reverted the tweaks done by the previous fix.
2007-02-11 18:53:00 +00:00
Guido van Rossum
091153d43b
Make test_sax pass.
2007-02-11 18:44:55 +00:00
Skip Montanaro
4a67a67416
backport: fix trace.py --ignore-dir
2007-02-11 18:41:56 +00:00
Skip Montanaro
691acf2879
fix trace.py --ignore-dir
2007-02-11 18:24:37 +00:00
Guido van Rossum
87b639505b
With the help of the improved fixer, test_with.py is now fixed.
2007-02-11 07:05:21 +00:00
Guido van Rossum
cc2b016125
- PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;
...
and .keys(), .items(), .values() return dict views.
The dict views aren't fully functional yet; in particular, they can't
be compared to sets yet. but they are useful as "iterator wells".
There are still 27 failing unit tests; I expect that many of these
have fairly trivial fixes, but there are so many, I could use help.
2007-02-11 06:12:03 +00:00
Guido van Rossum
3ac6741f79
Implement __contains__ for dict_keys and dict_items.
...
(Not for dict_values, where it can't be done faster than
the default implementation which just iterates the elements.)
2007-02-10 18:55:06 +00:00
Guido van Rossum
83825acd1b
Endow dict views with a proper length method.
2007-02-10 04:54:19 +00:00
Guido van Rossum
b90c84889e
Very preliminary work on dict views.
2007-02-10 01:11:45 +00:00
Guido van Rossum
e0192e576f
Fix the remaining doctest failures.
...
One was a modified line that was echoed in an exception;
the other two were softspace problems, fixed clumsily but effectively.
2007-02-09 23:39:59 +00:00
Guido van Rossum
79139b247b
Kill off softspace completely (except in formatter.py which seems to have
...
a different feature with the same name).
The change to test_doctest.txt reduces the doctest failures to 3.
2007-02-09 23:20:19 +00:00
Guido van Rossum
bdc36e4d9e
Redue the failure rate to 13 tests. Bah.
2007-02-09 22:43:47 +00:00
Guido van Rossum
0bcbb0d4d4
Fix the roundtripping function.
2007-02-09 22:43:10 +00:00
Guido van Rossum
9b8850439c
Fairly subtle fix for failing tests.
2007-02-09 22:36:02 +00:00
Guido van Rossum
8df511b5f6
Trivial fix for test_profile.py.
2007-02-09 22:28:28 +00:00
Guido van Rossum
4e4035b9ac
Found another difference between old and new print:
...
old print would suppress the softspace after \t.
2007-02-09 22:27:36 +00:00
Guido van Rossum
43fc78ddc8
More prints embedded in strings.
2007-02-09 22:18:41 +00:00
Guido van Rossum
ceae375da1
Fix a bogus end=' ' here.
2007-02-09 22:16:54 +00:00
Guido van Rossum
374812c5af
Two tests fixed with one fix.
2007-02-09 22:11:20 +00:00
Guido van Rossum
c420b2f3ee
Fix another test.
2007-02-09 22:09:01 +00:00
Guido van Rossum
d8c19672a7
Some more tests pass now. (Also test_compiler.py with -u all.)
2007-02-09 21:54:58 +00:00
Georg Brandl
88fc6646d1
* Remove PRINT_ITEM(_TO), PRINT_NEWLINE(_TO) opcodes.
...
* Fix some docstrings and one Print -> print.
* Fix test_{class,code,descrtut,dis,extcall,parser,popen,pkg,subprocess,syntax,traceback}.
These were the ones that generated code with a print statement.
In most remaining failing tests there's an issue with the soft space.
2007-02-09 21:28:07 +00:00