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
e18ef194d9
allow unicode keyword arguments for the ** syntax #4978
2009-01-20 14:21:16 +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
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
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
Jesse Noller
9a5b2ad38d
Resolve issue 3321: (segfault) _multiprocessing.Connection() doesn't check handle
2009-01-19 15:12:22 +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
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
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
Jesse Noller
6ab22154dd
Resolve issue 4449: AssertionError in mp_benchmarks.py
2009-01-18 02:45:38 +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
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
Benjamin Peterson
b3af601b22
compare with == not is #4946
2009-01-16 02:55:24 +00:00
Kristján Valur Jónsson
4f69b7e33b
Make all the invalid fd tests for os subject to the function being available.
2009-01-15 22:46:26 +00:00
Kristján Valur Jónsson
71ba215d6b
Fix two test cases in test_os. ftruncate raises IOError unlike all the others which raise OSError. And close() on some platforms doesn't complain when given an invalid file descriptor.
2009-01-15 22:40:03 +00:00
Kristján Valur Jónsson
51a035e383
Issue 4929: Handle socket errors when receiving
2009-01-15 17:20:21 +00:00
Mark Dickinson
0e15182a38
Comment typo
2009-01-15 14:58:28 +00:00
Mark Dickinson
e82cdae58f
Issue #4397 . Fix occasional test_socket failure on OS X.
2009-01-15 14:54:37 +00:00
Kristján Valur Jónsson
8adc0b54d4
Fix recently introduced test cases.
...
For datetime, gentoo didn't seem to mind the %e format for strftime. So, we just excercise those instead making sure that we don't crash.
For test_os, two cases were incorrect.
2009-01-15 09:09:13 +00:00
Kristján Valur Jónsson
018760e3dc
Re-enable all tests for windows platforms.
...
Also, explicitly connect to the IPV4 address. On windows platforms supporting AF_INET6, the SocketProxy would connect using socket.create_connection('localhost', port) which would cycle through all address families and try to connect. It would try connecting using AF_INET6 first and this would cause a delay of up to a second.
2009-01-14 10:50:57 +00:00
Raymond Hettinger
afd112baef
Add tests for __init__() and update() with no args.
2009-01-14 01:15:06 +00:00
Benjamin Peterson
717c083e8d
fix test_xmlrpc failures #4939
2009-01-13 23:43:50 +00:00
Amaury Forgeot d'Arc
b54447f31c
#1162154 : inspect.getmembers() now skips attributes that raise AttributeError,
...
e.g. a __slots__ attribute which has not been set.
2009-01-13 23:39:22 +00:00
Georg Brandl
b24c9519b4
Use assertRaises.
2009-01-13 22:14:01 +00:00
Armin Ronacher
dd53e114ef
ast.literal_eval can properly evaluate complex numbers now. This fixes issue4907.
2009-01-13 11:52:23 +00:00
Raymond Hettinger
2d21d50c10
Issue 4922: Incorrect comments for MutableSet.add() and MutableSet.discard().
...
Needs to be backported to 2.6 and forward ported to 3.0 and 3.1.
2009-01-13 09:08:32 +00:00
Raymond Hettinger
35288c6b6c
Speed-up __repr__. Eliminate duplicate tests. Use a from-irmport.
2009-01-13 04:50:35 +00:00
Raymond Hettinger
783d73fc2f
Fixup and simplify docstrings and doctests.
2009-01-13 04:13:53 +00:00
Raymond Hettinger
aaa6e630f8
Simplify Counter() API. Replace items keyword argument
...
with a mapping. Makes Counter() idempotent, makes update()
API the same as Counter.__init__(), makes a more readable
repr, makes the API more dict-like, and allows Steven
Bethard's update() example to work.
2009-01-13 01:05:03 +00:00
Amaury Forgeot d'Arc
a40d573664
#3720 : Interpreter crashes when an evil iterator removes its own next function.
...
Now the slot is filled with a function that always raises.
Will not backport: extensions compiled with 2.6.x would not run on 2.6.0.
2009-01-12 23:36:55 +00:00
Raymond Hettinger
f94d7fa5fb
Issue 1696199: Add collections.Counter().
2009-01-12 22:58:41 +00:00
Kristján Valur Jónsson
1c62b650d0
Add tests for invalid format specifiers in strftime, and for handling of invalid file descriptors in the os module.
2009-01-12 18:09:27 +00:00
Raymond Hettinger
b5bc33cdab
Optimize heapq.nsmallest/nlargest for cases where n==1 or n>=size.
2009-01-12 10:37:32 +00:00
Kristján Valur Jónsson
3c43fcba8b
Issue 4879: Allow buffering for HTTPResponse
2009-01-11 16:23:37 +00:00
Benjamin Peterson
164b0455b6
make tests fail if they can't be imported
2009-01-10 22:42:10 +00:00
Mark Dickinson
da62f81d1d
Remove an unnecessary check from test_decimal.
2009-01-10 19:14:55 +00:00
Matthias Klose
43723e2ad8
- Issue #4861 : ctypes.util.find_library(): Robustify. Fix library detection on
...
biarch systems. Try to rely on ldconfig only, without using objdump and gcc.
2009-01-10 17:00:42 +00:00
Antoine Pitrou
b74fc2b5fe
Issue #3860 : GzipFile and BZ2File now support the context manager protocol.
2009-01-10 16:13:45 +00:00
Kristján Valur Jónsson
0e2d8c36e3
Issue 4293: Make Py_AddPendingCall() thread safe
...
Add test cases and documentation
2009-01-09 21:35:16 +00:00