Commit graph

41160 commits

Author SHA1 Message Date
Antoine Pitrou
e741cc607c Issue #5008: When a file is opened in append mode with the new IO library,
do an explicit seek to the end of file (so that e.g. tell() returns the
file size rather than 0). This is consistent with the behaviour of the
traditional 2.x file object.
2009-01-21 00:45:36 +00:00
Raymond Hettinger
acdc84abcf Beautify and cleanup the references section. 2009-01-20 23:42:54 +00:00
Vinay Sajip
aecf36a0b5 Issue 5013: Fixed bug in FileHandler when delay was set - added fix for RotatingFileHandler and changed header comment slightly. 2009-01-20 23:16:08 +00:00
Vinay Sajip
5fb11b2b85 Issue 5013: Fixed bug in FileHandler when delay was set. 2009-01-20 22:43:17 +00:00
Raymond Hettinger
933d3a7a54 Issue 4998: __slots__ on Fractions was useless. 2009-01-20 20:34:19 +00:00
Benjamin Peterson
e548d2487d fix url 2009-01-20 18:58:27 +00:00
Benjamin Peterson
8024cece59 backport r68802 (bugfix) 2009-01-20 14:31:08 +00:00
Benjamin Peterson
e18ef194d9 allow unicode keyword arguments for the ** syntax #4978 2009-01-20 14:21:16 +00:00
Raymond Hettinger
196a0f7a8a Fix typos. 2009-01-20 12:59:36 +00:00
Raymond Hettinger
7b4c2beda6 Use Georg's new permalinks to documentation by version number.
That assures that IDLE's help always points to the correct
version and the latest update with all bug fixes.
2009-01-20 10:46:23 +00:00
Raymond Hettinger
230dd27628 Don't disrupt automatic url target name generation
with manually specified, conflicting names.

Before:
    http://docs.python.org/dev/library/collections.html#id1

After:
    http://docs.python.org/dev/library/collections.html#counter-objects
