- 11 Dec, 2001 21 commits
-
-
Guido van Rossum authored
The cause seems to be that when a file URL doesn't exist, urllib.urlopen() raises OSError instead of IOError. Simply add this to the except clause. Not elegant, but effective. :-)
-
Fred Drake authored
-
Just van Rossum authored
a little.
-
Tim Peters authored
that still fails under -Qnew, and is so tied to details of current behavior that fixing it before new division becomes the default is impractical.
-
Fred Drake authored
-
Fred Drake authored
Minor, but generates slightly smaller HTML & makes it easier to see what's happening when debugging the HTML.
-
Marc-André Lemburg authored
> > When using 'distutils' (shipped with Python 2.1) I've found that my > Python scripts installed with a first line of: > > #!/usr/bin/python2.1None > > This is caused by distutils trying to patch the first line of the python > script to use the current interpreter.
-
Tim Peters authored
delivered bizarre results. Check float_divmod for a Py_NotImplemented return and pass it along (instead of treating Py_NotImplemented as a 2-tuple). CONVERT_TO_DOUBLE: Added comments; this macro is obscure.
-
Tim Peters authored
division functions, and rename to float_floor_div.
-
Fred Drake authored
-
Tim Peters authored
-
Fred Drake authored
an object's deallocator, including an example of how to do this.
-
Tim Peters authored
-
Tim Peters authored
PyDict_UpdateFromSeq2(): removed it. PyDict_MergeFromSeq2(): made it public and documented it. PyDict_Merge() docs: updated to reveal <wink> that the second argument can be any mapping object.
-
Fred Drake authored
will be replaced shortly. See the comments for more details.
-
Martin v. Löwis authored
-
Fred Drake authored
line was not indented at all, so the example is no longer indented at all. All of the errors being shown remain. Typo: characteru --> character
-
Jack Jansen authored
-
Just van Rossum authored
-
Fred Drake authored
searched for a dependency for runtime linking. This closes SF bug #445902.
-
Guido van Rossum authored
(SF patch #491418, #491420, #491421.)
-
- 10 Dec, 2001 16 commits
-
-
Fred Drake authored
callback.
-
Fred Drake authored
references, we do not allow any outstanding exceptions "leak" into the callback's execution state. This closes SF bug #478534.
-
Tim Peters authored
from a prompt without searching the source code (there was an SF bug report about this, already closed ... "479568 xxsubtype builtin").
-
Finn Bock authored
- the repr of unicode. Jython only add the u'' if the string contains char values > 255. - A unicode arg to unicode() is perfectly valid in jython. - A test buffer() test. No buffer() on Jython This closes patch "[ #490920 ] Jython and test_unicode".
-
Fred Drake authored
-
Guido van Rossum authored
bug as the C code. :-(
-
Guido van Rossum authored
-
Guido van Rossum authored
no get function was defined, the property's doc string was inaccessible. This was because the test for prop_get was made *before* the test for a NULL/None object argument. Also changed the property class defined in Python in a comment to test for NULL to decide between get and delete; this makes it less Python but then, assigning None to a property doesn't delete it!
-
Fred Drake authored
This closes SF bug #490823.
-
Guido van Rossum authored
Using grid methods on ScrolledText widgets does not work as expected. It either fails to pack a widget, or can even cause Tk to lock up. The problem is that the .grid method is being called on the text widget, not the frame widget. This can lead to the well-known lockup in Tk when a frame's children are managed by both the pack and grid managers. Even if it doesn't lock up, the frame is never placed within the intended widget. Program fragment: >>> import ScrolledText >>> s = ScrolledText.ScrolledText() >>> s.grid(row=0, column=0, rowspan=2) The following patch uses the same hack to copy the 'grid' and 'place' geometry manager methods to the ScrolledText instance as is already used for the 'pack' manager.
-
Michael W. Hudson authored
[ #409430 ] pydoc install broken
-
Jack Jansen authored
The new menu initialization code would also add the SIOUX menus if a (frozen) Python program had installed its own menubar previously. We now guard against this, with a bit of a hack: FrameWork uses the same Menu ID as Sioux, and the init code checks that the text in the menu is "About SIOUX" before replacing it.
-
Guido van Rossum authored
-
Guido van Rossum authored
PyString_FromString(): Since the length of the string is already being stored in size, changed the strcpy() to a memcpy() for a small speed improvement.
-
Michael W. Hudson authored
[ #477371 ] build_scripts can use wrong #! line scripts now get "built" into a directory build/scripts-$(PYTHON_VERSION)/
-
Jeremy Hylton authored
-
- 09 Dec, 2001 3 commits
-
-
Jack Jansen authored
The module generator now tells its object generators about the module name (through the new setmodulename() method). If the module name has been set the object generators output it as part of the tp_name field for the object type.
-
Jack Jansen authored
-
Jack Jansen authored
work with Mac OS X Aqua-Tk, all nicely within ifdefs. The process is not for the faint of heart, though: you need to download and install the (alfa) Aqua-Tk, obtain a few needed X11 headers from somewhere else and then everything builds. To run scripts using Tkinter you must build with --enable-framework, build Python.app in Mac/OSX and run your Tkinter scripts with that. Then, about half the tests in Demo/tkinter work (or at least do something). Checking this in anyway because it shouldn't break anything, and newer versions of Aqua-Tk will streamline the process.
-