]> granicus.if.org Git - python/log
python
13 years agoRemove the old style [...] to denote optional args and show the defaults.
Brian Curtin [Tue, 8 Nov 2011 20:30:02 +0000 (14:30 -0600)]
Remove the old style [...] to denote optional args and show the defaults.

13 years agoBack out changeset b6336ba796d4 until fix for #13303.
Charles-François Natali [Tue, 8 Nov 2011 19:38:11 +0000 (20:38 +0100)]
Back out changeset b6336ba796d4 until fix for #13303.

13 years agotest_import: test_execute_bit_not_copied() was actually a no-op: enable it.
Charles-François Natali [Tue, 8 Nov 2011 18:43:09 +0000 (19:43 +0100)]
test_import: test_execute_bit_not_copied() was actually a no-op: enable it.

13 years agotest_import: test_execute_bit_not_copied() was actually a no-op: fix it.
Charles-François Natali [Tue, 8 Nov 2011 18:42:02 +0000 (19:42 +0100)]
test_import: test_execute_bit_not_copied() was actually a no-op: fix it.

13 years agoFix BytesWarnings in fnmatch
Antoine Pitrou [Tue, 8 Nov 2011 17:39:15 +0000 (18:39 +0100)]
Fix BytesWarnings in fnmatch

13 years agoFix missing goto
Antoine Pitrou [Tue, 8 Nov 2011 17:37:16 +0000 (18:37 +0100)]
Fix missing goto

13 years agoPartial patch for issue #11812: Take care of test_telnetlib.py
Jesus Cea [Tue, 8 Nov 2011 15:24:43 +0000 (16:24 +0100)]
Partial patch for issue #11812: Take care of test_telnetlib.py

13 years agoSolved a potential deadlock in test_telnetlib.py. Related to issue #11812
Jesus Cea [Tue, 8 Nov 2011 15:20:46 +0000 (16:20 +0100)]
Solved a potential deadlock in test_telnetlib.py. Related to issue #11812

13 years agoIssue #13237: Fix formatting error - the legacy shell commands weren't meant to be...
Nick Coghlan [Tue, 8 Nov 2011 11:50:58 +0000 (21:50 +1000)]
Issue #13237: Fix formatting error - the legacy shell commands weren't meant to be under the Notes heading

13 years agoIssue #13237: Remove duplicate data value descriptions from the subprocess docs
Nick Coghlan [Tue, 8 Nov 2011 11:39:07 +0000 (21:39 +1000)]
Issue #13237: Remove duplicate data value descriptions from the subprocess docs

13 years agoIssue #13237: Forward port subprocess module updates and explicitly document UTF...
Nick Coghlan [Tue, 8 Nov 2011 10:49:23 +0000 (20:49 +1000)]
Issue #13237: Forward port subprocess module updates and explicitly document UTF-8 encoding assumption when universal_newlines=True

13 years agoDon’t interpret backslashes in ASCII diagram in a docstring
Éric Araujo [Mon, 7 Nov 2011 16:52:48 +0000 (17:52 +0100)]
Don’t interpret backslashes in ASCII diagram in a docstring

13 years agoDocument that shutil.make_archive does not typecheck its logger argument
Éric Araujo [Mon, 7 Nov 2011 16:31:07 +0000 (17:31 +0100)]
Document that shutil.make_archive does not typecheck its logger argument

13 years agoMake _PyUnicode_FromId return borrowed references.
Martin v. Löwis [Mon, 7 Nov 2011 12:00:05 +0000 (13:00 +0100)]
Make _PyUnicode_FromId return borrowed references.
http://mail.python.org/pipermail/python-dev/2011-November/114347.html

13 years agoChange decoders to use Unicode API instead of Py_UNICODE.
Martin v. Löwis [Tue, 8 Nov 2011 16:35:34 +0000 (17:35 +0100)]
Change decoders to use Unicode API instead of Py_UNICODE.

13 years agoCommit 59dca1e2363d for issue #13327 introduced a compilation warning
Jesus Cea [Tue, 8 Nov 2011 16:28:04 +0000 (17:28 +0100)]
Commit 59dca1e2363d for issue #13327 introduced a compilation warning

