1. Clean workspace more thoughly before build.
2. Add url of branch we are building to 'results' webpage.
(url is now available in $repo_path, could be added to failure email.)
3. Adjust permissions to improve upload reliability.
........
................
Georg Brandl [Thu, 13 Aug 2009 08:26:44 +0000 (08:26 +0000)]
Merged revisions 73941-73943,74076,74094,74186,74211-74214,74247,74254,74262,74311,74334,74368 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k
#6421: The self argument of module-level PyCFunctions is now a reference to the module object.
................
r74076 | georg.brandl | 2009-07-18 11:07:48 +0200 (Sa, 18 Jul 2009) | 1 line
use bools
........
r74192 | georg.brandl | 2009-07-24 12:28:38 -0400 (Fri, 24 Jul 2009) | 1 line
Fix arg types of et#.
........
r74193 | georg.brandl | 2009-07-24 12:46:38 -0400 (Fri, 24 Jul 2009) | 1 line
Dont put "void" in signature for nullary functions.
........
r74200 | georg.brandl | 2009-07-25 09:02:15 -0400 (Sat, 25 Jul 2009) | 1 line
#6571: add index entries for more operators.
........
r74252 | georg.brandl | 2009-07-29 12:06:31 -0400 (Wed, 29 Jul 2009) | 1 line
#6593: fix link targets.
........
r74253 | georg.brandl | 2009-07-29 12:09:17 -0400 (Wed, 29 Jul 2009) | 1 line
#6591: add reference to ioctl in fcntl module for platforms other than Windows.
........
r74258 | georg.brandl | 2009-07-29 12:57:05 -0400 (Wed, 29 Jul 2009) | 1 line
Add a link to readline, and mention IPython and bpython.
........
r74259 | georg.brandl | 2009-07-29 13:07:21 -0400 (Wed, 29 Jul 2009) | 1 line
Fix some markup and small factual glitches found by M. Markert.
........
r74260 | georg.brandl | 2009-07-29 13:15:20 -0400 (Wed, 29 Jul 2009) | 1 line
Fix a few markup glitches.
........
r74261 | georg.brandl | 2009-07-29 13:50:25 -0400 (Wed, 29 Jul 2009) | 1 line
Rewrite the section about classes a bit; mostly tidbits, and a larger update to the section about "private" variables to reflect the Pythonic consensus better.
........
................
r74311 | georg.brandl | 2009-08-04 22:29:27 +0200 (Di, 04 Aug 2009) | 1 line
Slightly improve buffer-related error message.
................
r74334 | georg.brandl | 2009-08-06 19:51:03 +0200 (Do, 06 Aug 2009) | 1 line
#6648: mention surrogateescape handler where all standard handlers are listed.
................
r74368 | georg.brandl | 2009-08-13 09:56:35 +0200 (Do, 13 Aug 2009) | 21 lines
Merged revisions 74328,74332-74333,74365 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74328 | georg.brandl | 2009-08-06 17:06:25 +0200 (Do, 06 Aug 2009) | 1 line
Fix base keyword arg name for int() and long().
........
r74332 | georg.brandl | 2009-08-06 19:23:21 +0200 (Do, 06 Aug 2009) | 1 line
Fix punctuation and one copy-paste error.
........
r74333 | georg.brandl | 2009-08-06 19:43:55 +0200 (Do, 06 Aug 2009) | 1 line
#6658: fix two typos.
........
r74365 | georg.brandl | 2009-08-13 09:48:05 +0200 (Do, 13 Aug 2009) | 1 line
#6679: Remove mention that sub supports no flags.
........
................
Adds a verbosity keyword argument to unittest.main plus a minor fix allowing you to specify test modules / classes
from the command line.
Closes issue 5995.
Michael Foord
........
r72582 | michael.foord | 2009-05-12 05:46:23 -0500 (Tue, 12 May 2009) | 1 line
Fix to restore command line behaviour for test modules using unittest.main(). Regression caused by issue 5995. Michael
........
r72583 | michael.foord | 2009-05-12 05:49:13 -0500 (Tue, 12 May 2009) | 1 line
Better fix for modules using unittest.main(). Fixes regression caused by commit for issue 5995. Michael Foord
........
r73027 | michael.foord | 2009-05-29 15:33:46 -0500 (Fri, 29 May 2009) | 1 line
Add test discovery to unittest. Issue 6001.
........
r73049 | georg.brandl | 2009-05-30 05:45:40 -0500 (Sat, 30 May 2009) | 1 line
Rewrap a few long lines.
........
r73071 | georg.brandl | 2009-05-31 09:15:25 -0500 (Sun, 31 May 2009) | 1 line
Fix markup.
........
r73151 | michael.foord | 2009-06-02 13:08:27 -0500 (Tue, 02 Jun 2009) | 1 line
Restore default testRunner argument in unittest.main to None. Issue 6177
........
r73247 | michael.foord | 2009-06-05 09:14:34 -0500 (Fri, 05 Jun 2009) | 1 line
It speeds up the with statement and correctly looks up the special
methods involved.
........
r72920 | benjamin.peterson | 2009-05-25 15:12:57 -0500 (Mon, 25 May 2009) | 1 line
take into account the fact that SETUP_WITH pushes a finally block
........
r72940 | benjamin.peterson | 2009-05-26 07:49:59 -0500 (Tue, 26 May 2009) | 1 line
teach the peepholer about SETUP_WITH
........
................
r73611 | benjamin.peterson | 2009-06-28 17:40:50 +0200 (So, 28 Jun 2009) | 1 line
correctly rearrange the stack in the exception case of WITH_CLEANUP
................
r73612 | benjamin.peterson | 2009-06-28 17:55:46 +0200 (So, 28 Jun 2009) | 1 line
update comments
................
r73613 | benjamin.peterson | 2009-06-28 18:03:15 +0200 (So, 28 Jun 2009) | 1 line
this is better written as an assertion
................
r73616 | benjamin.peterson | 2009-06-28 18:17:34 +0200 (So, 28 Jun 2009) | 13 lines
Merged revisions 73614-73615 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73614 | benjamin.peterson | 2009-06-28 11:08:02 -0500 (Sun, 28 Jun 2009) | 1 line
add two generic macros for peeking and setting in the stack
........
r73615 | benjamin.peterson | 2009-06-28 11:14:07 -0500 (Sun, 28 Jun 2009) | 1 line
use stack macros
........
................
r73617 | benjamin.peterson | 2009-06-28 18:21:52 +0200 (So, 28 Jun 2009) | 1 line
use stack altering macros here
................
r73620 | benjamin.peterson | 2009-06-28 18:27:27 +0200 (So, 28 Jun 2009) | 1 line
Georg Brandl [Thu, 13 Aug 2009 08:12:33 +0000 (08:12 +0000)]
Blocked revisions 73621-73622,73628,73655,73657,73680,73687,73716,73746,73777,73807,73843-73844,73853,73855,73860,73886,73890,73893,73909,73936,73950,73980,73992,74016,74035,74049-74050,74053,74060-74061,74064,74068,74071,74082,74120,74125,74129,74174,74191,74195,74221,74236,74242,74244,74257,74263,74283 via svnmerge
Restore the old test_file.py (for the builtin file object) as a new file named test_file2k.py
........
r73396 | antoine.pitrou | 2009-06-12 15:41:52 -0500 (Fri, 12 Jun 2009) | 4 lines
Try to restore the old test_file and test_univnewlines as new, different files
(with the right revisions this time, hopefully)
........
r73397 | antoine.pitrou | 2009-06-12 15:54:21 -0500 (Fri, 12 Jun 2009) | 3 lines
Re-enable testing of builtin open() in test_bufio in test_largefile
........
r73401 | alexandre.vassalotti | 2009-06-12 16:52:14 -0500 (Fri, 12 Jun 2009) | 2 lines
Make pickling of OrderedDict instances more efficient.
........
r73402 | alexandre.vassalotti | 2009-06-12 18:03:35 -0500 (Fri, 12 Jun 2009) | 6 lines
Revert r73401 per Raymond Hettinger's request.
The rational is the change might cause imcompatiblity problems with
PyYAML. In addition, Raymond wants to kept the different versions of
collections synchronized across Python versions.
........
r73422 | benjamin.peterson | 2009-06-13 15:30:48 -0500 (Sat, 13 Jun 2009) | 1 line
update ast version
........
r73480 | facundo.batista | 2009-06-19 13:02:28 -0500 (Fri, 19 Jun 2009) | 3 lines
Issue #6274. Fixed a potential FD leak in subprocess.py.
........
r73536 | raymond.hettinger | 2009-06-23 16:32:28 -0500 (Tue, 23 Jun 2009) | 1 line
Issue 6305: Clarify error message for large arguments to itertools.islice().
........
r73540 | raymond.hettinger | 2009-06-23 17:20:04 -0500 (Tue, 23 Jun 2009) | 1 line
http://bugs.python.org/issue6192
Add a feature to disable the Nagle algorithm on sockets in TCPServer
........
r73546 | kristjan.jonsson | 2009-06-24 04:17:04 -0500 (Wed, 24 Jun 2009) | 2 lines
http://bugs.python.org/issue6192
Move the newly introduced disable_nagle_algorithm flag into the StreamRequestHandler, where it is more appropriate.
........
................
r73680 | antoine.pitrou | 2009-06-29 16:17:23 +0200 (Mo, 29 Jun 2009) | 8 lines
when print() gets unicode arguments, sep and end should be unicode by default #4618
........
................
r73807 | benjamin.peterson | 2009-07-03 15:22:00 +0200 (Fr, 03 Jul 2009) | 1 line
rip out bsddb support code
................
r73843 | kristjan.jonsson | 2009-07-04 17:09:25 +0200 (Sa, 04 Jul 2009) | 2 lines
Add skipping to struct test that only applies when overflow masking is in effect
........
................
r73890 | mark.dickinson | 2009-07-07 16:18:33 +0200 (Di, 07 Jul 2009) | 9 lines
Temporarily ignore rmtree errors in test_getcwd_long_pathnames to see
if the test gives useful failure info on Solaris buildbot.
........
................
r73936 | georg.brandl | 2009-07-11 12:08:49 +0200 (Sa, 11 Jul 2009) | 1 line
Revert r73807, which removed code to be able to build _dbm with bsddb.
................
r73950 | tarek.ziade | 2009-07-11 13:02:29 +0200 (Sa, 11 Jul 2009) | 8 lines
Issue #2389: Pickle array objects using a list representation for portability
across different machine architectures and compatibility with Python 3.x.
........
................
r74035 | alexandre.vassalotti | 2009-07-17 07:41:49 +0200 (Fr, 17 Jul 2009) | 23 lines
Use AC_CHECK_SIZEOF to find the size of off_t, pthread_t and time_t.
........
r74032 | alexandre.vassalotti | 2009-07-17 00:59:05 -0400 (Fri, 17 Jul 2009) | 4 lines
Rename the useless AC_INCLUDES_DEFAULT and protect the includes.
This is mostly an aesthetic change.
........
r74033 | alexandre.vassalotti | 2009-07-17 01:26:39 -0400 (Fri, 17 Jul 2009) | 8 lines
Cache the results of all runtime checks.
This will be helpful to people who want to compile Python with a
cross-compiler. Now you can upload the configure script on your host
machine, run it with caching enabled, and download the cached results
on your build machine.
........
................
r74049 | alexandre.vassalotti | 2009-07-17 09:49:53 +0200 (Fr, 17 Jul 2009) | 2 lines
Double-quote the test cases for chflags() and lchflags()
to ensure they don't get mangled.
........
................
r74060 | alexandre.vassalotti | 2009-07-17 13:12:50 +0200 (Fr, 17 Jul 2009) | 17 lines
http://bugs.python.org/issue6381
some platforms may raise ENOTCONN if the stack has disconnected the socket on behalf of the peer.
........
r73821 | kristjan.jonsson | 2009-07-03 19:26:02 -0400 (Fri, 03 Jul 2009) | 2 lines
http://bugs.python.org/issue6382
close_request() (which can send a socket.shutdown()) must be called by the child process in a forking server. The parent must merely close the socket handle.
........
r73877 | kristjan.jonsson | 2009-07-07 05:01:34 -0400 (Tue, 07 Jul 2009) | 2 lines
http://bugs.python.org/issue6382
added the shutdown_request() which can perform shutdown before calling close. This is needed for the ForkingMixIn because different close semantics are required for child and parent process. shutdown_request(), for TCP servers, calls socket.shutdown() and then calls close_request(). Therefore, this is not an backwards incompatible change, since subclasses that continue to override close_request() continue to work.
........
................
r74068 | alexandre.vassalotti | 2009-07-18 01:11:52 +0200 (Sa, 18 Jul 2009) | 2 lines
the Slice in x[::] has to have step as None to help the interpreter
........
................
r74125 | alexandre.vassalotti | 2009-07-21 01:59:41 +0200 (Di, 21 Jul 2009) | 2 lines
Issue #6561: '\d' regular expression should not match characters of
category [No]; only those of category [Nd]. (Backport of r74237
from py3k.)
........
................
r74244 | amaury.forgeotdarc | 2009-07-28 23:32:43 +0200 (Di, 28 Jul 2009) | 8 lines
"Fix" for the refleak report: the ABC classes are now in the _pyio module
........
................
r74257 | georg.brandl | 2009-07-29 18:33:19 +0200 (Mi, 29 Jul 2009) | 8 lines
Issue #6595: Allow Decimal constructor to accept non-European decimal
digits, as recommended by the specification. (Backport of r74279 from
py3k.)
........
................
Georg Brandl [Thu, 13 Aug 2009 07:52:08 +0000 (07:52 +0000)]
Merged revisions 74366 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k
........
r74366 | georg.brandl | 2009-08-13 09:50:57 +0200 (Do, 13 Aug 2009) | 1 line
#6126: fix pdb stepping and breakpoints by giving the executed code the correct filename; this used execfile() in 2.x which did this automatically.
........
Issue #6629: Fix a data corruption issue in the new `io` package, which could
occur when writing to a BufferedRandom object (e.g. a file opened in "rb+" or
"wb+" mode) after having buffered a certain amount of data for reading. This
bug was not present in the pure Python implementation.
Yes, this is a serious issue.
........
................
Issue #6620: Slightly safer code for _grouping_intervals in the locale
module. Fixes a 'possible use before assignment' warning from pylint.
Thanks Vincent Legoll.
........
................
Adding tests derived from the Jython project. These are primarily tests of
'single' statements with partial sentences (so they test things like "try:" in
interactive mode). Others tests hit areas that previously failed in Jython. A
couple still fail in Jython, mainly due to the difficulty of parsing partial
sentences (but should be fixed by Jython 2.6).
........
................
#6548: dont suggest existence of real and imag functions in cmath.
........
r74230 | mark.dickinson | 2009-07-28 17:12:40 +0100 (Tue, 28 Jul 2009) | 4 lines
Issue #6458: Reorganize cmath documentation into sections (similar to
the way that the math documentation is organized); clarify section on
conversions to and from polar coordinates.
........
................
Remove apparently unneeded and un-cleaned-up munging of sys.path from
test_re. Tests pass on my machine without it, and I can't see
any obvious place in the tests that would need it.
........
Importlib's documentation said that importlib.abc.PyLoader inherited from
importlib.abc.ResourceLoader, when in fact it did not. Fixed the ABC to inherit
as documented.
This does in introduce an backwards-incompatiblity as the code in PyLoader
already required the single method ResourceLoader defined as an abstract
method.
........
Update importlib.test.source.test_abc_loader to new features added in Python 3.1.
........
r74103 | brett.cannon | 2009-07-19 17:14:29 -0700 (Sun, 19 Jul 2009) | 7 lines
Some tests in importlib.test.source.test_abc_loader were testing what happens
when a loader is given missing or bad code object bytecode. Unfortunately an
exception related to source paths was masking what the proper exception to test
should be. Making the test explicitly set the environment fixed the test.
Issue 6070: when creating a compiled file, after copying the mode bits, on
posix zap the execute bit in case it was set on the .py file, since the
compiled files are not directly executable on posix. Patch by Marco N.
........
r73879 | r.david.murray | 2009-07-07 05:54:16 -0400 (Tue, 07 Jul 2009) | 3 lines
Update issue 6070 patch to match the patch that was actually tested
on Windows.
........
r73899 | r.david.murray | 2009-07-08 21:43:41 -0400 (Wed, 08 Jul 2009) | 3 lines
Conditionalize test cleanup code to eliminate traceback, which will
hopefully reveal the real problem.
........
r73900 | r.david.murray | 2009-07-08 22:06:17 -0400 (Wed, 08 Jul 2009) | 2 lines
Make test work with -O.
........
r73905 | r.david.murray | 2009-07-09 09:55:44 -0400 (Thu, 09 Jul 2009) | 3 lines
Specify umask in execute bit test to get consistent results
and make sure we test resetting all three execute bits.
........
r73906 | r.david.murray | 2009-07-09 11:35:33 -0400 (Thu, 09 Jul 2009) | 5 lines
Curdir needs to be in the path for the test to work on all buildbots.
(I copied this from another import test, but currently this will fail if
TESTFN ends up in /tmp...see issue 2609).
........
................
Issue #6431: Fix Fraction comparisons to return NotImplemented when
the Fraction type doesn't know how to handle the comparison without
loss of accuracy. Also, make sure that comparisons between Fractions
and float infinities or nans do the right thing.
........
#6358: Merge r73933: Add basic tests for the return value of os.popen().close().
And fix the implementation to make these tests pass with py3k
........
It seems necessary to keep two layers of 'exec' (one in Bdb.run, one in Pdb._runscript);
this allows the tracing function to be active when the inner 'exec' runs
and tries to compile the real code.
This partially revert r58127, the net effet of the two changes is to replace
"exec('%s')" with "exec(%r)".
........
r73919 | amaury.forgeotdarc | 2009-07-10 01:07:52 +0200 (ven., 10 juil. 2009) | 2 lines
Temporarily ignore rmtree errors in test_getcwd_long_pathnames to see
if the test gives useful failure info on Solaris buildbot.
........
r73908 | r.david.murray | 2009-07-09 14:41:03 -0400 (Thu, 09 Jul 2009) | 6 lines
Try to fix Solaris buildbot rmtree failure in test_getcwd_long_pathnames
cleanup. If this fix works, it means that Solaris is unique among
our platforms in what happens when shutil.rmtree is called on the
current working directory (ie: it doesn't work on Solaris, but
it does everywhere else).
........
................
Fixed #6377: distutils compiler switch ignored (and added a deprecation warning if compiler is not used as supposed = a string option)
........
................
Issue #6344: Fixed a crash of mmap.read() when passed a negative argument.
Reviewed by Amaury Forgeot d'Arc.
........
r73681 | hirokazu.yamamoto | 2009-06-29 23:29:31 +0900 | 1 line
Fix nearly all compilation warnings under Apple gcc-4.0. Tested with OPT="-g
-Wall -Wstrict-prototypes -Werror" in both --with-pydebug mode and --without.
There's still a batch of non-prototype warnings in Xlib.h that I don't know how
to fix.
........
r73439 | benjamin.peterson | 2009-06-15 19:29:31 -0500 (Mon, 15 Jun 2009) | 1 line
don't mask encoding errors when decoding a string #6289
........
r73496 | vinay.sajip | 2009-06-21 12:37:27 -0500 (Sun, 21 Jun 2009) | 1 line
Issue #6314: logging.basicConfig() performs extra checks on the "level" argument.
........
r73509 | amaury.forgeotdarc | 2009-06-22 14:33:48 -0500 (Mon, 22 Jun 2009) | 2 lines
#4490 Fix sample code run by "python -m xml.sax.xmlreader"
........
r73529 | r.david.murray | 2009-06-23 13:02:46 -0500 (Tue, 23 Jun 2009) | 4 lines
Fix issue 5230 by having pydoc's safeimport check to see if the import
error was thrown from itself in order to decide if the module can't be
found. Thanks to Lucas Prado Melo for collaborating on the fix and tests.
........
r73564 | amaury.forgeotdarc | 2009-06-25 17:29:29 -0500 (Thu, 25 Jun 2009) | 6 lines
#2016 Fix a crash in function call when the **kwargs dictionary is mutated
during the function call setup.
This even gives a slight speedup, probably because tuple allocation
is faster than PyMem_NEW.
........
r73576 | benjamin.peterson | 2009-06-26 18:37:06 -0500 (Fri, 26 Jun 2009) | 1 line
document is_declared_global()
........
r73577 | benjamin.peterson | 2009-06-27 09:16:23 -0500 (Sat, 27 Jun 2009) | 1 line
link to extensive generator docs in the reference manual
........
r73595 | ezio.melotti | 2009-06-27 18:45:39 -0500 (Sat, 27 Jun 2009) | 1 line
stmt and setup can contain multiple statements, see #5896
........
r73596 | ezio.melotti | 2009-06-27 19:07:45 -0500 (Sat, 27 Jun 2009) | 1 line
Fixed a wrong apostrophe
........
r73605 | georg.brandl | 2009-06-28 07:10:18 -0500 (Sun, 28 Jun 2009) | 1 line
Remove stray pychecker directive.
........
................
r73624 | benjamin.peterson | 2009-06-28 12:32:20 -0500 (Sun, 28 Jun 2009) | 1 line
document BufferedIOBase.raw and TextIOBase.buffer
................