Nicholas Bastin
ee6c9b8613
Fix (really) for tight loop line events
2004-03-22 19:23:46 +00:00
Nicholas Bastin
fa7bec7e83
Test for tight loop line event fix, SF bug #765624
2004-03-22 19:21:47 +00:00
Nicholas Bastin
aea9459cb1
Test for lack of implicit return line event
2004-03-22 18:30:42 +00:00
Armin Rigo
80d937e986
Fix for line events in the case:
...
def f(a):
if a:
print 5
else:
pass
2004-03-22 17:52:53 +00:00
Hye-Shik Chang
77d9a3effa
Patch #871657 : Set EDOM for `nan' return values on FreeBSD and OpenBSD.
...
This fixes a problem that math.sqrt(-1) doesn't raise math.error.
2004-03-22 08:43:55 +00:00
Anthony Baxter
39a0f04421
New parser. Next up, making the current parser use this parser
2004-03-22 00:33:28 +00:00
Nicholas Bastin
e62c5c88f1
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
...
Fixes SF Bug #850981
2004-03-21 23:45:42 +00:00
Tim Peters
3f60629242
SF bug 847019 datetime.datetime initialization needs more strict checking
...
It's possible to create insane datetime objects by using the constructor
"backdoor" inserted for fast unpickling. Doing extensive range checking
would eliminate the backdoor's purpose (speed), but at least a little
checking can stop honest mistakes.
Bugfix candidate.
2004-03-21 23:38:41 +00:00
Armin Rigo
6fce78e07f
Restored revision 2.87.
2004-03-21 22:29:05 +00:00
Brett Cannon
8d9b60f102
Change parse_qsl() to accept control-name's with no equal sign (e.g., "name")
...
when keep_blank_values is true.
2004-03-21 22:16:15 +00:00
Andrew M. Kuchling
cbddabfd85
Remove 'now'
2004-03-21 22:12:45 +00:00
Tim Peters
1c3fd875b9
PyTuple_New(): vrbl i no longer referenced, so removed it (which kills
...
off a new compiler wng under MSVC6).
2004-03-21 21:35:41 +00:00
Nicholas Bastin
668034173b
Normalized files in test_unicode_file to eliminate failure on OSX
2004-03-21 20:55:47 +00:00
Armin Rigo
56716150e6
This is the fastest I could get on Intel GCC. I kept the memset() in to clear
...
the newly created tuples, but tuples added in the freelist are now cleared in
tupledealloc already (which is very cheap, because we are already
Py_XDECREF'ing all elements anyway).
Python should have a standard Py_ZAP macro like ZAP in pystate.c.
2004-03-21 20:27:49 +00:00
Nicholas Bastin
abce8a681c
Changed file.name to be the object passed as the 'name' argument to file()
...
Fixes SF Bug #773356
2004-03-21 20:24:07 +00:00
Andrew M. Kuchling
67867eaf8c
[Part of patch #909005 ] Added map parameter for file_dispatcher and dispatcher_with_send
2004-03-21 20:03:18 +00:00
Andrew M. Kuchling
174bdbc999
[Part of patch #909005 ] Repeating exception changed from 'raise socket.error, why' to just raise. Make use of connect_ex() raise socket.error with 2-tuple instead of just error code
2004-03-21 19:58:28 +00:00
Andrew M. Kuchling
419af88b34
[Part of patch #909005 ] Remove Mac code for writable
2004-03-21 19:52:01 +00:00
Andrew M. Kuchling
0ebbbe30f1
[Part of patch #909005 ] Set initial poll flags
2004-03-21 19:50:09 +00:00
Andrew M. Kuchling
68522b1895
[Part of patch #909005 ] Use True/False
2004-03-21 19:46:16 +00:00
Hye-Shik Chang
c3a87b8dbb
Bug #920575 : Add a workaround for GNU libc nl_langinfo()'s returning NULL.
...
(Reported by Matthias Klose)
2004-03-21 19:34:30 +00:00
Andrew M. Kuchling
56d7913bae
[Patch #900071 ] Be case-insensitive when removing 'usage:' string
2004-03-21 19:28:48 +00:00
Andrew M. Kuchling
9303777f22
[Part of patch #909005 ] Handle POLLPRI flag, and various errors cases. Fixes bug #887279
2004-03-21 19:26:00 +00:00
Andrew M. Kuchling
a982c44543
[Patch #918212 ] Support XHTML's 'id' attribute, which can be on any element.
2004-03-21 19:07:23 +00:00
Andrew M. Kuchling
4c4a45de8f
[Patch #905863 ] Support the CVS version of Tcl/Tk, which has the version number 8.5
2004-03-21 18:59:46 +00:00
Andrew M. Kuchling
3c0aa7e7a2
[Patch #850977 ] Detect Tcl/Tk libraries on FreeBSD/OpenBSD. Bugfix candidate
2004-03-21 18:57:35 +00:00
Andrew M. Kuchling
e240d9bcc5
Update URLs
2004-03-21 18:48:22 +00:00
Nicholas Bastin
a7604bf1b4
Moved tracebackobject to traceback.h, Closes SF Bug #497067
2004-03-21 18:37:23 +00:00
Raymond Hettinger
8183fa46a9
Fix typo in comment.
2004-03-21 17:35:06 +00:00
Tim Peters
6602520473
SF bug 917108: warnings.py does not define _test().
...
Removed the entire __name__ == '__main__' block.
2004-03-21 17:06:20 +00:00
Raymond Hettinger
93d448198b
Add identity shortcut to PyObject_RichCompareBool.
2004-03-21 17:01:44 +00:00
Nicholas Bastin
07973dab97
Modified string.split documentation to reflect behaviour of splitting emtpy string. Closes SF bug #811604
2004-03-21 16:59:59 +00:00
Tim Peters
5f112eb43b
recursive_isinstance(), recursive_issubclass(): New code here returned
...
NULL in case of error, but the functions are declared to return int.
MSVC 6 properly complains about that. Return -1 on error instead.
2004-03-21 16:59:09 +00:00
Just van Rossum
7139afd1f5
[693255] also back out corresponding NEWS item...
2004-03-21 16:26:32 +00:00
Skip Montanaro
20a8336ff7
concrete example of why retaining old objects is good
2004-03-21 16:05:30 +00:00
Martin v. Löwis
347c30d217
Patch #853488 : Tix hlist missing entryconfigure and entrycget methods.
2004-03-21 15:29:41 +00:00
Martin v. Löwis
433fa69c40
Patch #853488 : Add hlist entry_configure and entry_cget methods.
2004-03-21 15:26:44 +00:00
Neil Schemenauer
4848557924
Remove unused instance attributes.
2004-03-21 15:18:50 +00:00
Raymond Hettinger
ff5bc50bb0
Improve byte coding for multiple assignments.
...
Gives 30% speedup on "a,b=1,2" and 25% on "a,b,c=1,2,3".
2004-03-21 15:12:00 +00:00
Brett Cannon
8b6cc2e7f2
Removed extra period from \versionchanged entry; macro adds period
...
automatically.
2004-03-21 14:10:18 +00:00
Brett Cannon
46cf4fc249
Back out last patch that removed an entry from sys.path if it was not an
...
existent path. Pointed out by jvr that entries could be non-file items for
custom importers.
2004-03-21 14:06:49 +00:00
Brett Cannon
c82208eecb
Deal with case of when locale time values has characters that can be mistaken
...
for regex syntax.
Fixes bug #883604 .
2004-03-20 23:09:40 +00:00
Brett Cannon
4f65331483
Limit the nesting depth of a tuple passed as the second argument to
...
isinstance() or issubclass() to the recursion limit of the interpreter.
2004-03-20 22:52:14 +00:00
Guido van Rossum
c69661725a
Fix for SF 780407.
...
Change %08l to %p to print a pointer.
Will backport to 2.3.
2004-03-20 22:34:14 +00:00
Armin Rigo
70d172dda4
Get rid of listextend_internal() and explain why the special case
...
'a.extend(a)' isn't so special anyway.
2004-03-20 22:19:23 +00:00
Guido van Rossum
70ec0b42b5
Fix for SF 777848.
...
I've been bitten by this myself in the past half year.
I hope this fix is right.
I'll backport this to 2.3.
2004-03-20 22:18:03 +00:00
Tim Peters
27f49610af
SF patch 508730 CGIHTTPServer execfile should save cwd
...
UNTESTED!!!
This simple two-line patch has been sitting on SF for more than 2 years.
I'm guessing it's because nobody knows how to test it -- I sure don't.
It doesn't look like you can get to this part of the code on Unixish
or Windows systems, so the "how to test it?" puzzle has more than one
part. OTOH, if this is dead code, it doesn't matter either if I just
broke it <wink>.
2004-03-20 21:51:12 +00:00
Armin Rigo
9dbf9084e8
Cancelled checkin, sorry.
2004-03-20 21:50:13 +00:00
Brett Cannon
508c57d544
Clarify docs on where .pth files can exist.
2004-03-20 21:41:28 +00:00
Armin Rigo
7cdf3e8a8a
memset() hunt continuing. This is a net win.
2004-03-20 21:35:09 +00:00