13 years agoMERGE: Partial patch for issue #11812: Take care of test_telnetlib.py
Jesus Cea [Tue, 8 Nov 2011 15:39:26 +0000 (16:39 +0100)]
MERGE: Partial patch for issue #11812: Take care of test_telnetlib.py

13 years agoMERGE: Solved a potential deadlock in test_telnetlib.py. Related to issue #11812
Jesus Cea [Tue, 8 Nov 2011 15:34:22 +0000 (16:34 +0100)]
MERGE: Solved a potential deadlock in test_telnetlib.py. Related to issue #11812

13 years agoIssue #13237: Forward port from 3.2 of subprocess documentation updates. Needed quite...
Nick Coghlan [Tue, 8 Nov 2011 12:11:21 +0000 (22:11 +1000)]
Issue #13237: Forward port from 3.2 of subprocess documentation updates. Needed quite a few adjustments to account for new features coming in 3.3

13 years agoNews updates for #13327.
Brian Curtin [Mon, 7 Nov 2011 22:30:01 +0000 (16:30 -0600)]
News updates for #13327.

13 years agoSome win32 platforms raise NotADirectoryError, others FileNotFoundError. Issue #13366.
Florent Xicluna [Mon, 7 Nov 2011 22:24:08 +0000 (23:24 +0100)]
Some win32 platforms raise NotADirectoryError, others FileNotFoundError. Issue #13366.

13 years agobranch merge.
Brian Curtin [Mon, 7 Nov 2011 22:09:54 +0000 (16:09 -0600)]
branch merge.

13 years agoFix #13327. utimensat now has the atime and mtime arguments set as optional,
Brian Curtin [Mon, 7 Nov 2011 22:09:20 +0000 (16:09 -0600)]
Fix #13327. utimensat now has the atime and mtime arguments set as optional,
defaulting to None like the other utimes family members. It now accepts
keyword arguments because, unlike other other functions in the family,
it has a `flags` value at the end of the argument list (which
retains its 0 default).

13 years agoCloses #13366: fix test_pep277 failure on Windows.
Florent Xicluna [Mon, 7 Nov 2011 20:56:17 +0000 (21:56 +0100)]
Closes #13366: fix test_pep277 failure on Windows.

13 years agoForgot to apply the futimesat change.
Brian Curtin [Mon, 7 Nov 2011 20:38:24 +0000 (14:38 -0600)]
Forgot to apply the futimesat change.

13 years agobranch merge
Brian Curtin [Mon, 7 Nov 2011 20:19:46 +0000 (14:19 -0600)]
branch merge

13 years agoFix 13327. Remove explicit None arguments from futimes, futimens, futimesat,
Brian Curtin [Mon, 7 Nov 2011 20:18:54 +0000 (14:18 -0600)]
Fix 13327. Remove explicit None arguments from futimes, futimens, futimesat,
and lutimes.

13 years agoMore assertions in test_unicode_file, to chase issue #13348.
Florent Xicluna [Mon, 7 Nov 2011 18:49:07 +0000 (19:49 +0100)]
More assertions in test_unicode_file, to chase issue #13348.

13 years agofileinput: replace this last occurence of codecs.open with builtins.open.
Florent Xicluna [Mon, 7 Nov 2011 18:43:07 +0000 (19:43 +0100)]
fileinput: replace this last occurence of codecs.open with builtins.open.

13 years agologging: replace codecs.open with builtins.open, remove '_encoded' sort, add some...
Florent Xicluna [Mon, 7 Nov 2011 18:43:05 +0000 (19:43 +0100)]
logging: replace codecs.open with builtins.open, remove '_encoded' sort, add some tests.

13 years agoMerge 3.2
Éric Araujo [Mon, 7 Nov 2011 17:11:27 +0000 (18:11 +0100)]
Merge 3.2

13 years agoBranch merge
Éric Araujo [Mon, 7 Nov 2011 17:11:12 +0000 (18:11 +0100)]
Branch merge

13 years agoAdjust None handling to be a bit more clean. Thanks to Benjamin
Brian Curtin [Mon, 7 Nov 2011 16:51:18 +0000 (10:51 -0600)]
Adjust None handling to be a bit more clean. Thanks to Benjamin
for pointing it out.

