Amaury Forgeot d'Arc
324ac65ceb
#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.
2010-08-18 20:44:58 +00:00
Antoine Pitrou
36e778ef02
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.
2010-08-18 20:44:14 +00:00
Senthil Kumaran
7ff59131f8
Fix Issue672656 - Securing pydoc server.
2010-08-18 19:32:21 +00:00
Martin v. Löwis
dfaf9ec93a
Restore GIL in nis_cat in case of error.
2010-08-18 16:12:23 +00:00
Victor Stinner
c14190dc5b
Add versionadded tag to PyModule_GetFilenameObject() doc
2010-08-18 10:57:33 +00:00
Victor Stinner
d91df1a7a9
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.
2010-08-18 10:56:19 +00:00
Victor Stinner
6c00c1464f
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.
2010-08-17 23:37:11 +00:00
Martin v. Löwis
6951157475
Correct library name that Ask will work on.
2010-08-17 23:16:51 +00:00
Martin v. Löwis
382d9177a4
Add Ask Solem.
2010-08-17 22:58:42 +00:00
Victor Stinner
6b06da5395
Remove unused functions _PyImport_FindModule and _PyImport_IsScript
2010-08-17 22:54:21 +00:00
Victor Stinner
0e5a41b8f5
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).
2010-08-17 22:49:25 +00:00
Victor Stinner
6961bd690e
Issue #8063 : Call _PyGILState_Init() earlier in Py_InitializeEx().
2010-08-17 22:26:51 +00:00
Victor Stinner
6009ece0ed
Replace :func: by :cfunc:
...
To get links to the C functions
2010-08-17 22:01:02 +00:00
Éric Araujo
f5be090bc3
Fix example
2010-08-17 21:24:05 +00:00
Antoine Pitrou
cdfe1c54fc
Add versionadded tags
2010-08-17 21:15:00 +00:00
Antoine Pitrou
bf1a018ce4
Modernize gzip examples
2010-08-17 21:11:49 +00:00
Antoine Pitrou
79c5ef11d5
Issue #3488 : Provide convenient shorthand functions `gzip.compress`
...
and `gzip.decompress`. Original patch by Anand B. Pillai.
2010-08-17 21:10:05 +00:00
Brian Curtin
852823d731
Cleanup and correct a few ints to be Py_ssize_t.
2010-08-17 20:49:09 +00:00
Brian Curtin
abb3351785
Properly downcast from size_t/Py_ssize_t in a few places.
2010-08-17 20:08:40 +00:00
Antoine Pitrou
19467d27ff
Clean some 64-bit issues. Also, always spell "ssize_t" "Py_ssize_t".
2010-08-17 19:33:30 +00:00
Raymond Hettinger
3fccfcb751
Minor rewording to docs for the lru_cache decorator
2010-08-17 19:19:29 +00:00
Antoine Pitrou
554f33407c
Fix <deque iterator>.__length_hint__() under 64-bit Windows.
2010-08-17 18:30:06 +00:00
Antoine Pitrou
671b4d948e
Issue #9612 : The set object is now 64-bit clean under Windows.
2010-08-17 17:55:07 +00:00
Benjamin Peterson
7ac98ae3b3
wrap
2010-08-17 17:52:02 +00:00
Giampaolo Rodolà
42382fedcc
fix issue #8807 : adds a context parameter to POP3_SSL class.
2010-08-17 16:09:53 +00:00
Giampaolo Rodolà
ccfb91c89f
fix issue #8866 : parameters passed to socket.getaddrinfo can now be specified as single keyword arguments.
2010-08-17 15:30:23 +00:00
Georg Brandl
67b21b7547
Consistency check for versionadded/changed directives.
2010-08-17 15:07:14 +00:00
Georg Brandl
9e25701e87
Markup nits.
2010-08-17 14:11:59 +00:00
Nick Coghlan
d26c18adcc
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
2010-08-17 13:06:11 +00:00
Nick Coghlan
46e6380563
Another attempt at pacifying the windows buildbots by ignoring all the variable information in the dis.code_info tests
2010-08-17 11:28:07 +00:00
Nick Coghlan
09c8123e6f
Address XXX comment in dis.py: inspect.py now attempts to reuse the dis.py compiler flag values before resorting to defining its own
2010-08-17 10:18:16 +00:00
Nick Coghlan
77203adb7e
Ignore the exact ID value for the nested function in the dis.code_info tests
2010-08-17 09:25:57 +00:00
Ezio Melotti
fc8b205da2
Correct a couple of assert* methods. Patch by Dave Malcolm.
2010-08-17 08:35:41 +00:00
Nick Coghlan
eae2da1da7
Issue 9147: Add dis.code_info()
2010-08-17 08:03:36 +00:00
Nick Coghlan
9887683f74
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)
2010-08-17 06:17:18 +00:00
Nick Coghlan
632a0c1476
Remove some lingering remnants of the short-lived functools.lfu_cache
2010-08-17 05:22:50 +00:00
Benjamin Peterson
ad1e0c5e5f
added versionadded
2010-08-17 03:37:20 +00:00
Benjamin Peterson
052a02be4a
add tests for mknod() and mkfifo() #9569
2010-08-17 01:27:09 +00:00
Benjamin Peterson
82c4885210
remove test for oldstyle classes
2010-08-17 01:08:46 +00:00
Benjamin Peterson
83cd3b91e2
use assertTrue/assertFalse
2010-08-17 01:07:53 +00:00
Benjamin Peterson
45c257f193
add support for abstract class and static methods #5867
2010-08-17 00:52:52 +00:00
Victor Stinner
36e791179c
test_zipimport: fix test name
2010-08-17 00:44:11 +00:00
Victor Stinner
4a3733d160
Issue #9425 : save/restore exception on filename encoding
...
_PyUnicode_AsString() raises an exception on unencodable filename.
2010-08-17 00:39:57 +00:00
Victor Stinner
028dd97dfb
Issue #9425 : zipimporter_repr() uses unicode
2010-08-17 00:04:48 +00:00
Victor Stinner
60fe8d902d
Issue #9425 : get_data() uses an unicode path
2010-08-16 23:48:11 +00:00
Amaury Forgeot d'Arc
844807ead2
r82659 reintroduced some tab characters. Untabify again.
2010-08-16 22:16:51 +00:00
Amaury Forgeot d'Arc
f2b69df023
Fix compilation warning on Windows
2010-08-16 22:11:29 +00:00
Victor Stinner
ef8d95c498
Issue #9425 : Create Py_UNICODE_strncmp() function
...
The code is based on strncmp() of the libiberty library,
function in the public domain.
2010-08-16 22:03:11 +00:00
Brian Curtin
405038ac1c
Mark myself as assignable for winreg, and put myself down for Windows.
2010-08-16 20:50:03 +00:00
Alexander Belopolsky
977a684c94
Issue #8983 : Corrected docstrings.
2010-08-16 20:17:07 +00:00