]>
granicus.if.org Git - python/log
Éric Araujo [Tue, 9 Aug 2011 16:01:52 +0000 (18:01 +0200)]
Branch merge
Victor Stinner [Mon, 8 Aug 2011 20:43:45 +0000 (22:43 +0200)]
Issue #12700: fix test_faulthandler for Mac OS X Lion
Read from NULL raises SIGILL, not SIGSEGV, on Mac OS X Lion.
Georg Brandl [Mon, 8 Aug 2011 19:45:24 +0000 (21:45 +0200)]
Merge with 3.2.
Georg Brandl [Mon, 8 Aug 2011 19:45:13 +0000 (21:45 +0200)]
Confirm that the prime example is actually correct. We get so many complaints about a "buggy example" on docs@python, let us hope this cuts them in half at least.
Éric Araujo [Mon, 8 Aug 2011 14:56:46 +0000 (16:56 +0200)]
Merge 3.2
Éric Araujo [Mon, 8 Aug 2011 14:56:17 +0000 (16:56 +0200)]
Branch merge
Éric Araujo [Mon, 8 Aug 2011 14:56:00 +0000 (16:56 +0200)]
Branch merge
Éric Araujo [Mon, 8 Aug 2011 14:51:11 +0000 (16:51 +0200)]
Clean up shutil.disk_usage.
- Move a test from call time to define time
- Add the function name to __all__
- Improve docstring and docs
A few lines are now duplicated (named tuple definition and docstring)
but I think the end result reads better.
Sandro Tosi [Mon, 8 Aug 2011 14:38:47 +0000 (16:38 +0200)]
#12709: merge with 3.2
Sandro Tosi [Mon, 8 Aug 2011 14:38:13 +0000 (16:38 +0200)]
#12709: add error_callback argument to map_async documentation
Sandro Tosi [Sun, 7 Aug 2011 22:17:43 +0000 (00:17 +0200)]
#10741: merge with 3.2
Sandro Tosi [Sun, 7 Aug 2011 22:16:54 +0000 (00:16 +0200)]
#10741: add documentation for PyGILState_GetThisThreadState()
Sandro Tosi [Sun, 7 Aug 2011 15:13:13 +0000 (17:13 +0200)]
#12677: merge with 3.2
Sandro Tosi [Sun, 7 Aug 2011 15:12:19 +0000 (17:12 +0200)]
#12677: correct turtle orientation in doc
Éric Araujo [Sat, 6 Aug 2011 14:58:15 +0000 (16:58 +0200)]
Merge doc changes from 3.2 (#8617, #10745).
In the install and library docs, I changed the text to refer to
packaging instead of distutils. I also checked that the documented
paths correctly reflect what’s really defined in sysconfig; the main
difference with paths defined in distutils.install is that include
directories don’t end with the distribution name anymore (i.e. distutils
uses include/python3.3/spam, sysconfig include/python3.3), I have no
idea why.
Éric Araujo [Sat, 6 Aug 2011 14:30:42 +0000 (16:30 +0200)]
Add documentation for PEP 370 features in distutils (#10745).
This started out as an easy task, just add a section describing this
alternate scheme, but I found a lot of cleanup to do along the way:
- fixed inverted reST targets
- fixed entries for modules (hi abiflags!) or data files
- avoided duplicating the same options listing five or six times
- added missing entries for C headers locations
- added documentation for --install-lib
- fixed a few misuses of the option role (see #9312), but not all (not
worth the time, but will do it in packaging docs)
- fixed some markup
The paths fixes were done with an eye on the source code in the install
command, so they really describe what’s actually done. The situation on
Mac OS X is rather messy: the fix for #8084 touched site and sysconfig,
but distutils doesn’t use these files. I suspect we have a mismatched
stdlib at the moment, and the fix is not even clear (see the bug report
for further discussion).
Eli Bendersky [Sat, 6 Aug 2011 06:32:11 +0000 (09:32 +0300)]
Fix grammar
Eli Bendersky [Sat, 6 Aug 2011 06:31:09 +0000 (09:31 +0300)]
Fix grammar
Senthil Kumaran [Sat, 6 Aug 2011 05:37:37 +0000 (13:37 +0800)]
merge from 3.2 - Fix closes Issue12697 - Update the usage syntax of timeit module in the docs.
Senthil Kumaran [Sat, 6 Aug 2011 05:37:04 +0000 (13:37 +0800)]
Fix closes Issue12697 - Update the usage syntax of timeit module in the docs.
Senthil Kumaran [Sat, 6 Aug 2011 04:55:06 +0000 (12:55 +0800)]
merge from 3.2 - Fix closes issue11047 - Correct the 2.7 whatsnew description for issue 7902.
Senthil Kumaran [Sat, 6 Aug 2011 04:54:23 +0000 (12:54 +0800)]
merge from 2.7 - Fix closes issue11047 - Correct the 2.7 whatsnew description for issue 7902.
Senthil Kumaran [Sat, 6 Aug 2011 04:28:16 +0000 (12:28 +0800)]
merge from 3.2 - Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)
Senthil Kumaran [Sat, 6 Aug 2011 04:27:40 +0000 (12:27 +0800)]
Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)
Éric Araujo [Fri, 5 Aug 2011 23:51:07 +0000 (01:51 +0200)]
Improve documentation for PEP 370 support in site module (#8617).
site.USER_BASE and site.USER_SITE are now fully documented. PEP 370 is
outdated with respects to the Mac framework situation, but the code in
sysconfig and the example in the 3.2 What’s New document helped me find
the right values to document for Mac OS X.
The command-line interface of the site module, partly documented in the
3.2 What’s New, is fully described in the module docs.
The purpose of the usercustomize module is explained in the site docs,
with a gentle introduction in the tutorial (right after the section that
talks about PYTHONSTARTUP; a comment mentions it should be moved from
the tutorial to another file, but that will be another bug).
Various markup and wording improvements were made along the way in the
site module docs. Duplicate and incomplete declarations of environment
variables have also been removed (the original bug report was actually
about these entries :). The site module docs are still a bit messy;
I’ll see about improving them for #11553.
All these sections are copiously interlinked and findable from the doc
indexes.
Sandro Tosi [Fri, 5 Aug 2011 21:05:35 +0000 (23:05 +0200)]
#11572: improvements to copy module tests along with removal of old test suite
Éric Araujo [Thu, 4 Aug 2011 15:17:07 +0000 (17:17 +0200)]
Fix wrong use of root logger in packaging (also a NameError)
Ned Deily [Fri, 5 Aug 2011 06:38:19 +0000 (23:38 -0700)]
Issue #12540: Prevent zombie IDLE processes on Windows due to changes
in os.kill(). Original patch by Eli Bendersky.
Brett Cannon [Fri, 5 Aug 2011 05:43:11 +0000 (22:43 -0700)]
Silence the altered state warning about threadgs when running test_httplib.
Brett Cannon [Fri, 5 Aug 2011 05:37:55 +0000 (22:37 -0700)]
Silence altered execution state warnings from test_telnetlib involving threads.
Brett Cannon [Fri, 5 Aug 2011 04:34:52 +0000 (21:34 -0700)]
Explicitly close a file to stop raising a ResourceWarning.
Benjamin Peterson [Thu, 4 Aug 2011 16:09:57 +0000 (11:09 -0500)]
merge 3.2
Benjamin Peterson [Thu, 4 Aug 2011 16:07:42 +0000 (11:07 -0500)]
dosmodule is, thankfully, no more
Senthil Kumaran [Wed, 3 Aug 2011 14:09:51 +0000 (22:09 +0800)]
merge from 3.2 - change the extra svn to svn+ssh
Senthil Kumaran [Wed, 3 Aug 2011 14:08:46 +0000 (22:08 +0800)]
change the redundant svn scheme urljoin test case to svn+ssh scheme.
Benjamin Peterson [Wed, 3 Aug 2011 13:54:44 +0000 (08:54 -0500)]
merge heads
Benjamin Peterson [Wed, 3 Aug 2011 13:54:26 +0000 (08:54 -0500)]
fix arg strings
Senthil Kumaran [Wed, 3 Aug 2011 10:46:24 +0000 (18:46 +0800)]
merged heads
Senthil Kumaran [Wed, 3 Aug 2011 10:45:02 +0000 (18:45 +0800)]
merge heads
Senthil Kumaran [Wed, 3 Aug 2011 10:44:10 +0000 (18:44 +0800)]
merge from 3.2 - Fix closes issue12683 - urljoin to work with relative join of svn scheme.
Senthil Kumaran [Wed, 3 Aug 2011 10:37:22 +0000 (18:37 +0800)]
Fix closes issue12683 - urljoin to work with relative join of svn scheme.
Georg Brandl [Wed, 3 Aug 2011 06:29:12 +0000 (08:29 +0200)]
Merge with 3.2.
Georg Brandl [Wed, 3 Aug 2011 06:27:00 +0000 (08:27 +0200)]
Fix spacing in string literal.
Benjamin Peterson [Wed, 3 Aug 2011 03:19:14 +0000 (22:19 -0500)]
handle sched_rr_get_interval not working on current
Benjamin Peterson [Wed, 3 Aug 2011 03:15:40 +0000 (22:15 -0500)]
fix punctuation
Benjamin Peterson [Wed, 3 Aug 2011 03:10:55 +0000 (22:10 -0500)]
fix indentation
Benjamin Peterson [Wed, 3 Aug 2011 03:09:56 +0000 (22:09 -0500)]
merge heads
Benjamin Peterson [Wed, 3 Aug 2011 03:09:37 +0000 (22:09 -0500)]
OSX doesn't check sched_get_priority_(min/max) argument
Eli Bendersky [Wed, 3 Aug 2011 02:18:33 +0000 (05:18 +0300)]
Issue #11049: fix test_forget on installed Python - add os.curdir to sys.path
Ned Deily [Wed, 3 Aug 2011 01:47:13 +0000 (18:47 -0700)]
Issue #12540: Prevent zombie IDLE processes on Windows due to changes
in os.kill(). Original patch by Eli Bendersky.
Benjamin Peterson [Wed, 3 Aug 2011 00:56:11 +0000 (19:56 -0500)]
need NULL sentinel
Benjamin Peterson [Tue, 2 Aug 2011 23:49:38 +0000 (18:49 -0500)]
merge heads
Benjamin Peterson [Tue, 2 Aug 2011 23:48:59 +0000 (18:48 -0500)]
bsd doesn't like letting normal processes set the scheduler
Senthil Kumaran [Tue, 2 Aug 2011 23:44:46 +0000 (07:44 +0800)]
merge heads.
Senthil Kumaran [Tue, 2 Aug 2011 23:43:01 +0000 (07:43 +0800)]
Fix closes issue12663 - Correcting the ArgumentParser.error description. Patch by Sandro Tosi.
Senthil Kumaran [Tue, 2 Aug 2011 23:42:18 +0000 (07:42 +0800)]
Fix closes issue12663 - Correcting the ArgumentParser.error description. Patch by Sandro Tosi.
Benjamin Peterson [Tue, 2 Aug 2011 23:42:14 +0000 (18:42 -0500)]
avoid warning when SchedParamType is not used
Benjamin Peterson [Tue, 2 Aug 2011 23:40:46 +0000 (18:40 -0500)]
only add sched_param if it is initialized
Benjamin Peterson [Tue, 2 Aug 2011 23:34:30 +0000 (18:34 -0500)]
I have been spoiled by chained comparisons in python
Benjamin Peterson [Tue, 2 Aug 2011 23:22:30 +0000 (18:22 -0500)]
comparing on number of cpus makes more sense
Benjamin Peterson [Tue, 2 Aug 2011 23:11:38 +0000 (18:11 -0500)]
fix sched defines
Benjamin Peterson [Tue, 2 Aug 2011 23:07:32 +0000 (18:07 -0500)]
check individually for some for sched_ functions
Benjamin Peterson [Tue, 2 Aug 2011 22:45:00 +0000 (17:45 -0500)]
move news note to correct section
Benjamin Peterson [Tue, 2 Aug 2011 22:44:26 +0000 (17:44 -0500)]
make_new_cpu_set takes the number of cpus
Benjamin Peterson [Tue, 2 Aug 2011 22:41:34 +0000 (17:41 -0500)]
sched.h can exist without sched affinity support
Benjamin Peterson [Tue, 2 Aug 2011 22:30:04 +0000 (17:30 -0500)]
expose sched.h functions (closes #12655)
Benjamin Peterson [Tue, 2 Aug 2011 22:29:30 +0000 (17:29 -0500)]
NEWS note for
bbeda42ea6a8
Benjamin Peterson [Tue, 2 Aug 2011 18:06:19 +0000 (13:06 -0500)]
merge heads
Benjamin Peterson [Tue, 2 Aug 2011 18:05:47 +0000 (13:05 -0500)]
add ThreadError to threading.__all__ (closes #12679)
Sandro Tosi [Tue, 2 Aug 2011 16:43:49 +0000 (18:43 +0200)]
#12665: merge with 3.2
Sandro Tosi [Tue, 2 Aug 2011 16:42:04 +0000 (18:42 +0200)]
#12665: Dictionary view example has error in set operation
Sandro Tosi [Tue, 2 Aug 2011 14:44:31 +0000 (16:44 +0200)]
#12670: merge with 3.2
Ezio Melotti [Tue, 2 Aug 2011 14:42:24 +0000 (17:42 +0300)]
#12183: merge with 3.2.
Sandro Tosi [Tue, 2 Aug 2011 14:17:14 +0000 (16:17 +0200)]
#12670: Fix struct code after forward declaration on ctypes doc
Jason R. Coombs [Tue, 2 Aug 2011 12:19:31 +0000 (08:19 -0400)]
Corrected attribute docstring per pep-257 (reference #10639)
Senthil Kumaran [Tue, 2 Aug 2011 10:52:28 +0000 (18:52 +0800)]
Fix closes Issue12183 - Explain the Symlink copy behavior in shutil.copytree. Patch by Petri Lehtinen.
Senthil Kumaran [Tue, 2 Aug 2011 10:34:53 +0000 (18:34 +0800)]
Fix closes Issue12676 - Invalid identifier used in TypeError message in http.client.
Reported by Popa Claudiu and Patch by Santoso Wijaya.
Senthil Kumaran [Tue, 2 Aug 2011 10:33:41 +0000 (18:33 +0800)]
Fix closes Issue12676 - Invalid identifier used in TypeError message in http.client.
Reported by Popa Claudiu and Patch by Santoso Wijaya.
Nadeem Vawda [Tue, 2 Aug 2011 08:16:45 +0000 (10:16 +0200)]
Clean up description of Tools/scripts/run_tests.py.
Also, add an entry for the script in Tools/scripts/README.
Eli Bendersky [Tue, 2 Aug 2011 03:24:31 +0000 (06:24 +0300)]
Issue #11049: fix test_forget to work on installed Python, by using a temporary module for import/forget
Stefan Krah [Mon, 1 Aug 2011 23:12:16 +0000 (01:12 +0200)]
Stefan Krah [Mon, 1 Aug 2011 23:06:16 +0000 (01:06 +0200)]
Skip test_getsetlocale_issue1813() on Fedora due to setlocale() bug.
See: https://bugzilla.redhat.com/show_bug.cgi?id=726536
Nadeem Vawda [Mon, 1 Aug 2011 21:48:26 +0000 (23:48 +0200)]
Issue #11651: Move options for running tests into a Python script.
This will be particularly useful to Windows users.
run_tests.py originally written by Brett Cannon.
Georg Brandl [Mon, 1 Aug 2011 20:59:40 +0000 (22:59 +0200)]
Merge with 3.2
Georg Brandl [Mon, 1 Aug 2011 20:58:53 +0000 (22:58 +0200)]
Use attribute access instead of index access for namedtuple.
Éric Araujo [Mon, 1 Aug 2011 15:31:12 +0000 (17:31 +0200)]
Merge #12295 fix from 3.2
Éric Araujo [Mon, 1 Aug 2011 15:29:36 +0000 (17:29 +0200)]
Fix resource warning when looking at turtledemo’s help (#12295)
Éric Araujo [Mon, 1 Aug 2011 13:29:07 +0000 (15:29 +0200)]
Fix bug I unwittingly added in
1521d9837d16 (found by Ezio Melotti)
Éric Araujo [Mon, 1 Aug 2011 12:45:01 +0000 (14:45 +0200)]
Merge 3.2
Éric Araujo [Mon, 1 Aug 2011 12:44:17 +0000 (14:44 +0200)]
Branch merge
Éric Araujo [Mon, 1 Aug 2011 12:43:45 +0000 (14:43 +0200)]
Branch merge
Vinay Sajip [Mon, 1 Aug 2011 10:32:49 +0000 (11:32 +0100)]
Closes #12667: Merged fix from 3.2.
Vinay Sajip [Mon, 1 Aug 2011 10:31:52 +0000 (11:31 +0100)]
Closes #12667: Added documentation for SMTPHandler secure argument.
Ezio Melotti [Sun, 31 Jul 2011 19:50:01 +0000 (22:50 +0300)]
Merge typo fix.
Ezio Melotti [Sun, 31 Jul 2011 19:49:18 +0000 (22:49 +0300)]
Fix typo reported by Sandro Tosi.
Éric Araujo [Sun, 31 Jul 2011 18:47:47 +0000 (20:47 +0200)]
Stop trying to write into the stdlib during packaging tests (#12331).
This prevents tests from failing when run from a Python installed in a
read-only directory. The code is a bit uglier; shutil.copytree calls
copystat on directories behind our back, so I had to add an os.walk
with os.chmod (*and* os.path.join!) calls. shutil, I am disappoint.
This changeset is dedicated to the hundreds of neurons that were lost
while I was debugging this on an otherwise fine afternoon.
Éric Araujo [Sun, 31 Jul 2011 16:41:25 +0000 (18:41 +0200)]
Small cleanup
Éric Araujo [Sun, 31 Jul 2011 16:33:00 +0000 (18:33 +0200)]
Merge fixes for #9860, #11104/#8688 and #12331 from 3.2
Éric Araujo [Sun, 31 Jul 2011 15:58:46 +0000 (17:58 +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.
Nadeem Vawda [Sun, 31 Jul 2011 13:01:11 +0000 (15:01 +0200)]
Fix build error in _curses module when not using libncursesw.
Code extracted from Victor Stinner's patch for issue #12567.