]>
granicus.if.org Git - python/log
Victor Stinner [Wed, 18 Aug 2010 21:59:12 +0000 (21:59 +0000)]
Fix reindent-rst.py: it works on binary files
Victor Stinner [Wed, 18 Aug 2010 21:23:25 +0000 (21:23 +0000)]
Issue #8622: Add PYTHONFSENCODING environment variable to override the
filesystem encoding.
initfsencoding() displays also a better error message if get_codeset() failed.
Amaury Forgeot d'Arc [Wed, 18 Aug 2010 21:12:52 +0000 (21:12 +0000)]
Fix stupid typo in test.
Victor Stinner [Wed, 18 Aug 2010 21:06:23 +0000 (21:06 +0000)]
Decompose TESTFN_UNICODE on Mac OS X
Antoine Pitrou [Wed, 18 Aug 2010 21:05:19 +0000 (21:05 +0000)]
Issue #5737: Add Solaris-specific mnemonics in the errno module. Patch by
Matthew Ahrens.
Amaury Forgeot d'Arc [Wed, 18 Aug 2010 20:44:58 +0000 (20:44 +0000)]
#5127: Even on narrow unicode builds, the C functions that access the Unicode
Database (Py_UNICODE_TOLOWER, Py_UNICODE_ISDECIMAL, and others) now accept
and return characters from the full Unicode range (Py_UCS4).
The differences from Python code are few:
- unicodedata.numeric(), unicodedata.decimal() and unicodedata.digit()
now return the correct value for large code points
- repr() may consider more characters as printable.
Antoine Pitrou [Wed, 18 Aug 2010 20:44:14 +0000 (20:44 +0000)]
Issue #9433: The "-j" option to regrtest now works under Windows too.
It is not sure it will be beneficial, though, since process launching is
more expensive under Windows than it is under Linux.
Senthil Kumaran [Wed, 18 Aug 2010 19:32:21 +0000 (19:32 +0000)]
Fix Issue672656 - Securing pydoc server.
Martin v. Löwis [Wed, 18 Aug 2010 16:12:23 +0000 (16:12 +0000)]
Restore GIL in nis_cat in case of error.
Victor Stinner [Wed, 18 Aug 2010 10:57:33 +0000 (10:57 +0000)]
Add versionadded tag to PyModule_GetFilenameObject() doc
Victor Stinner [Wed, 18 Aug 2010 10:56:19 +0000 (10:56 +0000)]
Improve PEP 383 tests (in test_os)
* Use the current filesystem encoding instead of always using utf-8
* Enable the test on Mac OS X
* Use TESTFN_UNENCODABLE and TESTFN_UNICODE instead of arbitrary filenames
* To decode a filename, use strict error handler instead surrogateescape for
mbcs encoding (on Windows)
* Use TESTFN_UNENCODABLE (if available) for the directory name
Skip the test if no non-ascii filename can be created.
Victor Stinner [Tue, 17 Aug 2010 23:37:11 +0000 (23:37 +0000)]
Issue #9425: Create PyModule_GetFilenameObject() function
... to get the filename as a unicode object, instead of a byte string. Function
needed to support unencodable filenames. Deprecate PyModule_GetFilename() in
favor on the new function.
Martin v. Löwis [Tue, 17 Aug 2010 23:16:51 +0000 (23:16 +0000)]
Correct library name that Ask will work on.
Martin v. Löwis [Tue, 17 Aug 2010 22:58:42 +0000 (22:58 +0000)]
Add Ask Solem.
Victor Stinner [Tue, 17 Aug 2010 22:54:21 +0000 (22:54 +0000)]
Remove unused functions _PyImport_FindModule and _PyImport_IsScript
Victor Stinner [Tue, 17 Aug 2010 22:49:25 +0000 (22:49 +0000)]
libpython.py: py-bt commands escape unencodable characters
Encode unicode strings to the terminal encoding with backslashreplace error (as
Python does for sys.stderr) before writing them to sys.stdout. It fixes
UnicodeEncodeError on writing non-ascii characters in an ascii terminal (C
locale: ASCII encoding).
Victor Stinner [Tue, 17 Aug 2010 22:26:51 +0000 (22:26 +0000)]
Issue #8063: Call _PyGILState_Init() earlier in Py_InitializeEx().
Victor Stinner [Tue, 17 Aug 2010 22:01:02 +0000 (22:01 +0000)]
Replace :func: by :cfunc:
To get links to the C functions
Éric Araujo [Tue, 17 Aug 2010 21:24:05 +0000 (21:24 +0000)]
Fix example
Antoine Pitrou [Tue, 17 Aug 2010 21:15:00 +0000 (21:15 +0000)]
Add versionadded tags
Antoine Pitrou [Tue, 17 Aug 2010 21:11:49 +0000 (21:11 +0000)]
Modernize gzip examples
Antoine Pitrou [Tue, 17 Aug 2010 21:10:05 +0000 (21:10 +0000)]
Issue #3488: Provide convenient shorthand functions `gzip.compress`
and `gzip.decompress`. Original patch by Anand B. Pillai.
Brian Curtin [Tue, 17 Aug 2010 20:49:09 +0000 (20:49 +0000)]
Cleanup and correct a few ints to be Py_ssize_t.
Brian Curtin [Tue, 17 Aug 2010 20:08:40 +0000 (20:08 +0000)]
Properly downcast from size_t/Py_ssize_t in a few places.
Antoine Pitrou [Tue, 17 Aug 2010 19:33:30 +0000 (19:33 +0000)]
Clean some 64-bit issues. Also, always spell "ssize_t" "Py_ssize_t".
Raymond Hettinger [Tue, 17 Aug 2010 19:19:29 +0000 (19:19 +0000)]
Minor rewording to docs for the lru_cache decorator
Antoine Pitrou [Tue, 17 Aug 2010 18:30:06 +0000 (18:30 +0000)]
Fix <deque iterator>.__length_hint__() under 64-bit Windows.
Antoine Pitrou [Tue, 17 Aug 2010 17:55:07 +0000 (17:55 +0000)]
Issue #9612: The set object is now 64-bit clean under Windows.
Benjamin Peterson [Tue, 17 Aug 2010 17:52:02 +0000 (17:52 +0000)]
wrap
Giampaolo Rodolà [Tue, 17 Aug 2010 16:09:53 +0000 (16:09 +0000)]
fix issue #8807: adds a context parameter to POP3_SSL class.
Giampaolo Rodolà [Tue, 17 Aug 2010 15:30:23 +0000 (15:30 +0000)]
fix issue #8866: parameters passed to socket.getaddrinfo can now be specified as single keyword arguments.
Georg Brandl [Tue, 17 Aug 2010 15:07:14 +0000 (15:07 +0000)]
Consistency check for versionadded/changed directives.
Georg Brandl [Tue, 17 Aug 2010 14:11:59 +0000 (14:11 +0000)]
Markup nits.
Nick Coghlan [Tue, 17 Aug 2010 13:06:11 +0000 (13:06 +0000)]
Issue #8202: Set sys.argv[0] to -m rather than -c while searching for the module to execute. Also updates all the cmd_line_script tests to validate the setting of sys.path[0] and the current working directory
Nick Coghlan [Tue, 17 Aug 2010 11:28:07 +0000 (11:28 +0000)]
Another attempt at pacifying the windows buildbots by ignoring all the variable information in the dis.code_info tests
Nick Coghlan [Tue, 17 Aug 2010 10:18:16 +0000 (10:18 +0000)]
Address XXX comment in dis.py: inspect.py now attempts to reuse the dis.py compiler flag values before resorting to defining its own
Nick Coghlan [Tue, 17 Aug 2010 09:25:57 +0000 (09:25 +0000)]
Ignore the exact ID value for the nested function in the dis.code_info tests
Ezio Melotti [Tue, 17 Aug 2010 08:35:41 +0000 (08:35 +0000)]
Correct a couple of assert* methods. Patch by Dave Malcolm.
Nick Coghlan [Tue, 17 Aug 2010 08:03:36 +0000 (08:03 +0000)]
Issue 9147: Add dis.code_info()
Nick Coghlan [Tue, 17 Aug 2010 06:17:18 +0000 (06:17 +0000)]
Document and test the resolution of issue 3445 (tolerate missing attributes in functools.update_wrapper, previously implemented as a side effect of the __annotations__ copying patch) and implement issue 9567 (add a __wrapped__ attribute when using update_wrapper)
Nick Coghlan [Tue, 17 Aug 2010 05:22:50 +0000 (05:22 +0000)]
Remove some lingering remnants of the short-lived functools.lfu_cache
Benjamin Peterson [Tue, 17 Aug 2010 03:37:20 +0000 (03:37 +0000)]
added versionadded
Benjamin Peterson [Tue, 17 Aug 2010 01:27:09 +0000 (01:27 +0000)]
add tests for mknod() and mkfifo() #9569
Benjamin Peterson [Tue, 17 Aug 2010 01:08:46 +0000 (01:08 +0000)]
remove test for oldstyle classes
Benjamin Peterson [Tue, 17 Aug 2010 01:07:53 +0000 (01:07 +0000)]
use assertTrue/assertFalse
Benjamin Peterson [Tue, 17 Aug 2010 00:52:52 +0000 (00:52 +0000)]
add support for abstract class and static methods #5867
Victor Stinner [Tue, 17 Aug 2010 00:44:11 +0000 (00:44 +0000)]
test_zipimport: fix test name
Victor Stinner [Tue, 17 Aug 2010 00:39:57 +0000 (00:39 +0000)]
Issue #9425: save/restore exception on filename encoding
_PyUnicode_AsString() raises an exception on unencodable filename.
Victor Stinner [Tue, 17 Aug 2010 00:04:48 +0000 (00:04 +0000)]
Issue #9425: zipimporter_repr() uses unicode
Victor Stinner [Mon, 16 Aug 2010 23:48:11 +0000 (23:48 +0000)]
Issue #9425: get_data() uses an unicode path
Amaury Forgeot d'Arc [Mon, 16 Aug 2010 22:16:51 +0000 (22:16 +0000)]
r82659 reintroduced some tab characters. Untabify again.
Amaury Forgeot d'Arc [Mon, 16 Aug 2010 22:11:29 +0000 (22:11 +0000)]
Fix compilation warning on Windows
Victor Stinner [Mon, 16 Aug 2010 22:03:11 +0000 (22:03 +0000)]
Issue #9425: Create Py_UNICODE_strncmp() function
The code is based on strncmp() of the libiberty library,
function in the public domain.
Brian Curtin [Mon, 16 Aug 2010 20:50:03 +0000 (20:50 +0000)]
Mark myself as assignable for winreg, and put myself down for Windows.
Alexander Belopolsky [Mon, 16 Aug 2010 20:17:07 +0000 (20:17 +0000)]
Issue #8983: Corrected docstrings.
Tim Golden [Mon, 16 Aug 2010 20:10:39 +0000 (20:10 +0000)]
Add Tim Golden as interested in Windows
Florent Xicluna [Mon, 16 Aug 2010 19:03:05 +0000 (19:03 +0000)]
I get it wrong in r84097: s/relative/absolute/
Alexander Belopolsky [Mon, 16 Aug 2010 18:55:46 +0000 (18:55 +0000)]
Issue #665761: functools.reduce() will no longer mask exceptions other
than TypeError raised by the iterator argument. Also added a test to
check that zip() already behaves similarly.
Florent Xicluna [Mon, 16 Aug 2010 18:41:19 +0000 (18:41 +0000)]
Use test.support and unittest features. Fix duplicated test (bad merge in r79033). Fix comment for issue #7902.
Victor Stinner [Mon, 16 Aug 2010 18:39:49 +0000 (18:39 +0000)]
Add versionadded tag to PySys_FormatStd*() functions doc
Victor Stinner [Mon, 16 Aug 2010 17:54:28 +0000 (17:54 +0000)]
Issue #9425: read_directory() is fully unicode compliant
zipimport is now able to load a module with an unencodable filename.
Victor Stinner [Mon, 16 Aug 2010 17:36:42 +0000 (17:36 +0000)]
Issue #9599: Create PySys_FormatStdout() and PySys_FormatStderr()
Write a message formatted by PyUnicode_FromFormatV() to sys.stdout and
sys.stderr.
Antoine Pitrou [Mon, 16 Aug 2010 14:33:42 +0000 (14:33 +0000)]
Remove debug hack
Giampaolo Rodolà [Mon, 16 Aug 2010 05:08:11 +0000 (05:08 +0000)]
fix getaddrinfo test failure on OSX caused by AI_CANNAME erroneously used as the value for 'proto'
Richard Jones [Mon, 16 Aug 2010 01:48:14 +0000 (01:48 +0000)]
close down sockets held by asyncore at end of test; closes issue9619
Antoine Pitrou [Mon, 16 Aug 2010 00:28:05 +0000 (00:28 +0000)]
Save and restore the global asyncore.socket_map, and warn if a test modified it
Antoine Pitrou [Sun, 15 Aug 2010 23:28:10 +0000 (23:28 +0000)]
Add debug output to the asyncore test
Antoine Pitrou [Sun, 15 Aug 2010 23:02:22 +0000 (23:02 +0000)]
Put test_ciphers in NetworkedTests
Antoine Pitrou [Sun, 15 Aug 2010 22:16:23 +0000 (22:16 +0000)]
Following Ezio's suggestion, force verbose mode on test_ssl to diagnose freezes on 3.x
Florent Xicluna [Sun, 15 Aug 2010 20:21:26 +0000 (20:21 +0000)]
Replace readfp() with read_file() in configparser documentation.
Florent Xicluna [Sun, 15 Aug 2010 20:16:27 +0000 (20:16 +0000)]
Replace the deprecated ConfigParser.readfp() method, and fix the incomplete merge in r82293.
Victor Stinner [Sun, 15 Aug 2010 19:28:21 +0000 (19:28 +0000)]
Fix TESTFN_UNENCODABLE of test.support on Mac OS X
Antoine Pitrou [Sun, 15 Aug 2010 18:51:10 +0000 (18:51 +0000)]
Fix more 64-bit warnings.
Antoine Pitrou [Sun, 15 Aug 2010 18:07:50 +0000 (18:07 +0000)]
Fix other warnings under 64-bit Windows.
Antoine Pitrou [Sun, 15 Aug 2010 17:41:31 +0000 (17:41 +0000)]
Fix (harmless) warning with MSVC.
Antoine Pitrou [Sun, 15 Aug 2010 17:38:46 +0000 (17:38 +0000)]
Fix indentation and remove dead code.
Antoine Pitrou [Sun, 15 Aug 2010 17:12:55 +0000 (17:12 +0000)]
Fix some compilation warnings under 64-bit Windows (issue #9566).
Some of these are genuine bugs with objects bigger than 2GB, but
my system doesn't allow me to write tests for it.
Antoine Pitrou [Sun, 15 Aug 2010 16:26:49 +0000 (16:26 +0000)]
Add pgen.stamp to svn:ignore and friends
Martin v. Löwis [Sun, 15 Aug 2010 15:47:25 +0000 (15:47 +0000)]
Don't run pgen twice when using make -j.
Victor Stinner [Sun, 15 Aug 2010 09:56:07 +0000 (09:56 +0000)]
Oops, fix a typo in NEWS: surrogateespace => surrogateescape
Mark Dickinson [Sun, 15 Aug 2010 09:43:29 +0000 (09:43 +0000)]
Clarify whatsnew entry for short float repr: roundtripping is not a new feature in 2.7.
Victor Stinner [Sun, 15 Aug 2010 09:33:08 +0000 (09:33 +0000)]
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.
Victor Stinner [Sun, 15 Aug 2010 09:22:44 +0000 (09:22 +0000)]
Issue #9604: posix.initgroups() encodes the username using the fileystem
encoding and surrogateescape error handler. Patch written by David Watson.
Victor Stinner [Sun, 15 Aug 2010 09:12:51 +0000 (09:12 +0000)]
Issue #9603: posix.ttyname() and posix.ctermid() decode the terminal name
using the filesystem encoding and surrogateescape error handler. Patch
written by David Watson.
Raymond Hettinger [Sun, 15 Aug 2010 07:41:40 +0000 (07:41 +0000)]
Fix __all__.
Senthil Kumaran [Sun, 15 Aug 2010 03:59:07 +0000 (03:59 +0000)]
Removing the comment lines for the modules which were made to build statically.
Raymond Hettinger [Sun, 15 Aug 2010 03:35:24 +0000 (03:35 +0000)]
Remove unused imports
Raymond Hettinger [Sun, 15 Aug 2010 03:30:45 +0000 (03:30 +0000)]
Remove the lfu_cache. Add more tests.
Raymond Hettinger [Sat, 14 Aug 2010 23:52:08 +0000 (23:52 +0000)]
Support cache sizes.
Éric Araujo [Sat, 14 Aug 2010 23:44:13 +0000 (23:44 +0000)]
Fix typo
Raymond Hettinger [Sat, 14 Aug 2010 22:29:52 +0000 (22:29 +0000)]
Localize one more builtin lookup.
Raymond Hettinger [Sat, 14 Aug 2010 22:22:10 +0000 (22:22 +0000)]
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.
Raymond Hettinger [Sat, 14 Aug 2010 21:17:48 +0000 (21:17 +0000)]
Clean-up the cache patch for the re module.
Florent Xicluna [Sat, 14 Aug 2010 20:51:58 +0000 (20:51 +0000)]
Silence BytesWarning while testing exception
Florent Xicluna [Sat, 14 Aug 2010 18:30:35 +0000 (18:30 +0000)]
Silence the BytesWarning, due to patch r83294 for #9301
Florent Xicluna [Sat, 14 Aug 2010 18:03:19 +0000 (18:03 +0000)]
Remove bad merge (from svnmerge r82301)
Victor Stinner [Sat, 14 Aug 2010 17:35:20 +0000 (17:35 +0000)]
Mac OS X denies unencodable filenames (invalid utf-8)
Florent Xicluna [Sat, 14 Aug 2010 17:15:31 +0000 (17:15 +0000)]
Convert to spaces.
Victor Stinner [Sat, 14 Aug 2010 17:06:04 +0000 (17:06 +0000)]
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.
Florent Xicluna [Sat, 14 Aug 2010 17:02:49 +0000 (17:02 +0000)]
Fix order.