Benjamin Peterson [Mon, 23 Aug 2010 17:47:43 +0000 (17:47 +0000)]
news note for last change
Benjamin Peterson [Mon, 23 Aug 2010 17:40:33 +0000 (17:40 +0000)]
run total_ordering() tests, and fix the function (default comparisons shouldn't be considered)
Matthias Klose [Mon, 23 Aug 2010 16:47:09 +0000 (16:47 +0000)]
Fix builds with builddir != srcdir, introduced in r83988.
os.path.dirname(__file__) points to the scrdir, not the builddir.
Use os.getcwd() instead.
Martin v. Löwis [Mon, 23 Aug 2010 15:27:26 +0000 (15:27 +0000)]
Explicitly pass socket type and family for getaddrinfo,
to make test work on Solaris.
Disable gethostbyaddr IDNA test for now as there is no
reverse DNS entry for the IPv6 address of the test name.
Brett Cannon [Sun, 22 Aug 2010 22:19:11 +0000 (22:19 +0000)]
One of the joys of having test_multiprocessing occasionally execute after
test_importlib is that it discovers special little race conditions. For
instance, it turns out that importlib would throw an exception if two different
Python processes both tried to create the __pycache__ directory as one process
would succeed, causing the other process to fail as it didn't expect to get any
"help". So now importlib simply stays calm and just accepts someone else did
the work of creating the __pycache__ directory for it, moving on with life.
Closes issue #9572.
Brett Cannon [Sun, 22 Aug 2010 22:11:06 +0000 (22:11 +0000)]
Make sure that no __pycache__ directory is needlessly left behind when testing
imports with an empty string in sys.path.
Antoine Pitrou [Sun, 22 Aug 2010 20:43:26 +0000 (20:43 +0000)]
Add an import lock test for multithreaded circular imports.
(part of #9657)
Brett Cannon [Sun, 22 Aug 2010 20:38:47 +0000 (20:38 +0000)]
While not strictly necessary thanks to the odd ABC inheritance done through
importlib._bootstrap, add the optional methods for importlib.abc.SourceLoader
for completeness.
Brett Cannon [Sun, 22 Aug 2010 20:36:25 +0000 (20:36 +0000)]
Under OS X, history_get from readline returns a const char *, but the local
variable the return value is assigned to is char *. Since the assigned-to
variable is never changed, simply make that a const char * and cast all calls
to get_history to const char * to silence the compiler warning (found with
LLVM).
Georg Brandl [Sun, 22 Aug 2010 20:23:38 +0000 (20:23 +0000)]
#9649: fix default value description.
Daniel Stutzbach [Sun, 22 Aug 2010 19:41:04 +0000 (19:41 +0000)]
Added myself to Misc/maintainers.rst for topics on which I'd like to be added to the nosy list
Martin v. Löwis [Sun, 22 Aug 2010 19:38:04 +0000 (19:38 +0000)]
Mention that gethostbyaddr now also supports IDNA.
Martin v. Löwis [Sun, 22 Aug 2010 19:33:47 +0000 (19:33 +0000)]
Issue #
1027206: Support IDNA in gethostbyname, gethostbyname_ex and
getaddrinfo. Patch by David Watson.
Vinay Sajip [Sun, 22 Aug 2010 18:41:24 +0000 (18:41 +0000)]
Updated maintainers.rst to reflect correct Roundup name.
Vinay Sajip [Sun, 22 Aug 2010 18:11:02 +0000 (18:11 +0000)]
Issue #9512: Made comment more informative.
Antoine Pitrou [Sun, 22 Aug 2010 10:18:36 +0000 (10:18 +0000)]
Test that calls to path hooks and meta_path entries are serialized by the import lock.
(part of issue #9251)
Martin v. Löwis [Sun, 22 Aug 2010 08:46:19 +0000 (08:46 +0000)]
Add Daniel Stutzbach.
Raymond Hettinger [Sun, 22 Aug 2010 08:39:49 +0000 (08:39 +0000)]
Issue 8403: Don't mask KeyboardInterrupt during peephole operation.
Raymond Hettinger [Sun, 22 Aug 2010 07:44:24 +0000 (07:44 +0000)]
Issue #9214: Fix set operations on KeysView and ItemsView.
Georg Brandl [Sat, 21 Aug 2010 23:20:01 +0000 (23:20 +0000)]
Remove usage of rexec in tkinter demo.
Benjamin Peterson [Sat, 21 Aug 2010 21:23:28 +0000 (21:23 +0000)]
fix old markup
Giampaolo Rodolà [Sat, 21 Aug 2010 20:34:37 +0000 (20:34 +0000)]
remove obsolete 'import SOCKS' statement
Benjamin Peterson [Sat, 21 Aug 2010 20:08:36 +0000 (20:08 +0000)]
provide sample implementations for attrgetter and methodcaller
Benjamin Peterson [Sat, 21 Aug 2010 20:03:15 +0000 (20:03 +0000)]
fix more indentation
Benjamin Peterson [Sat, 21 Aug 2010 20:01:28 +0000 (20:01 +0000)]
indent properly
Antoine Pitrou [Sat, 21 Aug 2010 19:09:32 +0000 (19:09 +0000)]
Issue #9617: Signals received during a low-level write operation aren't
ignored by the buffered IO layer anymore.
Giampaolo Rodolà [Sat, 21 Aug 2010 18:58:21 +0000 (18:58 +0000)]
fix smtpd.py I accidentally broke in my previous commit
Giampaolo Rodolà [Sat, 21 Aug 2010 18:47:59 +0000 (18:47 +0000)]
revert changes made in r84236 committed by accident
Giampaolo Rodolà [Sat, 21 Aug 2010 18:35:05 +0000 (18:35 +0000)]
fix issue #9129: added proper error handling when accepting new connections in SMTPServer.handle_accept
Senthil Kumaran [Sat, 21 Aug 2010 16:08:32 +0000 (16:08 +0000)]
Add info about HTTP/1.1 and Connection:Close header.
Marc-André Lemburg [Sat, 21 Aug 2010 10:58:31 +0000 (10:58 +0000)]
Fix a typo in the alias target name for 'macintosh'.
Benjamin Peterson [Sat, 21 Aug 2010 02:54:44 +0000 (02:54 +0000)]
alias macintosh to mac_roman #843590
Benjamin Peterson [Sat, 21 Aug 2010 02:45:15 +0000 (02:45 +0000)]
speed hack can be implemented more cleanly by directly calling __new__
Benjamin Peterson [Sat, 21 Aug 2010 02:43:31 +0000 (02:43 +0000)]
use blank object instead
Benjamin Peterson [Sat, 21 Aug 2010 02:41:33 +0000 (02:41 +0000)]
remove outdated comment
Victor Stinner [Fri, 20 Aug 2010 16:52:14 +0000 (16:52 +0000)]
Workaround issue #8611 in test_undecodable_code() of test_sys
Write test.support.workaroundIssue8611() function so it will be easier to
remove this workaround from all tests.
Victor Stinner [Fri, 20 Aug 2010 16:38:14 +0000 (16:38 +0000)]
test_undecodable_code(): set locale to C
The test is still failing on "x86 FreeBSD 7.2 3.x" and "sparc solaris10 gcc
3.x" buildbots. It looks like the locale encoding is able to decode b'\xff'. I
suppose that it is an encoding like 'iso-8859-1'.
Use C locale to set, I hope, the locale encoding to 'ascii'. Display also the
encoding so if the test fails, at least I will learn the locale encoding
choosen for the C locale.
Victor Stinner [Fri, 20 Aug 2010 11:08:18 +0000 (11:08 +0000)]
test_main_invalid_unicode() of test_sys: print string as ascii
There are buildbot failures on "x86 FreeBSD 3.x" and "sparc solaris10 gcc 3.x".
I suppose that _Py_char2wchar() doesn't fail even if the locale encoding is
unable to decode the byte string, because _Py_char2wchar() has a special mode
for platform without mbrtowc() (ISO C99) function.
Let's check my theory by avoid error on the Python print() instruction.
Vinay Sajip [Fri, 20 Aug 2010 08:43:22 +0000 (08:43 +0000)]
Issue #7077: Fixed bug in previous fix.
Tim Golden [Fri, 20 Aug 2010 08:31:26 +0000 (08:31 +0000)]
Remove long-redundant plat-win from sys.path on Windows
Vinay Sajip [Thu, 19 Aug 2010 22:20:22 +0000 (22:20 +0000)]
Issue #7077: Fixed SysLogHandler implementation of Unicode handling.
Amaury Forgeot d'Arc [Thu, 19 Aug 2010 21:32:38 +0000 (21:32 +0000)]
Add tests for r84209 (crashes in the Ast builder)
Also remove one tab, and move a check closer to the possible failure.
Vinay Sajip [Thu, 19 Aug 2010 19:17:41 +0000 (19:17 +0000)]
Issue #9606: Updated documentation for Filter objects.
Senthil Kumaran [Thu, 19 Aug 2010 17:50:31 +0000 (17:50 +0000)]
Fix Issue9639 - reset the retry count on successful auth.
Amaury Forgeot d'Arc [Thu, 19 Aug 2010 17:43:15 +0000 (17:43 +0000)]
Check the return values for all functions returning an ast node.
Failure to do it may result in strange error messages or even crashes,
in admittedly convoluted cases that are normally syntax errors, like:
def f(*xx, __debug__): pass
Victor Stinner [Thu, 19 Aug 2010 17:35:00 +0000 (17:35 +0000)]
test_pep277: display the filename as ascii on failure
Victor Stinner [Thu, 19 Aug 2010 17:22:57 +0000 (17:22 +0000)]
Skip test_encodings() of test_os on Windows and Mac OS X
Victor Stinner [Thu, 19 Aug 2010 17:18:12 +0000 (17:18 +0000)]
test_main_invalid_unicode() of test_sys displays stderr on failure
Victor Stinner [Thu, 19 Aug 2010 17:10:18 +0000 (17:10 +0000)]
Fix os.get_exec_path() (code and tests) for python -bb
Catch BytesWarning exceptions.
Victor Stinner [Thu, 19 Aug 2010 11:36:43 +0000 (11:36 +0000)]
PYTHONFSENCODING is not available on Windows or Mac OS X
Victor Stinner [Thu, 19 Aug 2010 11:30:09 +0000 (11:30 +0000)]
Ooops, finish test_sys fix: use expected variable
Victor Stinner [Thu, 19 Aug 2010 11:23:47 +0000 (11:23 +0000)]
Fix test_sys about fs encoding for Windows and Mac OS X
* Check fs encoding value on Windows
* Ignore LANG= test on Windows and Mac OS X (fs encoding is hardcoded on these
platforms)
Victor Stinner [Thu, 19 Aug 2010 11:17:12 +0000 (11:17 +0000)]
Fix test_os: workaround #8611 bug
Martin v. Löwis [Thu, 19 Aug 2010 09:11:51 +0000 (09:11 +0000)]
Decode NIS data to fs encoding, using the surrogate error handler.
Senthil Kumaran [Thu, 19 Aug 2010 07:02:20 +0000 (07:02 +0000)]
Fix Issue9638 - remove dead code from py3k imaplib
Victor Stinner [Thu, 19 Aug 2010 01:05:19 +0000 (01:05 +0000)]
Create os.fsdecode(): decode from the filesystem encoding with surrogateescape
error handler, or strict error handler on Windows.
* Rewrite os.fsencode() documentation
* Improve os.fsencode and os.fsdecode() tests using the new PYTHONFSENCODING
environment variable
Victor Stinner [Wed, 18 Aug 2010 23:41:33 +0000 (23:41 +0000)]
what's new 3.2: use :mod:
Victor Stinner [Wed, 18 Aug 2010 22:44:15 +0000 (22:44 +0000)]
test_sys: move tests at the right place
filesystem encoding is not related to sys.sizeof()
Éric Araujo [Wed, 18 Aug 2010 22:35:23 +0000 (22:35 +0000)]
Fix typo
Andrew M. Kuchling [Wed, 18 Aug 2010 22:30:34 +0000 (22:30 +0000)]
#7647: add ST_RDONLY, ST_NOSUID constants to os module.
(Also fix a name ordering in the ACKS file.)
Éric Araujo [Wed, 18 Aug 2010 22:29:54 +0000 (22:29 +0000)]
Fix indentation level
Victor Stinner [Wed, 18 Aug 2010 22:26:50 +0000 (22:26 +0000)]
Fix PyUnicode_EncodeFSDefault() indentation
Victor Stinner [Wed, 18 Aug 2010 22:23:22 +0000 (22:23 +0000)]
Improve error message if the command is not decodable
Amaury Forgeot d'Arc [Wed, 18 Aug 2010 22:07:15 +0000 (22:07 +0000)]
Add more tests to unicodedata with large code points
(the other functions where not affected by the recent change)
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