Commit Graph

42822 Commits

Author SHA1 Message Date
Victor Stinner d17f219759 Oops, fix a typo in NEWS: surrogateespace => surrogateescape 2010-08-15 09:56:07 +00:00
Mark Dickinson 8858d2cb84 Clarify whatsnew entry for short float repr: roundtripping is not a new feature in 2.7. 2010-08-15 09:43:29 +00:00
Victor Stinner e039ffe41d Issue #9605: posix.getlogin() decodes the username with file filesystem
encoding and surrogateescape error handler. Patch written by David Watson.

Reindent also posix_getlogin(), and fix a typo in the NEWS file.
2010-08-15 09:33:08 +00:00
Victor Stinner 61ec5dca2b Issue #9604: posix.initgroups() encodes the username using the fileystem
encoding and surrogateescape error handler. Patch written by David Watson.
2010-08-15 09:22:44 +00:00
Victor Stinner 5fe6de8c72 Issue #9603: posix.ttyname() and posix.ctermid() decode the terminal name
using the filesystem encoding and surrogateescape error handler. Patch
written by David Watson.
2010-08-15 09:12:51 +00:00
Raymond Hettinger 0b5669c0f5 Fix __all__. 2010-08-15 07:41:40 +00:00
Senthil Kumaran 64d010c990 Removing the comment lines for the modules which were made to build statically. 2010-08-15 03:59:07 +00:00
Raymond Hettinger bc653d1abe Remove unused imports 2010-08-15 03:35:24 +00:00
Raymond Hettinger f309828175 Remove the lfu_cache. Add more tests. 2010-08-15 03:30:45 +00:00
Raymond Hettinger 0f56e90f05 Support cache sizes. 2010-08-14 23:52:08 +00:00
Éric Araujo a893927491 Fix typo 2010-08-14 23:44:13 +00:00
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