]> granicus.if.org Git - python/log
python
14 years agoSupport new Condition return value in the multiprocessing version.
Georg Brandl [Thu, 28 Oct 2010 13:01:06 +0000 (13:01 +0000)]
Support new Condition return value in the multiprocessing version.

14 years agotest_pep277: add identifiers to filenames
Victor Stinner [Thu, 28 Oct 2010 11:20:31 +0000 (11:20 +0000)]
test_pep277: add identifiers to filenames

14 years agotest_pep277: format filename with ascii() on failure
Victor Stinner [Thu, 28 Oct 2010 11:11:24 +0000 (11:11 +0000)]
test_pep277: format filename with ascii() on failure

"%a" instead of "%r"

14 years agotest_pep277: format function argument with ascii() on failure
Victor Stinner [Thu, 28 Oct 2010 11:09:09 +0000 (11:09 +0000)]
test_pep277: format function argument with ascii() on failure

"%a" instead of "%r"

14 years agoissue 8777
Kristján Valur Jónsson [Thu, 28 Oct 2010 09:43:10 +0000 (09:43 +0000)]
issue 8777
Add threading.Barrier

14 years agoCondition.wait now returns bool.
Georg Brandl [Thu, 28 Oct 2010 09:24:56 +0000 (09:24 +0000)]
Condition.wait now returns bool.

14 years ago#10218: return timeout status from Condition.wait, mirroring other primitives' behavior.
Georg Brandl [Thu, 28 Oct 2010 09:03:20 +0000 (09:03 +0000)]
#10218: return timeout status from Condition.wait, mirroring other primitives' behavior.

14 years agoFix bytes/str issues in get-remote-certificate.py.
Georg Brandl [Thu, 28 Oct 2010 08:38:30 +0000 (08:38 +0000)]
Fix bytes/str issues in get-remote-certificate.py.

14 years ago#7351: add more consistent exception name alias.
Georg Brandl [Thu, 28 Oct 2010 06:42:33 +0000 (06:42 +0000)]
#7351: add more consistent exception name alias.

14 years agoIssue #8852: Allow the socket module to build on OpenSolaris.
Antoine Pitrou [Wed, 27 Oct 2010 20:13:57 +0000 (20:13 +0000)]
Issue #8852: Allow the socket module to build on OpenSolaris.

14 years agoAdd David.
Georg Brandl [Wed, 27 Oct 2010 20:01:51 +0000 (20:01 +0000)]
Add David.

14 years agoIn open(), only set the buffer size from st.st_blksize when it is greater
Antoine Pitrou [Wed, 27 Oct 2010 19:45:43 +0000 (19:45 +0000)]
In open(), only set the buffer size from st.st_blksize when it is greater
than 1.  This matches the pure Python implementation in _pyio and should
fix a couple of failures on the NetBSD buildbot.

14 years agoRecode modules from latin-1 to utf-8
Antoine Pitrou [Wed, 27 Oct 2010 18:52:48 +0000 (18:52 +0000)]
Recode modules from latin-1 to utf-8

14 years agoIssue #5027: The standard `xml` namespace is now understood by
Antoine Pitrou [Wed, 27 Oct 2010 18:33:30 +0000 (18:33 +0000)]
Issue #5027: The standard `xml` namespace is now understood by
xml.sax.saxutils.XMLGenerator as being bound to
http://www.w3.org/XML/1998/namespace.  Patch by Troy J. Farrell.

14 years agoIssue #10193: Simplified instrospection used by turtle module
Alexander Belopolsky [Wed, 27 Oct 2010 13:25:45 +0000 (13:25 +0000)]
Issue #10193: Simplified instrospection used by turtle module

14 years ago#5975: add unix_dialect to csv module.
Georg Brandl [Wed, 27 Oct 2010 07:27:06 +0000 (07:27 +0000)]
#5975: add unix_dialect to csv module.

14 years agoEncoding fix.
Georg Brandl [Wed, 27 Oct 2010 07:21:54 +0000 (07:21 +0000)]
Encoding fix.

14 years agoIssue #7061: Dropped "for Tk" from turtle module title and moved its
Alexander Belopolsky [Wed, 27 Oct 2010 03:06:43 +0000 (03:06 +0000)]
Issue #7061: Dropped "for Tk" from turtle module title and moved its
doc section under frameworks.  Also fixed a couple of markup issues
that affected TOC rendering.

