- 22 Jun, 1998 2 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
conversions. Formerly, for example, int('-') would return 0 instead of raising ValueError, and int(' 0') would raise ValueError (complaining about a null byte!) instead of 0...
-
- 19 Jun, 1998 10 commits
-
-
Guido van Rossum authored
L.append(a,b,c,d) with the correct L.append((a,b,c,d)).
-
Fred Drake authored
the empty prompt.
-
Fred Drake authored
-
Guido van Rossum authored
-
Jack Jansen authored
-
Guido van Rossum authored
The int() function (aliased to getint()) doesn't handle that, so we must use self.tk.getint() again...
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
PythonCmd_Error() but failed to return. The error wasn't very likely (only when we run out of memory) but since the check is there we might as well return the error. (I think that Barry introduced this buglet when he added error checks everywhere.)
-
- 18 Jun, 1998 2 commits
-
-
Guido van Rossum authored
locals().
-
Guido van Rossum authored
-
- 17 Jun, 1998 5 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
keyword argument can be used to direct it somewhere else. Also documented all the other functions in this module, and even added a little example. # Haven't tested the latex for correctness -- all latex installations # appear broken.
-
Guido van Rossum authored
allow negative numbers to specify read until EOF (like for a regular file's read() method).
-
Guido van Rossum authored
eval(raw_input(s)). The statement about breaking a long expression over multiple lines is no longer true.
-
Guido van Rossum authored
+ Took the "list" argument out of the other functions that no longer need it. This speeds things up a little more. + Small comment changes in accord with that. + Exploited the now-safe ability to cache values in the partitioning loop. Makes no timing difference on my flavor of Pentium, but this machine ran out of registers 12 iterations ago. It should yield a small speedup on a RISC machine, and not hurt in any case.
-
- 16 Jun, 1998 5 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
instead of testing whether the list changed size after each comparison, temporarily set the type of the list to an immutable list type. This should allow continued use of the list for legitimate purposes but disallows all operations that can change it in any way. (Changes to the internals of list items are not caught, of cause; that's not possible to detect, and it's not necessary to protect the sort code, either.)
-
Guido van Rossum authored
credit for complaining about this and for testing these changes.
-
- 15 Jun, 1998 10 commits
-
-
Guido van Rossum authored
From: Dan Pierson <dan@remote.control.com> To: "Mark Hammond (E-mail)" <MHammond@skippinet.com.au>, "Guido van Rossum (E-mail)" <guido@cnri.reston.va.us> Date: Mon, 8 Jun 1998 17:25:07 -0400 RegistryQueryValue requires that its fourth argument be initialized to the length of the buffer being passed in, this wasn't being done. I also split the call and status test into two lines with a local variable so that I could look at the status in the debugger.
-
Guido van Rossum authored
Added raw strings, imaginary literals, assert and exec (!) keywords, a table about Resererved classes of identifiers, and more.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
# checkin email because my PC doesn't have the "Mail" command. Add threading (now that it works). Also some small adaptations to Unix again.
-
Guido van Rossum authored
# from my PC at home, but it can't send email :-( Add a clarifying comment about the new ENTER_OVERLAP and LEAVE_OVERLAP_TCL macros; get rid of all the bogus tests for deleted interpreters (Tcl already tests for this; they were left over from an earlier misguided attempt to fix the threading).
-
Guido van Rossum authored
-
Guido van Rossum authored
doesn't depend on the value of os.sep. (I.e. ported to Windows :-)
-
Guido van Rossum authored
-
Guido van Rossum authored
There were some serious problem with the thread-safety code. The basic problem was that often the result was gotten out of the Tcl interpreter object after releasing the Tcl lock. Of course, another thread might have changed the return value already, and this was indeed happening. (Amazing what trying it on a different thread implementation does!) The solution is to grab the Python lock without releasing the Tcl lock, so it's safe to create a string object or set the exceptions from the Tcl interpreter. Once that's done, the Tcl lock is released. Note that it's now legal to acquire the Python lock while the the Tcl lock is held; but the reverse is not true: the Python lock must be released before the Tcl lock is acquired. This in order to avoid deadlines. Fortunately, there don't seem to be any problems with this.
-
- 13 Jun, 1998 1 commit
-
-
Guido van Rossum authored
(The "sort of" is because it uses kbhit() to detect that the user starts typing, and then no events are processed until they hit return.) Also fixed a nasty locking bug: EventHook() is called without the Tcl lock set, so it can't use the ENTER_PYTHON and LEAVE_PYTHON macros, which manipulate both the Python and the Tcl lock. I now only acquire and release the Python lock. (Haven't tested this on Unix yet...)
-
- 12 Jun, 1998 5 commits
-
-
Guido van Rossum authored
there are no more completions left. (This for compatibility with Donald Beaudry's code.)
-
Guido van Rossum authored
of Windows file handles. Now it is at least compatible with itself on Unix!
-
Guido van Rossum authored
-
Guido van Rossum authored
the tty and the caller can deal with the interrupt. In the windows version, recognize ^C and raise KeyboardInterrupt (not sure if this is needed, but can't hurt).
-
Guido van Rossum authored
tcgetattr(). This seems to be the only correct way to cope with platform-specific structure members...
-