]> granicus.if.org Git - python/log
python
13 years agoadd svn+ssh testcase for urljoin.
Senthil Kumaran [Wed, 3 Aug 2011 14:06:05 +0000 (22:06 +0800)]
add svn+ssh testcase for urljoin.

13 years agoinclude svn+ssh as well.
Senthil Kumaran [Wed, 3 Aug 2011 10:40:18 +0000 (18:40 +0800)]
include svn+ssh as well.

13 years agoFix closes issue12683 - urljoin to work with relative join of svn scheme.
Senthil Kumaran [Wed, 3 Aug 2011 10:31:59 +0000 (18:31 +0800)]
Fix closes issue12683 - urljoin to work with relative join of svn scheme.

13 years agoFix closes issue12663 - Correcting the ArgumentParser.error description. Patch by...
Senthil Kumaran [Tue, 2 Aug 2011 23:43:52 +0000 (07:43 +0800)]
Fix closes issue12663 - Correcting the ArgumentParser.error description. Patch by Sandro Tosi.

13 years agoBranch merge
Éric Araujo [Tue, 2 Aug 2011 18:01:54 +0000 (20:01 +0200)]
Branch merge

13 years ago#12670: Fix struct code after forward declaration on ctypes doc
Sandro Tosi [Tue, 2 Aug 2011 14:16:11 +0000 (16:16 +0200)]
#12670: Fix struct code after forward declaration on ctypes doc

13 years agoFix closes Issue12183 - Explain the Symlink copy behavior in shutil.copytree. Patch...
Senthil Kumaran [Tue, 2 Aug 2011 10:50:44 +0000 (18:50 +0800)]
Fix closes Issue12183 - Explain the Symlink copy behavior in shutil.copytree. Patch by Petri Lehtinen.