13 years agoCloses #13361: Merge fix from 3.2.
Vinay Sajip [Mon, 7 Nov 2011 10:15:55 +0000 (10:15 +0000)]
Closes #13361: Merge fix from 3.2.

13 years agoCloses #13361: Raise correct exception type.
Vinay Sajip [Mon, 7 Nov 2011 10:15:08 +0000 (10:15 +0000)]
Closes #13361: Raise correct exception type.

13 years agoMerged fix for #13361 from 3.2.
Vinay Sajip [Mon, 7 Nov 2011 08:53:58 +0000 (08:53 +0000)]
Merged fix for #13361 from 3.2.

13 years agoCloses #13661: Check added for type of logger name.
Vinay Sajip [Mon, 7 Nov 2011 08:53:03 +0000 (08:53 +0000)]
Closes #13661: Check added for type of logger name.

13 years agoRemove unnecessary version check
Éric Araujo [Mon, 7 Nov 2011 08:18:30 +0000 (09:18 +0100)]
Remove unnecessary version check

13 years agoquote the type name for improved readability
Philip Jenvey [Mon, 7 Nov 2011 00:37:52 +0000 (16:37 -0800)]
quote the type name for improved readability

13 years agoOops. Update a placeholder comment with the issue number.
Brian Curtin [Sun, 6 Nov 2011 19:50:15 +0000 (13:50 -0600)]
Oops. Update a placeholder comment with the issue number.

13 years agoFix #13327. Remove the need for an explicit None as the second argument to
Brian Curtin [Sun, 6 Nov 2011 19:41:17 +0000 (13:41 -0600)]
Fix #13327. Remove the need for an explicit None as the second argument to
os.utime in order to update to the current time. The second argument is now
optional.

13 years agoRevert "Accept None as start and stop parameters for list.index() and tuple.index()"
Petri Lehtinen [Sun, 6 Nov 2011 19:05:41 +0000 (21:05 +0200)]
Revert "Accept None as start and stop parameters for list.index() and tuple.index()"

Issue #13340.

13 years agoRevert "Accept None as start and stop parameters for list.index() and tuple.index()"
Petri Lehtinen [Sun, 6 Nov 2011 19:02:39 +0000 (21:02 +0200)]
Revert "Accept None as start and stop parameters for list.index() and tuple.index()"

Issue #13340.

13 years agoIssue #13350: Replace most usages of PyUnicode_Format by PyUnicode_FromFormat.
Amaury Forgeot d'Arc [Sun, 6 Nov 2011 14:10:48 +0000 (15:10 +0100)]
Issue #13350: Replace most usages of PyUnicode_Format by PyUnicode_FromFormat.

13 years agoUse more standard name for one option of packaging’s install_distinfo
Éric Araujo [Sun, 6 Nov 2011 10:52:30 +0000 (11:52 +0100)]
Use more standard name for one option of packaging’s install_distinfo

13 years agoRemove redundant __main__ blocks from packaging modules.
Éric Araujo [Sun, 6 Nov 2011 10:38:58 +0000 (11:38 +0100)]
Remove redundant __main__ blocks from packaging modules.

The one interface we commit to maintain is the run module
(a.k.a. the pysetup script).

13 years agoClean up mocking of stdout and stdin in packaging tests.
Éric Araujo [Sun, 6 Nov 2011 10:32:47 +0000 (11:32 +0100)]
Clean up mocking of stdout and stdin in packaging tests.

Running with regrtest does not show spurious output or unrestored
sys.std* objects; sometimes running with make test is different, I’ll
watch the buildbots.

In addition, update the create module to use logging.

13 years agoMinor tweak to packaging tests.
Éric Araujo [Sun, 6 Nov 2011 09:48:55 +0000 (10:48 +0100)]
Minor tweak to packaging tests.

When an option is changed on a command object, calling ensure_finalized
for a second time will not run finalize_options again, because
ensure_finalized is a no-op the second time.  By resetting the finalized
attribute, we can be sure that whatever computation takes place in
finalize_options will happen again.

(In test_command_clean, I removed two lines that were a no-op.)

13 years agocurses.tparm() is expecting a byte string, not curses.tigetstr()
Petri Lehtinen [Sun, 6 Nov 2011 07:26:17 +0000 (09:26 +0200)]
curses.tparm() is expecting a byte string, not curses.tigetstr()

