]> granicus.if.org Git - python/log
python
13 years agoDocument that packaging doesn’t create __init__.py files (#3902).
É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.

13 years agoFix missing imports in setup scripts generated by packaging (#13205).
É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.

13 years agoBranch merge
Éric Araujo [Wed, 19 Oct 2011 19:32:39 +0000 (21:32 +0200)]
Branch merge

13 years agourllib.request - syntax changes enhancing readability. By Éric Araujo
Senthil Kumaran [Wed, 19 Oct 2011 18:50:13 +0000 (02:50 +0800)]
urllib.request - syntax changes enhancing readability. By Éric Araujo

13 years agourllib.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

13 years agoDoc improvements suggested by Éric Araujo for the new 'HEAD' Request feature.
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.

13 years agodefault - Fix closes Issue 12604 - Use a proper no-op macro expansion for VTRACE...
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.

13 years ago3.2 - Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c
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

13 years agodefault - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
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.

13 years ago3.2 - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
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.

13 years agodefault - Fix closes Issue12529 - cgi.parse_header failure on double quotes and
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.

13 years ago3.2 - Fix closes Issue12529 - cgi.parse_header failure on double quotes and
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.

13 years agoFix warning while building documentation.
Florent Xicluna [Wed, 19 Oct 2011 09:44:51 +0000 (11:44 +0200)]
Fix warning while building documentation.

13 years agoMerge with 3.2.
Ezio Melotti [Wed, 19 Oct 2011 08:06:26 +0000 (11:06 +0300)]
Merge with 3.2.

13 years agoRemove duplication.
Ezio Melotti [Wed, 19 Oct 2011 07:58:56 +0000 (10:58 +0300)]
Remove duplication.

13 years agoMake one function in packaging.metadata simpler
Éric Araujo [Wed, 19 Oct 2011 06:50:49 +0000 (08:50 +0200)]
Make one function in packaging.metadata simpler

13 years agoClean up some idioms in packaging tests.
É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

13 years agoAdd reST targets to sections of the setup.cfg spec, improve wording
É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

13 years agoChange signature of packaging.tests.support.LoggingCatcher.get_logs.
É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.

13 years agoMore fixes for PEP 3147 compliance in packaging (#11254)
Éric Araujo [Wed, 19 Oct 2011 06:18:05 +0000 (08:18 +0200)]
More fixes for PEP 3147 compliance in packaging (#11254)

13 years agoExpand tests and fix bugs in packaging.util.resolve_name.
É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.

13 years agoFix typo
Éric Araujo [Wed, 19 Oct 2011 04:02:24 +0000 (06:02 +0200)]
Fix typo

13 years agoImprove Victor’s commit with cool new 2.5 idiom
Éric Araujo [Wed, 19 Oct 2011 04:01:57 +0000 (06:01 +0200)]
Improve Victor’s commit with cool new 2.5 idiom

13 years agoA ricochet from fixing #10680: http://http://example.com/ no longer reports
Ł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.

13 years agoMerged fix for #10860 from 3.2
Łukasz Langa [Wed, 19 Oct 2011 00:04:46 +0000 (02:04 +0200)]
Merged fix for #10860 from 3.2

13 years agoSimplify _PyUnicode_COMPACT_DATA() macro
Victor Stinner [Tue, 18 Oct 2011 21:32:53 +0000 (23:32 +0200)]
Simplify _PyUnicode_COMPACT_DATA() macro

13 years agoAdd consistency check to _PyUnicode_New()
Victor Stinner [Tue, 18 Oct 2011 20:10:14 +0000 (22:10 +0200)]
Add consistency check to _PyUnicode_New()

13 years agoIssue #12281: Fix test_codecs.test_cp932() on Windows XP
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.

13 years agoIssue #12281: Skip code page tests on non-Windows platforms
Victor Stinner [Tue, 18 Oct 2011 19:46:37 +0000 (21:46 +0200)]
Issue #12281: Skip code page tests on non-Windows platforms

13 years agoIssue #12281: Rewrite the MBCS codec to handle correctly replace and ignore
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.

13 years agoFixes #10860: Handle empty port after port delimiter in httplib
Łukasz Langa [Tue, 18 Oct 2011 19:17:39 +0000 (21:17 +0200)]
Fixes #10860: Handle empty port after port delimiter in httplib

13 years agoIssue #13150: sysconfig no longer parses the Makefile and config.h files
Antoine Pitrou [Tue, 18 Oct 2011 15:52:24 +0000 (17:52 +0200)]
Issue #13150: sysconfig no longer parses the Makefile and config.h files
when imported, instead doing it at build time.  This makes importing
sysconfig faster and reduces Python startup time by 20%.

13 years agoIssue #13188: When called without an explicit traceback argument,
Antoine Pitrou [Tue, 18 Oct 2011 14:42:55 +0000 (16:42 +0200)]
Issue #13188: When called without an explicit traceback argument,
generator.throw() now gets the traceback from the passed exception's
``__traceback__`` attribute.  Patch by Petri Lehtinen.

13 years agoIssue #13188: When called without an explicit traceback argument,
Antoine Pitrou [Tue, 18 Oct 2011 14:40:50 +0000 (16:40 +0200)]
Issue #13188: When called without an explicit traceback argument,
generator.throw() now gets the traceback from the passed exception's
`__traceback__` attribute.  Patch by Petri Lehtinen.

13 years ago#12448: merge with 3.2.
Ezio Melotti [Tue, 18 Oct 2011 10:26:49 +0000 (13:26 +0300)]
#12448: merge with 3.2.

13 years ago#12448: smtplib now flushes stdout while running ``python -m smtplib``
Ezio Melotti [Tue, 18 Oct 2011 10:20:07 +0000 (13:20 +0300)]
#12448: smtplib now flushes stdout while running ``python -m smtplib``
  in order to display the prompt correctly.  Patch by Petri Lehtinen.

13 years ago#12277: merge with 3.2.
Ezio Melotti [Tue, 18 Oct 2011 10:00:36 +0000 (13:00 +0300)]
#12277: merge with 3.2.

13 years ago#12277: add missing comma.
Ezio Melotti [Tue, 18 Oct 2011 09:59:39 +0000 (12:59 +0300)]
#12277: add missing comma.

13 years agoClose #12454: The mailbox module is now using ASCII, instead of the locale
Victor Stinner [Mon, 17 Oct 2011 18:44:22 +0000 (20:44 +0200)]
Close #12454: The mailbox module is now using ASCII, instead of the locale
encoding, to read and write MH mailboxes (.mh_sequences files).

13 years agoInstantiate the OS-related exception as soon as we raise it, so that "except"
Victor Stinner [Mon, 17 Oct 2011 18:18:58 +0000 (20:18 +0200)]
Instantiate the OS-related exception as soon as we raise it, so that "except"
works properly.

PyErr_SetFromErrnoWithFilenameObject() was already fixed by the changeset
793c75177d28. This commit fixes PyErr_SetExcFromWindowsErrWithFilenameObject(),
used on Windows.

13 years agoIssue #12367: Test test_select.test_errno() on FreeBSD
Victor Stinner [Mon, 17 Oct 2011 17:55:31 +0000 (19:55 +0200)]
Issue #12367: Test test_select.test_errno() on FreeBSD

See the FreeBSD bug:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/155606

13 years agoMerge #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now avail...
Nadeem Vawda [Mon, 17 Oct 2011 17:40:47 +0000 (19:40 +0200)]
Merge #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.

13 years agoIssue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now avail...
Nadeem Vawda [Mon, 17 Oct 2011 17:34:22 +0000 (19:34 +0200)]
Issue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.

13 years agoIssue #13146: Writing a pyc file is now atomic under POSIX.
Antoine Pitrou [Mon, 17 Oct 2011 17:28:44 +0000 (19:28 +0200)]
Issue #13146: Writing a pyc file is now atomic under POSIX.

13 years agoFix typo
Antoine Pitrou [Mon, 17 Oct 2011 17:21:04 +0000 (19:21 +0200)]
Fix typo

13 years agomerge 3.2 (#13199)
Benjamin Peterson [Mon, 17 Oct 2011 17:10:24 +0000 (13:10 -0400)]
merge 3.2 (#13199)

13 years agoplug possible refleak (closes #13199)
Benjamin Peterson [Mon, 17 Oct 2011 17:09:27 +0000 (13:09 -0400)]
plug possible refleak (closes #13199)

13 years agonormalize whitespace in Lib/distutils/msvc9compiler.py
Mark Hammond [Mon, 17 Oct 2011 00:36:49 +0000 (11:36 +1100)]
normalize whitespace in Lib/distutils/msvc9compiler.py

13 years agonormalize whitespace in Lib/distutils/msvc9compiler.py
Mark Hammond [Mon, 17 Oct 2011 00:35:31 +0000 (11:35 +1100)]
normalize whitespace in Lib/distutils/msvc9compiler.py

13 years agoIssue #7833: Ext. modules built using distutils on Windows no longer get a manifest
Mark Hammond [Mon, 17 Oct 2011 00:28:09 +0000 (11:28 +1100)]
Issue #7833: Ext. modules built using distutils on Windows no longer get a manifest

13 years agoIssue #7833: Ext. modules built using distutils on Windows no longer get a manifest
Mark Hammond [Mon, 17 Oct 2011 00:05:57 +0000 (11:05 +1100)]
Issue #7833: Ext. modules built using distutils on Windows no longer get a manifest

13 years ago(null merge 3.2, fix already applied to default)
Victor Stinner [Sun, 16 Oct 2011 21:46:06 +0000 (23:46 +0200)]
(null merge 3.2, fix already applied to default)

13 years agoIssue #10653: Fix time.strftime() on Windows, check for invalid format strings
Victor Stinner [Sun, 16 Oct 2011 21:45:39 +0000 (23:45 +0200)]
Issue #10653: Fix time.strftime() on Windows, check for invalid format strings

13 years agoClose #13174: Fix extended attributes tests in test_os for SELinux
Victor Stinner [Sun, 16 Oct 2011 20:12:03 +0000 (22:12 +0200)]
Close #13174: Fix extended attributes tests in test_os for SELinux

On Fedora, new files get the 'security.selinux' attribute.

13 years agotest_select: use a timeout=0 in test_errno()
Victor Stinner [Sun, 16 Oct 2011 18:48:52 +0000 (20:48 +0200)]
test_select: use a timeout=0 in test_errno()

13 years agoIssue #10653: Fix time.strftime() on Windows, check for invalid format strings
Victor Stinner [Sun, 16 Oct 2011 17:08:23 +0000 (19:08 +0200)]
Issue #10653: Fix time.strftime() on Windows, check for invalid format strings

13 years agoFix closes issue 1673007 urllib.request to support HEAD requests with a new method...
Senthil Kumaran [Sun, 16 Oct 2011 15:54:44 +0000 (23:54 +0800)]
Fix closes issue 1673007 urllib.request to support HEAD requests with a new method arg.

13 years agoMerge
Raymond Hettinger [Sun, 16 Oct 2011 07:00:51 +0000 (00:00 -0700)]
Merge

13 years agoIssue 13177: Make tracebacks more readable by avoiding chained exceptions in the...
Raymond Hettinger [Sun, 16 Oct 2011 06:50:42 +0000 (23:50 -0700)]
Issue 13177: Make tracebacks more readable by avoiding chained exceptions in the lru_cache.

13 years agoFix build under Windows
Antoine Pitrou [Sat, 15 Oct 2011 14:38:20 +0000 (16:38 +0200)]
Fix build under Windows

13 years agoremove some duplication
Benjamin Peterson [Sat, 15 Oct 2011 13:25:28 +0000 (09:25 -0400)]
remove some duplication

13 years agoMerge 3.2
Éric Araujo [Fri, 14 Oct 2011 15:38:10 +0000 (17:38 +0200)]
Merge 3.2

13 years agoUpdate dead references from py.org/dev/faq to the devguide (#13176)
Éric Araujo [Fri, 14 Oct 2011 15:37:45 +0000 (17:37 +0200)]
Update dead references from py.org/dev/faq to the devguide (#13176)

13 years agoCleanup in packaging: super considered super
Éric Araujo [Fri, 14 Oct 2011 15:04:39 +0000 (17:04 +0200)]
Cleanup in packaging: super considered super

13 years agoFix writing of the RESOURCES file by packaging (#12386)
Éric Araujo [Fri, 14 Oct 2011 14:58:23 +0000 (16:58 +0200)]
Fix writing of the RESOURCES file by packaging (#12386)

13 years agoMerge 3.2
Éric Araujo [Fri, 14 Oct 2011 14:56:17 +0000 (16:56 +0200)]
Merge 3.2

13 years agoBranch merge
Éric Araujo [Fri, 14 Oct 2011 14:56:02 +0000 (16:56 +0200)]
Branch merge

13 years agoBranch merge
Éric Araujo [Fri, 14 Oct 2011 14:50:09 +0000 (16:50 +0200)]
Branch merge

13 years agoPort SetAttrString/HasAttrString to SetAttrId/GetAttrId.
Martin v. Löwis [Fri, 14 Oct 2011 13:16:45 +0000 (15:16 +0200)]
Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.

13 years agoIssue #13158: Fix decoding and encoding of base-256 number fields in tarfile.
Lars Gustäbel [Fri, 14 Oct 2011 10:46:40 +0000 (12:46 +0200)]
Issue #13158: Fix decoding and encoding of base-256 number fields in tarfile.

The nti() function that converts a number field from a tar header to a number
failed to decode GNU tar specific base-256 fields. I also added support for
decoding and encoding negative base-256 number fields.

13 years agoRename _Py_identifier to _Py_IDENTIFIER.
Martin v. Löwis [Fri, 14 Oct 2011 08:20:37 +0000 (10:20 +0200)]
Rename _Py_identifier to _Py_IDENTIFIER.

13 years agoMerge with 3.2: Issue #13158: Fix decoding and encoding of base-256 number fields...
Lars Gustäbel [Fri, 14 Oct 2011 10:53:10 +0000 (12:53 +0200)]
Merge with 3.2: Issue #13158: Fix decoding and encoding of base-256 number fields in tarfile.

The nti() function that converts a number field from a tar header to a number
failed to decode GNU tar specific base-256 fields. I also added support for
decoding and encoding negative base-256 number fields.

13 years ago(Merge 3.2) Issue #13025: mimetypes is now reading MIME types using the UTF-8
Victor Stinner [Fri, 14 Oct 2011 01:05:10 +0000 (03:05 +0200)]
(Merge 3.2) Issue #13025: mimetypes is now reading MIME types using the UTF-8
encoding, instead of the locale encoding.

13 years agoIssue #13025: mimetypes is now reading MIME types using the UTF-8 encoding,
Victor Stinner [Fri, 14 Oct 2011 01:03:35 +0000 (03:03 +0200)]
Issue #13025: mimetypes is now reading MIME types using the UTF-8 encoding,
instead of the locale encoding.

13 years ago(Merge 3.2) Issue #10653: On Windows, use strftime() instead of wcsftime()
Victor Stinner [Fri, 14 Oct 2011 00:39:06 +0000 (02:39 +0200)]
(Merge 3.2) Issue #10653: On Windows, use strftime() instead of wcsftime()
because wcsftime() doesn't format time zone correctly.

13 years agoIssue #10653: On Windows, use strftime() instead of wcsftime() because
Victor Stinner [Fri, 14 Oct 2011 00:36:13 +0000 (02:36 +0200)]
Issue #10653: On Windows, use strftime() instead of wcsftime() because
wcsftime() doesn't format time zone correctly.

13 years agoIssue #13088: Add shared Py_hexdigits constant to format a number into base 16
Victor Stinner [Fri, 14 Oct 2011 00:13:11 +0000 (02:13 +0200)]
Issue #13088: Add shared Py_hexdigits constant to format a number into base 16

13 years agoWhat's new in Python 3.3: document new functions of the os module
Victor Stinner [Thu, 13 Oct 2011 22:08:29 +0000 (00:08 +0200)]
What's new in Python 3.3: document new functions of the os module

13 years agoFix typo in the os doc: lremoveattr => lremovexattr
Victor Stinner [Thu, 13 Oct 2011 22:07:53 +0000 (00:07 +0200)]
Fix typo in the os doc: lremoveattr => lremovexattr

13 years agoconvertsimple(): "str without bytes" => "str without characters"
Victor Stinner [Thu, 13 Oct 2011 21:25:03 +0000 (23:25 +0200)]
convertsimple(): "str without bytes" => "str without characters"

13 years agodictviews_or() uses _Py_identifier
Victor Stinner [Thu, 13 Oct 2011 20:51:17 +0000 (22:51 +0200)]
dictviews_or() uses _Py_identifier

13 years agoUse GetAttrId directly. Proposed by Amaury.
Martin v. Löwis [Thu, 13 Oct 2011 18:03:57 +0000 (20:03 +0200)]
Use GetAttrId directly. Proposed by Amaury.

13 years agoReuse the stringlib in findchar(), and make its signature more convenient
Antoine Pitrou [Thu, 13 Oct 2011 16:55:09 +0000 (18:55 +0200)]
Reuse the stringlib in findchar(), and make its signature more convenient

13 years agoAdd a comment explaining this heuristic.
Antoine Pitrou [Thu, 13 Oct 2011 16:07:37 +0000 (18:07 +0200)]
Add a comment explaining this heuristic.

13 years agoSimplify heuristic for when to use memchr
Antoine Pitrou [Thu, 13 Oct 2011 15:58:11 +0000 (17:58 +0200)]
Simplify heuristic for when to use memchr

13 years agoMerge #13159: Replace FileIO's quadratic-time buffer growth algorithm with a linear...
Nadeem Vawda [Thu, 13 Oct 2011 11:38:14 +0000 (13:38 +0200)]
Merge #13159: Replace FileIO's quadratic-time buffer growth algorithm with a linear-time one.

Also fix the bz2 module, which suffered from the same problem.

13 years agoIssue #13159: Replace FileIO's quadratic-time buffer growth algorithm with a linear...
Nadeem Vawda [Thu, 13 Oct 2011 11:34:16 +0000 (13:34 +0200)]
Issue #13159: Replace FileIO's quadratic-time buffer growth algorithm with a linear-time one.

Also fix the bz2 module, whose classes used the same algorithm.

13 years agoOptimize unicode_subscript() for step != 1 and ascii strings
Victor Stinner [Wed, 12 Oct 2011 23:17:06 +0000 (01:17 +0200)]
Optimize unicode_subscript() for step != 1 and ascii strings

13 years agoDon't use PyUnicode_MAX_CHAR_VALUE() macro in Py_MAX()
Victor Stinner [Wed, 12 Oct 2011 23:12:34 +0000 (01:12 +0200)]
Don't use PyUnicode_MAX_CHAR_VALUE() macro in Py_MAX()

13 years agoSimplify PyUnicode_MAX_CHAR_VALUE
Victor Stinner [Wed, 12 Oct 2011 23:12:01 +0000 (01:12 +0200)]
Simplify PyUnicode_MAX_CHAR_VALUE

Use PyUnicode_IS_ASCII instead of PyUnicode_IS_COMPACT_ASCII, so the following
test can be removed:

   PyUnicode_DATA(op) == (((PyCompactUnicodeObject *)(op))->utf8)

13 years agoOptimize findchar() for PyUnicode_1BYTE_KIND: use memchr and memrchr
Victor Stinner [Wed, 12 Oct 2011 22:18:12 +0000 (00:18 +0200)]
Optimize findchar() for PyUnicode_1BYTE_KIND: use memchr and memrchr

13 years agoIssue #13155: Optimize finding the optimal character width of an unicode string
Antoine Pitrou [Wed, 12 Oct 2011 22:02:27 +0000 (00:02 +0200)]
Issue #13155: Optimize finding the optimal character width of an unicode string

13 years agoUnicode replace() avoids calling unicode_adjust_maxchar() when it's useless
Victor Stinner [Wed, 12 Oct 2011 21:46:10 +0000 (23:46 +0200)]
Unicode replace() avoids calling unicode_adjust_maxchar() when it's useless

Add also a special case if the result is an empty string.

13 years agoIssue #13157: Fix building Python outside its source tree
Victor Stinner [Wed, 12 Oct 2011 20:09:40 +0000 (22:09 +0200)]
Issue #13157: Fix building Python outside its source tree

13 years agoIssue #12367: Add a test on error attribute of select.error
Victor Stinner [Wed, 12 Oct 2011 19:01:46 +0000 (21:01 +0200)]
Issue #12367: Add a test on error attribute of select.error

Thanks to the PEP 3151, select.error (which is just an alias to OSError) has
now an error attribute.

13 years agoWhat's New in Python 3.3: mention the PEP 3151
Victor Stinner [Wed, 12 Oct 2011 18:35:02 +0000 (20:35 +0200)]
What's New in Python 3.3: mention the PEP 3151

13 years agoReplace mentions of IOError
Antoine Pitrou [Wed, 12 Oct 2011 18:10:51 +0000 (20:10 +0200)]
Replace mentions of IOError

13 years agoInstantiate the OS-related exception as soon as we raise it, so that
Antoine Pitrou [Wed, 12 Oct 2011 17:39:57 +0000 (19:39 +0200)]
Instantiate the OS-related exception as soon as we raise it, so that
"except" works properly.

13 years agoThis shameful limitation of the fileinput module is not relevant anymore.
Antoine Pitrou [Wed, 12 Oct 2011 17:11:12 +0000 (19:11 +0200)]
This shameful limitation of the fileinput module is not relevant anymore.

13 years agoFix some mentions of IOError
Antoine Pitrou [Wed, 12 Oct 2011 17:10:10 +0000 (19:10 +0200)]
Fix some mentions of IOError