13 years agoFix incorrect mtime comparison in distutils (#11933).
Éric Araujo [Tue, 2 Aug 2011 01:16:12 +0000 (03:16 +0200)]
Fix incorrect mtime comparison in distutils (#11933).

This is a regression introduced in 9211a5d7d0b4, when uses of ST_MTIME
constants were changed to uses of st_mtime attributes.  As diagnosed in
the bug report, this change is not merely stylistic: st_mtime is a
float but ST_MTIME’s resolution is rounded to the seconds, so there was
a mismatch between the values seen by file_util and dep_util which
caused an sdist to be unnecessarily created a second time on an ext4
filesystem.

This patch has been tested by John S. Gruber, who reported the bug.
As this is a simple code revert, I think it’s okay to commit without a
unit test.

13 years agoBackport 68b5f87566fb
Stefan Krah [Mon, 1 Aug 2011 23:17:48 +0000 (01:17 +0200)]
Backport 68b5f87566fb

13 years agoUse attribute access instead of index access for namedtuple.
Georg Brandl [Mon, 1 Aug 2011 20:58:53 +0000 (22:58 +0200)]
Use attribute access instead of index access for namedtuple.

13 years agoBranch merge
Éric Araujo [Mon, 1 Aug 2011 12:48:19 +0000 (14:48 +0200)]
Branch merge

13 years agoCloses #12667: Corrected documentation for SMTPHandler secure argument.
Vinay Sajip [Mon, 1 Aug 2011 10:28:02 +0000 (11:28 +0100)]
Closes #12667: Corrected documentation for SMTPHandler secure argument.

13 years agoFix typo reported by Sandro Tosi.
Ezio Melotti [Sun, 31 Jul 2011 19:48:45 +0000 (22:48 +0300)]
Fix typo reported by Sandro Tosi.

13 years agoStop trying to write into the stdlib during lib2to3 tests (#12331).
Éric Araujo [Sun, 31 Jul 2011 15:59:28 +0000 (17:59 +0200)]
Stop trying to write into the stdlib during lib2to3 tests (#12331).

This prevents tests from failing when run from a Python installed in a
read-only directory.

13 years agorunning tests enables us to discover that they actually work
Benjamin Peterson [Sun, 31 Jul 2011 04:39:39 +0000 (23:39 -0500)]
running tests enables us to discover that they actually work

13 years agomerge heads.
Senthil Kumaran [Sun, 31 Jul 2011 03:50:15 +0000 (11:50 +0800)]
merge heads.

13 years agousing test_support.transient_internet helper method in the urllib2net test.
Senthil Kumaran [Sun, 31 Jul 2011 03:48:54 +0000 (11:48 +0800)]
using test_support.transient_internet helper method in the urllib2net test.

13 years agomerge heads
Benjamin Peterson [Sun, 31 Jul 2011 03:08:18 +0000 (22:08 -0500)]
merge heads

13 years agobe precise
Benjamin Peterson [Sun, 31 Jul 2011 03:08:09 +0000 (22:08 -0500)]
be precise

13 years agoFix regression with distutils MANIFEST handing (#11104, #8688).
Éric Araujo [Sun, 31 Jul 2011 00:04:00 +0000 (02:04 +0200)]
Fix regression with distutils MANIFEST handing (#11104, #8688).

The changed behavior of sdist in 2.7 broke packaging for projects that
wanted to use a manually-maintained MANIFEST file (instead of having a
MANIFEST.in template and letting distutils generate the MANIFEST).

The fixes that were committed for #8688 (d29399100973 by Tarek and
f7639dcdffc3 by me) did not fix all issues exposed in the bug report,
and also added one problem: the MANIFEST file format gained comments,
but the read_manifest method was not updated to handle (i.e. ignore)
them.  This changeset should fix everything; the tests have been
expanded and I successfully tested with Mercurial, which suffered from
this regression.

I have grouped the versionchanged directives for these bugs in one place
and added micro version numbers to help users know the quirks of the
exact version they’re using.  I also removed a stanza in the docs that
was forgotten in Tarek’s first changeset.

Initial report, thorough diagnosis and patch by John Dennis, further
work on the patch by Stephen Thorne, and a few edits and additions by
me.

13 years agoLet “make patchcheck” work for out-of-dir builds (#9860)
Éric Araujo [Sat, 30 Jul 2011 19:34:04 +0000 (21:34 +0200)]
Let “make patchcheck” work for out-of-dir builds (#9860)

13 years ago#12531: Fix spaces.
Ezio Melotti [Sat, 30 Jul 2011 18:31:22 +0000 (21:31 +0300)]
#12531: Fix spaces.

13 years agonote Ellipsis syntax
Benjamin Peterson [Sat, 30 Jul 2011 14:59:12 +0000 (09:59 -0500)]
note Ellipsis syntax

13 years agoadd space
Benjamin Peterson [Sat, 30 Jul 2011 14:58:59 +0000 (09:58 -0500)]
add space

13 years agodocument NotImplemented
Benjamin Peterson [Sat, 30 Jul 2011 14:57:24 +0000 (09:57 -0500)]
document NotImplemented

13 years agoIssue #11699: fix documentation of OptionParser.get_option_group. Patch by Petri...
Eli Bendersky [Sat, 30 Jul 2011 08:12:45 +0000 (11:12 +0300)]
Issue #11699: fix documentation of OptionParser.get_option_group. Patch by Petri Lehtinen

13 years agoDocument that atexit execution order is undefined (#9788)
Éric Araujo [Fri, 29 Jul 2011 16:04:24 +0000 (18:04 +0200)]
Document that atexit execution order is undefined (#9788)

13 years agoAdd a link target for argparse.Namespace (#8982)
Éric Araujo [Fri, 29 Jul 2011 15:59:17 +0000 (17:59 +0200)]
Add a link target for argparse.Namespace (#8982)

13 years agoMake “pydoc somebuiltin.somemethod” work (#8887)
Éric Araujo [Fri, 29 Jul 2011 15:34:35 +0000 (17:34 +0200)]
Make “pydoc somebuiltin.somemethod” work (#8887)

13 years agoBackout duplicate changeset ed34ca4e639c
Éric Araujo [Fri, 29 Jul 2011 14:28:22 +0000 (16:28 +0200)]
Backout duplicate changeset ed34ca4e639c

13 years agoAdd missing reST target to one heading in the tutorial
Éric Araujo [Sat, 11 Jun 2011 08:34:19 +0000 (10:34 +0200)]
Add missing reST target to one heading in the tutorial

13 years agoBranch merge
Éric Araujo [Fri, 29 Jul 2011 12:23:13 +0000 (14:23 +0200)]
Branch merge

13 years agoIssue #12531: add index entries to documentation of * and ** in function calls
Eli Bendersky [Fri, 29 Jul 2011 11:45:08 +0000 (14:45 +0300)]
Issue #12531: add index entries to documentation of * and ** in function calls

13 years agoIssue 12514: Use try/finally to assure that timeit restores GC when done.
Raymond Hettinger [Fri, 29 Jul 2011 06:56:38 +0000 (23:56 -0700)]
Issue 12514: Use try/finally to assure that timeit restores GC when done.

13 years agoTurn raw URI into real link
Éric Araujo [Thu, 28 Jul 2011 20:50:18 +0000 (22:50 +0200)]
Turn raw URI into real link

13 years agoUpdate documentation for shutil.move (#12043) and fix a few typos.
Éric Araujo [Fri, 29 Jul 2011 10:10:53 +0000 (12:10 +0200)]
Update documentation for shutil.move (#12043) and fix a few typos.

Adding Sandro Tosi to Doc/ACKS for this patch and all his work on the
docs mailing list and on the bug tracker.

13 years agoStop ignoring Mercurial merge conflits files (#12255).
Éric Araujo [Fri, 29 Jul 2011 10:07:31 +0000 (12:07 +0200)]
Stop ignoring Mercurial merge conflits files (#12255).

R. David Murray and I think that it’s more useful to have these files
show up in the output of “hg status”, to let the user know that some
merged file have to be checked before commit.  If you want to ignore
these files in your clones, it’s possible to do so from another ignore
file; see the bug report for directions.

13 years agoMake VCSes ignore the compiled shared library file (#12255)
Éric Araujo [Fri, 29 Jul 2011 10:07:04 +0000 (12:07 +0200)]
Make VCSes ignore the compiled shared library file (#12255)

13 years agoFix missing or shebangs and executable bits for scripts (#10318)
Éric Araujo [Fri, 29 Jul 2011 10:06:13 +0000 (12:06 +0200)]
Fix missing or shebangs and executable bits for scripts (#10318)

13 years agoFix closes Issue11439 - Handle the SVN Keywords in 2.7 by replacing them with a high...
Senthil Kumaran [Thu, 28 Jul 2011 14:30:27 +0000 (22:30 +0800)]
Fix closes Issue11439 - Handle the SVN Keywords in 2.7 by replacing them with a high number so that code relying on them does not break.

13 years agoFixes #10639: reindent.py should not convert newlines
Jason R. Coombs [Wed, 27 Jul 2011 18:05:37 +0000 (14:05 -0400)]
Fixes #10639: reindent.py should not convert newlines
Backport of changeset 070dc6e359fb, reindent.py now will use the newline detected in the original file and will report an error if mixed newlines are encountered.

13 years ago- Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.
Charles-François Natali [Wed, 27 Jul 2011 17:36:40 +0000 (19:36 +0200)]
- Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.

13 years agoIssue #12607: In subprocess, fix issue where if stdin, stdout or stderr is
Ross Lagerwall [Wed, 27 Jul 2011 16:54:53 +0000 (18:54 +0200)]
Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr is
given as a low fd, it gets overwritten.

13 years agomerge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind methods...
Senthil Kumaran [Wed, 27 Jul 2011 15:36:51 +0000 (23:36 +0800)]
merge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry/unicodeobject.

13 years ago#12642: fix args names in open() doc.
Ezio Melotti [Wed, 27 Jul 2011 05:48:52 +0000 (08:48 +0300)]
#12642: fix args names in open() doc.

13 years agomerge from 3.2 - fix urlopen behavior on sites which do not send (or obsfuscates...
Senthil Kumaran [Wed, 27 Jul 2011 01:37:17 +0000 (09:37 +0800)]
merge from 3.2 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header.

13 years agoIssue #12590: IDLE editor window now always displays the first line
Ned Deily [Wed, 27 Jul 2011 01:16:08 +0000 (18:16 -0700)]
Issue #12590: IDLE editor window now always displays the first line
when opening a long file.  With Tk 8.5, the first line was hidden.

13 years agoIssue #8746: Use tempfile module to get tempdir and randomize the
Ned Deily [Tue, 26 Jul 2011 20:52:14 +0000 (13:52 -0700)]
Issue #8746: Use tempfile module to get tempdir and randomize the
link file name.

13 years agoMake indentation comply with our style guide and the rest of the file
Éric Araujo [Tue, 26 Jul 2011 14:54:24 +0000 (16:54 +0200)]
Make indentation comply with our style guide and the rest of the file

13 years agoFix “anyways” (following R. David Murray in 5c7520e02d5a)
Éric Araujo [Fri, 29 Jul 2011 09:57:50 +0000 (11:57 +0200)]
Fix “anyways” (following R. David Murray in 5c7520e02d5a)

13 years agoAdd links from builtins module docs to built-in functions and constants docs
Éric Araujo [Fri, 29 Jul 2011 09:53:57 +0000 (11:53 +0200)]
Add links from builtins module docs to built-in functions and constants docs

13 years agoFix typo in 97a75fccd7c8
Éric Araujo [Fri, 29 Jul 2011 09:43:47 +0000 (11:43 +0200)]
Fix typo in 97a75fccd7c8

13 years agoIssue #12102: Document that buffered files must be flushed before being used
Ross Lagerwall [Mon, 25 Jul 2011 05:23:58 +0000 (07:23 +0200)]
Issue #12102: Document that buffered files must be flushed before being used
with mmap. Patch by Steffen Daode Nurpmeso.

13 years agoIssue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling.
Charles-François Natali [Sun, 24 Jul 2011 20:33:35 +0000 (22:33 +0200)]
Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling.

13 years agoIssue #1813: Fix codec lookup and setting/getting locales under Turkish locales.
Antoine Pitrou [Sun, 24 Jul 2011 00:51:01 +0000 (02:51 +0200)]
Issue #1813: Fix codec lookup and setting/getting locales under Turkish locales.

13 years agoFix typo in dbf1e1a27427 that was causing some buildbots to fail.
Nadeem Vawda [Sat, 23 Jul 2011 15:04:42 +0000 (17:04 +0200)]
Fix typo in dbf1e1a27427 that was causing some buildbots to fail.

13 years agoFix typo in NEWS entry for dbf1e1a27427.
Nadeem Vawda [Sat, 23 Jul 2011 14:13:01 +0000 (16:13 +0200)]
Fix typo in NEWS entry for dbf1e1a27427.

13 years agoIssue #10883: Fix socket leaks in urllib.request.
Nadeem Vawda [Sat, 23 Jul 2011 13:51:16 +0000 (15:51 +0200)]
Issue #10883: Fix socket leaks in urllib.request.

* ftpwrapper now uses reference counting to ensure that the underlying socket
  is closed when the ftpwrapper object is no longer in use
* ftplib.FTP.ntransfercmd() now closes the socket if an error occurs

Initial patch by Victor Stinner.

13 years agomerge from 3.2 - Fix closes issue12581 - Increase the urllib.parse test coverage...
Senthil Kumaran [Sat, 23 Jul 2011 10:41:43 +0000 (18:41 +0800)]
merge from 3.2 - Fix closes issue12581 - Increase the urllib.parse test coverage (cases applicable to 2.7). Patch by Petter Haggholm.

13 years agoFix function name: open -> urlopen.
Georg Brandl [Sat, 23 Jul 2011 06:06:33 +0000 (08:06 +0200)]
Fix function name: open -> urlopen.

13 years agomerge heads
Benjamin Peterson [Fri, 22 Jul 2011 22:21:56 +0000 (17:21 -0500)]
merge heads

13 years agoallow None identifiers
Benjamin Peterson [Fri, 22 Jul 2011 22:20:58 +0000 (17:20 -0500)]
allow None identifiers

13 years agoIssue #12592: Make Python build on OpenBSD 5 (and future major releases).
Charles-François Natali [Fri, 22 Jul 2011 21:43:42 +0000 (23:43 +0200)]
Issue #12592: Make Python build on OpenBSD 5 (and future major releases).

13 years agonews note
Benjamin Peterson [Fri, 22 Jul 2011 15:41:44 +0000 (10:41 -0500)]
news note

13 years agoverify the types of AST strings and identifiers (closes #12609 and #12610)
Benjamin Peterson [Fri, 22 Jul 2011 15:39:50 +0000 (10:39 -0500)]
verify the types of AST strings and identifiers (closes #12609 and #12610)

13 years agohardcode the old svn __version__
Benjamin Peterson [Fri, 22 Jul 2011 15:39:12 +0000 (10:39 -0500)]
hardcode the old svn __version__

13 years agoIssue #12434: make StringIO.write error message consistent with Python 2.7 nomenclature
Eli Bendersky [Fri, 22 Jul 2011 11:39:55 +0000 (14:39 +0300)]
Issue #12434: make StringIO.write error message consistent with Python 2.7 nomenclature

13 years agoIssue #12372: POSIX semaphores are broken on AIX: don't use them.
Charles-François Natali [Thu, 21 Jul 2011 17:41:04 +0000 (19:41 +0200)]
Issue #12372: POSIX semaphores are broken on AIX: don't use them.

13 years agoFix markup.
Ezio Melotti [Thu, 21 Jul 2011 08:38:13 +0000 (11:38 +0300)]
Fix markup.

13 years ago#12601: fix typo.
Ezio Melotti [Thu, 21 Jul 2011 08:18:18 +0000 (11:18 +0300)]
#12601: fix typo.

13 years agomerge from 3.2 - Fix closes issue12524 - update http.client POST example with a worki...
Senthil Kumaran [Wed, 20 Jul 2011 14:02:27 +0000 (22:02 +0800)]
merge from 3.2 - Fix closes issue12524 - update http.client POST example with a working example. - Patch contributed by Bharadwaj

13 years agoUpstream merge.
Barry Warsaw [Tue, 19 Jul 2011 23:28:16 +0000 (19:28 -0400)]
Upstream merge.

13 years agoIssue #12571: Add a plat-linux3 directory mirroring the plat-linux2 directory,
Antoine Pitrou [Tue, 19 Jul 2011 22:26:23 +0000 (00:26 +0200)]
Issue #12571: Add a plat-linux3 directory mirroring the plat-linux2 directory,
so that "import DLFCN" and other similar imports work on Linux 3.0.

13 years ago- Issue #10309: Define _GNU_SOURCE so that mremap() gets the proper
Barry Warsaw [Tue, 19 Jul 2011 21:06:30 +0000 (17:06 -0400)]
- Issue #10309: Define _GNU_SOURCE so that mremap() gets the proper
  signature.  Without this, architectures where sizeof void* != sizeof int are
  broken.  Patch given by Hallvard B Furuseth.

13 years agoImprove docstring for divmod()
Raymond Hettinger [Tue, 19 Jul 2011 18:59:20 +0000 (11:59 -0700)]
Improve docstring for divmod()

13 years agoA number of small fixups for the sorting howto guide.
Raymond Hettinger [Tue, 19 Jul 2011 08:35:35 +0000 (01:35 -0700)]
A number of small fixups for the sorting howto guide.

13 years ago#7484: no more <> around addresses in VRFY or EXPN
R David Murray [Tue, 19 Jul 2011 01:34:04 +0000 (21:34 -0400)]
#7484: no more <> around addresses in VRFY or EXPN

The RFC doesn't say that they are allowed; apparently many mailers accept
them, but not postfix.  Contributions to this patch were made by Felipe Cruz
and Catalin Iacob.

13 years agomerge from 3.2 - Fix closes issue12577 - clarify shutil.move documentation. Patch...
Senthil Kumaran [Tue, 19 Jul 2011 00:05:44 +0000 (08:05 +0800)]
merge from 3.2 - Fix closes issue12577 - clarify shutil.move documentation. Patch suggestion by Catalin Iacob

13 years agoIssue #6476: Document that os.spawnle and os.spawnve are not thread-safe under Windows.
Antoine Pitrou [Mon, 18 Jul 2011 23:26:58 +0000 (01:26 +0200)]
Issue #6476: Document that os.spawnle and os.spawnve are not thread-safe under Windows.

13 years agoBetter English.
R David Murray [Mon, 18 Jul 2011 16:39:54 +0000 (12:39 -0400)]
Better English.

13 years agoAdd missing "a".
Georg Brandl [Mon, 18 Jul 2011 08:39:55 +0000 (10:39 +0200)]
Add missing "a".

13 years agoBackport 2eb8789e30e7.
Alex Gaynor [Sun, 17 Jul 2011 23:44:31 +0000 (16:44 -0700)]
Backport 2eb8789e30e7.

13 years agofix whitespace in rst.
Senthil Kumaran [Sun, 17 Jul 2011 23:18:40 +0000 (07:18 +0800)]
fix whitespace in rst.

13 years agomerge from 3.2 - Fix closes Issue12478 - HTTPErrorProcess 's methods are http_respons...
Senthil Kumaran [Sun, 17 Jul 2011 23:16:02 +0000 (07:16 +0800)]
merge from 3.2 - Fix closes Issue12478 - HTTPErrorProcess 's methods are http_response and https_response.

13 years agomerge from 3.2 - Fix closes Issue12479 - Add HTTPErrorProcessor class definition...
Senthil Kumaran [Sun, 17 Jul 2011 22:44:11 +0000 (06:44 +0800)]
merge from 3.2 - Fix closes Issue12479 - Add HTTPErrorProcessor class definition - Patch by Sandro Tosi

13 years agomerge from 3.2 - Issue10403 - datetime module documentation changes based on review.
Senthil Kumaran [Sun, 17 Jul 2011 11:10:10 +0000 (19:10 +0800)]
merge from 3.2 - Issue10403  - datetime module documentation changes based on review.

13 years agomerge from 3.2.
Senthil Kumaran [Sun, 17 Jul 2011 09:31:51 +0000 (17:31 +0800)]
merge from 3.2.

13 years agoIssue #12574: correct capitalization of the Queue module. Patch by Rafe Kettler
Eli Bendersky [Sun, 17 Jul 2011 02:54:06 +0000 (05:54 +0300)]
Issue #12574: correct capitalization of the Queue module. Patch by Rafe Kettler

13 years agoIssue #11603: Fix a crash when __str__ is rebound as __repr__.
Antoine Pitrou [Fri, 15 Jul 2011 19:22:50 +0000 (21:22 +0200)]
Issue #11603: Fix a crash when __str__ is rebound as __repr__.
Patch by Andreas Stührk.

13 years agoport 8d05f697acd4 (#11627)
Benjamin Peterson [Fri, 15 Jul 2011 19:15:40 +0000 (14:15 -0500)]
port 8d05f697acd4 (#11627)

13 years agoIssue #12502: asyncore: fix polling loop with AF_UNIX sockets.
Charles-François Natali [Thu, 14 Jul 2011 17:49:02 +0000 (19:49 +0200)]
Issue #12502: asyncore: fix polling loop with AF_UNIX sockets.

13 years agoIssue #12250: test_socketserver uses a timeout of 60 seconds instead of 20
Victor Stinner [Thu, 14 Jul 2011 12:53:24 +0000 (14:53 +0200)]
Issue #12250: test_socketserver uses a timeout of 60 seconds instead of 20

test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because
of the arbitrary timeout.

13 years agoIt is really a suffix :-)
Raymond Hettinger [Thu, 14 Jul 2011 06:41:43 +0000 (14:41 +0800)]
It is really a suffix :-)

13 years agocarefully cleanup pointer cache after creating struct pointers
Benjamin Peterson [Thu, 14 Jul 2011 04:09:30 +0000 (23:09 -0500)]
carefully cleanup pointer cache after creating struct pointers

13 years agoIssue #12549: Correct test_platform to not fail when OS X returns 'x86_64'
Ned Deily [Wed, 13 Jul 2011 22:05:31 +0000 (15:05 -0700)]
Issue #12549: Correct test_platform to not fail when OS X returns 'x86_64'
as the processor type on some Mac systems.  Also fix NameError in fallback
_mac_ver_gestalt function.  And remove out-of-date URL in docs.

13 years agoClose #4376: ctypes now supports nested structures in a endian different than
Victor Stinner [Wed, 13 Jul 2011 19:47:31 +0000 (21:47 +0200)]
Close #4376: ctypes now supports nested structures in a endian different than
the parent structure. Patch by Vlad Riscutia.

13 years agoClarify that PyErr_NewException creates an exception *class*, not instance.
Georg Brandl [Wed, 13 Jul 2011 13:59:24 +0000 (15:59 +0200)]
Clarify that PyErr_NewException creates an exception *class*, not instance.

13 years agothis can be done without a custom dict (also fixes #12544)
Benjamin Peterson [Wed, 13 Jul 2011 00:21:42 +0000 (19:21 -0500)]
this can be done without a custom dict (also fixes #12544)

13 years agoIssue #12149: Update the method cache after a type's dictionnary gets
Antoine Pitrou [Tue, 12 Jul 2011 20:04:20 +0000 (22:04 +0200)]
Issue #12149: Update the method cache after a type's dictionnary gets
cleared by the garbage collector.  This fixes a segfault when an instance
and its type get caught in a reference cycle, and the instance's
deallocator calls one of the methods on the type (e.g. when subclassing
IOBase).

Diagnosis and patch by Davide Rizzo.

13 years agoMention logging.captureWarnings in the warnings module doc.
Antoine Pitrou [Sat, 9 Jul 2011 19:29:36 +0000 (21:29 +0200)]
Mention logging.captureWarnings in the warnings module doc.