]> granicus.if.org Git - python/log
python
13 years agoIssue #12149: Update the method cache after a type's dictionnary gets
Antoine Pitrou [Tue, 12 Jul 2011 19:57:15 +0000 (21:57 +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 agoUse infinitive, not 3rd person of present tense.
Antoine Pitrou [Sun, 10 Jul 2011 23:39:19 +0000 (01:39 +0200)]
Use infinitive, not 3rd person of present tense.

13 years agoIssue #12343: Add some notes on behaviour of non-blocking SSL sockets.
Antoine Pitrou [Sun, 10 Jul 2011 23:35:48 +0000 (01:35 +0200)]
Issue #12343: Add some notes on behaviour of non-blocking SSL sockets.

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, and informally deprecat...
Antoine Pitrou [Sat, 9 Jul 2011 14:02:19 +0000 (16:02 +0200)]
Move sys.subversion at the right place in alphabetical order, and informally deprecate it.

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

13 years agoMerge 3.2.1 release clone into main repo.
Georg Brandl [Sat, 9 Jul 2011 08:58:37 +0000 (10:58 +0200)]
Merge 3.2.1 release clone into main repo.

13 years agoPost-release steps for 3.2.1.
Georg Brandl [Sat, 9 Jul 2011 08:56:06 +0000 (10:56 +0200)]
Post-release steps for 3.2.1.

13 years agoAdded tag v3.2.1 for changeset ac1f7e5c0510
Georg Brandl [Sat, 9 Jul 2011 06:56:41 +0000 (08:56 +0200)]
Added tag v3.2.1 for changeset ac1f7e5c0510

13 years agoBump version to 3.2.1. v3.2.1
Georg Brandl [Sat, 9 Jul 2011 06:56:21 +0000 (08:56 +0200)]
Bump version to 3.2.1.

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

Should fix a buildbot failure.

13 years agoSkip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
Antoine Pitrou [Sat, 9 Jul 2011 00:31:24 +0000 (02:31 +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:43:51 +0000 (19:43 +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:19:57 +0000 (19:19 +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 agoAvoid failing in test_urllibnet.test_bad_address when some overzealous
Antoine Pitrou [Fri, 8 Jul 2011 17:19:57 +0000 (19:19 +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 #12440: When testing whether some bits in SSLContext.options can be
Antoine Pitrou [Fri, 8 Jul 2011 16:47:06 +0000 (18:47 +0200)]
Issue #12440: When testing whether some bits in SSLContext.options can be
reset, check the version of the OpenSSL headers Python was compiled against,
rather than the runtime version of the OpenSSL library.

13 years agoIssue #12423: Fix os.abort() documentation
Victor Stinner [Fri, 8 Jul 2011 00:26:39 +0000 (02:26 +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 agoIssue #8716: Instead of relying on Aqua Tk exceptions to detect lack of
Ned Deily [Wed, 6 Jul 2011 02:09:37 +0000 (19:09 -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 #12493: skip test_communicate_eintr() if signal.SIGALRM is missing
Victor Stinner [Tue, 5 Jul 2011 12:49:46 +0000 (14:49 +0200)]
Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing

13 years agoIssue #12451: pydoc: html_getfile() now uses tokenize.open() to support Python
Victor Stinner [Tue, 5 Jul 2011 12:30:41 +0000 (14:30 +0200)]
Issue #12451: pydoc: html_getfile() now uses tokenize.open() to support Python
scripts using a encoding different than UTF-8 (read the coding cookie of the
script).

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

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

13 years agoIssue #9611, #9015: FileIO.read() clamps the length to INT_MAX on Windows.
Victor Stinner [Tue, 5 Jul 2011 09:31:49 +0000 (11:31 +0200)]
Issue #9611, #9015: FileIO.read() clamps 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 agoIssue #12497: Install test/data to prevent failures of the various codecmaps
Ned Deily [Tue, 5 Jul 2011 02:06:20 +0000 (19:06 -0700)]
Issue #12497: Install test/data to prevent failures of the various codecmaps
tests.

13 years agoIssue #12496: Install test/capath directory to prevent test_connect_capath
Ned Deily [Tue, 5 Jul 2011 00:48:01 +0000 (17:48 -0700)]
Issue #12496:  Install test/capath directory to prevent test_connect_capath
testcase failure in test_ssl.

13 years agoFix whitespace nit in datetime and os rst files.
Senthil Kumaran [Mon, 4 Jul 2011 18:43:51 +0000 (11:43 -0700)]
Fix whitespace nit in datetime and os rst files.

13 years agoissue10403 - Let's not use members anymore. Use 'attribute' where it denotes attribut...
Senthil Kumaran [Mon, 4 Jul 2011 18:28:30 +0000 (11:28 -0700)]
issue10403 - Let's not use members anymore. Use 'attribute' where it denotes attribute and 'methods' where it denotes methods. Context should clarify usage.

13 years agoMerge 3.2.1 release clone changes into main 3.2 branch after 3.2.1rc2 release.
Georg Brandl [Mon, 4 Jul 2011 17:55:22 +0000 (19:55 +0200)]
Merge 3.2.1 release clone changes into main 3.2 branch after 3.2.1rc2 release.

13 years agoIssue #12469: Run "wakeup" signal tests in subprocess to run the test in a
Victor Stinner [Mon, 4 Jul 2011 15:35:10 +0000 (17:35 +0200)]
Issue #12469: Run "wakeup" signal tests in subprocess to run the test in a
fresh process with only one thread and to not change signal handling of the
parent process.

13 years agoIssue #12429: Skip interrupted write tests on FreeBSD <= 7
Victor Stinner [Mon, 4 Jul 2011 09:48:17 +0000 (11:48 +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 #12429: Skip interrupted write tests on FreeBSD <= 7
Victor Stinner [Mon, 4 Jul 2011 09:48:17 +0000 (11:48 +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: Avoid crashes caused by Aqua Tk on OSX when attempting to run
Ned Deily [Mon, 4 Jul 2011 04:56:48 +0000 (21:56 -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 agoFix closes issue12471 - wrong TypeError message when '%i' format spec was used.
Senthil Kumaran [Mon, 4 Jul 2011 04:03:16 +0000 (21:03 -0700)]
Fix closes issue12471 - wrong TypeError message when '%i' format spec was used.

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

13 years agoFix closes issue issue12470 - check for utime for the skipUnless condition.
Senthil Kumaran [Mon, 4 Jul 2011 01:21:38 +0000 (18:21 -0700)]
Fix closes issue issue12470 - check for utime for the skipUnless condition.

13 years agoFix closes issue issue12470 - check for utime for the skipUnless condition.
Senthil Kumaran [Mon, 4 Jul 2011 01:21:38 +0000 (18:21 -0700)]
Fix closes issue issue12470 - check for utime for the skipUnless condition.

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

13 years agoPost-release steps.
Georg Brandl [Mon, 4 Jul 2011 06:20:48 +0000 (08:20 +0200)]
Post-release steps.

13 years agoIssue #12467: warnings: fix a race condition if a warning is emitted at
Victor Stinner [Mon, 4 Jul 2011 00:43:09 +0000 (02:43 +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:39:20 +0000 (17:39 -0700)]
Fix closes issue12438  - idlelib.PyShell's showformatwarning method was passing an incorrect arg.

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

13 years agoFix closes issue12432 - remove the unused sys from glob.py
Senthil Kumaran [Mon, 4 Jul 2011 00:21:05 +0000 (17:21 -0700)]
Fix closes issue12432 - remove the unused sys from glob.py

13 years agoIssue #12451: pydoc: importfile() now opens the Python script in binary mode,
Victor Stinner [Mon, 4 Jul 2011 00:08:50 +0000 (02:08 +0200)]
Issue #12451: pydoc: importfile() now opens the Python script in binary mode,
instead of text mode using the locale encoding, to avoid encoding issues.

13 years agoIssue #12451: runpy: run_path() now opens the Python script in binary mode,
Victor Stinner [Sun, 3 Jul 2011 23:45:39 +0000 (01:45 +0200)]
Issue #12451: runpy: run_path() now opens the Python script in binary mode,
instead of text mode using the locale encoding, to support other encodings than
UTF-8 (scripts using the coding cookie).

13 years agoIssue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead
Victor Stinner [Sun, 3 Jul 2011 23:25:55 +0000 (01:25 +0200)]
Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead
of the text mode (using the locale encoding) to avoid encoding issues.

13 years agonever retain a generator's caller's exception state on the generator after a yield...
Benjamin Peterson [Sun, 3 Jul 2011 21:25:11 +0000 (16:25 -0500)]
never retain a generator's caller's exception state on the generator after a yield/return

This requires some trickery to properly save the exception state if the
generator creates its own exception state.

13 years agoadd '
Benjamin Peterson [Sun, 3 Jul 2011 18:49:59 +0000 (13:49 -0500)]
add '

13 years agomerge heads
Benjamin Peterson [Sun, 3 Jul 2011 18:44:56 +0000 (13:44 -0500)]
merge heads

13 years agorestore a generator's caller's exception state both on yield and (last) return
Benjamin Peterson [Sun, 3 Jul 2011 18:44:00 +0000 (13:44 -0500)]
restore a generator's caller's exception state both on yield and (last) return

This prevents generator exception state from leaking into the caller.

Closes #12475.

13 years agoadd 3.2.2 heading
Benjamin Peterson [Sun, 3 Jul 2011 18:31:34 +0000 (13:31 -0500)]
add 3.2.2 heading

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

13 years agoAdded tag v3.2.1rc2 for changeset 5df549718fb4
Georg Brandl [Sun, 3 Jul 2011 09:54:09 +0000 (11:54 +0200)]
Added tag v3.2.1rc2 for changeset 5df549718fb4

13 years agoNEWS rewrap. v3.2.1rc2
Georg Brandl [Sun, 3 Jul 2011 07:42:43 +0000 (09:42 +0200)]
NEWS rewrap.

13 years agoBump to 3.2.1rc2.
Georg Brandl [Sun, 3 Jul 2011 07:41:27 +0000 (09:41 +0200)]
Bump to 3.2.1rc2.

13 years agoFix bad markup.
Georg Brandl [Sun, 3 Jul 2011 07:39:49 +0000 (09:39 +0200)]
Fix bad markup.

13 years agoUpdate pydoc topics.
Georg Brandl [Sun, 3 Jul 2011 07:31:04 +0000 (09:31 +0200)]
Update pydoc topics.

13 years agoFix target path in message.
Georg Brandl [Sun, 3 Jul 2011 07:30:42 +0000 (09:30 +0200)]
Fix target path in message.

13 years agoRegenerate configure.
Georg Brandl [Sun, 3 Jul 2011 07:23:20 +0000 (09:23 +0200)]
Regenerate configure.

13 years agoMerge issue #12352: Fix a deadlock in multiprocessing.Heap when a block is
Charles-François Natali [Sat, 2 Jul 2011 12:39:53 +0000 (14:39 +0200)]
Merge 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 agoIssue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed by
Charles-François Natali [Sat, 2 Jul 2011 12:35:49 +0000 (14:35 +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 ago#11873: another try at fixing the regex, courtesy of Victor Stinner
R David Murray [Fri, 1 Jul 2011 18:55:43 +0000 (14:55 -0400)]
#11873: another try at fixing the regex, courtesy of Victor Stinner

13 years ago#11873: fix test regex so it covers windows os.sep as well.
R David Murray [Fri, 1 Jul 2011 15:51:50 +0000 (11:51 -0400)]
#11873: fix test regex so it covers windows os.sep as well.

13 years agoIssue #12363: increase the timeout of siginterrupt() tests
Victor Stinner [Fri, 1 Jul 2011 13:58:39 +0000 (15:58 +0200)]
Issue #12363: increase the timeout of siginterrupt() tests

Move also the "ready" trigger after the installation of the signal handler and
the call to siginterrupt().

Use a timeout of 5 seconds instead of 3. Two seconds are supposed to be enough,
but some of our buildbots are really slow (especially the FreeBSD 6 VM).

13 years agoIssue #12363: improve siginterrupt() tests
Victor Stinner [Fri, 1 Jul 2011 13:24:50 +0000 (15:24 +0200)]
Issue #12363: improve siginterrupt() tests

Backport commits 968b9ff9a059 and aff0a7b0cb12 from the default branch to 3.2
branch. Extract of the changelog messages:

"The previous tests used time.sleep() to synchronize two processes. If the host
was too slow, the test could fail.

The new tests only use one process, but they use a subprocess to:

- have only one thread
- have a timeout on the blocking read (select cannot be used in the test,
select always fail with EINTR, the kernel doesn't restart it)
- not touch signal handling of the parent process"

and

"Add a basic synchronization code between the child and the parent processes:
the child writes "ready" to stdout."

I replaced .communicate(timeout=3.0) by an explicit waiting loop using
Popen.poll().

13 years agoIssue #11870: Skip test_threading.test_2_join_in_forked_process() on platforms
Victor Stinner [Fri, 1 Jul 2011 12:26:24 +0000 (14:26 +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 agotest_os: remove now useless TemporaryFileTests testcase
Victor Stinner [Fri, 1 Jul 2011 11:45:30 +0000 (13:45 +0200)]
test_os: remove now useless TemporaryFileTests testcase

TemporaryFileTests has tests for os.tempnam() and os.tmpfile(), functions
removed from Python 3.

Move fdopen() tests to the FileTests testcase to test fdopen() on a file
descriptor, not on a directory descriptor (which raises an error on Windows).

13 years agolibpython.py (gdb) now catchs IOError in py-list and py-bt commands
Victor Stinner [Fri, 1 Jul 2011 10:57:44 +0000 (12:57 +0200)]
libpython.py (gdb) now catchs IOError in py-list and py-bt commands

py-list displays the error. py-bt ignores the error (the filename and line
number is already displayed).

13 years agotest_os: add TemporaryFileTests to the testcase list
Victor Stinner [Fri, 1 Jul 2011 00:56:15 +0000 (02:56 +0200)]
test_os: add TemporaryFileTests to the testcase list

The testcase was never executed, it's now fixed.

13 years agoIssue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.
Antoine Pitrou [Thu, 30 Jun 2011 18:02:54 +0000 (20:02 +0200)]
Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.

13 years agoIssue #12451: Open files in binary mode in some tests when the text file is not
Victor Stinner [Thu, 30 Jun 2011 16:20:11 +0000 (18:20 +0200)]
Issue #12451: Open files in binary mode in some tests when the text file is not
needed.

Remove also an unused variable (blank) in test_threading.

13 years agoIssue #12451: The XInclude default loader of xml.etree now decodes files from
Victor Stinner [Thu, 30 Jun 2011 16:10:14 +0000 (18:10 +0200)]
Issue #12451: The XInclude default loader of xml.etree now decodes files from
UTF-8 instead of the locale encoding if the encoding is not specified. It now
also opens XML files for the parser in binary mode instead of the text mode to
avoid encoding issues.

13 years agoIssue #12451: doctest.debug_script() doesn't create a temporary file anymore to
Victor Stinner [Thu, 30 Jun 2011 15:35:55 +0000 (17:35 +0200)]
Issue #12451: doctest.debug_script() doesn't create a temporary file anymore to
avoid encoding issues (it used the locale encoding, whereas UTF-8 should be).

Remove also an unused import (warnings).

13 years agoIssue #12451: pydoc.synopsis() now reads the encoding cookie if available, to
Victor Stinner [Thu, 30 Jun 2011 13:55:43 +0000 (15:55 +0200)]
Issue #12451: pydoc.synopsis() now reads the encoding cookie if available, to
read the Python script from the right encoding.

13 years agoIssue #12451: distutils now opens the setup script in binary mode to read the
Victor Stinner [Thu, 30 Jun 2011 13:40:22 +0000 (15:40 +0200)]
Issue #12451: distutils now opens the setup script in binary mode to read the
encoding cookie, instead of opening it in UTF-8.

13 years agoIssue #12400: regrtest.runtest() uses stream.seek(0) before .truncate()
Victor Stinner [Wed, 29 Jun 2011 18:01:29 +0000 (20:01 +0200)]
Issue #12400: regrtest.runtest() uses stream.seek(0) before .truncate()

.truncate(0) doesn't rewind.

13 years agoIssue #12400: test_zipimport_support doesn't restore original sys.stdout
Victor Stinner [Wed, 29 Jun 2011 16:11:36 +0000 (18:11 +0200)]
Issue #12400: test_zipimport_support doesn't restore original sys.stdout
anymore

regrtest doesn't check that a test doesn't output anything anymore.

13 years agoIssue #12400: runtest() truncates the StringIO stream before a new test
Victor Stinner [Wed, 29 Jun 2011 15:26:38 +0000 (17:26 +0200)]
Issue #12400: runtest() truncates the StringIO stream before a new test

13 years agoIssue #12400: Add missing import (os) to test_kqueue
Victor Stinner [Wed, 29 Jun 2011 15:20:02 +0000 (17:20 +0200)]
Issue #12400: Add missing import (os) to test_kqueue

13 years agoIssue #12400: test.support.run_doctest() doesn't change sys.stdout anymore
Victor Stinner [Wed, 29 Jun 2011 13:52:46 +0000 (15:52 +0200)]
Issue #12400: test.support.run_doctest() doesn't change sys.stdout anymore

regrtest doesn't check that tests doesn't write something to stdout anymore.

Don't replace sys.stdout by the original sys.stdout to be able to capture the
output for regrtest -W.

13 years agoIssue #12400: regrtest, force verbose mode to True with option -W
Victor Stinner [Wed, 29 Jun 2011 13:34:48 +0000 (15:34 +0200)]
Issue #12400: regrtest, force verbose mode to True with option -W

If verbose is False, the output is empty. Fix also a typo in a variable name.

13 years agoIssue #12400: runtest() reuses the same io.StringIO instance for all calls
Victor Stinner [Wed, 29 Jun 2011 13:22:26 +0000 (15:22 +0200)]
Issue #12400: runtest() reuses the same io.StringIO instance for all calls

 * Don't force verbose to True with option -W
 * Rename rerun_failed variable to output_on_failure

13 years agoIssue #12400: don't use sys.stderr in test_kqueue because it may be replaced by
Victor Stinner [Wed, 29 Jun 2011 12:59:10 +0000 (14:59 +0200)]
Issue #12400: don't use sys.stderr in test_kqueue because it may be replaced by
a io.StringIO object by regrtest (which has no file descriptor).

13 years agoIssue #12400: remove unused variable
Victor Stinner [Wed, 29 Jun 2011 11:24:28 +0000 (13:24 +0200)]
Issue #12400: remove unused variable

13 years agoIssue #12400: regrtest -W doesn't rerun the tests twice anymore, but captures
Victor Stinner [Wed, 29 Jun 2011 11:00:54 +0000 (13:00 +0200)]
Issue #12400: regrtest -W doesn't rerun the tests twice anymore, but captures
the output and displays it on failure instead. regrtest -v doesn't print the
error twice anymore if there is only one error.

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

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

13 years agomerge 3.1
Benjamin Peterson [Wed, 29 Jun 2011 02:49:40 +0000 (21:49 -0500)]
merge 3.1

13 years agoIssue #9516: Change distutils to no longer globally attempt to check and
Ned Deily [Wed, 29 Jun 2011 02:44:24 +0000 (19:44 -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:43:15 +0000 (19:43 -0700)]
Issue #9516: Correct and expand OS X deployment target tests in distutils
test_build_ext.

13 years agoIssue #12141: Install a copy of template C module file so that
Ned Deily [Tue, 28 Jun 2011 07:42:50 +0000 (00:42 -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 07:00:28 +0000 (00:00 -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)

13 years agoIssue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
Ned Deily [Tue, 28 Jun 2011 06:12:20 +0000 (23:12 -0700)]
Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
on Mac OS X.  (Patch by Ronald Oussoren)

13 years agofix ws
Benjamin Peterson [Mon, 27 Jun 2011 22:51:18 +0000 (17:51 -0500)]
fix ws

13 years agoadd more ast tests (closes #11302)
Benjamin Peterson [Mon, 27 Jun 2011 22:46:06 +0000 (17:46 -0500)]
add more ast tests (closes #11302)

A patch from Vincent Legoll.

13 years agoFix closes Issue12385 - Clarify maketrans method docstring for bytes and bytearray...
Senthil Kumaran [Mon, 27 Jun 2011 16:06:45 +0000 (09:06 -0700)]
Fix closes Issue12385 - Clarify maketrans method docstring for bytes and bytearray object.

13 years agostrip trailing ws
Benjamin Peterson [Mon, 27 Jun 2011 14:18:46 +0000 (09:18 -0500)]
strip trailing ws

13 years agomerge heads
Benjamin Peterson [Mon, 27 Jun 2011 14:16:14 +0000 (09:16 -0500)]
merge heads

13 years agoupdate profile license (closes #12417)
Benjamin Peterson [Mon, 27 Jun 2011 14:14:34 +0000 (09:14 -0500)]
update profile license (closes #12417)

13 years agoupdate profile license (closes #12417)
Benjamin Peterson [Mon, 27 Jun 2011 14:14:34 +0000 (09:14 -0500)]
update profile license (closes #12417)

13 years agoFix closes issue 11568 - update select.epoll.register docstring with mention of corre...
Senthil Kumaran [Mon, 27 Jun 2011 06:48:23 +0000 (23:48 -0700)]
Fix closes issue 11568 - update select.epoll.register docstring with mention of correct behavior.