Issue #10570

13 years agocurses.tparm() is expecting a byte string, not curses.tigetstr()
Petri Lehtinen [Sun, 6 Nov 2011 07:24:19 +0000 (09:24 +0200)]
curses.tparm() is expecting a byte string, not curses.tigetstr()

Issue #10570

13 years agoUndo potentially confusing name change in packaging.
Éric Araujo [Sun, 6 Nov 2011 05:54:05 +0000 (06:54 +0100)]
Undo potentially confusing name change in packaging.

This method was named reinitialize_command in distutils and accompanied
by a comment suggesting to change it to get_reinitialized_command.
Following that, I did the change for distutils2, but it proved
confusing: The Distribution object has an internal cache of command
objects, to make sure only one instance is ever used, and the name
get_reinitialized_command could suggest that the object returned was
independent of that cache, which it was not.  I’m reverting the name
change to make code clearer.

13 years agoMake sure packaging tests that register custom commands also clear them
Éric Araujo [Sun, 6 Nov 2011 06:01:18 +0000 (07:01 +0100)]
Make sure packaging tests that register custom commands also clear them

13 years agoIssue #13300: Fix IDLE Restart Shell command failure introduced by
Ned Deily [Sun, 6 Nov 2011 05:36:44 +0000 (22:36 -0700)]
Issue #13300: Fix IDLE Restart Shell command failure introduced by
3a5a0943b201.  Do not close listening socket on subprocess restart.

13 years agoRemove obsolete/duplicate entries
Éric Araujo [Sun, 6 Nov 2011 04:35:32 +0000 (05:35 +0100)]
Remove obsolete/duplicate entries

13 years agoSkip early if stdin and stdout are not ttys
Antoine Pitrou [Sun, 6 Nov 2011 02:04:12 +0000 (03:04 +0100)]
Skip early if stdin and stdout are not ttys

13 years agoSkip early if stdin and stdout are not ttys
Antoine Pitrou [Sun, 6 Nov 2011 02:03:18 +0000 (03:03 +0100)]
Skip early if stdin and stdout are not ttys

13 years agoNull merge
Antoine Pitrou [Sun, 6 Nov 2011 01:51:52 +0000 (02:51 +0100)]
Null merge

13 years agoBackport robustness fix for test_builtin
Antoine Pitrou [Sun, 6 Nov 2011 01:51:25 +0000 (02:51 +0100)]
Backport robustness fix for test_builtin

13 years agoTry to make the tty input() tests more robust
Antoine Pitrou [Sun, 6 Nov 2011 01:37:42 +0000 (02:37 +0100)]
Try to make the tty input() tests more robust

13 years agoIssue #13342: input() used to ignore sys.stdin's and sys.stdout's unicode
Antoine Pitrou [Sat, 5 Nov 2011 23:38:45 +0000 (00:38 +0100)]
Issue #13342: input() used to ignore sys.stdin's and sys.stdout's unicode
error handler in interactive mode (when calling into PyOS_Readline()).

13 years agoIssue #13342: input() used to ignore sys.stdin's and sys.stdout's unicode
Antoine Pitrou [Sat, 5 Nov 2011 23:34:26 +0000 (00:34 +0100)]
Issue #13342: input() used to ignore sys.stdin's and sys.stdout's unicode
error handler in interactive mode (when calling into PyOS_Readline()).

13 years agoAccept None as start and stop parameters for list.index() and tuple.index().
Petri Lehtinen [Sat, 5 Nov 2011 21:23:17 +0000 (23:23 +0200)]
Accept None as start and stop parameters for list.index() and tuple.index().

Closes #13340.

13 years agoAccept None as start and stop parameters for list.index() and tuple.index()
Petri Lehtinen [Sat, 5 Nov 2011 21:20:57 +0000 (23:20 +0200)]
Accept None as start and stop parameters for list.index() and tuple.index()

Closes #13340.

13 years agoFix whitespace
Raymond Hettinger [Sat, 5 Nov 2011 20:43:01 +0000 (13:43 -0700)]
Fix whitespace

13 years agoMerge
Raymond Hettinger [Sat, 5 Nov 2011 20:39:57 +0000 (13:39 -0700)]
Merge