14 years agoSimplify PyUnicode_Encode/DecodeFSDefault on Windows/Mac OS X
Victor Stinner [Wed, 27 Oct 2010 00:25:46 +0000 (00:25 +0000)]
Simplify PyUnicode_Encode/DecodeFSDefault on Windows/Mac OS X

 * Windows always uses mbcs
 * Mac OS X always uses utf-8

14 years agoFix import.
Georg Brandl [Tue, 26 Oct 2010 20:12:37 +0000 (20:12 +0000)]
Fix import.

14 years ago#10200: typo.
Georg Brandl [Tue, 26 Oct 2010 19:58:11 +0000 (19:58 +0000)]
#10200: typo.

14 years ago#10200: typo.
Georg Brandl [Tue, 26 Oct 2010 19:31:06 +0000 (19:31 +0000)]
#10200: typo.

14 years agologging: Improved Formatter implementation.
Vinay Sajip [Tue, 26 Oct 2010 13:16:11 +0000 (13:16 +0000)]
logging: Improved Formatter implementation.

14 years ago#7761: fix telnetlib.interact failures on Windows.
R. David Murray [Tue, 26 Oct 2010 12:42:24 +0000 (12:42 +0000)]
#7761: fix telnetlib.interact failures on Windows.

14 years agofaqwiz is removed.
Georg Brandl [Tue, 26 Oct 2010 10:42:16 +0000 (10:42 +0000)]
faqwiz is removed.

14 years agoWork a bit more on tkinter demos.
Georg Brandl [Tue, 26 Oct 2010 10:39:14 +0000 (10:39 +0000)]
Work a bit more on tkinter demos.

14 years agoMarkup fix.
Georg Brandl [Tue, 26 Oct 2010 06:59:23 +0000 (06:59 +0000)]
Markup fix.

14 years ago#3018: tkinter demo fixes for py3k.
Georg Brandl [Mon, 25 Oct 2010 17:50:20 +0000 (17:50 +0000)]
#3018: tkinter demo fixes for py3k.

14 years agosys_update_path(): update sys.path even if argc==0
Victor Stinner [Mon, 25 Oct 2010 17:37:23 +0000 (17:37 +0000)]
sys_update_path(): update sys.path even if argc==0

14 years agoupdate gitignore
Victor Stinner [Mon, 25 Oct 2010 17:37:18 +0000 (17:37 +0000)]
update gitignore

14 years agoFix issue10192 - add urlencode to urllib.parse.__all__
Senthil Kumaran [Mon, 25 Oct 2010 16:36:20 +0000 (16:36 +0000)]
Fix issue10192 - add urlencode to urllib.parse.__all__

14 years agologging: Formatter implementation tweak.
Vinay Sajip [Mon, 25 Oct 2010 15:25:24 +0000 (15:25 +0000)]
logging: Formatter implementation tweak.

14 years agologging: Added style option to Formatter to allow %, {} or himBHformatting.
Vinay Sajip [Mon, 25 Oct 2010 13:57:39 +0000 (13:57 +0000)]
logging: Added style option to Formatter to allow %, {} or himBHformatting.

14 years agoIssue #10143: Update "os.pathconf" values
Jesus Cea [Mon, 25 Oct 2010 13:02:04 +0000 (13:02 +0000)]
Issue #10143: Update "os.pathconf" values

14 years agotest_gdb should be skipped on darwin (not up to v7 yet)
Skip Montanaro [Mon, 25 Oct 2010 01:35:48 +0000 (01:35 +0000)]
test_gdb should be skipped on darwin (not up to v7 yet)

14 years agostr.encode() doesn't accept None as errors: use 'strict' instead
Victor Stinner [Sun, 24 Oct 2010 21:12:26 +0000 (21:12 +0000)]
str.encode() doesn't accept None as errors: use 'strict' instead

14 years agoIssue #10161: test_pep277 formats filenames with ascii() on error
Victor Stinner [Sun, 24 Oct 2010 21:05:03 +0000 (21:05 +0000)]
Issue #10161: test_pep277 formats filenames with ascii() on error

As suggested by Antoine, it's better to patch only test_pep277 than the
unittest module.

