summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* float_floor_div: An expression like 3.//1j crashed the interpreter, orTim Peters2001-12-111-9/+12
| | | | | | | 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.
* float_int_div(): For clarity, move this closer to the other floatTim Peters2001-12-111-16/+16
| | | | division functions, and rename to float_floor_div.
* A number of small adjustments.Fred Drake2001-12-111-4/+12
|
* Fiddle test_class so it passes with -Qnew.Tim Peters2001-12-111-5/+20
|
* Added discussion of protecting against screwing up the exception state inFred Drake2001-12-111-0/+48
| | | | an object's deallocator, including an example of how to do this.
* Fiddle test_augassign so it passes under -Qnew.Tim Peters2001-12-111-3/+10
|
* SF bug #491415 PyDict_UpdateFromSeq2() unusedTim Peters2001-12-114-30/+69
| | | | | | | 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.
* Save a new version of the productionlist environment for safe-keeping; thisFred Drake2001-12-111-5/+22
| | | | will be replaced shortly. See the comments for more details.
* Ignore SIGXFSZ. Fixes #490453.Martin v. Löwis2001-12-111-0/+9
|
* Fix whitespace in example of bad indentation: a comment indicated that oneFred Drake2001-12-111-8/+8
| | | | | | | 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
* Updated for hfsplus module, new gusi libs.Jack Jansen2001-12-111-0/+0
|
* Added __members__ to FInfo object.Just van Rossum2001-12-111-0/+2
|
* When using GCC, use the right option to add a directory to the list of dirsFred Drake2001-12-111-1/+18
| | | | | searched for a dependency for runtime linking. This closes SF bug #445902.
* Additional coverage tests by Neil Norwitz.Guido van Rossum2001-12-113-0/+87
| | | | (SF patch #491418, #491420, #491421.)
* Regression test for SF bug #478534 -- exceptions could "leak" into a weakrefFred Drake2001-12-101-0/+25
| | | | callback.
* Make sure that when we invoke callback functions associated with weakFred Drake2001-12-101-20/+24
| | | | | | references, we do not allow any outstanding exceptions "leak" into the callback's execution state. This closes SF bug #478534.
* Give xxsubtype a module docstring, so its oddball purpose is discoverableTim Peters2001-12-101-2/+8
| | | | | from a prompt without searching the source code (there was an SF bug report about this, already closed ... "479568 xxsubtype builtin").
* Skipping some tests by adding the usual jython conditional test around:Finn Bock2001-12-101-24/+27
| | | | | | | | | - 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".
* Update link to the SAX homepage.Fred Drake2001-12-101-1/+1
|
* Well what do you know. The Python implementation contained the sameGuido van Rossum2001-12-101-2/+2
| | | | bug as the C code. :-(
* Fix the Python property class in a comment right.Guido van Rossum2001-12-101-22/+23
|
* property_descr_get(): Fix a curious bug in the property() type: whenGuido van Rossum2001-12-101-5/+5
| | | | | | | | | | 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!
* Added documentation for str.decode().Fred Drake2001-12-101-0/+10
| | | | This closes SF bug #490823.
* SF patch #491183 (Jeff Epler): ScrolledText.grid() doesn't workGuido van Rossum2001-12-101-2/+6
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix forMichael W. Hudson2001-12-101-2/+11
| | | | [ #409430 ] pydoc install broken
* The new menu initialization code would also add the SIOUX menus if a ↵Jack Jansen2001-12-102-6/+15
| | | | (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.
* New fodder.Guido van Rossum2001-12-101-0/+1
|
* SF patch #491049 (David Jacobs): Small PyString_FromString optimizationGuido van Rossum2001-12-101-1/+1
| | | | | | 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.
* Fix forMichael W. Hudson2001-12-101-1/+2
| | | | | | | | [ #477371 ] build_scripts can use wrong #! line scripts now get "built" into a directory build/scripts-$(PYTHON_VERSION)/
* Add a comment explaining the st_symbols cache.Jeremy Hylton2001-12-101-1/+15
|
* The module generator now tells its object generators about the module name ↵Jack Jansen2001-12-092-1/+9
| | | | (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.
* Updated, and converted line-endings to unix-style (oops:-)Jack Jansen2001-12-091-1/+1
|
* Mods by Tony Lownds (patch 490100, slightly massaged by me) to make TkinterJack Jansen2001-12-092-1/+74
| | | | | | | | | | | | | | 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.
* Mods to make WASTE module compile and link for MachoPython. Not testedJack Jansen2001-12-095-3/+29
| | | | any further, yet.
* A workaround for the missing buffer() builtin in jython.Finn Bock2001-12-091-0/+6
| | | | This closes patch "[ #490850 ] Jython and test_StringIO".
* bug #133283, #477728, #483789, #490573Fredrik Lundh2001-12-094-24/+22
| | | | | | | backed out of broken minimal repeat patch from July also fixed a couple of minor potential resource leaks in pattern_subx (Guido had already fixed the big one)
* test(): Avoid a UnboundLocalError when a method is missing from both the stringFinn Bock2001-12-091-0/+1
| | | | | | module and from string methods. This closes patch "[ #490811 ] Jython and test_string".
* Moved a print statement outside the jython platform test. OtherwiseFinn Bock2001-12-091-1/+1
| | | | | the output fails to compare correctly for jython. This change was part of the original patch #403666.
* The initial patch #468662 was not applied quite verbatim. This should oneFinn Bock2001-12-091-1/+2
| | | | | | will fix the remaining Jython issues. This closes patch "[ #490411 ] Jython and test_grammar.py".
* Refcounting isn't available in Jython. Putting the jython test around it.Finn Bock2001-12-091-8/+9
| | | | This closes patch "[ #490414 ] Jython and test_socket".
* PySymtableEntry_New(): I'm not sure what this routine is doing, but itTim Peters2001-12-081-0/+1
| | | | | | | | was obviously leaking an int object when whatever the heck it's looking for was found. Repaired that. This accounts for why entering function and class definitions at an interactive prompt leaked a reference to the integer 1 each time. Bugfix candidate.
* Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum2001-12-0868-113/+116
| | | | | | | | | | | | | type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment.
* SF patch #489989 (Charles G Waldman) linuxaudiodev.c - fix initializationGuido van Rossum2001-12-081-9/+8
| | | | | | | | | | | | | | | | | | | | | The OSS Programmer's Reference (www.4front-tech.com) states: *Setting Sampling Parameters There are three parameters which affect the sound quality (and therefore memory and bandwidth requirements) of sampled audio data. These are: ** sample format (sometimes called number of bits) ** number of channels (mono or stereo), and ** sampling rate (speed) NOTE: It is important to always set these parameters in the above order. Setting sampling rate before the number of channels doesn't work with all devices.
* SF patch #490515 (Joe A) urllib.open_https() protocol issueGuido van Rossum2001-12-081-1/+1
| | | | | | | | | | open_http(): In urllib.py library module, URLopener.open_https() returns a class instance of addinfourl() with its self.url property missing the protocol. Instead of "https://www.someurl.com", it becomes "://www.someurl.com".
* OSX tweak.Just van Rossum2001-12-081-1/+3
|
* Enable support for jython:Finn Bock2001-12-081-4/+11
| | | | | | | | | 1. Acknowledge the welknown difference that jython allows continue in the finally clause. 2. Avoid using _testcapi when running with jython. This closes patch "[ #490417 ] Jython and test_exceptions"
* Don't do App.DrawThemeListBoxFrame() upon activate: it startsJust van Rossum2001-12-081-2/+2
| | | | | | | looking worse and worse if you deactivate/activate the window a few times. I don't know how to fix this properly, but I'm beginning to think that it's almost impossible to support the Appearance manager properly due to the way W works. Time for W2?...
* Remove erroneous and confusing comment -- sre patterns *can* beGuido van Rossum2001-12-081-2/+2
| | | | | pickled and we do *not* expect exceptions from either pickle or cPickle.
* Script to generate the table of distribution packages, plugging in the sizeFred Drake2001-12-081-0/+97
| | | | information automatically.
* Add change notes where im_class is discussed, since the exact meaning changesFred Drake2001-12-072-49/+60
| | | | with Python 2.2.