]>
granicus.if.org Git - python/log
Petri Lehtinen [Sun, 6 Nov 2011 07:26:17 +0000 (09:26 +0200)]
curses.tparm() is expecting a byte string, not curses.tigetstr()
Issue #10570
Petri Lehtinen [Sun, 6 Nov 2011 07:24:19 +0000 (09:24 +0200)]
curses.tparm() is expecting a byte string, not curses.tigetstr()
Issue #10570
Ned Deily [Sun, 6 Nov 2011 05:36:44 +0000 (22:36 -0700)]
Issue #13300: Fix IDLE Restart Shell command failure introduced by
3a5a0943b201 . Do not close listening socket on subprocess restart.
Antoine Pitrou [Sun, 6 Nov 2011 02:04:12 +0000 (03:04 +0100)]
Skip early if stdin and stdout are not ttys
Antoine Pitrou [Sun, 6 Nov 2011 02:03:18 +0000 (03:03 +0100)]
Skip early if stdin and stdout are not ttys
Antoine Pitrou [Sun, 6 Nov 2011 01:51:52 +0000 (02:51 +0100)]
Null merge
Antoine Pitrou [Sun, 6 Nov 2011 01:51:25 +0000 (02:51 +0100)]
Backport robustness fix for test_builtin
Antoine Pitrou [Sun, 6 Nov 2011 01:37:42 +0000 (02:37 +0100)]
Try to make the tty input() tests more robust
Antoine Pitrou [Sat, 5 Nov 2011 23:38:45 +0000 (00:38 +0100)]
Issue #13342: input() used to ignore sys.stdin's and sys.stdout's unicode
error handler in interactive mode (when calling into PyOS_Readline()).
Antoine Pitrou [Sat, 5 Nov 2011 23:34:26 +0000 (00:34 +0100)]
Issue #13342: input() used to ignore sys.stdin's and sys.stdout's unicode
error handler in interactive mode (when calling into PyOS_Readline()).
Petri Lehtinen [Sat, 5 Nov 2011 21:23:17 +0000 (23:23 +0200)]
Accept None as start and stop parameters for list.index() and tuple.index().
Closes #13340.
Petri Lehtinen [Sat, 5 Nov 2011 21:20:57 +0000 (23:20 +0200)]
Accept None as start and stop parameters for list.index() and tuple.index()
Closes #13340.
Raymond Hettinger [Sat, 5 Nov 2011 20:43:01 +0000 (13:43 -0700)]
Fix whitespace
Raymond Hettinger [Sat, 5 Nov 2011 20:39:57 +0000 (13:39 -0700)]
Merge
Raymond Hettinger [Sat, 5 Nov 2011 20:35:26 +0000 (13:35 -0700)]
Improve Counter.__repr__() to not fail with unorderable values
Petri Lehtinen [Sat, 5 Nov 2011 20:07:16 +0000 (22:07 +0200)]
Update .gitignore
Petri Lehtinen [Sat, 5 Nov 2011 20:06:49 +0000 (22:06 +0200)]
Merge 3.2
Petri Lehtinen [Sat, 5 Nov 2011 20:06:30 +0000 (22:06 +0200)]
Update .gitignore
Petri Lehtinen [Sat, 5 Nov 2011 20:00:14 +0000 (22:00 +0200)]
Merge heads
Petri Lehtinen [Sat, 5 Nov 2011 19:23:48 +0000 (21:23 +0200)]
Remove __pycache__ directories correctly on OpenBSD
Closes #13326.
Benjamin Peterson [Sat, 5 Nov 2011 19:18:51 +0000 (15:18 -0400)]
news note about range introspection
Benjamin Peterson [Sat, 5 Nov 2011 19:17:52 +0000 (15:17 -0400)]
add introspection to range objects (closes #9896)
Patch by Daniel Urban.
Petri Lehtinen [Sat, 5 Nov 2011 19:04:24 +0000 (21:04 +0200)]
Remove __pycache__ directories correctly on OpenBSD
The find utility of OpenBSD doesn't support the "-exec cmd {} +"
action. Change it to use "-depth -exec cmd {} ;" instead.
Also, remove __pycache__ before *.py[co], as most bytecode files are
in __pycache__ directories. Only those generated by Python 2 under
Doc/tools are not.
Closes #13326.
Éric Araujo [Sat, 5 Nov 2011 16:51:52 +0000 (17:51 +0100)]
Try to fix buildbot failures from #13193
Charles-François Natali [Sat, 5 Nov 2011 13:16:01 +0000 (14:16 +0100)]
asyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag
to poll(2): don't set them.
Petri Lehtinen [Sat, 5 Nov 2011 08:21:49 +0000 (10:21 +0200)]
Issue #3067: Enhance the documentation and docstring of locale.setlocale()
Petri Lehtinen [Sat, 5 Nov 2011 08:18:50 +0000 (10:18 +0200)]
Issue #3067: Enhance the documentation and docstring of locale.setlocale()
Petri Lehtinen [Sat, 5 Nov 2011 07:45:53 +0000 (09:45 +0200)]
Fix Maildir initialization so that maildir contents are read correctly.
Closes #13254.
Petri Lehtinen [Sat, 5 Nov 2011 07:44:59 +0000 (09:44 +0200)]
Fix Maildir initialization so that maildir contents are read correctly.
Closes #13254.
Victor Stinner [Fri, 4 Nov 2011 21:34:01 +0000 (22:34 +0100)]
Oops, really fix gdb/libpython.py for not ready Unicode strings
Amaury Forgeot d'Arc [Fri, 4 Nov 2011 21:29:24 +0000 (22:29 +0100)]
Issue #13343: Fix a SystemError when a lambda expression uses a global
variable in the default value of a keyword-only argument:
(lambda *, arg=GLOBAL_NAME: None)
Amaury Forgeot d'Arc [Fri, 4 Nov 2011 21:17:45 +0000 (22:17 +0100)]
Issue #13343: Fix a SystemError when a lambda expression uses a global
variable in the default value of a keyword-only argument:
(lambda *, arg=GLOBAL_NAME: None)
Florent Xicluna [Fri, 4 Nov 2011 21:15:37 +0000 (22:15 +0100)]
Fix test_urllib2 error on Windows in relation with issue #13287.
Petri Lehtinen [Fri, 4 Nov 2011 20:36:54 +0000 (22:36 +0200)]
Merge heads
Victor Stinner [Fri, 4 Nov 2011 20:36:35 +0000 (21:36 +0100)]
Avoid the Py_UNICODE type in codecs.c
Victor Stinner [Fri, 4 Nov 2011 20:29:10 +0000 (21:29 +0100)]
PyCodec_XMLCharRefReplaceError(): Remove unused variable
Petri Lehtinen [Fri, 4 Nov 2011 20:21:52 +0000 (22:21 +0200)]
Issue #3067: Fix the error raised by locale.setlocale()
Petri Lehtinen [Fri, 4 Nov 2011 19:35:07 +0000 (21:35 +0200)]
Issue #3067: Fix the error raised by locale.setlocale()
Victor Stinner [Fri, 4 Nov 2011 19:54:05 +0000 (20:54 +0100)]
Fix gdb/libpython.py for not ready Unicode strings
_PyUnicode_CheckConsistency() checks also hash and length value for not ready
Unicode strings.
Victor Stinner [Fri, 4 Nov 2011 19:06:39 +0000 (20:06 +0100)]
Replace tabs by spaces
Martin v. Löwis [Fri, 4 Nov 2011 18:04:15 +0000 (19:04 +0100)]
Drop Py_UNICODE based encode exceptions.
Martin v. Löwis [Fri, 4 Nov 2011 17:23:06 +0000 (18:23 +0100)]
Port code page codec to Unicode API.
Martin v. Löwis [Fri, 4 Nov 2011 11:26:49 +0000 (12:26 +0100)]
Fix C89 incompatibility.
Martin v. Löwis [Fri, 4 Nov 2011 10:16:41 +0000 (11:16 +0100)]
Port error handlers from Py_UNICODE indexing to code point indexing.
Florent Xicluna [Fri, 4 Nov 2011 09:22:57 +0000 (10:22 +0100)]
Merge 3.2: issue #13140
Florent Xicluna [Fri, 4 Nov 2011 09:16:28 +0000 (10:16 +0100)]
Closes #13140: Fix the daemon_threads attribute of ThreadingMixIn.
Victor Stinner [Fri, 4 Nov 2011 08:49:24 +0000 (09:49 +0100)]
Issue #12342: Fix compilation on Mac OS X
Florent Xicluna [Fri, 4 Nov 2011 07:29:17 +0000 (08:29 +0100)]
Remove redundant imports.
Florent Xicluna [Fri, 4 Nov 2011 07:25:54 +0000 (08:25 +0100)]
Drop unused import in unittest package.
Ross Lagerwall [Fri, 4 Nov 2011 05:15:35 +0000 (07:15 +0200)]
(Merge 3.2) Issue #13339.
Ross Lagerwall [Fri, 4 Nov 2011 05:09:14 +0000 (07:09 +0200)]
Issue #13339: Fix compile error in posixmodule.c due to missing semicolon.
Thanks to Robert Xiao.
Victor Stinner [Thu, 3 Nov 2011 23:43:35 +0000 (00:43 +0100)]
(Merge 3.2) Issue #12342: Improve _tkinter error message on unencodable character
Victor Stinner [Thu, 3 Nov 2011 23:36:46 +0000 (00:36 +0100)]
Issue #12342: Improve _tkinter error message on unencodable character
Victor Stinner [Thu, 3 Nov 2011 23:28:50 +0000 (00:28 +0100)]
Fix a compiler warning in unicode_encode_ucs1()
Victor Stinner [Thu, 3 Nov 2011 23:24:51 +0000 (00:24 +0100)]
Fix PyUnicode_EncodeCharmap()
Victor Stinner [Thu, 3 Nov 2011 23:22:48 +0000 (00:22 +0100)]
Replace PyUnicodeObject type by PyObject
* _PyUnicode_CheckConsistency() now takes a PyObject* instead of void*
* Remove now useless casts to PyObject*
Victor Stinner [Thu, 3 Nov 2011 23:05:13 +0000 (00:05 +0100)]
Cleanup decode_code_page_stateful() and encode_code_page()
* Fix decode_code_page_errors() result
* Inline decode_code_page() and encode_code_page_chunk()
* Replace the PyUnicodeObject type by PyObject
Florent Xicluna [Thu, 3 Nov 2011 22:44:15 +0000 (23:44 +0100)]
Oversight in previous commit for test_pep277.
Florent Xicluna [Thu, 3 Nov 2011 22:11:14 +0000 (23:11 +0100)]
Use PEP-3151 exceptions for test_pep277.
Victor Stinner [Thu, 3 Nov 2011 21:32:33 +0000 (22:32 +0100)]
Adapt the code page encoder to the new unicode_encode_call_errorhandler()
The code is not correct, but at least it doesn't crash anymore.
Victor Stinner [Thu, 3 Nov 2011 19:36:55 +0000 (20:36 +0100)]
(Merge 3.2) Issue #10570: curses.putp() is now expecting a byte string, instead
of a Unicode string.
This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings.
Victor Stinner [Thu, 3 Nov 2011 19:35:40 +0000 (20:35 +0100)]
Issue #10570: curses.putp() is now expecting a byte string, instead of a
Unicode string.
This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings.
Éric Araujo [Thu, 3 Nov 2011 15:45:33 +0000 (16:45 +0100)]
Merge 3.2
Éric Araujo [Thu, 3 Nov 2011 15:44:13 +0000 (16:44 +0100)]
Branch merge
Éric Araujo [Thu, 3 Nov 2011 15:27:57 +0000 (16:27 +0100)]
Branch merge
Éric Araujo [Thu, 3 Nov 2011 05:00:02 +0000 (06:00 +0100)]
Actually check the contents of the file created by packaging’s bdist_dumb
Éric Araujo [Thu, 3 Nov 2011 04:17:11 +0000 (05:17 +0100)]
Merge follow-up for #11254 and other changes from 3.2
Éric Araujo [Thu, 3 Nov 2011 04:08:28 +0000 (05:08 +0100)]
Improve byte-compilation in packaging to be independent of -O or -B.
The code I fixed to comply with PEP 3147 still had one bug: When run
under python -O, some paths for pyc files would be pyo, because I called
imp.cache_from_source without explicit debug_override argument in some
places, and under -O that would return .pyo (this is well explained in
the imp docs). Now all code (util.byte_compile, build_py, install_lib)
can create .pyo files according to options given by users,
without interference from the calling Python’s own optimize mode.
On a related topic, I also removed the code that prevented byte
compilation under python -B. The rationale is that packaging gives
control over the creation of pyc files to the user with its own explicit
option, and the behavior should not be changed if the calling Python
happens to run with -B for whatever reason. I will argue that this is a
bug fix and ask to be allowed to backport this change to distutils.
Finally, I moved one nugget of information about the --compile and
--optimize options from the source into the doc. It clears up a
misunderstanding that I (and maybe other people) had.
Éric Araujo [Thu, 3 Nov 2011 03:35:20 +0000 (04:35 +0100)]
Avoid relying on the default reST role in logging library doc
Éric Araujo [Thu, 3 Nov 2011 03:34:09 +0000 (04:34 +0100)]
Fix incorrect docstring I changed a while back.
New wording is taken straight from the PEP, so this time should be good
:)
Éric Araujo [Thu, 3 Nov 2011 02:45:33 +0000 (03:45 +0100)]
More fixes for PEP 3147 compliance in distutils (#11254)
Éric Araujo [Thu, 3 Nov 2011 02:38:44 +0000 (03:38 +0100)]
Add signatures to the docstring of functions added to imp by PEP 3147
Éric Araujo [Thu, 3 Nov 2011 02:20:43 +0000 (03:20 +0100)]
State explicitely that PYTHONDONTWRITEBYTECODE is equivalent to -B
Antoine Pitrou [Thu, 3 Nov 2011 01:46:52 +0000 (02:46 +0100)]
Issue #13307: fix bdist_rpm test failures
Antoine Pitrou [Thu, 3 Nov 2011 01:45:46 +0000 (02:45 +0100)]
Issue #13307: fix bdist_rpm test failures
Éric Araujo [Wed, 2 Nov 2011 23:20:03 +0000 (00:20 +0100)]
Minor code reorganization in one packaging test file
Éric Araujo [Wed, 2 Nov 2011 23:13:05 +0000 (00:13 +0100)]
Fix typo “seperate”
Éric Araujo [Wed, 2 Nov 2011 23:12:39 +0000 (00:12 +0100)]
Fix typos in recent NEWS entries
Éric Araujo [Wed, 2 Nov 2011 23:08:48 +0000 (00:08 +0100)]
Fix typo
Victor Stinner [Wed, 2 Nov 2011 22:47:58 +0000 (23:47 +0100)]
(Merge 3.2) Issue #10570: curses.tigetstr() is now expecting a byte string,
instead of a Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong.
Victor Stinner [Wed, 2 Nov 2011 22:45:29 +0000 (23:45 +0100)]
Issue #10570: curses.tigetstr() is now expecting a byte string, instead of a
Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong.
Brian Curtin [Wed, 2 Nov 2011 20:09:37 +0000 (15:09 -0500)]
Fix a compile error (apparently Windows only) introduced in
295fdfd4f422
Charles-François Natali [Wed, 2 Nov 2011 19:30:59 +0000 (20:30 +0100)]
test_asyncore: Actually try to received OOB data.
Charles-François Natali [Wed, 2 Nov 2011 18:36:02 +0000 (19:36 +0100)]
Issue #13308: Fix test_httpservers failures when run as root.
Charles-François Natali [Wed, 2 Nov 2011 18:35:14 +0000 (19:35 +0100)]
Issue #13308: Fix test_httpservers failures when run as root.
Charles-François Natali [Wed, 2 Nov 2011 17:58:25 +0000 (18:58 +0100)]
Issue #13324: fcntlmodule: Add the F_NOCACHE flag. Patch by Alex Stewart.
Ezio Melotti [Wed, 2 Nov 2011 17:33:29 +0000 (19:33 +0200)]
#13295: http.server now produces valid HTML 4.01 strict.
Éric Araujo [Wed, 2 Nov 2011 17:05:41 +0000 (18:05 +0100)]
Cleanups in distutils tests.
- Actually check the contents of the file created by bdist_dumb.
- Don’t use “RECORD” as filename for non-PEP 376 record file
- Don’t start method name with “_test”, it smells like a disabled test
method instead of an helper method
- Fix some idioms (assertIn, addCleanup)
Martin v. Löwis [Wed, 2 Nov 2011 17:02:51 +0000 (18:02 +0100)]
Port UCS1 and charmap codecs to new API.
Martin v. Löwis [Wed, 2 Nov 2011 11:45:42 +0000 (12:45 +0100)]
Introduce PyObject* API for raising encode errors.
Florent Xicluna [Wed, 2 Nov 2011 07:13:43 +0000 (08:13 +0100)]
Issue #13312: skip the failing negative years for now.
Florent Xicluna [Wed, 2 Nov 2011 02:22:15 +0000 (03:22 +0100)]
Actually, there's more than one failing value. (changeset
9cb1b85237a9 , issue #13312).
Florent Xicluna [Wed, 2 Nov 2011 00:28:17 +0000 (01:28 +0100)]
Issue #13312: skip the single failing value for now.
Florent Xicluna [Tue, 1 Nov 2011 22:31:09 +0000 (23:31 +0100)]
Closes #2892: preserve iterparse events in case of SyntaxError.
Martin v. Löwis [Tue, 1 Nov 2011 17:42:23 +0000 (18:42 +0100)]
Replace Py_UNICODE_strchr with PyUnicode_FindChar.
Florent Xicluna [Tue, 1 Nov 2011 22:42:05 +0000 (23:42 +0100)]
Additional tests for negative years.
Florent Xicluna [Tue, 1 Nov 2011 22:33:14 +0000 (23:33 +0100)]
Merge 3.2: issue #2892
Ezio Melotti [Tue, 1 Nov 2011 16:58:19 +0000 (18:58 +0200)]
Merge test improvements from 3.2.
Ezio Melotti [Tue, 1 Nov 2011 16:57:15 +0000 (18:57 +0200)]
Make sure that the tolerant parser still parses valid HTML correctly.
Florent Xicluna [Tue, 1 Nov 2011 16:42:24 +0000 (17:42 +0100)]
Lowercase the test name, to run last.