Gregory P. Smith
87d49792b5
Fixes issue1336 - a race condition could occur when forking if the gc
...
kicked in during the critical section. solution: disable gc during
that section. Patch contributed by jpa and updated by me to cover the
race condition still existing what therve from twistedmatrix pointed
out (already seen and fixed in twisted's own subprocess code).
2008-01-19 20:57:59 +00:00
Georg Brandl
f558d2e5f5
#1509 : fix sqlite3 docstrings and docs w.r.t. cursor.fetchXXX methods.
2008-01-19 20:53:07 +00:00
Gregory P. Smith
e047e6dd09
fix comment typos, use not arg instead of arg == "", add test coverage
...
for inside of the final if needquotes: within subprocess.list2cmdline().
2008-01-19 20:49:02 +00:00
Andrew M. Kuchling
060e6855a8
Patch #1019808 from Federico Schwindt: Return correct socket error when
...
a default timeout has been set, by using getsockopt() to get the error
condition (instead of trying another connect() call, which seems to be
a Linuxism).
2.5 bugfix candidate, assuming no one reports any problems with this change.
2008-01-19 20:47:59 +00:00
Georg Brandl
e3979f776a
#1411695 : clarify behavior of xml.sax.utils.[un]escape.
2008-01-19 20:40:24 +00:00
Georg Brandl
309501a617
#1663329 : add os.closerange() to close a range of fds,
...
ignoring errors, and use this in subprocess to speed up
subprocess creation in close_fds mode. Patch by Mike Klaas.
2008-01-19 20:22:13 +00:00
Andrew M. Kuchling
15ce880cc8
Bug 1277: make Maildir use the user-provided factory instead of hard-wiring MaildirMessage.
...
2.5.2 bugfix candidate.
2008-01-19 20:12:04 +00:00
Georg Brandl
c6fde7293e
Fix #1146 : TextWrap vs words 1-character shorter than the width.
...
Patch by Quentin Gallet-Gilles.
2008-01-19 19:48:19 +00:00
Georg Brandl
14404b68d8
Fix #1679 : "0x" was taken as a valid integer literal.
...
Fixes the tokenizer, tokenize.py and int() to reject this.
Patches by Malte Helmert.
2008-01-19 19:27:05 +00:00
Andrew M. Kuchling
2686f4d9d1
Add item
2008-01-19 19:14:05 +00:00
Skip Montanaro
562133b8be
missing from r60088 checkin.
2008-01-19 18:47:24 +00:00
Facundo Batista
6e22be7226
Comment in NEWS regarding the change in trace.py.
2008-01-19 18:45:46 +00:00
Facundo Batista
873c9857b7
Fix #1693149 . Now you can pass several modules separated by
...
coma to trace.py in the same --ignore-module option.
Thanks Raghuram Devarakonda.
2008-01-19 18:38:19 +00:00
Andrew M. Kuchling
5c60bfcfbf
Patch #976880 : add mmap .rfind() method, and 'end' paramter to .find().
...
Contributed by John Lenton.
2008-01-19 18:18:41 +00:00
Andrew M. Kuchling
4be0bc642e
Sort two names into position
2008-01-19 18:08:52 +00:00
Georg Brandl
c211a0a00b
#1782 : don't leak in error case in PyModule_AddXxxConstant. Patch by Hrvoje Nikšić.
2008-01-19 18:02:46 +00:00
Georg Brandl
6ebc52749c
Clarify thread.join() docs. #1873 .
2008-01-19 17:38:53 +00:00
Christian Heimes
6c29be54a5
Disabled test_xmlrpc:test_404. It's causing lots of false alarms.
...
I also disabled a test in test_ssl which requires network access to svn.python.org. This fixes a bug Skip has reported a while ago.
2008-01-19 16:39:27 +00:00
Andrew M. Kuchling
f60b6415e6
Add item
2008-01-19 16:34:09 +00:00
Andrew M. Kuchling
e45a77adbe
Patch #742598 from Michael Pomraning: add .timeout attribute to SocketServer that will call
...
.handle_timeout() method when no requests are received within the timeout period.
2008-01-19 16:26:13 +00:00
Georg Brandl
5e3745c886
Fix typos.
2008-01-19 15:22:16 +00:00
Andrew M. Kuchling
4eab1f0e0d
Polish sentence
2008-01-19 15:16:37 +00:00
Christian Heimes
95016e71ea
Update for threading.local test.
2008-01-19 15:06:09 +00:00
Christian Heimes
71a0451f67
Added unit test to verify that threading.local doesn't cause ref leaks. It seems that the thread local storage always keeps the storage of the last stopped thread alive. Can anybody comment on it, please?
2008-01-19 13:46:06 +00:00
Andrew M. Kuchling
f8f4eb69ce
Polish sentence
2008-01-19 13:33:20 +00:00
Facundo Batista
2b1b195d39
Fix issue #1822 : MIMEMultipart.is_multipart() behaves correctly for a
...
just-created (and empty) instance. Added tests for this. Thanks
Jonathan Share.
2008-01-19 12:32:27 +00:00
Georg Brandl
96f2184de6
Indentation normalization.
2008-01-19 10:18:07 +00:00
Georg Brandl
a7d70fd438
Amend curses docs by info how to write non-ascii characters.
...
Thanks to Jeroen Ruigrok van der Werven.
2008-01-19 10:16:09 +00:00
Georg Brandl
f8e6afbb66
Fix markup.
2008-01-19 10:11:27 +00:00
Jeffrey Yasskin
45169fbc80
Several tweaks: add construction from strings and .from_decimal(), change
...
__init__ to __new__ to enforce immutability, and remove "rational." from repr
and the parens from str.
2008-01-19 09:56:06 +00:00
Guido van Rossum
bf4c7c8c0d
This got fixed for classic classes in r60057,
...
and backported to 2.5.2 in 60056.
2008-01-18 23:05:40 +00:00
Raymond Hettinger
0fe6ca4673
Better variable name in an example.
2008-01-18 21:14:58 +00:00
Guido van Rossum
9ff1a44973
Fix an edge case whereby the __del__() method of a classic class could
...
create a new weakref to the object.
2008-01-18 20:56:30 +00:00
Christian Heimes
4956d2b889
Silence Coverity false alerts with CIDs #172 , #183 , #184
2008-01-18 19:12:56 +00:00
Christian Heimes
288e89acfc
Added bytes and b'' as aliases for str and ''
2008-01-18 18:24:07 +00:00
Georg Brandl
a9e073d100
Note that genexps are function scopes too and therefore won't see class attributes.
2008-01-18 16:42:57 +00:00
Vinay Sajip
a26c73ed55
Added LoggerAdapter class, changed copyright dates, made check for extra parameter passed to logging methods explicitly against None rather than a truth value.
2008-01-18 15:55:57 +00:00
Vinay Sajip
c7403355df
Added section on passing contextual information to logging and documentation for the LoggerAdapter class.
2008-01-18 15:54:14 +00:00
Christian Heimes
bd865db90c
Added win_add2path.py to Tools/scripts/
...
Added builddoc.bat to Doc/
2008-01-18 11:58:50 +00:00
Christian Heimes
b222bbc321
Build _ctypes after the other extensions. Its build process depends
...
on the _weakref extension (and maybe other modules, too)
2008-01-18 09:51:43 +00:00
Christian Heimes
5cc3f26c48
Coverity CID #168
...
leaked_storage: Returned without freeing storage "fp"
2008-01-18 08:53:45 +00:00
Christian Heimes
3e8c897d80
Coverity issue CID #169
...
local_ptr_assign_local: Assigning address of stack variable "namebuf" to pointer "filename"
out_of_scope: Variable "namebuf" goes out of scope
use_invalid: Used "filename" pointing to out-of-scope variable "namebuf"
2008-01-18 08:47:59 +00:00
Christian Heimes
87dcf3d260
Coverity issue CID #182
...
size_error: Allocating 1 bytes to pointer "children", which needs at least 4 bytes
2008-01-18 08:04:57 +00:00
Christian Heimes
7b1e119f8c
Coverity issue CID #167
...
Event alloc_fn: Called allocation function "metacompile" [model]
Event var_assign: Assigned variable "gr" to storage returned from "metacompile"
gr = metacompile(n);
Event pass_arg: Variable "gr" not freed or pointed-to in function "maketables" [model]
g = maketables(gr);
translatelabels(g);
addfirstsets(g);
Event leaked_storage: Returned without freeing storage "gr"
return g;
2008-01-18 07:45:30 +00:00
Christian Heimes
62a8e95fea
Coverity issue CID #197
...
var_decl: Declared variable "stm" without initializer
ninit_use_in_call: Using uninitialized value "stm" (field "stm".tm_zone uninitialized) in call to function "mktime"
2008-01-18 07:30:20 +00:00
Andrew M. Kuchling
6d22c3961d
Typo fix
2008-01-18 02:42:52 +00:00
Andrew M. Kuchling
a13d4fbca4
Bump verson
2008-01-18 02:26:16 +00:00
Raymond Hettinger
18e08e5e61
clearcache() needs to remove the dict as well as clear it.
2008-01-18 00:10:42 +00:00
Raymond Hettinger
64cd1e2d91
Fix markup
2008-01-17 23:56:56 +00:00
Raymond Hettinger
497fdbf767
Fix-up Timer() example.
2008-01-17 23:32:01 +00:00