Raymond Hettinger
5202fadb2c
Localize one more builtin lookup.
2010-08-14 22:29:52 +00:00
Raymond Hettinger
cbe8813f18
Add locks to make the caches well behaved in multi-threaded code.
...
Store builtins in cell variables to speed-up the common path,
reducing the chance of a lock needing to block at all.
2010-08-14 22:22:10 +00:00
Raymond Hettinger
d9e8cc6249
Clean-up the cache patch for the re module.
2010-08-14 21:17:48 +00:00
Florent Xicluna
62829dc727
Silence BytesWarning while testing exception
2010-08-14 20:51:58 +00:00
Florent Xicluna
82a3f8afcb
Silence the BytesWarning, due to patch r83294 for #9301
2010-08-14 18:30:35 +00:00
Florent Xicluna
ac521078d7
Remove bad merge (from svnmerge r82301)
2010-08-14 18:03:19 +00:00
Victor Stinner
03c9e1dbc2
Mac OS X denies unencodable filenames (invalid utf-8)
2010-08-14 17:35:20 +00:00
Florent Xicluna
fe17fd4a5d
Convert to spaces.
2010-08-14 17:15:31 +00:00
Victor Stinner
f52b705be4
Create _Py_fopen() for PyUnicodeObject path
...
Call _wfopen() on Windows, or fopen() otherwise. Return the new file object on
success, or NULL if the file cannot be open or (if PyErr_Occurred()) on unicode
error.
2010-08-14 17:06:04 +00:00
Florent Xicluna
17d1e2abd8
Fix order.
2010-08-14 17:02:49 +00:00
Victor Stinner
8a79dccc48
_Py_stat(): ensure that path ends with a nul character
2010-08-14 16:59:08 +00:00
Florent Xicluna
09245d8682
List Misc/python-config.in in Misc/README. Fix few typos.
2010-08-14 16:56:27 +00:00
Giampaolo Rodolà
419f704d76
fix issue #8857 : provide a test case for socket.getaddrinfo
2010-08-14 16:45:41 +00:00
Antoine Pitrou
ab6190f9aa
There doesn't seem to be a reason for this test to be disabled.
2010-08-14 16:33:38 +00:00
Antoine Pitrou
d151e27446
This is a better resolution than r84021 (because it will also affect
...
ssl.get_server_certificate()).
2010-08-14 16:32:10 +00:00
Antoine Pitrou
35bebe12e0
Add a reasonable timeout to network SSL tests, so as to avoid buildbot timeouts
...
when the remote server doesn't answer.
2010-08-14 16:24:38 +00:00
Georg Brandl
cc5943d36b
Fix format.
2010-08-14 15:57:20 +00:00
Florent Xicluna
aa17106e41
Merged manually from 2.7 branch to 3.x trunk.
...
------------------------------------------------------------------------
r79925 | nick.coghlan | 2010-04-10 16:24:36 +0200 (sam. 10 avril 2010)
Try to turn some buildbots green by allowing test_multiprocessing to
pass even if it hits the sys.exc_clear code in the threading module, and
improve the test coverage by making the ctypes dependencies a bit more
granular (two of the cited ctypes objects don't exist on my system)
------------------------------------------------------------------------
2010-08-14 15:56:42 +00:00
Georg Brandl
54ebb78171
Typo fix.
2010-08-14 15:48:49 +00:00
Georg Brandl
9427dcfc31
Typo fix.
2010-08-14 15:46:59 +00:00
Georg Brandl
8e27fcea07
Wording fix.
2010-08-14 15:46:15 +00:00
Georg Brandl
1c29ddd0d0
Add some maintainers.
2010-08-14 15:44:34 +00:00
Victor Stinner
2b8dab7050
Issue #9425 : zipimporter_init() is fully unicode compliant
2010-08-14 14:54:10 +00:00
Victor Stinner
4f4402c4bb
Issue #9425 : Create private _Py_stat() function
...
Use stat() or _wstat() depending on the OS.
2010-08-14 14:50:26 +00:00
Georg Brandl
4c9aa45175
There are no *.doc files anymore. Also update "funny" target.
2010-08-14 13:43:37 +00:00
Antoine Pitrou
99773acf38
Fix indentation in Modules/getpath.c
2010-08-14 12:34:41 +00:00
Antoine Pitrou
eba57b6f3a
Add comments about Windows in Modules/getpath.c
2010-08-14 12:33:18 +00:00
Antoine Pitrou
7e817d0e90
Add myself to threads topic (suggested by Ezio)
2010-08-14 12:06:40 +00:00
Ezio Melotti
842c19cac0
Add myself for the bug tracker (and for re).
2010-08-14 09:02:36 +00:00
Ezio Melotti
d623de0237
Revert r82831 as discussed at EP now that the wording of maintainers.rst has been clarified.
2010-08-14 08:54:33 +00:00
Éric Araujo
d7fc374a7a
Oops, fix typo
2010-08-14 05:00:18 +00:00
Éric Araujo
bf054adea4
Let's commit
2010-08-14 04:56:48 +00:00
Éric Araujo
71428876ea
Fix reference (follow-up to #9061 )
2010-08-14 04:55:45 +00:00
Éric Araujo
a85e2175bb
Manually merge r83995: Fix version{added,changed} and spacing in NEWS
2010-08-14 03:59:54 +00:00
Éric Araujo
da668ff24f
Use a marker in generated MANIFEST files, don't touch files without it. Fixes #8688 .
2010-08-14 02:30:34 +00:00
Victor Stinner
e406ef41b1
Kill a gcc warning introduced by r83988
2010-08-14 00:07:14 +00:00
Victor Stinner
47fcb5b4c3
Issue #9542 : Create PyUnicode_FSDecoder() function
...
It's a ParseTuple converter: decode bytes objects to unicode using
PyUnicode_DecodeFSDefaultAndSize(); str objects are output as-is.
* Don't specify surrogateescape error handler in the comments nor the
documentation, but PyUnicode_DecodeFSDefaultAndSize() and
PyUnicode_EncodeFSDefault() because these functions use strict error handler
for the mbcs encoding (on Windows).
* Remove PyUnicode_FSConverter() comment in unicodeobject.c to avoid
inconsistency with unicodeobject.h.
2010-08-13 23:59:58 +00:00
Victor Stinner
f2e08b34f1
Create _Py_wchar2char() function, reverse of _Py_char2wchar()
...
* Use _Py_wchar2char() in _wstat() and _Py_wfopen()
* Document _Py_char2wchar()
2010-08-13 23:29:08 +00:00
Antoine Pitrou
e9b428f997
Reimplement addbuilddir() in C inside getpath.c, so as to execute it
...
at interpreter startup before importing any non-builtin modules.
Should fix #9589 .
2010-08-13 22:25:01 +00:00
Victor Stinner
09c449c7de
Fix a typo: TESTFN_UNENCODEABLE => TESTFN_UNENCODABLE
2010-08-13 22:23:24 +00:00
Antoine Pitrou
042b128f58
Issue #9203 : Computed gotos are now enabled by default on supported
...
compilers (which are detected by the configure script). They can still
be disable selectively by specifying --without-computed-gotos.
2010-08-13 21:15:58 +00:00
Brian Curtin
d835cf1c84
Fix #9588 . Add sys.executable to two shell=True tests.
2010-08-13 20:42:57 +00:00
R. David Murray
5e7918c712
Per request, make 'nosy' vs 'assign' explicit in maintainers.rst.
...
Also add myself as assignable for email issues.
2010-08-13 18:16:35 +00:00
Victor Stinner
ddfb2c3a33
Issue #9560 : Use -b option of the file command in _syscmd_file()
...
Omit the filename to avoid enconding issues, especially with non encodable
characters in the Python full path.
2010-08-13 16:30:15 +00:00
Antoine Pitrou
3060c4573f
Reapply r83877.
2010-08-13 16:27:38 +00:00
Antoine Pitrou
6fdb74f0ae
Re-apply r83871.
2010-08-13 16:26:40 +00:00
Antoine Pitrou
e81c806be7
De-duplicate contents of pytime.h
2010-08-13 15:25:56 +00:00
Georg Brandl
4d2240915f
Fix copy-paste error.
2010-08-13 15:10:49 +00:00
Victor Stinner
4a2b7a1b14
Issue #9425 : Create PyErr_WarnFormat() function
...
Similar to PyErr_WarnEx() but use PyUnicode_FromFormatV() to format the warning
message.
Strip also some trailing spaces.
2010-08-13 14:03:48 +00:00
Victor Stinner
b4b8eb9163
Oops, I did it again: add missing \ removed in previous commit
2010-08-13 13:47:18 +00:00