Antoine Pitrou
29aad0005d
Issue #10185 : use Py_hash_t instead of long
2010-10-23 19:42:38 +00:00
Martin v. Löwis
57f75799bf
Revert r85801. The test ought to pass without rounding.
2010-10-23 19:02:30 +00:00
Antoine Pitrou
fbb1c6191c
Follow up to #9778 : fix regressions on 64-bit Windows builds
2010-10-23 17:37:54 +00:00
Georg Brandl
1e908af335
#6518 : enable context manager protocol for ossaudiodev types.
2010-10-23 17:31:52 +00:00
Antoine Pitrou
1cae8b58eb
Also guard other SOCK_NONBLOCK test
2010-10-23 17:05:13 +00:00
Victor Stinner
75d8c5cea2
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.
2010-10-23 17:02:31 +00:00
Antoine Pitrou
acd0fda1a4
Fix SOCK_CLOEXEC and SOCK_NONBLOCK tests on recent glibcs with old Linux kernels.
2010-10-23 17:01:44 +00:00
Benjamin Peterson
8035bc5c04
follow up to #9778 : define and use an unsigned hash type
2010-10-23 16:20:50 +00:00
Victor Stinner
2b9af63b4f
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.
2010-10-23 01:15:30 +00:00
Victor Stinner
2158231433
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.
2010-10-23 00:13:28 +00:00
Antoine Pitrou
ff150f2921
Revert r85797 (and r85798): it broke the Windows buildbots because of
...
test_multiprocessing's misbehaviour.
2010-10-22 21:41:05 +00:00
Antoine Pitrou
45f9cf96cd
Update what's new
2010-10-22 19:45:13 +00:00
Antoine Pitrou
7eecffd05d
Issue #9935 : Speed up pickling of instances of user-defined classes.
2010-10-22 19:43:59 +00:00
Antoine Pitrou
61ec8de809
For now, remove accept4() code (issue #10115 )
2010-10-22 18:44:15 +00:00
Antoine Pitrou
eb585adbde
Fix test_ssl on Ubuntu buildbot with patched OpenSSL
2010-10-22 18:24:20 +00:00
Antoine Pitrou
d532321f7b
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.
2010-10-22 18:19:07 +00:00
Barry Warsaw
4ebfdf01bb
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.
2010-10-22 17:17:51 +00:00
Georg Brandl
9a8439d3e9
Refactor interesting use of try-finally.
2010-10-22 06:35:59 +00:00
Georg Brandl
eb7e56922e
Make top_level attribute a set instead of a dict with None values.
2010-10-22 06:29:21 +00:00
Georg Brandl
83938437cb
#10166 : rewrite self-recursion to iteration in pstats.Stats.add(). Also add a unittest and a stats test file.
2010-10-22 06:28:01 +00:00
Éric Araujo
68fc9aa318
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).
2010-10-21 23:02:07 +00:00
Alexander Belopolsky
c08f544844
Fixed a typo
2010-10-21 22:29:36 +00:00
Alexander Belopolsky
41f56f0192
Issue #7061 : Fixed section title
2010-10-21 18:15:39 +00:00
Georg Brandl
2efeb40d5f
Add .hgeol file for the Mercurial EOL extension.
2010-10-21 15:44:51 +00:00
Brian Curtin
6ce1daedc3
Fix r85774 editor fail. Had a dangling try and incorrect indent.
2010-10-21 14:45:01 +00:00
Brian Curtin
000f974b44
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.
2010-10-21 14:11:48 +00:00
Georg Brandl
28928aef2e
#4829 : better error message for invalid file mode
2010-10-21 13:45:52 +00:00
Antoine Pitrou
9583cac633
Issue #10089 : Add support for arbitrary -X options on the command-line.
...
They can be retrieved through a new attribute `sys._xoptions`.
2010-10-21 13:42:28 +00:00
Georg Brandl
6d61cb4d2f
#1203650 : allow larger list of files in windows makefile for freeze.
2010-10-21 13:34:51 +00:00
Georg Brandl
9c14f2f343
#3077 : fix h2py substitution of character literals.
2010-10-21 13:29:10 +00:00
Georg Brandl
a847ccbeae
Fix missing import.
2010-10-21 13:01:23 +00:00
Georg Brandl
29848f0570
#9919 : fix off-by-one error in lineno command in Misc/gdbinit; also add newline to its output.
2010-10-21 12:59:14 +00:00
Georg Brandl
a9afb68789
#9095 , #8912 , #8999 : add support in patchcheck for Mercurial checkouts, C file reindenting, and docs whitespace fixing.
2010-10-21 12:49:28 +00:00
Georg Brandl
50de5f56a9
#10159 : sort completion matches before comparing to dir() result.
2010-10-21 07:40:03 +00:00
Victor Stinner
f933e1ab6f
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.
2010-10-20 22:58:25 +00:00
Victor Stinner
073f759d65
Move non-ascii test from test_run_code() to a new function: test_non_ascii()
2010-10-20 21:56:55 +00:00
Victor Stinner
f6211eda71
Move test_undecodable_code() from test_sys to test_cmd_line
2010-10-20 21:52:33 +00:00
Victor Stinner
6722b5f7f1
test_zipimport_support: use ascii() on bytes output to avoid BytesWarning
...
The test failed with python -bb.
2010-10-20 21:48:35 +00:00
Benjamin Peterson
b8ffb60ec6
fix uninitialized struct member #10152
2010-10-20 21:25:23 +00:00
Vinay Sajip
05ed69590b
logging: Improved StreamHandler documentation.
2010-10-20 20:34:09 +00:00
Vinay Sajip
2a20dfc2aa
logging: Made StreamHandler terminator configurable.
2010-10-20 20:05:38 +00:00
Ronald Oussoren
f3500e1198
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.
2010-10-20 13:10:12 +00:00
Ronald Oussoren
d0103292f0
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)
2010-10-20 12:56:56 +00:00
Vinay Sajip
22246fdd9d
logging: clarified Filter documentation.
2010-10-20 11:40:02 +00:00
Georg Brandl
9450cc056a
Fix r85728: use "" to mean the system default locale, which should work on more systems.
2010-10-20 06:50:19 +00:00
R. David Murray
f19076e592
Correct signature of BytesGenerator in docs.
2010-10-19 23:05:35 +00:00
Vinay Sajip
fc082cafa6
logging: Documented usage of callables as filters.
2010-10-19 21:13:49 +00:00
Alexander Belopolsky
435d306aa9
Issue #7061 : Fixed some of the issues in turtle module documentation
...
reported by Terry J. Reedy.
2010-10-19 21:07:52 +00:00
Georg Brandl
f285bcca28
Be consistent in the spelling of thread-safe(ty).
2010-10-19 21:07:16 +00:00
Vinay Sajip
6dbed2e8b3
logging: Allowed filters to be just callables.
2010-10-19 20:53:01 +00:00