]> granicus.if.org Git - python/log
python
13 years agoimprove test name
Benjamin Peterson [Wed, 17 Aug 2011 16:48:23 +0000 (11:48 -0500)]
improve test name

13 years agocrush other possible refleaks in this section
Benjamin Peterson [Wed, 17 Aug 2011 03:28:23 +0000 (22:28 -0500)]
crush other possible refleaks in this section

13 years agomerge 3.2
Benjamin Peterson [Wed, 17 Aug 2011 03:27:42 +0000 (22:27 -0500)]
merge 3.2

13 years agofix possible refleaks
Benjamin Peterson [Wed, 17 Aug 2011 03:26:48 +0000 (22:26 -0500)]
fix possible refleaks

13 years agocomplain when a class variable shadows a name in __slots__ (closes #12766)
Benjamin Peterson [Tue, 16 Aug 2011 23:53:26 +0000 (18:53 -0500)]
complain when a class variable shadows a name in __slots__ (closes #12766)

13 years agomerge heads
Benjamin Peterson [Tue, 16 Aug 2011 22:46:44 +0000 (17:46 -0500)]
merge heads

13 years agosome *nixes decided not to call init process 1 (closes #12763)
Benjamin Peterson [Tue, 16 Aug 2011 22:46:04 +0000 (17:46 -0500)]
some *nixes decided not to call init process 1 (closes #12763)

13 years agomerge heads
Sandro Tosi [Tue, 16 Aug 2011 18:08:04 +0000 (20:08 +0200)]
merge heads

13 years agomerge with 3.2
Sandro Tosi [Tue, 16 Aug 2011 18:03:50 +0000 (20:03 +0200)]
merge with 3.2

13 years ago#12761: fix wording of zlib license section
Sandro Tosi [Tue, 16 Aug 2011 18:03:11 +0000 (20:03 +0200)]
#12761: fix wording of zlib license section

13 years agoUse -n for tests under Windows
Antoine Pitrou [Tue, 16 Aug 2011 18:02:26 +0000 (20:02 +0200)]
Use -n for tests under Windows

13 years agoBranch merge
Éric Araujo [Tue, 16 Aug 2011 17:13:58 +0000 (19:13 +0200)]
Branch merge

13 years agoMerge Makefile fix from 3.2 (thanks Georg)
Éric Araujo [Tue, 16 Aug 2011 17:11:00 +0000 (19:11 +0200)]
Merge Makefile fix from 3.2 (thanks Georg)

13 years agoMove versionadded directive to the top level, as we do in other files
Éric Araujo [Tue, 16 Aug 2011 17:10:24 +0000 (19:10 +0200)]
Move versionadded directive to the top level, as we do in other files

13 years agoFix typo
Éric Araujo [Tue, 16 Aug 2011 17:09:56 +0000 (19:09 +0200)]
Fix typo

13 years agoRevert change that was not a syntax fix but actually a behavior change
Éric Araujo [Tue, 16 Aug 2011 17:05:56 +0000 (19:05 +0200)]
Revert change that was not a syntax fix but actually a behavior change

13 years ago#9723: refactor regex.
Ezio Melotti [Tue, 16 Aug 2011 16:03:41 +0000 (19:03 +0300)]
#9723: refactor regex.

13 years ago#12204: merge with 3.2.
Ezio Melotti [Mon, 15 Aug 2011 11:28:46 +0000 (14:28 +0300)]
#12204: merge with 3.2.

13 years ago#12204: document that str.upper().isupper() might be False and add a note about cased...
Ezio Melotti [Mon, 15 Aug 2011 11:27:19 +0000 (14:27 +0300)]
#12204: document that str.upper().isupper() might be False and add a note about cased characters.

13 years ago#12266: merge with 3.2.
Ezio Melotti [Mon, 15 Aug 2011 06:26:28 +0000 (09:26 +0300)]
#12266: merge with 3.2.

13 years ago#12266: Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased...
Ezio Melotti [Mon, 15 Aug 2011 06:09:57 +0000 (09:09 +0300)]
#12266: Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased non-letter characters.

13 years ago#12725: merge with 3.2.
Ezio Melotti [Sun, 14 Aug 2011 05:29:49 +0000 (08:29 +0300)]
#12725: merge with 3.2.

13 years ago#12725: fix working. Patch by Ben Hayden.
Ezio Melotti [Sun, 14 Aug 2011 05:28:57 +0000 (08:28 +0300)]
#12725: fix working. Patch by Ben Hayden.

13 years agoMonotonic, not monotonous
Antoine Pitrou [Sat, 13 Aug 2011 23:51:52 +0000 (01:51 +0200)]
Monotonic, not monotonous

13 years agoFollowup to 8e824e09924a: fix regression on 32-bit builds
Antoine Pitrou [Sat, 13 Aug 2011 18:40:32 +0000 (20:40 +0200)]
Followup to 8e824e09924a: fix regression on 32-bit builds

13 years agoIssue #12744: Fix inefficient representation of integers
Antoine Pitrou [Sat, 13 Aug 2011 18:15:19 +0000 (20:15 +0200)]
Issue #12744: Fix inefficient representation of integers
between 2**31 and 2**63 on systems with a 64-bit C "long".

13 years agoIssue #12669: Fix test_curses so that it can run on the buildbots.
Nadeem Vawda [Sat, 13 Aug 2011 13:43:49 +0000 (15:43 +0200)]
Issue #12669: Fix test_curses so that it can run on the buildbots.

13 years agoFix incorrect comment in zlib.Decompress.flush().
Nadeem Vawda [Sat, 13 Aug 2011 13:42:50 +0000 (15:42 +0200)]
Fix incorrect comment in zlib.Decompress.flush().

Reported by Oleg Oshmyan in issue #12646.

13 years agoIssue #12646: Add an 'eof' attribute to zlib.Decompress.
Nadeem Vawda [Sat, 13 Aug 2011 13:22:40 +0000 (15:22 +0200)]
Issue #12646: Add an 'eof' attribute to zlib.Decompress.

This will make it easier to detect truncated input streams.

Also, make zlib's error messages more consistent.

13 years agoMerge with 3.2.
Georg Brandl [Sat, 13 Aug 2011 09:48:40 +0000 (11:48 +0200)]
Merge with 3.2.

13 years agoFix #11513: wrong exception handling for the case that GzipFile itself raises an...
Georg Brandl [Sat, 13 Aug 2011 09:48:12 +0000 (11:48 +0200)]
Fix #11513: wrong exception handling for the case that GzipFile itself raises an IOError.

13 years agomerge 3.2
Benjamin Peterson [Sat, 13 Aug 2011 05:33:29 +0000 (00:33 -0500)]
merge 3.2

13 years agotokenize is just broken on test_pep3131.py
Benjamin Peterson [Sat, 13 Aug 2011 05:33:21 +0000 (00:33 -0500)]
tokenize is just broken on test_pep3131.py

13 years agomerge 3.2
Benjamin Peterson [Sat, 13 Aug 2011 04:35:46 +0000 (23:35 -0500)]
merge 3.2

13 years agonormalization is different between unicode builds, so use a new non-BMP char and...
Benjamin Peterson [Sat, 13 Aug 2011 04:35:34 +0000 (23:35 -0500)]
normalization is different between unicode builds, so use a new non-BMP char and add normalization test

13 years agoinclude header with PyAST_Validate
Benjamin Peterson [Sat, 13 Aug 2011 04:10:50 +0000 (23:10 -0500)]
include header with PyAST_Validate

13 years agomerge 3.2 (#12732)
Benjamin Peterson [Sat, 13 Aug 2011 03:18:19 +0000 (22:18 -0500)]
merge 3.2 (#12732)

13 years agoin narrow builds, make sure to test codepoints as identifier characters (closes ...
Benjamin Peterson [Sat, 13 Aug 2011 03:17:18 +0000 (22:17 -0500)]
in narrow builds, make sure to test codepoints as identifier characters (closes #12732)

This fixes the use of Unicode identifiers outside the BMP in narrow builds.

13 years agomerge with 3.2
Sandro Tosi [Fri, 12 Aug 2011 22:40:08 +0000 (00:40 +0200)]
merge with 3.2

13 years agolet PySequence_Check me a link; thanks to tomo cocoa from docs@
Sandro Tosi [Fri, 12 Aug 2011 22:39:46 +0000 (00:39 +0200)]
let PySequence_Check me a link; thanks to tomo cocoa from docs@

13 years agoMerge 3.2
Éric Araujo [Fri, 12 Aug 2011 17:53:13 +0000 (19:53 +0200)]
Merge 3.2

13 years agoBranch merge
Éric Araujo [Fri, 12 Aug 2011 17:53:02 +0000 (19:53 +0200)]
Branch merge

13 years agoBranch merge
Éric Araujo [Fri, 12 Aug 2011 17:52:43 +0000 (19:52 +0200)]
Branch merge

13 years agoClean up test_shutil, to facilitate upcoming improvements (#12721).
Éric Araujo [Fri, 12 Aug 2011 17:51:35 +0000 (19:51 +0200)]
Clean up test_shutil, to facilitate upcoming improvements (#12721).

The tests now have two convenience functions to wrap os.path.join, open
and read or write instead of four or six slightly different functions.
The new functions accept a tuple of path segments but not a list
anymore, as it makes no sense to use a list here; I have also removed
the default value for the contents in write_file, as I find it better to
have the contents at the call site.

For simple open then read/write calls, I have left the usual idiom (with
open + read/write), as it is short and readable enough.

I’ve also changed some convoluted cleanup code to just use rmtree, and
removed dubious LBYL os.path.exists checks.  The tests still pass on my
machine, and leave no file in $TMP.  test_shutil is not as clean as it
could be, but I’ll stop here.

Initial patch provided by Hynek Schlawack, in preparation for a new
feature with new tests in #12715.

13 years agoUpdate crlf and lfcr scripts for 3.x bytes semantics (#12032).
Éric Araujo [Fri, 12 Aug 2011 17:40:05 +0000 (19:40 +0200)]
Update crlf and lfcr scripts for 3.x bytes semantics (#12032).

Changes to crlf originally by Victor Stinner for 3.3, copied to lfcr by
me.  Manually tested.

13 years agomerge with 3.2
Sandro Tosi [Fri, 12 Aug 2011 17:31:56 +0000 (19:31 +0200)]
merge with 3.2

13 years agoit's 'rather than'; reported by James Bateman on docs@
Sandro Tosi [Fri, 12 Aug 2011 17:31:32 +0000 (19:31 +0200)]
it's 'rather than'; reported by James Bateman on docs@

13 years agoMerge 3.2
Éric Araujo [Fri, 12 Aug 2011 16:03:30 +0000 (18:03 +0200)]
Merge 3.2

13 years agoBrench merge
Éric Araujo [Fri, 12 Aug 2011 15:59:25 +0000 (17:59 +0200)]
Brench merge

13 years agopatchcheck: don’t talk about the test suite when no code file were changed.
Éric Araujo [Fri, 12 Aug 2011 15:50:08 +0000 (17:50 +0200)]
patchcheck: don’t talk about the test suite when no code file were changed.

The line about the test suite will still get printed for changes in
Tools for example, which aren’t covered by the test suite, but it’s not
a big deal IMO.

13 years agoBranch merge
Éric Araujo [Fri, 12 Aug 2011 15:40:25 +0000 (17:40 +0200)]
Branch merge

13 years agoIssue #12672: fix code samples in extending/newtypes.html for PEP-7 compliance
Eli Bendersky [Fri, 12 Aug 2011 08:40:39 +0000 (11:40 +0300)]
Issue #12672: fix code samples in extending/newtypes.html for PEP-7 compliance

13 years agoUse our existing drop-in, no-op decorator instead of redefining it.
Éric Araujo [Thu, 11 Aug 2011 22:15:41 +0000 (00:15 +0200)]
Use our existing drop-in, no-op decorator instead of redefining it.

Patch by Francisco Martin Brugue.

13 years agomerge heads
Benjamin Peterson [Thu, 11 Aug 2011 19:46:49 +0000 (14:46 -0500)]
merge heads

13 years agomake only files which use AST depend on Python-ast.h
Benjamin Peterson [Thu, 11 Aug 2011 19:46:26 +0000 (14:46 -0500)]
make only files which use AST depend on Python-ast.h

13 years agorevert code which conditionally writes Python-ast.h (closes #12727)
Benjamin Peterson [Thu, 11 Aug 2011 19:42:28 +0000 (14:42 -0500)]
revert code which conditionally writes Python-ast.h (closes #12727)

13 years agoIssue #12687: Fix a possible buffering bug when unpickling text mode (protocol 0...
Antoine Pitrou [Thu, 11 Aug 2011 19:15:53 +0000 (21:15 +0200)]
Issue #12687: Fix a possible buffering bug when unpickling text mode (protocol 0, mostly) pickles.

13 years agoIssue #12687: Fix a possible buffering bug when unpickling text mode (protocol 0...
Antoine Pitrou [Thu, 11 Aug 2011 19:04:02 +0000 (21:04 +0200)]
Issue #12687: Fix a possible buffering bug when unpickling text mode (protocol 0, mostly) pickles.

13 years agoAdd doc for Py_RETURN_NOTIMPLEMENTED, added in #12724.
Brian Curtin [Thu, 11 Aug 2011 14:41:31 +0000 (09:41 -0500)]
Add doc for Py_RETURN_NOTIMPLEMENTED, added in #12724.

13 years agoCloses #12718: Merge documentation fix from 3.2.
Vinay Sajip [Thu, 11 Aug 2011 12:46:54 +0000 (13:46 +0100)]
Closes #12718: Merge documentation fix from 3.2.

13 years agoIssue #12718: Add documentation on using custom importers.
Vinay Sajip [Thu, 11 Aug 2011 12:45:48 +0000 (13:45 +0100)]
Issue #12718: Add documentation on using custom importers.

13 years agomerge
Brian Curtin [Thu, 11 Aug 2011 01:34:20 +0000 (20:34 -0500)]
merge

13 years agoNews item for #12724
Brian Curtin [Thu, 11 Aug 2011 01:32:10 +0000 (20:32 -0500)]
News item for #12724

13 years agoReplace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.
Brian Curtin [Thu, 11 Aug 2011 01:28:54 +0000 (20:28 -0500)]
Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.
The macro was introduced in #12724.

13 years agomerge from 3.2
Senthil Kumaran [Thu, 11 Aug 2011 01:25:45 +0000 (09:25 +0800)]
merge from 3.2

13 years agoNews item for Issue10087.
Senthil Kumaran [Thu, 11 Aug 2011 01:24:37 +0000 (09:24 +0800)]
News item for Issue10087.

13 years agoFix closes Issue10087 - fixing the output of calendar display in the html format...
Senthil Kumaran [Thu, 11 Aug 2011 01:22:52 +0000 (09:22 +0800)]
Fix closes Issue10087 -  fixing the output of calendar display in the html format. Patch by Chris Lambacher. Test Contributed by catherine.

13 years agoAdd Py_RETURN_NOTIMPLEMENTED macro. Fixes #12724.
Brian Curtin [Thu, 11 Aug 2011 01:05:21 +0000 (20:05 -0500)]
Add Py_RETURN_NOTIMPLEMENTED macro. Fixes #12724.

13 years agoFix directive markup
Éric Araujo [Wed, 10 Aug 2011 19:43:13 +0000 (21:43 +0200)]
Fix directive markup

13 years agoMerge 3.2
Éric Araujo [Wed, 10 Aug 2011 19:42:23 +0000 (21:42 +0200)]
Merge 3.2

13 years agoRemove unused names in except clauses
Éric Araujo [Wed, 10 Aug 2011 18:54:33 +0000 (20:54 +0200)]
Remove unused names in except clauses

13 years agoUse real word in English text (i.e. not code)
Éric Araujo [Wed, 10 Aug 2011 02:19:03 +0000 (04:19 +0200)]
Use real word in English text (i.e. not code)

13 years agoRevert cosmetic change.
Éric Araujo [Wed, 10 Aug 2011 00:46:33 +0000 (02:46 +0200)]
Revert cosmetic change.

A reminder: distutils only gets bug fixes.  Cosmetic changes, especially
in tests, are not worth the time spent, and can even make future merges
of bugfixes a bit less easy.

13 years agoFix find command in makefile “funny” target
Éric Araujo [Wed, 10 Aug 2011 00:01:32 +0000 (02:01 +0200)]
Fix find command in makefile “funny” target

13 years ago2.x syntax
Benjamin Peterson [Tue, 9 Aug 2011 23:48:02 +0000 (18:48 -0500)]
2.x syntax

13 years agomake this work on 2.4
Benjamin Peterson [Tue, 9 Aug 2011 23:38:57 +0000 (18:38 -0500)]
make this work on 2.4

13 years agomake this work with py2.5
Benjamin Peterson [Tue, 9 Aug 2011 21:49:52 +0000 (16:49 -0500)]
make this work with py2.5

13 years agotypo
Benjamin Peterson [Tue, 9 Aug 2011 21:49:13 +0000 (16:49 -0500)]
typo

13 years agodon't rewrite the header file if it hasn't changed; this reduces development build...
Benjamin Peterson [Tue, 9 Aug 2011 21:28:58 +0000 (16:28 -0500)]
don't rewrite the header file if it hasn't changed; this reduces development build time

13 years agoAvoid unwanted behavior change in shlex.quote (see #9723).
Éric Araujo [Tue, 9 Aug 2011 21:18:06 +0000 (23:18 +0200)]
Avoid unwanted behavior change in shlex.quote (see #9723).

I simplified the quote code to use a regex instead of a loop+test when I
moved pipes.quote to shlex in 5966eeb0457d; Ezio Melotti pointed out
that my regex contained redundant parts (now removed) and allowed
non-ASCII characters (now disallowed).

I think common UNIX shells don’t quote non-ASCII characters, but there’s
no harm in doing so.  We’ll see if users request a change.

13 years agofix indentation
Benjamin Peterson [Tue, 9 Aug 2011 21:17:12 +0000 (16:17 -0500)]
fix indentation

13 years agomerge heads
Benjamin Peterson [Tue, 9 Aug 2011 21:16:33 +0000 (16:16 -0500)]
merge heads

13 years agomerge 3.2 (#12719)
Benjamin Peterson [Tue, 9 Aug 2011 21:15:29 +0000 (16:15 -0500)]
merge 3.2 (#12719)

13 years agoadd a AST validator (closes #12575)
Benjamin Peterson [Tue, 9 Aug 2011 21:15:04 +0000 (16:15 -0500)]
add a AST validator (closes #12575)

13 years agoforgotten in f578ca44193d
Benjamin Peterson [Tue, 9 Aug 2011 21:14:45 +0000 (16:14 -0500)]
forgotten in f578ca44193d

13 years agothe bool asdl type died a while ago
Benjamin Peterson [Tue, 9 Aug 2011 21:10:09 +0000 (16:10 -0500)]
the bool asdl type died a while ago

13 years agoadd a asdl bytes type, so Bytes.s be properly typechecked
Benjamin Peterson [Tue, 9 Aug 2011 21:08:39 +0000 (16:08 -0500)]
add a asdl bytes type, so Bytes.s be properly typechecked

13 years agonote mutating tp_dict is bad (closes #12719)
Benjamin Peterson [Tue, 9 Aug 2011 21:07:01 +0000 (16:07 -0500)]
note mutating tp_dict is bad (closes #12719)

13 years agoTest pipes.quote with a few non-ASCII characters (see #9723).
Éric Araujo [Tue, 9 Aug 2011 21:03:43 +0000 (23:03 +0200)]
Test pipes.quote with a few non-ASCII characters (see #9723).

That pipes.quote thinks all non-ASCII characters need to be quoted may
be a bug, but right now I’m committing this test to make sure I haven’t
introduced a behavior change in 3.3 when I simplified the code to use a
regex (in 5966eeb0457d).

13 years agoAdd support for unary plus and unary minus to collections.Counter()
Raymond Hettinger [Tue, 9 Aug 2011 20:00:40 +0000 (13:00 -0700)]
Add support for unary plus and unary minus to collections.Counter()

13 years agoMerge 3.2
Éric Araujo [Tue, 9 Aug 2011 16:09:21 +0000 (18:09 +0200)]
Merge 3.2

13 years agoBranch merge
Éric Araujo [Tue, 9 Aug 2011 16:01:52 +0000 (18:01 +0200)]
Branch merge

13 years agoBranch merge
Éric Araujo [Tue, 9 Aug 2011 16:01:38 +0000 (18:01 +0200)]
Branch merge

13 years agoIssue #12700: fix test_faulthandler for Mac OS X Lion
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.

13 years agoMerge with 3.2.
Georg Brandl [Mon, 8 Aug 2011 19:45:24 +0000 (21:45 +0200)]
Merge with 3.2.

13 years agoConfirm that the prime example is actually correct. We get so many complaints about...
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.

13 years agoMerge 3.2
Éric Araujo [Mon, 8 Aug 2011 14:56:46 +0000 (16:56 +0200)]
Merge 3.2

13 years agoBranch merge
Éric Araujo [Mon, 8 Aug 2011 14:56:17 +0000 (16:56 +0200)]
Branch merge

13 years agoBranch merge
Éric Araujo [Mon, 8 Aug 2011 14:56:00 +0000 (16:56 +0200)]
Branch merge

13 years agoClean up shutil.disk_usage.
É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.