Benjamin Peterson
67e700697e
merge 3.2
2012-02-10 08:47:04 -05:00
Benjamin Peterson
efe7c9d4d7
this is only a borrowed ref in Brett's branch
2012-02-10 08:46:54 -05:00
Ned Deily
7347df1504
Issue #13590 : merge
2012-02-10 13:08:44 +01:00
Ned Deily
9937748f0c
Issue #13590 : On OS X 10.7 and 10.6 with Xcode 4.2, building
...
Distutils-based packages with C extension modules may fail because
Apple has removed gcc-4.2, the version used to build python.org
64-bit/32-bit Pythons. If the user does not explicitly override
the default C compiler by setting the CC environment variable,
Distutils will now attempt to compile extension modules with clang
if gcc-4.2 is required but not found. Also as a convenience, if
the user does explicitly set CC, substitute its value as the default
compiler in the Distutils LDSHARED configuration variable for OS X.
(Note, the python.org 32-bit-only Pythons use gcc-4.0 and the 10.4u
SDK, neither of which are available in Xcode 4. This change does not
attempt to override settings to support their use with Xcode 4.)
2012-02-10 13:01:08 +01:00
Ezio Melotti
176630ec19
#13960 : merge with 3.2.
2012-02-10 10:50:49 +02:00
Ezio Melotti
fa3702dc28
#13960 : HTMLParser is now able to handle broken comments when strict=False.
2012-02-10 10:45:44 +02:00
Éric Araujo
9f90a731eb
Use sys.version_info instead of sys.version in packaging.
...
The contents of this attribute are an implementation detail, as
documented for #9442 , so we should not parse it, to support non-CPython
VMs with distutils2 in the future.
Unfortunately, one use comes directly from PEP 345, so an edit will have
to be agreed before fixing the code (see comment in p7g.markers).
Other remaining uses are found in p7g.compiler and could be replaced by
the platform module (which also parses sys.version, but then it wouldn’t
be my fault :)
2012-02-10 05:20:53 +01:00
Éric Araujo
ea0b1edf45
Branch merge
2012-02-10 05:12:58 +01:00
Éric Araujo
692a49394d
Start improving 2to3 code in packaging ( #13462 ).
...
- Change the fixers used in tests to something not provided by lib2to3
- Test conversion of doctests in text files
- Factor out test boilerplate into a common method
2012-02-09 21:37:14 +01:00
Éric Araujo
1a765f5d9d
Synchronize packaging.tests.support with distutils2
2012-02-09 21:30:25 +01:00
Éric Araujo
6e1f564efa
More boolean tests for packaging metadata environment markers
2012-02-09 21:18:26 +01:00
Éric Araujo
ac03a2b089
Remove unneeded import
2012-02-09 21:17:46 +01:00
Petri Lehtinen
bc35bebb45
Undocument and clean up sqlite3.OptimizedUnicode
...
Closes #13921 .
2012-02-09 21:09:03 +02:00
Éric Araujo
5c69b66086
Group commands by topic in “pysetup run --list-commands” output.
...
This fixes a regression from distutils, where “setup.py --help-commands”
prints out commands grouped by topic (i.e. building vs. installing),
which is more useful than using sorted.
2012-02-09 14:29:11 +01:00
Senthil Kumaran
f0f9679d5c
merge from 3.2
...
Issue #9021 - Introduce copy module better in the docs.
2012-02-09 18:27:48 +08:00
Senthil Kumaran
5b14d732d8
Issue #9021 - Introduce copy module better. Doc changes suggested by Terry
...
Reedy.
2012-02-09 18:26:59 +08:00
Senthil Kumaran
0bfa963fbb
merged from 3.2
...
Issue #6005 : Examples in the socket library documentation use sendall, where
relevant, instead send method.
2012-02-09 17:55:56 +08:00
Senthil Kumaran
6e13f130a9
Fix Issue #6005 : Examples in the socket library documentation use sendall,
...
where relevant, instead send method.
2012-02-09 17:54:17 +08:00
Brett Cannon
4a2e1a0da7
Undo a bad mq management thingy.
2012-02-08 19:11:53 -05:00
Brett Cannon
97771096ab
Whitespace normalization.
2012-02-08 18:55:37 -05:00
Brett Cannon
32b66be879
Clarify a NEWS entry.
2012-02-08 18:53:46 -05:00
Brett Cannon
b4e63b3177
Use the cwd when the empty string is found in sys.path. This leads to
...
__file__ being an absolute path when the module is found in the
current directory.
2012-02-08 18:52:56 -05:00
Brett Cannon
354c26ecd6
Move setup code from importlib.__init__ to
...
importlib._bootstrap._setup().
2012-02-08 18:50:22 -05:00
Brett Cannon
8490fab4ad
Don't fail in the face of a lacking attribute when wrapping a
...
function.
2012-02-08 18:44:14 -05:00
Antoine Pitrou
81a1fa5c77
get_terminal_size() can also fail with ENOTTY if the fd is not connected to a terminal.
2012-02-09 00:11:00 +01:00
Antoine Pitrou
cfade36227
Relax tests to fix buildbot failure
2012-02-08 23:48:59 +01:00
Antoine Pitrou
bcf2b59fb5
Issue #13609 : Add two functions to query the terminal size:
...
os.get_terminal_size (low level) and shutil.get_terminal_size (high level).
Patch by Zbigniew Jędrzejewski-Szmek.
2012-02-08 23:28:36 +01:00
Victor Stinner
4195b5caea
Backout f8409b3d6449: the PEP 410 is not accepted yet
2012-02-08 23:03:19 +01:00
Victor Stinner
72476eae5f
Issue #13845 : Fix NEWS entry, the change is specific to Windows
2012-02-08 22:53:24 +01:00
Charles-François Natali
b2c9e9ad91
Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()
...
can't be called reliably from a worker thread.
2012-02-08 21:29:11 +01:00
Victor Stinner
ccd5715a14
PEP 410
2012-02-08 14:31:50 +01:00
Charles-François Natali
6f91ce74a0
Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()
...
can't be called reliably from a worker thread.
2012-02-08 21:30:02 +01:00
Charles-François Natali
ed4a8fc095
Issue #8184 : multiprocessing: On Windows, don't set SO_REUSEADDR on Connection
...
sockets, and set FILE_FLAG_FIRST_PIPE_INSTANCE on named pipes, to make sure two
listeners can't bind to the same socket/pipe (or any existing socket/pipe).
2012-02-08 21:15:58 +01:00
Victor Stinner
1aa54a417d
Issue #13964 : Skip os.*utime*() tests if os.stat() doesn't support timestamp
...
with a subsecond resolution
2012-02-08 04:09:37 +01:00
Victor Stinner
a2f7c00638
Issue #13964 : Split os.*utime*() subsecond tests into multiple tests to help
...
debugging
2012-02-08 03:36:25 +01:00
Victor Stinner
8b6f10dda2
Issue #13964 : Test also os.futimesat()
2012-02-08 03:07:25 +01:00
Victor Stinner
be557dedf9
Issue #13964 : Write tests for new os.*utime*() functions
2012-02-08 03:01:11 +01:00
Victor Stinner
f4c54ff5cd
What's New in 3.3: reorder modules
...
Remove also duplicate functions in the "os" module section
2012-02-08 01:48:34 +01:00
Victor Stinner
2e63177e94
What's New in 3.3: Fix time module doc
2012-02-08 01:43:34 +01:00
Victor Stinner
09225b73c1
Issue #13845 : time.time() now uses GetSystemTimeAsFileTime() instead of ftime()
...
to have a resolution of 100 ns instead of 1 ms (the clock accuracy is between
0.5 ms and 15 ms).
2012-02-07 23:41:01 +01:00
Victor Stinner
8b30201f7d
Issue #13846 : Add time.monotonic(), monotonic clock.
2012-02-07 23:29:46 +01:00
Victor Stinner
d1cd99b533
Backout d2c1521ad0a1: _Py_IDENTIFIER() uses UTF-8 again
2012-02-07 23:05:55 +01:00
Brett Cannon
cae1068e82
Re-order importlib benchmarks to be consistent. Also print out what implementation of __import__ is used.
2012-02-07 09:40:33 -05:00
Brett Cannon
3fd6e2b910
Merge
2012-02-07 09:20:20 -05:00
Brett Cannon
466e6a90f2
Have importlib.test.benchmark test with tabnanny as a medium-sized test.
2012-02-07 09:19:12 -05:00
Vinay Sajip
9a74c57ed7
Null merge for reverted fix for #13807 .
2012-02-06 21:25:43 +00:00
Vinay Sajip
73d1da3914
Null merge for reverted fix for #13807 .
2012-02-06 21:24:40 +00:00
Petri Lehtinen
96356d40b9
Merge branch '3.2'
2012-02-06 22:04:41 +02:00
Petri Lehtinen
4a84f58143
Issue #10811 : Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.
2012-02-06 22:04:18 +02:00
Charles-François Natali
7794090251
Following Nick's suggestion, rename posix.fdlistdir() to posix.flistdir(), to
...
be consistent with other functions accepting file descriptors (fdlistdir() was
added in 3.3, so hasn't been released yet).
2012-02-06 19:54:48 +01:00