13 years agoImprove Counter.__repr__() to not fail with unorderable values
Raymond Hettinger [Sat, 5 Nov 2011 20:35:26 +0000 (13:35 -0700)]
Improve Counter.__repr__() to not fail with unorderable values

13 years agoUpdate .gitignore
Petri Lehtinen [Sat, 5 Nov 2011 20:07:16 +0000 (22:07 +0200)]
Update .gitignore

13 years agoMerge 3.2
Petri Lehtinen [Sat, 5 Nov 2011 20:06:49 +0000 (22:06 +0200)]
Merge 3.2

13 years agoUpdate .gitignore
Petri Lehtinen [Sat, 5 Nov 2011 20:06:30 +0000 (22:06 +0200)]
Update .gitignore

13 years agoMerge heads
Petri Lehtinen [Sat, 5 Nov 2011 20:00:14 +0000 (22:00 +0200)]
Merge heads

13 years agoRemove __pycache__ directories correctly on OpenBSD
Petri Lehtinen [Sat, 5 Nov 2011 19:23:48 +0000 (21:23 +0200)]
Remove __pycache__ directories correctly on OpenBSD

Closes #13326.

13 years agonews note about range introspection
Benjamin Peterson [Sat, 5 Nov 2011 19:18:51 +0000 (15:18 -0400)]
news note about range introspection

