]> granicus.if.org Git - python/log
python
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 agoMinor doc addition for clarity
Éric Araujo [Fri, 27 May 2011 02:42:47 +0000 (04:42 +0200)]
Minor doc addition for clarity

13 years agoAdd missing reST target to one heading in the tutorial
Éric Araujo [Fri, 29 Jul 2011 09:35:27 +0000 (11:35 +0200)]
Add missing reST target to one heading in the tutorial

13 years agoImprove glossary entry for ABCs.
Éric Araujo [Fri, 29 Jul 2011 09:34:17 +0000 (11:34 +0200)]
Improve glossary entry for ABCs.

- Rename reST target name for collections ABCs to avoid collisions
- Link to glossary entry from numbers module doc (other modules already do it)

13 years agoMerge #12417 followup, also removing an extra docstring
Éric Araujo [Thu, 28 Jul 2011 20:32:04 +0000 (22:32 +0200)]
Merge #12417 followup, also removing an extra docstring

13 years agoRemove mentions of previous license in profile module (#12417 followup)
Éric Araujo [Thu, 28 Jul 2011 20:27:28 +0000 (22:27 +0200)]
Remove mentions of previous license in profile module (#12417 followup)

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 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.

13 years agoMove sys.subversion at the right place in alphabetical order,
Antoine Pitrou [Sat, 9 Jul 2011 14:06:19 +0000 (16:06 +0200)]
Move sys.subversion at the right place in alphabetical order,
and add a note concerning its status.

13 years agoIssue #12326: document the recommended idiom for checking sys.platform on Unix systems.
Antoine Pitrou [Sat, 9 Jul 2011 13:48:29 +0000 (15:48 +0200)]
Issue #12326: document the recommended idiom for checking sys.platform on Unix systems.
Also, point to the various alternatives.

13 years agoSkip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
Antoine Pitrou [Sat, 9 Jul 2011 00:34:05 +0000 (02:34 +0200)]
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution.

Should fix a buildbot failure.

13 years agoAvoid failing in test_robotparser when mueblesmoraleda.com is flaky and
Antoine Pitrou [Fri, 8 Jul 2011 17:40:15 +0000 (19:40 +0200)]
Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
Web site.

13 years agoAvoid failing in test_urllibnet.test_bad_address when some overzealous
Antoine Pitrou [Fri, 8 Jul 2011 17:14:19 +0000 (19:14 +0200)]
Avoid failing in test_urllibnet.test_bad_address when some overzealous
DNS service (e.g. OpenDNS) resolves a non-existent domain name.  The test
is now skipped instead.

13 years agoIssue #12423: Fix os.abort() documentation
Victor Stinner [Fri, 8 Jul 2011 00:14:55 +0000 (02:14 +0200)]
Issue #12423: Fix os.abort() documentation

The Python signal handler for SIGABRT is not called on os.abort() (only if the
signal is raised manually or sent by another process). Patch by Kamil Kisiel.

13 years agoClose #12501: Adjust callable() warning: callable() is only not supported in
Victor Stinner [Fri, 8 Jul 2011 00:07:45 +0000 (02:07 +0200)]
Close #12501: Adjust callable() warning: callable() is only not supported in
Python 3.1. callable() is again supported in Python 3.2.

13 years agoIssue #8716: Instead of relying on Aqua Tk exceptions to detect lack of
Ned Deily [Wed, 6 Jul 2011 02:08:38 +0000 (19:08 -0700)]
Issue #8716: Instead of relying on Aqua Tk exceptions to detect lack of
OS X window manager connection in tk tests, use OS X Application Services
API calls instead.

13 years agoIssue #8716: Back out temporary changeset 18ce15f841cf
Ned Deily [Tue, 5 Jul 2011 22:09:32 +0000 (15:09 -0700)]
Issue #8716: Back out temporary changeset 18ce15f841cf

13 years agoIssue #8716: Add temporary code for 2.7 to help diagnose buildbot failure.
Ned Deily [Tue, 5 Jul 2011 21:16:03 +0000 (14:16 -0700)]
Issue #8716: Add temporary code for 2.7 to help diagnose buildbot failure.

13 years agoIssue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing
Victor Stinner [Tue, 5 Jul 2011 12:50:35 +0000 (14:50 +0200)]
Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing

13 years agoIssue #12493: subprocess: communicate() handles EINTR
Victor Stinner [Tue, 5 Jul 2011 12:08:01 +0000 (14:08 +0200)]
Issue #12493: subprocess: communicate() handles EINTR

subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.

13 years agotest_io: make quiet the DeprecationWarning('classic int division')
Victor Stinner [Tue, 5 Jul 2011 11:29:26 +0000 (13:29 +0200)]
test_io: make quiet the DeprecationWarning('classic int division')

13 years agotest_array: make quiet the DeprecationWarning
Victor Stinner [Tue, 5 Jul 2011 11:14:17 +0000 (13:14 +0200)]
test_array: make quiet the DeprecationWarning

13 years agoIssue #9611, #9015: FileIO.read(), FileIO.readinto(), FileIO.write() and
Victor Stinner [Tue, 5 Jul 2011 09:28:19 +0000 (11:28 +0200)]
Issue #9611, #9015: FileIO.read(), FileIO.readinto(), FileIO.write() and
os.write() clamp the length to INT_MAX on Windows.

13 years agostart out this branch always with filename NULL
Benjamin Peterson [Tue, 5 Jul 2011 03:27:16 +0000 (22:27 -0500)]
start out this branch always with filename NULL

13 years agoFix closes issue10403 - Let's not use members anymore.
Senthil Kumaran [Mon, 4 Jul 2011 19:50:02 +0000 (12:50 -0700)]
Fix closes issue10403 - Let's not use members anymore.

13 years agoIssue #12429: Skip interrupted write tests on FreeBSD <= 7
Victor Stinner [Mon, 4 Jul 2011 09:44:46 +0000 (11:44 +0200)]
Issue #12429: Skip interrupted write tests on FreeBSD <= 7

On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.

13 years agoIssue #8716: Fix errors in the non-OS X path of the 27 backport.
Ned Deily [Mon, 4 Jul 2011 06:16:49 +0000 (23:16 -0700)]
Issue #8716: Fix errors in the non-OS X path of the 27 backport.

13 years agoIssue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
Ned Deily [Mon, 4 Jul 2011 04:52:35 +0000 (21:52 -0700)]
Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
test_tk or test_ttk_guionly under a username that is not currently logged
in to the console windowserver (as may be the case under buildbot or ssh).

13 years agoIssue #10734: Temporarily disable test_ttk test_heading_callback on 2.7 as well.
Ned Deily [Mon, 4 Jul 2011 04:37:03 +0000 (21:37 -0700)]
Issue #10734: Temporarily disable test_ttk test_heading_callback on 2.7 as well.

13 years agoplug refleak
Benjamin Peterson [Mon, 4 Jul 2011 03:18:34 +0000 (22:18 -0500)]
plug refleak

13 years agoIssue #12467: warnings: fix a race condition if a warning is emitted at
Victor Stinner [Mon, 4 Jul 2011 01:05:37 +0000 (03:05 +0200)]
Issue #12467: warnings: fix a race condition if a warning is emitted at
shutdown, if globals()['__file__'] is None.

13 years agoFix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an...
Senthil Kumaran [Mon, 4 Jul 2011 00:38:53 +0000 (17:38 -0700)]
Fix closes issue12438  - idlelib.PyShell's showformatwarning method was passing an incorrect arg.

13 years agoreST indentation fix in sqlite3 docs. rst uses 3 space indentation.
Senthil Kumaran [Sun, 3 Jul 2011 17:12:59 +0000 (10:12 -0700)]
reST indentation fix in sqlite3 docs. rst uses 3 space indentation.

13 years agoIssue #12352: In test_free_from_gc(), restore the GC thresholds even if the GC
Charles-François Natali [Sat, 2 Jul 2011 12:08:27 +0000 (14:08 +0200)]
Issue #12352: In test_free_from_gc(), restore the GC thresholds even if the GC
wasn't enabled at first.

13 years agoIssue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed by
Charles-François Natali [Sat, 2 Jul 2011 11:56:19 +0000 (13:56 +0200)]
Issue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed by
the garbage collector while the Heap lock is held.

13 years agoReally fix issue #10898: posixmodule.c redefines FSTAT
Antoine Pitrou [Fri, 1 Jul 2011 20:56:03 +0000 (22:56 +0200)]
Really fix issue #10898: posixmodule.c redefines FSTAT

13 years agoIssue #11870: Skip test_threading.test_2_join_in_forked_process() on platforms
Victor Stinner [Fri, 1 Jul 2011 13:04:03 +0000 (15:04 +0200)]
Issue #11870: Skip test_threading.test_2_join_in_forked_process() on platforms
with known OS bugs

Share the list of platforms with known OS bugs with other tests. Patch written
by Charles-François Natali.

13 years agoFixup repr for dict_proxy objects.
Raymond Hettinger [Wed, 29 Jun 2011 23:44:36 +0000 (00:44 +0100)]
Fixup repr for dict_proxy objects.

13 years agoMerge 2.7
Ned Deily [Wed, 29 Jun 2011 03:13:03 +0000 (20:13 -0700)]
Merge 2.7

13 years agomerge 2.6
Benjamin Peterson [Wed, 29 Jun 2011 02:58:27 +0000 (21:58 -0500)]
merge 2.6

13 years agofix ws
Benjamin Peterson [Wed, 29 Jun 2011 02:57:21 +0000 (21:57 -0500)]
fix ws

13 years agoIssue #9516: Update Misc/NEWS.
Ned Deily [Wed, 29 Jun 2011 02:52:59 +0000 (19:52 -0700)]
Issue #9516: Update Misc/NEWS.

13 years agoIssue #9516: Change distutils to no longer globally attempt to check and
Ned Deily [Wed, 29 Jun 2011 02:40:39 +0000 (19:40 -0700)]
Issue #9516: Change distutils to no longer globally attempt to check and
set the MACOSX_DEPLOYMENT_TARGET env variable for the interpreter process
on OS X.  This could cause failures in non-distutils subprocesses and was
unreliable since tests or user programs could modify the interpreter
environment after distutils set it.  Instead, have distutils set the
the deployment target only in the environment of each build subprocess.

Continue to use the previous algorithm for deriving the deployment target
value:
    if MACOSX_DEPLOYMENT_TARGET is not set in the interpreter's env:
        use the interpreter build configure MACOSX_DEPLOYMENT_TARGET
    elif the MACOSX_DEPLOYMENT_TARGET env value >= configure value:
        use the env MACOSX_DEPLOYMENT_TARGET
    else: # env value less than interpreter build configure value
        raise exception
This allows building extensions that can only run on newer versions of
the OS than the version python was built for, for example with a python
built for 10.3 or later and an extension that needs to be built for 10.5.

13 years agoIssue #9516: Correct and expand OS X deployment target tests in distutils
Ned Deily [Wed, 29 Jun 2011 02:39:10 +0000 (19:39 -0700)]
Issue #9516: Correct and expand OS X deployment target tests in distutils
test_build_ext.

13 years agoMinimal changes to make byext.py script work with Python 3 syntax.
Guido van Rossum [Tue, 28 Jun 2011 17:33:38 +0000 (10:33 -0700)]
Minimal changes to make byext.py script work with Python 3 syntax.

13 years agoIssue #12141: Install a copy of template C module file so that
Ned Deily [Tue, 28 Jun 2011 07:39:19 +0000 (00:39 -0700)]
Issue #12141: Install a copy of template C module file so that
test_build_ext of test_distutils is no longer silently skipped when
run outside of a build directory.

13 years agoIssue #8746: Correct faulty configure checks so that os.chflags() and
Ned Deily [Tue, 28 Jun 2011 06:41:53 +0000 (23:41 -0700)]
Issue #8746: Correct faulty configure checks so that os.chflags() and
os.lchflags() are once again built on systems that support these
functions (*BSD and OS X).  Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED).  Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)