14 years agoThese are true PyCFunctions, after adding the second argument to oss_self, no need...
Georg Brandl [Sun, 24 Oct 2010 20:47:32 +0000 (20:47 +0000)]
These are true PyCFunctions, after adding the second argument to oss_self, no need to cast.

14 years agoIssue #8761: Mangle PyUnicode_CompareWithASCIIString function name for
Victor Stinner [Sun, 24 Oct 2010 20:38:25 +0000 (20:38 +0000)]
Issue #8761: Mangle PyUnicode_CompareWithASCIIString function name for
narrow/wide unicode build.

14 years agoos: fsencode(), fsdecode() and os.environ(b) internal encode-decode methods
Victor Stinner [Sun, 24 Oct 2010 20:32:26 +0000 (20:32 +0000)]
os: fsencode(), fsdecode() and os.environ(b) internal encode-decode methods
keep a local copy of the fileystem encoding, instead of calling
sys.getfilesystemencoding() each time.

The filesystem encoding is now constant.

14 years agoAdd documentation about the default warnings filters.
Georg Brandl [Sun, 24 Oct 2010 15:16:02 +0000 (15:16 +0000)]
Add documentation about the default warnings filters.

14 years agoAdd a new warning gategory, ResourceWarning, as discussed on python-dev. It is silen...
Georg Brandl [Sun, 24 Oct 2010 15:11:22 +0000 (15:11 +0000)]
Add a new warning gategory, ResourceWarning, as discussed on python-dev.  It is silent by default,
except when configured --with-pydebug.

Emit this warning from the GC shutdown procedure, rather than just printing to stderr.

14 years agoFix style.
Georg Brandl [Sun, 24 Oct 2010 14:32:45 +0000 (14:32 +0000)]
Fix style.

14 years agoAdd casts (one needed, one for consistency).
Georg Brandl [Sun, 24 Oct 2010 14:21:42 +0000 (14:21 +0000)]
Add casts (one needed, one for consistency).

14 years agoRemove usage of exception indexing.
Georg Brandl [Sun, 24 Oct 2010 14:20:22 +0000 (14:20 +0000)]
Remove usage of exception indexing.

14 years agoIssue 5178: Add tempfile.TemporaryDirectory (original patch by Neil Schemenauer)
Nick Coghlan [Sun, 24 Oct 2010 11:23:25 +0000 (11:23 +0000)]
Issue 5178: Add tempfile.TemporaryDirectory (original patch by Neil Schemenauer)

14 years agotighten loop
Benjamin Peterson [Sun, 24 Oct 2010 03:41:46 +0000 (03:41 +0000)]
tighten loop

14 years agoremove broken code accounting an offset the size of the line #10186
Benjamin Peterson [Sun, 24 Oct 2010 02:52:05 +0000 (02:52 +0000)]
remove broken code accounting an offset the size of the line #10186

14 years ago#1349106: add linesep argument to generator.flatten and header.encode.
R. David Murray [Sat, 23 Oct 2010 22:19:56 +0000 (22:19 +0000)]
#1349106: add linesep argument to generator.flatten and header.encode.

14 years agoIssue #10185: use Py_hash_t instead of long
Antoine Pitrou [Sat, 23 Oct 2010 19:42:38 +0000 (19:42 +0000)]
Issue #10185: use Py_hash_t instead of long

14 years agoRevert r85801. The test ought to pass without rounding.
Martin v. Löwis [Sat, 23 Oct 2010 19:02:30 +0000 (19:02 +0000)]
Revert r85801. The test ought to pass without rounding.

14 years agoFollow up to #9778: fix regressions on 64-bit Windows builds
Antoine Pitrou [Sat, 23 Oct 2010 17:37:54 +0000 (17:37 +0000)]
Follow up to #9778: fix regressions on 64-bit Windows builds

14 years ago#6518: enable context manager protocol for ossaudiodev types.
Georg Brandl [Sat, 23 Oct 2010 17:31:52 +0000 (17:31 +0000)]
#6518: enable context manager protocol for ossaudiodev types.

14 years agoAlso guard other SOCK_NONBLOCK test
Antoine Pitrou [Sat, 23 Oct 2010 17:05:13 +0000 (17:05 +0000)]
Also guard other SOCK_NONBLOCK test