13 years agoadd introspection to range objects (closes #9896)
Benjamin Peterson [Sat, 5 Nov 2011 19:17:52 +0000 (15:17 -0400)]
add introspection to range objects (closes #9896)

Patch by Daniel Urban.

13 years agoRemove __pycache__ directories correctly on OpenBSD
Petri Lehtinen [Sat, 5 Nov 2011 19:04:24 +0000 (21:04 +0200)]
Remove __pycache__ directories correctly on OpenBSD

The find utility of OpenBSD doesn't support the "-exec cmd {} +"
action. Change it to use "-depth -exec cmd {} ;" instead.

Also, remove __pycache__ before *.py[co], as most bytecode files are
in __pycache__ directories. Only those generated by Python 2 under
Doc/tools are not.

Closes #13326.

13 years agoTry to fix buildbot failures from #13193
Éric Araujo [Sat, 5 Nov 2011 16:51:52 +0000 (17:51 +0100)]
Try to fix buildbot failures from #13193

13 years agoasyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag
Charles-François Natali [Sat, 5 Nov 2011 13:16:01 +0000 (14:16 +0100)]
asyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag
to poll(2): don't set them.

13 years agoIssue #3067: Enhance the documentation and docstring of locale.setlocale()
Petri Lehtinen [Sat, 5 Nov 2011 08:21:49 +0000 (10:21 +0200)]
Issue #3067: Enhance the documentation and docstring of locale.setlocale()

13 years agoIssue #3067: Enhance the documentation and docstring of locale.setlocale()
Petri Lehtinen [Sat, 5 Nov 2011 08:18:50 +0000 (10:18 +0200)]
Issue #3067: Enhance the documentation and docstring of locale.setlocale()

13 years agoFix Maildir initialization so that maildir contents are read correctly.
Petri Lehtinen [Sat, 5 Nov 2011 07:45:53 +0000 (09:45 +0200)]
Fix Maildir initialization so that maildir contents are read correctly.

Closes #13254.

13 years agoFix Maildir initialization so that maildir contents are read correctly.
Petri Lehtinen [Sat, 5 Nov 2011 07:44:59 +0000 (09:44 +0200)]
Fix Maildir initialization so that maildir contents are read correctly.

Closes #13254.

13 years agoOops, really fix gdb/libpython.py for not ready Unicode strings
Victor Stinner [Fri, 4 Nov 2011 21:34:01 +0000 (22:34 +0100)]
Oops, really fix gdb/libpython.py for not ready Unicode strings

13 years agoIssue #13343: Fix a SystemError when a lambda expression uses a global
Amaury Forgeot d'Arc [Fri, 4 Nov 2011 21:29:24 +0000 (22:29 +0100)]
Issue #13343: Fix a SystemError when a lambda expression uses a global
variable in the default value of a keyword-only argument:
(lambda *, arg=GLOBAL_NAME: None)

13 years agoIssue #13343: Fix a SystemError when a lambda expression uses a global
Amaury Forgeot d'Arc [Fri, 4 Nov 2011 21:17:45 +0000 (22:17 +0100)]
Issue #13343: Fix a SystemError when a lambda expression uses a global
variable in the default value of a keyword-only argument:
(lambda *, arg=GLOBAL_NAME: None)

13 years agoFix test_urllib2 error on Windows in relation with issue #13287.
Florent Xicluna [Fri, 4 Nov 2011 21:15:37 +0000 (22:15 +0100)]
Fix test_urllib2 error on Windows in relation with issue #13287.

13 years agoMerge heads
Petri Lehtinen [Fri, 4 Nov 2011 20:36:54 +0000 (22:36 +0200)]
Merge heads

13 years agoAvoid the Py_UNICODE type in codecs.c
Victor Stinner [Fri, 4 Nov 2011 20:36:35 +0000 (21:36 +0100)]
Avoid the Py_UNICODE type in codecs.c

13 years agoPyCodec_XMLCharRefReplaceError(): Remove unused variable
Victor Stinner [Fri, 4 Nov 2011 20:29:10 +0000 (21:29 +0100)]
PyCodec_XMLCharRefReplaceError(): Remove unused variable

13 years agoIssue #3067: Fix the error raised by locale.setlocale()
Petri Lehtinen [Fri, 4 Nov 2011 20:21:52 +0000 (22:21 +0200)]
Issue #3067: Fix the error raised by locale.setlocale()

13 years agoIssue #3067: Fix the error raised by locale.setlocale()
Petri Lehtinen [Fri, 4 Nov 2011 19:35:07 +0000 (21:35 +0200)]
Issue #3067: Fix the error raised by locale.setlocale()

13 years agoFix gdb/libpython.py for not ready Unicode strings
Victor Stinner [Fri, 4 Nov 2011 19:54:05 +0000 (20:54 +0100)]
Fix gdb/libpython.py for not ready Unicode strings

_PyUnicode_CheckConsistency() checks also hash and length value for not ready
Unicode strings.

13 years agoReplace tabs by spaces
Victor Stinner [Fri, 4 Nov 2011 19:06:39 +0000 (20:06 +0100)]
Replace tabs by spaces

13 years agoDrop Py_UNICODE based encode exceptions.
Martin v. Löwis [Fri, 4 Nov 2011 18:04:15 +0000 (19:04 +0100)]
Drop Py_UNICODE based encode exceptions.

13 years agoPort code page codec to Unicode API.
Martin v. Löwis [Fri, 4 Nov 2011 17:23:06 +0000 (18:23 +0100)]
Port code page codec to Unicode API.

13 years agoFix C89 incompatibility.
Martin v. Löwis [Fri, 4 Nov 2011 11:26:49 +0000 (12:26 +0100)]
Fix C89 incompatibility.

13 years agoPort error handlers from Py_UNICODE indexing to code point indexing.
Martin v. Löwis [Fri, 4 Nov 2011 10:16:41 +0000 (11:16 +0100)]
Port error handlers from Py_UNICODE indexing to code point indexing.

13 years agoMerge 3.2: issue #13140
Florent Xicluna [Fri, 4 Nov 2011 09:22:57 +0000 (10:22 +0100)]
Merge 3.2: issue #13140

13 years agoCloses #13140: Fix the daemon_threads attribute of ThreadingMixIn.
Florent Xicluna [Fri, 4 Nov 2011 09:16:28 +0000 (10:16 +0100)]
Closes #13140: Fix the daemon_threads attribute of ThreadingMixIn.

13 years agoIssue #12342: Fix compilation on Mac OS X
Victor Stinner [Fri, 4 Nov 2011 08:49:24 +0000 (09:49 +0100)]
Issue #12342: Fix compilation on Mac OS X

13 years agoRemove redundant imports.
Florent Xicluna [Fri, 4 Nov 2011 07:29:17 +0000 (08:29 +0100)]
Remove redundant imports.

13 years agoDrop unused import in unittest package.
Florent Xicluna [Fri, 4 Nov 2011 07:25:54 +0000 (08:25 +0100)]
Drop unused import in unittest package.