Guido van Rossum
9decb70349
In the experimental 'Scanner' feature, the group count was set wrong.
2008-02-05 17:27:23 +00:00
Lars Gustäbel
42993fef1c
Issue #1507247 , #2004 : Use mode 0700 for temporary directories and
...
default permissions for missing directories.
(backport from r53526, r60588)
2008-02-05 12:00:20 +00:00
Amaury Forgeot d'Arc
bc212104e4
No need to emit co_lnotab item when both offsets are zeros.
...
r60579 broke a test test_compile, which seems to test an "implementation detail" IMO.
Also test that this correction does not impact the debugger.
2008-02-04 23:51:55 +00:00
Brett Cannon
dcf84003c1
Turn off a debugging flag.
2008-02-04 23:41:02 +00:00
Amaury Forgeot d'Arc
316f8a8d3c
backport of r60575 (issue #1750076 ): Debugger did not step on every iteration of a while statement.
...
The mapping between bytecode offsets and source lines (lnotab) did not contain
an entry for the beginning of the loop.
Now it does, and the lnotab can be a bit larger:
in particular, several statements on the same line generate several entries.
However, this does not bother the settrace function, which will trigger only
one 'line' event.
The lnotab seems to be exactly the same as with python2.4.
2008-02-04 22:34:57 +00:00
Guido van Rossum
d66e94d0e6
Backport r59862 (issue #712900 ): make long regexp matches interruptable
...
by signals.
2008-02-04 22:00:35 +00:00
Brett Cannon
912ba54394
Backport r60537: have order of CPPFLAGS and LDFLAGS be honored.
2008-02-03 09:58:02 +00:00
Gregory P. Smith
143a070fa0
Disable linking against BerkeleyDB 4.6 by default as it has proven to
...
be a buggy release on many platforms.
2008-02-03 08:10:20 +00:00
Gregory P. Smith
946de92f9b
backport r60544 from trunk:
...
Merge this fix from the pybsddb tree:
r293 | jcea | 2008-01-31 01:08:19 -0800 (Thu, 31 Jan 2008) | 4 lines
Solved memory leak when using cursors with
databases without environment.
2008-02-03 07:26:23 +00:00
Andrew MacIntyre
8af7067a19
Backport 60542:
...
The wrapper function is supposed to be for spawnvpe() so that's
what we should call [this wrapper only available on OS/2].
2008-02-03 07:20:39 +00:00
Christian Heimes
ab8fe4e01f
Bug #1234 : Fixed semaphore errors on AIX 5.2
2008-01-30 22:54:27 +00:00
Thomas Heller
c9b20734f4
Revert rev. 59926, it breaks comtypes (I need to further examine this).
2008-01-28 08:42:22 +00:00
Neal Norwitz
249cbe794e
Try harder to provoke the exception since the ia64 buildbot still
...
doesn't reliably produce an exception.
2008-01-28 01:33:23 +00:00
Neal Norwitz
209ea39d31
Sync up with trunk. Try to flush repeatedly to ensure the exception is raised.
2008-01-27 20:08:04 +00:00
Christian Heimes
0b11c5fdf6
Change isbasestring function as discussed on the cvs list a while ago
2008-01-27 19:01:59 +00:00
Neal Norwitz
6179234803
Backport 60342:
...
Try to prevent this test from being flaky. We might need a sleep in here
which isn't as bad as it sounds. The close() *should* raise an exception,
so if it didn't we should give more time to sync and really raise it.
2008-01-27 05:02:56 +00:00
Neal Norwitz
ab577c1b32
Backport r58453:
...
Let the O/S supply a port if none of the default ports can be used.
This should make the tests more robust at the expense of allowing
tests to be sloppier by not requiring them to cleanup after themselves.
(It will legitamitely help when running two test suites simultaneously
or if another process is already using one of the predefined ports.)
This will hopefully fix test_asynchat.
2008-01-27 01:24:44 +00:00
Neal Norwitz
b03528ca20
Backport 60334:
...
On some systems (e.g., Ubuntu on hppa) the flush()
doesn't (always) cause the exception, but the close() does.
2008-01-27 01:23:50 +00:00
Georg Brandl
ee50e3c734
#1940 : make it possible to use curses.filter() before curses.initscr()
...
as the documentation says.
(backport from rev. 60322)
2008-01-26 14:03:51 +00:00
Thomas Wouters
6bf585e753
Fix typo in constant name.
2008-01-25 21:08:41 +00:00
Thomas Wouters
d92272e4a9
Use the right (portable) definition of the max of a Py_ssize_t.
2008-01-25 19:51:24 +00:00
Guido van Rossum
ee6bab06d3
Rewrite the list_inline_repeat overflow check slightly differently.
2008-01-25 19:42:36 +00:00
Guido van Rossum
1c4282b41b
Silence a compiler warning.
2008-01-25 06:11:53 +00:00
Amaury Forgeot d'Arc
f1a7178cd5
#1920 : when considering a block starting by "while 0", the compiler optimized the
...
whole construct away, even when an 'else' clause is present::
while 0:
print("no")
else:
print("yes")
did not generate any code at all.
Now the compiler emits the 'else' block, like it already does for 'if' statements.
Backport of r60265.
2008-01-24 23:42:08 +00:00
Guido van Rossum
d933e0a7d3
News for some crashers I fixed recently.
...
Also removed three non-ASCII chars at start of file.
2008-01-24 18:28:37 +00:00
Guido van Rossum
1859f5b4d2
Backport r60246.
...
Fix issue #1303614 , test67.py.
2008-01-24 17:59:56 +00:00
Andrew M. Kuchling
61c2c9536f
Fix failing test_mailbox on Cygwin
2008-01-24 14:08:00 +00:00
Thomas Heller
fe528ebf68
Invert the checks in get_[u]long and get_[u]longlong. The intent was
...
to not accept float types; the result was that integer-like objects
were not accepted.
2008-01-24 13:08:54 +00:00
Guido van Rossum
e105f98046
Fix two crashers (borrowed_ref_[34].py from the trunk).
2008-01-23 20:09:39 +00:00
Martin v. Löwis
2529aa9840
Fix product code handling for Win64.
2008-01-23 17:54:14 +00:00
Christian Heimes
d2f4cb8cca
Fixed bug #1915 : Python compiles with --enable-unicode=no again. However several extension methods and modules do not work without unicode support.
2008-01-23 14:20:41 +00:00
Guido van Rossum
2c63442586
Backport r60208, skip some tests for huge passwd/group files.
2008-01-23 01:20:26 +00:00
Georg Brandl
7bf216b034
Backport: #1889 - fixup \xhh specs.
2008-01-22 07:54:07 +00:00
Gregory P. Smith
8f034d9af2
Backport of r60190:
...
- Fix Issue #1703448 : A joined thread could show up in the
threading.enumerate() list after the join() for a brief period until
it actually exited.
2008-01-22 01:29:11 +00:00
Mark Dickinson
9f26fcce04
Remove extra test that was accidentally backported from the trunk
2008-01-21 23:35:11 +00:00
Mark Dickinson
2bebadfe51
Issue 1678380: fix a bug identifying -0.0 and 0.0
2008-01-21 21:54:47 +00:00
Georg Brandl
78d50ccdf9
Add NEWS entry for #1882 .
...
(backport from rev. 60170)
2008-01-21 18:36:54 +00:00
Georg Brandl
7bdff2c8e5
Issue #1882 : when compiling code from a string, encoding cookies in the
...
second line of code were not always recognized correctly.
(backport from rev. 60168)
2008-01-21 18:35:52 +00:00
Vinay Sajip
8123ef2ec0
Fix : #1836 : Off-by-one bug in TimedRotatingFileHandler rollover calculation. Patch thanks to Kathryn M. Kowalski.
2008-01-21 17:03:46 +00:00
Andrew M. Kuchling
0e65fe4b90
Fix off-by-one error that resulted in missed characters
2008-01-19 23:44:39 +00:00
Gregory P. Smith
1cc98af8a1
backport r60116 - fix zipfile to work with archives having file
...
headers beyond the signed 2**31 byte boundary.
2008-01-19 23:16:01 +00:00
Gregory P. Smith
c223c6cb41
backport r60104 + r60111 from trunk.
...
- Issue #1336 : fix a race condition in subprocess.Popen if the garbage
collector kicked in at the wrong time that would cause the process
to hang when the child wrote to stderr.
2008-01-19 22:29:41 +00:00
Andrew M. Kuchling
af81c576ea
Bug 1296: restore text describing OptionGroup
2008-01-19 21:01:39 +00:00
Georg Brandl
7829d603a8
Backport r59688.
2008-01-19 20:34:19 +00:00
Andrew M. Kuchling
ea72dcb05c
Bug 1277: make Maildir use the user-provided factory instead of hard-wiring MaildirMessage.
2008-01-19 20:14:40 +00:00
Guido van Rossum
5f4fc831ad
This got fixed in r60056.
2008-01-18 23:06:49 +00:00
Guido van Rossum
03706d2db0
Backport r55080:
...
Fix for #1303614 and #1174712 :
- __dict__ descriptor abuse for subclasses of built-in types
- subclassing from both ModuleType and another built-in types
2008-01-18 21:31:32 +00:00
Guido van Rossum
d187381b81
Fix an edge case whereby the __del__() method of a classic class could
...
create a new weakref to the object.
2008-01-18 20:53:37 +00:00
Gregory P. Smith
0f99b71bd0
** backport r60015 from trunk.
...
- Issue829951: In the smtplib module, SMTP.starttls() now complies with
RFC 3207 and forgets any knowledge obtained from the server not obtained
from the TLS negotiation itself. Patch contributed by Bill Fenner.
2008-01-17 07:54:47 +00:00
Thomas Heller
f43a86b9d7
Backport from trunk:
...
Fix a potential 'SystemError: NULL result without error'.
NULL may be a valid return value from PyLong_AsVoidPtr.
Also move an older ctypes NEWS item in the correct category.
2008-01-16 19:24:20 +00:00