14 years agoIssue #6011: sysconfig and distutils.sysconfig use the surrogateescape error
Victor Stinner [Sat, 23 Oct 2010 17:02:31 +0000 (17:02 +0000)]
Issue #6011: sysconfig and distutils.sysconfig use the surrogateescape error
handler to parse the Makefile file. Avoid a UnicodeDecodeError if the source
code directory name contains a non-ASCII character and the locale encoding is
ASCII.

14 years agoFix SOCK_CLOEXEC and SOCK_NONBLOCK tests on recent glibcs with old Linux kernels.
Antoine Pitrou [Sat, 23 Oct 2010 17:01:44 +0000 (17:01 +0000)]
Fix SOCK_CLOEXEC and SOCK_NONBLOCK tests on recent glibcs with old Linux kernels.

14 years agofollow up to #9778: define and use an unsigned hash type
Benjamin Peterson [Sat, 23 Oct 2010 16:20:50 +0000 (16:20 +0000)]
follow up to #9778: define and use an unsigned hash type

14 years agoTry to fix test_tarfile on AMD64 debian parallel 3.x
Victor Stinner [Sat, 23 Oct 2010 01:15:30 +0000 (01:15 +0000)]
Try to fix test_tarfile on AMD64 debian parallel 3.x

tarinfo.mtime is an int, whereas getmtime() is a float and it might be
different by something like 3 µs.

14 years agoIssue #6011: getpath: decode VPATH env var from the locale encoding
Victor Stinner [Sat, 23 Oct 2010 00:13:28 +0000 (00:13 +0000)]
Issue #6011: getpath: decode VPATH env var from the locale encoding

Instead of casting it to wchar_t* without conversion. It fixes a bug if Python
is compiled a non-ascii directory, different than the source code directory,
with C locale.

14 years agoRevert r85797 (and r85798): it broke the Windows buildbots because of
Antoine Pitrou [Fri, 22 Oct 2010 21:41:05 +0000 (21:41 +0000)]
Revert r85797 (and r85798): it broke the Windows buildbots because of
test_multiprocessing's misbehaviour.

14 years agoUpdate what's new
Antoine Pitrou [Fri, 22 Oct 2010 19:45:13 +0000 (19:45 +0000)]
Update what's new

14 years agoIssue #9935: Speed up pickling of instances of user-defined classes.
Antoine Pitrou [Fri, 22 Oct 2010 19:43:59 +0000 (19:43 +0000)]
Issue #9935: Speed up pickling of instances of user-defined classes.