2009-01-20 07:11:47 +00:00
Raymond Hettinger
ae3f068fb5 Make merging easier by formattng comment blocks the same in Py3.1 2009-01-20 03:36:36 +00:00
Raymond Hettinger
562a4ada56 Add Counter() to __all__. 2009-01-20 02:24:38 +00:00
Raymond Hettinger
bad1eb2ff3 Build-outs for Counter() class:
* Constructor and update() support keyword args (like their dict counterparts).
* The 'del' statement no longer raises KeyError for missing values.
* Add multiset operations:  __add__, __sub__, __and__, __or__.
2009-01-20 01:19:26 +00:00
Jesse Noller
e8b619c152 issue 5002: fix windows warning that I intro'ed with r68768 2009-01-20 00:16:38 +00:00
Benjamin Peterson
1f01cd013f I'm sick of these deprecations warnings in test_os 2009-01-19 21:08:37 +00:00
Benjamin Peterson
5539c78391 make bad file descriptor tests more robust 2009-01-19 17:37:42 +00:00
Benjamin Peterson
c84ebe73a7 add email address 2009-01-19 16:18:27 +00:00
Benjamin Peterson
b6c7beb722 move BufferedIOBase into the base class section 2009-01-19 16:17:54 +00:00
Benjamin Peterson
943a6ddc72 simplify code 2009-01-19 15:51:27 +00:00
Benjamin Peterson
596d306950 add a note about the ftruncate change 2009-01-19 15:42:23 +00:00
Jesse Noller
9a5b2ad38d Resolve issue 3321: (segfault) _multiprocessing.Connection() doesn't check handle 2009-01-19 15:12:22 +00:00
Benjamin Peterson
273c1d9a8b Removed merge tracking for "svnmerge" for
svn+ssh://pythondev@svn.python.org/python/branches/tnelson-trunk-bsddb-47-upgrade
2009-01-19 15:06:33 +00:00
Benjamin Peterson
8db6914693 Removed merge tracking for "svnmerge" for
svn+ssh://pythondev@svn.python.org/python/branches/trunk-math
2009-01-19 15:04:35 +00:00
Kristján Valur Jónsson
2e659ce36f Issue 4957
Let os.ftruncate raise OSError like documented.
2009-01-19 13:10:27 +00:00
Vinay Sajip
4b78233cbd Added more cross-reference targets and tidied up list of useful handlers. 2009-01-19 06:49:19 +00:00
Benjamin Peterson
5848d1ff35 raise an OSError for invalid fds #4991 2009-01-19 00:08:08 +00:00
Benjamin Peterson
b6e112bd95 fix encoding cookie case 2009-01-18 22:47:04 +00:00
Benjamin Peterson
910f216260 fix test that wasn't working as expected #4990 2009-01-18 21:11:38 +00:00
Jesse Noller
438195fc11 issue 4301: patch logging to add processName, remove the old _check_logger_class code 2009-01-18 21:04:36 +00:00
Georg Brandl
fe11f4d524 #4986: augassigns are not expressions. 2009-01-18 18:25:30 +00:00
Georg Brandl
af9a97b245 #4923: clarify what was added. 2009-01-18 14:41:52 +00:00
Georg Brandl
4a565cc41d #4857: fix augmented assignment target spec. 2009-01-18 13:47:26 +00:00
Georg Brandl
9f7fb849df #4979: correct result range for some random functions. 2009-01-18 13:24:10 +00:00
Kristján Valur Jónsson
60e79ced94 issue 4293: make test_capi.py more robutst, it times out on some platforms, presumably waiting for threads. Lower the thread count to 16. 2009-01-18 10:58:44 +00:00
Georg Brandl
bb550c99cb #4914: trunc is in math. 2009-01-18 10:48:16 +00:00
Georg Brandl
79f722da6c #4974: fix redundant mention of lists and tuples. 2009-01-18 10:45:22 +00:00
Georg Brandl
6c81b54cc4 #4976: union() and intersection() take multiple args, but talk about "the other". 2009-01-18 10:42:35 +00:00
Jesse Noller
6ab22154dd Resolve issue 4449: AssertionError in mp_benchmarks.py 2009-01-18 02:45:38 +00:00
Benjamin Peterson
b746448f46 fix grammar 2009-01-18 01:28:46 +00:00
Benjamin Peterson
f1a4069481 bytearrays are mutable sequences 2009-01-18 01:28:09 +00:00
Amaury Forgeot d'Arc
2407ac9a4b follow-up of #3997: since 0xFFFF numbers are not enough to indicate a zip64 format,
always try to read the "zip64 end of directory structure".
2009-01-17 22:43:50 +00:00
Benjamin Peterson
5e5fbb612d fix inspect.isclass() on instances with a custom __getattr__ #1225107 2009-01-17 22:27:54 +00:00
Amaury Forgeot d'Arc
59ce042766 #4077: No need to append \n when calling Py_FatalError
+ fix a declaration to make it match the one in pythonrun.h
2009-01-17 20:18:59 +00:00
Amaury Forgeot d'Arc
bd55c52565 #4930: Slightly cleaner (and faster) code in type creation:
compare slots by address, not by name.
2009-01-17 17:11:50 +00:00
Amaury Forgeot d'Arc
d25f87ae36 #3997: zipfiles generated with more than 65536 files could not be opened
with other applications.

Reviewed by Martin, will backport to 2.6 and 3.0
2009-01-17 16:40:17 +00:00
Benjamin Peterson
f320c22701 trying to find some fpathconf() settings that all unixs support... 2009-01-17 04:39:05 +00:00
Benjamin Peterson
9109f91c6b use enumerate 2009-01-17 04:28:57 +00:00
Thomas Heller
757d25526a Change an example in the docs to avoid a mistake when the code is copy
pasted and changed afterwards.
2009-01-16 18:53:44 +00:00
Benjamin Peterson
b3af601b22 compare with == not is #4946 2009-01-16 02:55:24 +00:00