]>
granicus.if.org Git - python/log
Mark Dickinson [Mon, 24 Oct 2011 09:31:52 +0000 (10:31 +0100)]
Issue #13248, issue #8540: Remove deprecated Context._clamp attribute from Decimal module.
Antoine Pitrou [Sun, 23 Oct 2011 22:25:41 +0000 (00:25 +0200)]
Improve the porting section
Antoine Pitrou [Sun, 23 Oct 2011 22:14:43 +0000 (00:14 +0200)]
Improve / clean up the PEP 393 description
Antoine Pitrou [Sun, 23 Oct 2011 22:07:02 +0000 (00:07 +0200)]
Improve description of PEP 3151
Antoine Pitrou [Sun, 23 Oct 2011 21:52:23 +0000 (23:52 +0200)]
Mention InterruptedError in the doc for new function signal.sigwaitinfo
Antoine Pitrou [Sun, 23 Oct 2011 21:50:21 +0000 (23:50 +0200)]
Merge
Antoine Pitrou [Sun, 23 Oct 2011 21:49:42 +0000 (23:49 +0200)]
Use InterruptedError instead of checking for EINTR
Ezio Melotti [Sun, 23 Oct 2011 21:44:03 +0000 (00:44 +0300)]
Use ``...`` for string literals.
Florent Xicluna [Sun, 23 Oct 2011 21:37:46 +0000 (23:37 +0200)]
Fix documentation formatting.
Florent Xicluna [Sun, 23 Oct 2011 20:47:56 +0000 (22:47 +0200)]
Merge heads
Florent Xicluna [Sun, 23 Oct 2011 20:44:19 +0000 (22:44 +0200)]
Merge 3.2
Ezio Melotti [Sun, 23 Oct 2011 20:42:51 +0000 (23:42 +0300)]
Remove obsolete FAQ.
Florent Xicluna [Sun, 23 Oct 2011 20:40:37 +0000 (22:40 +0200)]
Issue 13141: Demonstrate recommended style for socketserver examples.
Florent Xicluna [Sun, 23 Oct 2011 20:23:57 +0000 (22:23 +0200)]
Documentation typo.
Florent Xicluna [Sun, 23 Oct 2011 20:11:00 +0000 (22:11 +0200)]
Cleanup code: remove int/long idioms and simplify a while statement.
Mark Dickinson [Sun, 23 Oct 2011 19:47:14 +0000 (20:47 +0100)]
Issue #12965: Fix some inaccurate comments in Objects/longobject.c. Thanks Stefan Krah.
Mark Dickinson [Sun, 23 Oct 2011 19:07:13 +0000 (20:07 +0100)]
Issue #10925: Add equivalent pure Python code for the builtin int-to-float conversion to test_long.
Mark Dickinson [Sun, 23 Oct 2011 18:53:01 +0000 (19:53 +0100)]
Issue #13201: equality for range objects is now based on equality of the underlying sequences. Thanks Sven Marnach for the patch.
Petri Lehtinen [Sun, 23 Oct 2011 18:07:50 +0000 (21:07 +0300)]
Merge 3.2
Petri Lehtinen [Sun, 23 Oct 2011 18:03:33 +0000 (21:03 +0300)]
Add the green "New reference" note to the doc of PyException_GetTraceback()
Martin v. Löwis [Sun, 23 Oct 2011 16:45:16 +0000 (18:45 +0200)]
Rewrite find_module_path using unicode API.
Martin v. Löwis [Sun, 23 Oct 2011 16:41:56 +0000 (18:41 +0200)]
Fix off-by-one error.
Martin v. Löwis [Sun, 23 Oct 2011 16:08:20 +0000 (18:08 +0200)]
Drop unused macros. Use CACHEDIR consistently.
Martin v. Löwis [Sun, 23 Oct 2011 16:05:06 +0000 (18:05 +0200)]
Rewrite make_source_pathname using Unicode API.
Martin v. Löwis [Sun, 23 Oct 2011 15:35:46 +0000 (17:35 +0200)]
Add ready checks for make_compiled_pathname.
Martin v. Löwis [Sun, 23 Oct 2011 15:29:08 +0000 (17:29 +0200)]
Reformulate make_compiled_pathname in terms of unicode objects.
Nick Coghlan [Sun, 23 Oct 2011 12:36:42 +0000 (22:36 +1000)]
Merge issue
1294232 patch from 3.2
Nick Coghlan [Sun, 23 Oct 2011 12:04:16 +0000 (22:04 +1000)]
Issue
1294232 : Fix errors in metaclass calculation affecting some cases of metaclass inheritance. Patch by Daniel Urban.
Antoine Pitrou [Sat, 22 Oct 2011 21:41:52 +0000 (23:41 +0200)]
Add a docstring to SSLError
Antoine Pitrou [Sat, 22 Oct 2011 21:37:51 +0000 (23:37 +0200)]
Use PyExc_OSError directly instead of grabbing it from the socket module API
Antoine Pitrou [Sat, 22 Oct 2011 20:08:46 +0000 (22:08 +0200)]
Add missing prefixes
Antoine Pitrou [Sat, 22 Oct 2011 20:08:05 +0000 (22:08 +0200)]
Elaborate on representations and canonical/legacy unicode objects
Antoine Pitrou [Sat, 22 Oct 2011 19:56:20 +0000 (21:56 +0200)]
Move deprecated functions at the end of their respective sections.
Meador Inge [Sat, 22 Oct 2011 19:06:50 +0000 (14:06 -0500)]
Issue 13243: Rename _Py_identifier to _Py_IDENTIFIER in asdl_c.py
Parser/asdl_c.py was missed in commit
7109f31300fb when _Py_identifier
was replaced with _Py_IDENTIFIER. Thanks to Eric Snow for the patch.
Éric Araujo [Sat, 22 Oct 2011 17:29:48 +0000 (19:29 +0200)]
Avoid relying on the default reST role in logging library doc
Vinay Sajip [Sat, 22 Oct 2011 12:34:48 +0000 (13:34 +0100)]
Closes #13235: Changed PendingDeprecationWarning to DeprecationWarning.
Victor Stinner [Sat, 22 Oct 2011 09:08:10 +0000 (11:08 +0200)]
Fix unicode_subtype_new() on debug build
Patch written by Stefan Behnel.
Éric Araujo [Fri, 21 Oct 2011 23:44:36 +0000 (01:44 +0200)]
Fix text duplication. Spotted by Nick Coghlan, thanks!
Ezio Melotti [Fri, 21 Oct 2011 22:01:32 +0000 (01:01 +0300)]
Remove unused variable.
Ezio Melotti [Fri, 21 Oct 2011 21:24:17 +0000 (00:24 +0300)]
#12753: fix compilation on Windows.
Ezio Melotti [Fri, 21 Oct 2011 18:57:36 +0000 (21:57 +0300)]
#12753: Add support for Unicode name aliases and named sequences.
Éric Araujo [Fri, 21 Oct 2011 13:52:10 +0000 (15:52 +0200)]
Banch merge
Vinay Sajip [Fri, 21 Oct 2011 06:33:42 +0000 (07:33 +0100)]
Closes #13235: Added deprecation for warn() methods and function in logging.
Éric Araujo [Fri, 21 Oct 2011 05:56:32 +0000 (07:56 +0200)]
Add tests for packaging.tests.support (#12659).
Thanks to Francisco Martín Brugué for the patch.
Éric Araujo [Fri, 21 Oct 2011 05:34:00 +0000 (07:34 +0200)]
Document that packaging doesn’t create __init__.py files (#3902).
The bug reported expected distutils to create an __init__.py file for a
project using only C extension modules. IMO, how Python imports
packages and submodules is well documented, and it’s never suggested
that distutils might create an __init__.py file, so I’m adding this
clarification to the packaging docs but won’t backport unless other
people tell me they shared the same wrong expectation.
Thanks to Mike Hoy for his help with the patch.
Éric Araujo [Fri, 21 Oct 2011 04:27:06 +0000 (06:27 +0200)]
Fix missing imports in setup scripts generated by packaging (#13205).
I’ve made more edits than the bug report suggested to make sure the
generated setup script is compatible with many Python versions; a
comment in the source explains that in detail.
The cfg_to_args function uses old 2.x idioms like codecs.open and
RawConfigParser.readfp because I want the setup.py generated by packaging and
distutils2 to be the same. Most users won’t see the deprecation warning and I
ignore it in the test suite.
Thanks to David Barnett for the report and original patch.
Antoine Pitrou [Thu, 20 Oct 2011 21:54:17 +0000 (23:54 +0200)]
Issue #12170: The count(), find(), rfind(), index() and rindex() methods
of bytes and bytearray objects now accept an integer between 0 and 255
as their first argument. Patch by Petri Lehtinen.
Florent Xicluna [Thu, 20 Oct 2011 21:14:36 +0000 (23:14 +0200)]
Issue #9168: now smtpd is able to bind privileged port.
Florent Xicluna [Thu, 20 Oct 2011 21:03:43 +0000 (23:03 +0200)]
Issue #9168: now smtpd is able to bind privileged port.
Ezio Melotti [Thu, 20 Oct 2011 16:53:35 +0000 (19:53 +0300)]
#13233: null merge with 3.2.
Ezio Melotti [Thu, 20 Oct 2011 16:51:18 +0000 (19:51 +0300)]
#13233: fix typo.
Ezio Melotti [Thu, 20 Oct 2011 16:45:39 +0000 (19:45 +0300)]
Merge heads.
Raymond Hettinger [Thu, 20 Oct 2011 16:43:12 +0000 (09:43 -0700)]
merge
Raymond Hettinger [Thu, 20 Oct 2011 16:42:05 +0000 (09:42 -0700)]
Bytes are already distinct from text, so typed=True isn't necessary.
Ezio Melotti [Thu, 20 Oct 2011 16:40:44 +0000 (19:40 +0300)]
#13219: merge with 3.2.
Ezio Melotti [Thu, 20 Oct 2011 16:38:04 +0000 (19:38 +0300)]
#13219: clarify section about character sets in the re documentation.
Senthil Kumaran [Thu, 20 Oct 2011 16:34:27 +0000 (00:34 +0800)]
merge heads
Senthil Kumaran [Thu, 20 Oct 2011 16:31:40 +0000 (00:31 +0800)]
News entry for Issue12529 and Issue12604
Senthil Kumaran [Thu, 20 Oct 2011 16:29:47 +0000 (00:29 +0800)]
News entry for Issue12529 and Issue12604
Raymond Hettinger [Thu, 20 Oct 2011 16:22:10 +0000 (09:22 -0700)]
Simplify calls in fnmatch.
Raymond Hettinger [Thu, 20 Oct 2011 15:57:45 +0000 (08:57 -0700)]
Issue 13227: Option to make the lru_cache() type specific (suggested by Andrew Koenig).
Victor Stinner [Wed, 19 Oct 2011 22:46:21 +0000 (00:46 +0200)]
Mention that os.O_CLOEXEC was added to Python 3.3
Victor Stinner [Wed, 19 Oct 2011 22:41:21 +0000 (00:41 +0200)]
Issue #13150: Add a comment in _sysconfigdata to explain the origin of this file
Antoine Pitrou [Wed, 19 Oct 2011 21:28:40 +0000 (23:28 +0200)]
Silence the FileExistsError which can be raised because of the O_EXCL flag
(as in import.c)
Raymond Hettinger [Wed, 19 Oct 2011 21:16:47 +0000 (14:16 -0700)]
merge
Raymond Hettinger [Wed, 19 Oct 2011 21:16:18 +0000 (14:16 -0700)]
Issue 12668: Fix wording in Whatsnew3.2
Raymond Hettinger [Wed, 19 Oct 2011 21:10:37 +0000 (14:10 -0700)]
Merge
Raymond Hettinger [Wed, 19 Oct 2011 21:10:07 +0000 (14:10 -0700)]
Issue 11931: Minor punctuation/grammar/wording fixups to the regex docs
Benjamin Peterson [Wed, 19 Oct 2011 20:58:15 +0000 (16:58 -0400)]
merge 3.2
Benjamin Peterson [Wed, 19 Oct 2011 20:57:40 +0000 (16:57 -0400)]
adjust braces a bit
Raymond Hettinger [Wed, 19 Oct 2011 20:40:37 +0000 (13:40 -0700)]
Issue #13121: Support in-place math operators for collections.Counter().
Éric Araujo [Wed, 19 Oct 2011 19:32:39 +0000 (21:32 +0200)]
Branch merge
Senthil Kumaran [Wed, 19 Oct 2011 18:50:13 +0000 (02:50 +0800)]
urllib.request - syntax changes enhancing readability. By Éric Araujo
Senthil Kumaran [Wed, 19 Oct 2011 18:48:01 +0000 (02:48 +0800)]
urllib.request - syntax changes enhancing readability. By Éric Araujo
Senthil Kumaran [Wed, 19 Oct 2011 18:37:08 +0000 (02:37 +0800)]
Doc improvements suggested by Éric Araujo for the new 'HEAD' Request feature.
Senthil Kumaran [Wed, 19 Oct 2011 18:16:59 +0000 (02:16 +0800)]
default - Fix closes Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c
Patch by Petri Lehtinen and Josh Triplett.
Senthil Kumaran [Wed, 19 Oct 2011 18:15:36 +0000 (02:15 +0800)]
3.2 - Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c
Senthil Kumaran [Wed, 19 Oct 2011 17:52:41 +0000 (01:52 +0800)]
default - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
Senthil Kumaran [Wed, 19 Oct 2011 17:46:00 +0000 (01:46 +0800)]
3.2 - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
Senthil Kumaran [Wed, 19 Oct 2011 17:06:59 +0000 (01:06 +0800)]
default - Fix closes Issue12529 - cgi.parse_header failure on double quotes and
semicolons. Patch by Ben Darnell and Petri Lehtinen.
Senthil Kumaran [Wed, 19 Oct 2011 17:05:44 +0000 (01:05 +0800)]
3.2 - Fix closes Issue12529 - cgi.parse_header failure on double quotes and
semicolons. Patch by Ben Darnell and Petri Lehtinen.
Florent Xicluna [Wed, 19 Oct 2011 09:44:51 +0000 (11:44 +0200)]
Fix warning while building documentation.
Ezio Melotti [Wed, 19 Oct 2011 08:06:26 +0000 (11:06 +0300)]
Merge with 3.2.
Ezio Melotti [Wed, 19 Oct 2011 07:58:56 +0000 (10:58 +0300)]
Remove duplication.
Éric Araujo [Wed, 19 Oct 2011 06:50:49 +0000 (08:50 +0200)]
Make one function in packaging.metadata simpler
Éric Araujo [Wed, 19 Oct 2011 06:49:20 +0000 (08:49 +0200)]
Clean up some idioms in packaging tests.
- Use os.makedirs (I had forgotten about it!)
- Let TempdirManager.write_file call os.path.join for us
- Remove custom command added by test_dist
- Use a skip instead of hiding a method with an underscore
- Address pyflakes warnings
Éric Araujo [Wed, 19 Oct 2011 06:41:07 +0000 (08:41 +0200)]
Add reST targets to sections of the setup.cfg spec, improve wording
Éric Araujo [Wed, 19 Oct 2011 06:37:22 +0000 (08:37 +0200)]
Change signature of packaging.tests.support.LoggingCatcher.get_logs.
I need this for some tests, and it makes code clearer. This commit also
changes some assertEqual calls to use (actual, expected) order and fix
some pyflakes warnings.
Éric Araujo [Wed, 19 Oct 2011 06:18:05 +0000 (08:18 +0200)]
More fixes for PEP 3147 compliance in packaging (#11254)
Éric Araujo [Wed, 19 Oct 2011 04:46:13 +0000 (06:46 +0200)]
Expand tests and fix bugs in packaging.util.resolve_name.
The code is still ugly, but at least it works better now. Patches to
make it easier to read are welcome, as well as support in #12915.
Éric Araujo [Wed, 19 Oct 2011 04:02:24 +0000 (06:02 +0200)]
Fix typo
Éric Araujo [Wed, 19 Oct 2011 04:01:57 +0000 (06:01 +0200)]
Improve Victor’s commit with cool new 2.5 idiom
Łukasz Langa [Wed, 19 Oct 2011 00:40:48 +0000 (02:40 +0200)]
A ricochet from fixing #10680: http://http://example.com/ no longer reports
'nonnumeric port'. It parses to a host name of "http:" which is equivalent to
http:80.
Łukasz Langa [Wed, 19 Oct 2011 00:04:46 +0000 (02:04 +0200)]
Merged fix for #10860 from 3.2
Victor Stinner [Tue, 18 Oct 2011 21:32:53 +0000 (23:32 +0200)]
Simplify _PyUnicode_COMPACT_DATA() macro
Victor Stinner [Tue, 18 Oct 2011 20:10:14 +0000 (22:10 +0200)]
Add consistency check to _PyUnicode_New()
Victor Stinner [Tue, 18 Oct 2011 19:55:25 +0000 (21:55 +0200)]
Issue #12281: Fix test_codecs.test_cp932() on Windows XP
Cool! Decoding b'\x81\x00abc' from cp932 with replace error handler is now
giving the same result on all Windows versions.
Victor Stinner [Tue, 18 Oct 2011 19:46:37 +0000 (21:46 +0200)]
Issue #12281: Skip code page tests on non-Windows platforms
Victor Stinner [Tue, 18 Oct 2011 19:21:00 +0000 (21:21 +0200)]
Issue #12281: Rewrite the MBCS codec to handle correctly replace and ignore
error handlers on all Windows versions. The MBCS codec is now supporting all
error handlers, instead of only replace to encode and ignore to decode.
Łukasz Langa [Tue, 18 Oct 2011 19:17:39 +0000 (21:17 +0200)]
Fixes #10860: Handle empty port after port delimiter in httplib