Bill Janssen
414c2b0819
add the certificate for the Python SVN repository for testing SSL
2007-11-15 23:03:03 +00:00
Raymond Hettinger
5681cbce81
Small improvement to the implementation of __replace__().
2007-11-15 02:55:42 +00:00
Raymond Hettinger
eeeb9c4445
Accept Issac Morland's suggestion for __replace__ to allow multiple replacements
...
(suprisingly, this simplifies the signature, improves clarity, and is comparably fast).
Update the docs to reflect a previous change to the function name.
Add an example to the docs showing how to override the default __repr__ method.
2007-11-15 02:44:53 +00:00
Raymond Hettinger
b5e5d0741a
Add test for __fields__ being read-only
2007-11-14 23:02:30 +00:00
Raymond Hettinger
78f27e001b
Make __fields__ read-only. Suggested by Issac Morland
2007-11-14 22:56:16 +00:00
Amaury Forgeot d'Arc
0d75f09177
Merge from py3k branch:
...
Correction for issue1265 (pdb bug with "with" statement).
When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx
is called with a GeneratorExit exception set. This leads to funny results
if the sys.settrace function itself makes use of generators.
A visible effect is that the settrace function is reset to None.
Another is that the eventual "finally" block of the generator is not called.
It is necessary to save/restore the exception around the call to the trace
function.
This happens a lot with py3k: isinstance() of an ABCMeta instance runs
def __instancecheck__(cls, instance):
"""Override for isinstance(instance, cls)."""
return any(cls.__subclasscheck__(c)
for c in {instance.__class__, type(instance)})
which lets an opened generator expression each time it returns True.
Backport candidate, even if the case is less frequent in 2.5.
2007-11-13 21:54:28 +00:00
Guido van Rossum
0288cb0ba8
Add the test from issue 1704621 (the issue itself is already fixed here).
2007-11-12 20:06:40 +00:00
Walter Dörwald
edc526c161
Fix TextCalendar.prweek(). This closes issue #1427 .
2007-11-12 10:01:33 +00:00
Christian Heimes
ced1646b9e
Fix for #1427 : Error in standard module calendar
...
the prweek() method is still broken and I can't figure out how it suppose to work.
2007-11-12 01:20:56 +00:00
Vinay Sajip
95dd03b8b8
Fixed a bug reported (in private email, by Robert Crida) in logging configuration whereby child loggers of a logger named in a configuration file, which are not themselves named in the configuration, are disabled when the configuration is applied.
2007-11-11 14:27:30 +00:00
Guido van Rossum
d1ef78942a
Issue 1416. Add getter, setter, deleter methods to properties that can be
...
used as decorators to create fully-populated properties.
2007-11-10 22:12:24 +00:00
Georg Brandl
980c4fc04d
Correct a comment about testing methods - nowadays most
...
tests don't run directly on import.
2007-11-09 17:33:23 +00:00
Raymond Hettinger
1760c8a017
Add set.isdisjoint()
2007-11-08 02:52:43 +00:00
Raymond Hettinger
cdcf887999
Optimize dict.fromkeys() with dict inputs. Useful for resetting bag/muliset counts for example.
2007-11-07 02:26:17 +00:00
Raymond Hettinger
12e94200c0
Fix marshal's incorrect handling of subclasses of builtin types (backport candidate).
2007-11-07 01:13:09 +00:00
Gregory P. Smith
e1ac4f1930
Fixes Issue 1385: The hmac module now computes the correct hmac when using
...
hashes with a block size other than 64 bytes (such as sha384 and sha512).
2007-11-06 00:19:03 +00:00
Gregory P. Smith
80e95c142e
* db->get_flags is only available in BerkeleyDB >= 4.2
2007-11-05 09:07:40 +00:00
Gregory P. Smith
ac11e02143
Add the bsddb.db.DBEnv.lock_id_free method.
...
Improve test_lock's tempdir creation and cleanup.
2007-11-05 02:56:31 +00:00
Gregory P. Smith
ec10a4a402
Fixes bug 477182 on pybsddb.sf.net. DB objects now load the flags and
...
pay attention to them when opening an existing database. This means
that d[] behaves properly even on databases previously created with DB_DUP
or DB_DUPSORT flags to allow duplicate keys.
http://sourceforge.net/tracker/index.php?func=detail&aid=477182&group_id=13900&atid=113900
Do not backport, this bugfix could be considered an API change.
2007-11-05 02:32:26 +00:00
Brett Cannon
b13f70df1b
Add a missing quotation mark.
2007-11-03 06:47:02 +00:00
Thomas Heller
03fd077482
Enable the full ctypes c_longdouble tests again.
2007-11-02 19:11:23 +00:00
Nick Coghlan
3814a911aa
Fix for bug 1705170 - contextmanager swallowing StopIteration (2.5 backport candidate)
2007-11-02 10:09:12 +00:00
Gregory P. Smith
6d331ca9a4
Undo revision 58533 58534 fixes. Those were a workaround for
...
a problem introduced by 58385.
2007-11-01 21:15:36 +00:00
Gregory P. Smith
aae141a751
Fix bug introduced in revision 58385. Database keys could no longer
...
have NULL bytes in them. Replace the errant strdup with a
malloc+memcpy. Adds a unit test for the correct behavior.
2007-11-01 21:08:14 +00:00
Christian Heimes
4de2263616
Removed non ASCII text from test as requested by Guido. Sorry :/
2007-11-01 20:11:06 +00:00
Christian Heimes
e18f21c7d4
Backport of import tests for bug http://bugs.python.org/issue1293 and bug http://bugs.python.org/issue1342
2007-11-01 19:48:10 +00:00
Kurt B. Kaiser
20172f9b5d
check in Tal Einat's update to tabpage.py
...
Patch 1612746
M configDialog.py
M NEWS.txt
AM tabbedpages.py
2007-10-30 02:38:54 +00:00
Guido van Rossum
dff51b2898
Patch 1353 by Jacob Winther.
...
Add mp4 mapping to mimetypes.py.
2007-10-29 20:52:45 +00:00
Kurt B. Kaiser
60d58406d0
Add confirmation dialog before printing. Patch 1717170 Tal Einat.
2007-10-28 19:03:59 +00:00
Hye-Shik Chang
ea684743da
Enable platform-specific tweaks for FreeBSD 8 (exactly same to FreeBSD 7's yet)
2007-10-28 12:38:09 +00:00
Hye-Shik Chang
a838a801f2
- Add support for FreeBSD 8 which is recently forked from FreeBSD 7.
...
- Regenerate IN module for most recent maintenance tree of FreeBSD 6 and 7.
2007-10-28 11:19:02 +00:00
Georg Brandl
dd1a8466f5
Fix new pop() method on os.environ on ignorecase-platforms.
2007-10-26 18:30:41 +00:00
Kurt B. Kaiser
1e45f80b22
1. Add comments to provide top-level documentation.
...
2. Refactor to use more descriptive names.
3. Enhance tests in main().
2007-10-26 00:10:09 +00:00
Kurt B. Kaiser
aa8a96a159
Correct an ancient bug in an unused path by removing that path: register() is
...
now idempotent.
2007-10-25 22:43:45 +00:00
Georg Brandl
1a94ec2664
Bug #1287 : make os.environ.pop() work as expected.
2007-10-24 21:40:38 +00:00
Thomas Heller
e7becc5007
Added unittest for calling a function with paramflags (backport from py3k branch).
2007-10-24 19:50:45 +00:00
Facundo Batista
f5ade63e91
Issue 1290. CharacterData.__repr__ was constructing a string
...
in response that keeped having a non-ascii character.
2007-10-24 19:11:08 +00:00
Vinay Sajip
bababa3ecc
Bug #1321 : Fixed logic error in TimedRotatingFileHandler.__init__()
2007-10-24 10:47:06 +00:00
Raymond Hettinger
01a0957f06
Shorter name for namedtuple()
2007-10-23 20:37:41 +00:00
Guido van Rossum
910ab50091
Issue 1307 by Derek Shockey, fox the same bug for RCPT.
...
Neal: please backport!
2007-10-23 19:25:41 +00:00
Travis E. Oliphant
8feafab346
Add phuang patch from Issue 708374 which adds offset parameter to mmap module.
2007-10-23 02:40:56 +00:00
Guido van Rossum
5e81270b22
Issue #1307 , patch by Derek Shockey.
...
When "MAIL" is received without args, an exception happens instead of
sending a 501 syntax error response.
2007-10-22 16:27:19 +00:00
Georg Brandl
fa6179701c
Remove duplicate crasher.
2007-10-21 10:01:56 +00:00
Armin Rigo
1486182451
Add a crasher for the long-standing issue with closing a file
...
while another thread uses it.
2007-10-21 09:14:15 +00:00
Facundo Batista
9b5e23148b
The constructor from tuple was way too permissive: it allowed bad
...
coefficient numbers, floats in the sign, and other details that
generated directly the wrong number in the best case, or triggered
misfunctionality in the alorithms.
Test cases added for these issues. Thanks Mark Dickinson.
2007-10-19 19:25:57 +00:00
Gregory P. Smith
87fc9ad966
squelch the warning that this test is supposed to trigger.
2007-10-19 07:31:20 +00:00
Gregory P. Smith
3ef21cb7c6
A cleaner fix than the one committed last night. Generate random rowids that
...
do not contain null bytes.
2007-10-18 16:32:02 +00:00
Gregory P. Smith
f8a2a0b5a9
Fix a weird bug in dbtables: if it chose a random rowid string that contained
...
NULL bytes it would cause the database all sorts of problems in the future
leading to very strange random failures and corrupt dbtables.bsdTableDb dbs.
2007-10-18 08:34:20 +00:00
Gregory P. Smith
afed3a4552
cleanup test_dbtables to use mkdtemp. cleanup dbtables to pass txn as a
...
keyword argument whenever possible to avoid bugs and confusion. (dbtables.py
line 447 self.db.get using txn as a non-keyword was an actual bug due to this)
2007-10-18 07:56:54 +00:00
Facundo Batista
7066590736
Issue #1580738 . When HTTPConnection reads the whole stream with read(),
...
it closes itself. When the stream is read in several calls to read(n),
it should behave in the same way if HTTPConnection knows where the end
of the stream is (through self.length). Added a test case for this
behaviour.
2007-10-18 03:16:03 +00:00