14 years agoFor now, remove accept4() code (issue #10115)
Antoine Pitrou [Fri, 22 Oct 2010 18:44:15 +0000 (18:44 +0000)]
For now, remove accept4() code (issue #10115)

14 years agoFix test_ssl on Ubuntu buildbot with patched OpenSSL
Antoine Pitrou [Fri, 22 Oct 2010 18:24:20 +0000 (18:24 +0000)]
Fix test_ssl on Ubuntu buildbot with patched OpenSSL

14 years agoIssue #5639: Add a *server_hostname* argument to `SSLContext.wrap_socket`
Antoine Pitrou [Fri, 22 Oct 2010 18:19:07 +0000 (18:19 +0000)]
Issue #5639: Add a *server_hostname* argument to `SSLContext.wrap_socket`
in order to support the TLS SNI extension.  `HTTPSConnection` and
`urlopen()` also use this argument, so that HTTPS virtual hosts are now
supported.

14 years agoOnly hack cmd.library_dirs when running under Py_ENABLE_SHARED. Tested both
Barry Warsaw [Fri, 22 Oct 2010 17:17:51 +0000 (17:17 +0000)]
Only hack cmd.library_dirs when running under Py_ENABLE_SHARED.  Tested both
with and without --enable-shared on Ubuntu 10.10.  Hopefully this finally
solves bug 10126.  Will check 3.1 next.

14 years agoRefactor interesting use of try-finally.
Georg Brandl [Fri, 22 Oct 2010 06:35:59 +0000 (06:35 +0000)]
Refactor interesting use of try-finally.

14 years agoMake top_level attribute a set instead of a dict with None values.
Georg Brandl [Fri, 22 Oct 2010 06:29:21 +0000 (06:29 +0000)]
Make top_level attribute a set instead of a dict with None values.

14 years ago#10166: rewrite self-recursion to iteration in pstats.Stats.add(). Also add a unitte...
Georg Brandl [Fri, 22 Oct 2010 06:28:01 +0000 (06:28 +0000)]
#10166: rewrite self-recursion to iteration in pstats.Stats.add().  Also add a unittest and a stats test file.

14 years agoApply fix from r85784 on py3k too.
Éric Araujo [Thu, 21 Oct 2010 23:02:07 +0000 (23:02 +0000)]
Apply fix from r85784 on py3k too.

Fixes bug #10126 for Python 3.2 by using $RUNSHARED to find the
directory to the shared library.  test_distutils now passes when
Python was built with --enable-shared (Barry didn’t have the error
but I did).

14 years agoFixed a typo
Alexander Belopolsky [Thu, 21 Oct 2010 22:29:36 +0000 (22:29 +0000)]
Fixed a typo

14 years agoIssue #7061: Fixed section title
Alexander Belopolsky [Thu, 21 Oct 2010 18:15:39 +0000 (18:15 +0000)]
Issue #7061: Fixed section title

14 years agoAdd .hgeol file for the Mercurial EOL extension.
Georg Brandl [Thu, 21 Oct 2010 15:44:51 +0000 (15:44 +0000)]
Add .hgeol file for the Mercurial EOL extension.

14 years agoFix r85774 editor fail. Had a dangling try and incorrect indent.
Brian Curtin [Thu, 21 Oct 2010 14:45:01 +0000 (14:45 +0000)]
Fix r85774 editor fail. Had a dangling try and incorrect indent.

14 years agoFix #10162: Add try/except around _winreg.OpenKey for keys that are
Brian Curtin [Thu, 21 Oct 2010 14:11:48 +0000 (14:11 +0000)]
Fix #10162: Add try/except around _winreg.OpenKey for keys that are
unreadable by all users, e.g., Flash, Silverlight, and Java keys were
causing errors.

We don't currently have a way to grant/deny permissions for a key
via winreg so there are no tests for this.

14 years ago#4829: better error message for invalid file mode
Georg Brandl [Thu, 21 Oct 2010 13:45:52 +0000 (13:45 +0000)]
#4829: better error message for invalid file mode

14 years agoIssue #10089: Add support for arbitrary -X options on the command-line.
Antoine Pitrou [Thu, 21 Oct 2010 13:42:28 +0000 (13:42 +0000)]
Issue #10089: Add support for arbitrary -X options on the command-line.
They can be retrieved through a new attribute `sys._xoptions`.

14 years ago#1203650: allow larger list of files in windows makefile for freeze.
Georg Brandl [Thu, 21 Oct 2010 13:34:51 +0000 (13:34 +0000)]
#1203650: allow larger list of files in windows makefile for freeze.

14 years ago#3077: fix h2py substitution of character literals.
Georg Brandl [Thu, 21 Oct 2010 13:29:10 +0000 (13:29 +0000)]
#3077: fix h2py substitution of character literals.

14 years agoFix missing import.
Georg Brandl [Thu, 21 Oct 2010 13:01:23 +0000 (13:01 +0000)]
Fix missing import.

14 years ago#9919: fix off-by-one error in lineno command in Misc/gdbinit; also add newline to...
Georg Brandl [Thu, 21 Oct 2010 12:59:14 +0000 (12:59 +0000)]
#9919: fix off-by-one error in lineno command in Misc/gdbinit; also add newline to its output.

14 years ago#9095, #8912, #8999: add support in patchcheck for Mercurial checkouts, C file reinde...
Georg Brandl [Thu, 21 Oct 2010 12:49:28 +0000 (12:49 +0000)]
#9095, #8912, #8999: add support in patchcheck for Mercurial checkouts, C file reindenting, and docs whitespace fixing.

14 years ago#10159: sort completion matches before comparing to dir() result.
Georg Brandl [Thu, 21 Oct 2010 07:40:03 +0000 (07:40 +0000)]
#10159: sort completion matches before comparing to dir() result.

14 years agoIssue #4388: On Mac OS X, decode command line arguments from UTF-8, instead of
Victor Stinner [Wed, 20 Oct 2010 22:58:25 +0000 (22:58 +0000)]
Issue #4388: On Mac OS X, decode command line arguments from UTF-8, instead of
the locale encoding. If the LANG (and LC_ALL and LC_CTYPE) environment variable
is not set, the locale encoding is ISO-8859-1, whereas most programs (including
Python) expect UTF-8. Python already uses UTF-8 for the filesystem encoding and
to encode command line arguments on this OS.

14 years agoMove non-ascii test from test_run_code() to a new function: test_non_ascii()
Victor Stinner [Wed, 20 Oct 2010 21:56:55 +0000 (21:56 +0000)]
Move non-ascii test from test_run_code() to a new function: test_non_ascii()

14 years agoMove test_undecodable_code() from test_sys to test_cmd_line
Victor Stinner [Wed, 20 Oct 2010 21:52:33 +0000 (21:52 +0000)]
Move test_undecodable_code() from test_sys to test_cmd_line

14 years agotest_zipimport_support: use ascii() on bytes output to avoid BytesWarning
Victor Stinner [Wed, 20 Oct 2010 21:48:35 +0000 (21:48 +0000)]
test_zipimport_support: use ascii() on bytes output to avoid BytesWarning

The test failed with python -bb.

14 years agofix uninitialized struct member #10152
Benjamin Peterson [Wed, 20 Oct 2010 21:25:23 +0000 (21:25 +0000)]
fix uninitialized struct member #10152

14 years agologging: Improved StreamHandler documentation.
Vinay Sajip [Wed, 20 Oct 2010 20:34:09 +0000 (20:34 +0000)]
logging: Improved StreamHandler documentation.

14 years agologging: Made StreamHandler terminator configurable.
Vinay Sajip [Wed, 20 Oct 2010 20:05:38 +0000 (20:05 +0000)]
logging: Made StreamHandler terminator configurable.

14 years agoFix for issue #7473.
Ronald Oussoren [Wed, 20 Oct 2010 13:10:12 +0000 (13:10 +0000)]
Fix for issue #7473.

Without this patch you'll get link errors in some extensions
(in particular the _curses_panel) one when you try to build
a 3-way universal framework when you previously installed a
2-way universal framework using the python.org installer.

14 years agoDon't lie about the supported architectures in the OSX installer
Ronald Oussoren [Wed, 20 Oct 2010 12:56:56 +0000 (12:56 +0000)]
Don't lie about the supported architectures in the OSX installer

Without this patch the i386/x86_64 installer for OSX 10.6
lies in the ReadMe file and the "Important Information" screen
of the installer (that is, the installer claims it supports
the i386 and ppc architectures insetead of the ones it really
supports)

14 years agologging: clarified Filter documentation.
Vinay Sajip [Wed, 20 Oct 2010 11:40:02 +0000 (11:40 +0000)]
logging: clarified Filter documentation.

14 years agoFix r85728: use "" to mean the system default locale, which should work on more systems.
Georg Brandl [Wed, 20 Oct 2010 06:50:19 +0000 (06:50 +0000)]
Fix r85728: use "" to mean the system default locale, which should work on more systems.

14 years agoCorrect signature of BytesGenerator in docs.
R. David Murray [Tue, 19 Oct 2010 23:05:35 +0000 (23:05 +0000)]
Correct signature of BytesGenerator in docs.

14 years agologging: Documented usage of callables as filters.
Vinay Sajip [Tue, 19 Oct 2010 21:13:49 +0000 (21:13 +0000)]
logging: Documented usage of callables as filters.

14 years agoIssue #7061: Fixed some of the issues in turtle module documentation
Alexander Belopolsky [Tue, 19 Oct 2010 21:07:52 +0000 (21:07 +0000)]
Issue #7061: Fixed some of the issues in turtle module documentation
reported by Terry J. Reedy.

14 years agoBe consistent in the spelling of thread-safe(ty).
Georg Brandl [Tue, 19 Oct 2010 21:07:16 +0000 (21:07 +0000)]
Be consistent in the spelling of thread-safe(ty).

14 years agologging: Allowed filters to be just callables.
Vinay Sajip [Tue, 19 Oct 2010 20:53:01 +0000 (20:53 +0000)]
logging: Allowed filters to be just callables.

14 years agologging: Added tests for _logRecordClass changes.
Vinay Sajip [Tue, 19 Oct 2010 20:44:14 +0000 (20:44 +0000)]
logging: Added tests for _logRecordClass changes.