- 13 Jul, 2000 1 commit
-
-
Andrew M. Kuchling authored
-
- 12 Jul, 2000 1 commit
-
-
Jeremy Hylton authored
-
- 10 Jul, 2000 1 commit
-
-
Peter Schneider-Kamp authored
added excplicit node * parameter to termvalid argument in validate_two_chain_ops of parsermodule.c (as proposed by fred)
-
- 08 Jul, 2000 1 commit
-
-
Fred Drake authored
-
- 30 Jun, 2000 2 commits
-
-
Guido van Rossum authored
-
Fred Drake authored
The common technique for printing out a pointer has been to cast to a long and use the "%lx" printf modifier. This is incorrect on Win64 where casting to a long truncates the pointer. The "%p" formatter should be used instead. The problem as stated by Tim: > Unfortunately, the C committee refused to define what %p conversion "looks > like" -- they explicitly allowed it to be implementation-defined. Older > versions of Microsoft C even stuck a colon in the middle of the address (in > the days of segment+offset addressing)! The result is that the hex value of a pointer will maybe/maybe not have a 0x prepended to it. Notes on the patch: There are two main classes of changes: - in the various repr() functions that print out pointers - debugging printf's in the various thread_*.h files (these are why the patch is large) Closes SourceForge patch #100505.
-
- 19 Jun, 2000 1 commit
-
-
Andrew M. Kuchling authored
[mwh21@atrus build]$ ./python >>> import Tkinter >>> l = [] >>> l.append(l) >>> Tkinter._flatten(l) Segmentation fault (core dumped)
-
- 18 Jun, 2000 1 commit
-
-
Andrew M. Kuchling authored
this patch adds a fast _flatten function to the _tkinter module, and imports it from Tkinter.py (if available). this speeds up canvas operations like create_line and create_polygon. for example, a create_line with 5000 vertices runs about 50 times faster with this patch in place.
-
- 04 May, 2000 2 commits
-
-
Guido van Rossum authored
instead. This seems more robust than returning an Unicode string with some unconverted charcters in it. This still doesn't support getting truly binary data out of Tcl, since we look for the trailing null byte; but the old (pre-Unicode) code did this too, so apparently there's no need. (Plus, I really don't feel like finding out how Tcl deals with this in each version.)
-
Guido van Rossum authored
1. In Tcl 8.2 and later, use Tcl_NewUnicodeObj() when passing a Python Unicode object rather than going through UTF-8. (This function doesn't exist in Tcl 8.1, so there the original UTF-8 code is still used; in Tcl 8.0 there is no support for Unicode.) This assumes that Tcl_UniChar is the same thing as Py_UNICODE; a run-time error is issued if this is not the case. 2. In Tcl 8.1 and later (i.e., whenever Tcl supports Unicode), when a string returned from Tcl contains bytes with the top bit set, we assume it is encoded in UTF-8, and decode it into a Unicode string object. Notes: - Passing Unicode strings to Tcl 8.0 does not do the right thing; this isn't worth fixing. - When passing an 8-bit string to Tcl 8.1 or later that has bytes with the top bit set, Tcl tries to interpret it as UTF-8; it seems to fall back on Latin-1 for non-UTF-8 bytes. I'm not sure what to do about this besides telling the user to disambiguate such strings by converting them to Unicode (forcing the user to be explicit about the encoding). - Obviously it won't be possible to get binary data out of Tk this way. Do we need that ability? How to do it?
-
- 03 May, 2000 1 commit
-
-
Guido van Rossum authored
For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
-
- 27 Apr, 2000 1 commit
-
-
Guido van Rossum authored
Fixes a memory leak found by Fredrik Lundh.
-
- 31 Mar, 2000 2 commits
-
-
Guido van Rossum authored
None in an argument list *terminates* the argument list: further arguments are *ignored*. This isn't kosher, but too much code relies on it, implicitly. For example, IDLE was pretty broken.
-
Guido van Rossum authored
changed from 8.0 to 8.1 and I see no big reason to use objects in 8.0. At least now it works again with all versions from 8.0 - 8.3.
-
- 29 Mar, 2000 1 commit
-
-
Guido van Rossum authored
This was originally submitted by Martin von Loewis as part of his Unicode patch; all I did was add special cases for Python int and float objects and rearrange the object type tests somewhat to speed up the common cases (string, int, float, tuple, unicode, object).
-
- 28 Mar, 2000 1 commit
-
-
Guido van Rossum authored
8.0. There really is no excuse, and for who really still wants those, they can go back to Python 1.5.2.
-
- 27 Mar, 2000 1 commit
-
-
Guido van Rossum authored
Martin von Loewis (whose more elaborate patch to use objects is still under review).
-
- 29 Feb, 2000 1 commit
-
-
Guido van Rossum authored
PyArg_ParseTuple() format string arguments as possible.
-
- 05 Nov, 1999 1 commit
-
-
Guido van Rossum authored
8.1.1). His approach doesn't work with Tcl/Tk 8.2, so I've placed it inside #if TKMAJORMINOR == 8001 and #endif. See also his patch for tkappinit.c.
-
- 25 Jan, 1999 1 commit
-
-
Guido van Rossum authored
-
- 21 Dec, 1998 1 commit
-
-
Guido van Rossum authored
names in the source code (they already had those for the linker, through some smart macros; but the source still had the old, un-Py names).
-
- 04 Dec, 1998 1 commit
-
-
Guido van Rossum authored
on BeOS or Windows.
-
- 17 Nov, 1998 1 commit
-
-
Guido van Rossum authored
running in a non-threaded environment. He added some #ifdefs that fix this.
-
- 12 Oct, 1998 1 commit
-
-
Guido van Rossum authored
broken; it asked for the current thread state when there was none. Fixed by using the saved event_tstate.
-
- 09 Oct, 1998 1 commit
-
-
Guido van Rossum authored
thread state of the thread calling mainloop() (or another event handling function) rather than the thread state of the function that created the client data structure.
-
- 08 Oct, 1998 1 commit
-
-
Guido van Rossum authored
something in the latest win342 build).
-
- 01 Oct, 1998 1 commit
-
-
Guido van Rossum authored
-
- 21 Sep, 1998 1 commit
-
-
Guido van Rossum authored
triggered in situations that are not an error.
-
- 13 Aug, 1998 1 commit
-
-
Guido van Rossum authored
-
- 05 Aug, 1998 1 commit
-
-
Guido van Rossum authored
function had a reference to vPySys_WriteStderr(...) -- turn it back into fprintf(stder, ...).
-
- 14 Jul, 1998 1 commit
-
-
Guido van Rossum authored
low-level Python exit handler. This can attempt to call Python code at a point that the interpreter and thread state have already been destroyed, causing a Bus Error. Given the intended use of Py_AtExit(), I'm not convinced that it's a good idea to call it earlier during Python's finalization sequence... (Although this is the only use for it in the entire distribution.)
-
- 07 Jul, 1998 1 commit
-
-
Guido van Rossum authored
-
- 19 Jun, 1998 1 commit
-
-
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.)
-
- 15 Jun, 1998 2 commits
-
-
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
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...)
-
- 29 May, 1998 1 commit
-
-
Guido van Rossum authored
-
- 28 May, 1998 1 commit
-
-
Guido van Rossum authored
Tkinter. This adds a separate lock -- read the comments. (This was also needed for Mark Hammond's attempts to make PythonWin Tkinter-friendly.) The changes have affected the EventHook slightly, too; and I've done some more cleanup of the code that deals with the different versions of Tcl_CreateFileHandler().
-
- 22 May, 1998 1 commit
-
-
Guido van Rossum authored
registers an input file handler for stdin with Tcl and handles Tcl events until something is available on stdin; it then deletes the handler and returns from EventHook(). This works with or without GNU readline, and doesn't busy-wait. It still doesn't work for Mac or Windows :-(
-
- 12 May, 1998 1 commit
-
-
Guido van Rossum authored
-