summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Correct the description of im_class. (Fred, this is changed in 2.2.Guido van Rossum2001-12-072-7/+6
| | | | Should this be labeled as changed? How?)
* Revise description of dumbdbm.open() to reflect that the flag argument isFred Drake2001-12-071-7/+7
| | | | | ignored and that mode was ignored before Python 2.2. This closes SF bug #490098.
* Honor the mode argument to dumbdbm.open(); there is not good reason not to,Fred Drake2001-12-071-6/+7
| | | | | especially since the documentation described it in detail. This partially closes SF bug #490098.
* PyMethodObject(): Update the comment about im_class based upon aGuido van Rossum2001-12-071-1/+1
| | | | conversation with Robin Dunn in SF patch #490402.
* Describe the behavior of the read() method when the list of filenamesFred Drake2001-12-071-0/+18
| | | | | | includes files that do not exist, explain the intended use of the interface, and show how to ensure an expected file really exists. This closes SF bug #490399.
* SF patch 490393: test___all__ and Jython; from Finn Bock.Tim Peters2001-12-071-3/+4
| | | | Don't even try to import _socket when running under Jython.
* I found that when run as a script, this test suite ran its testsGuido van Rossum2001-12-071-6/+6
| | | | | | twice! Fixed this by avoiding the import of test_email, which loads the module a second time in that situation, and fiddled the __main__ section to resemble other test suites using unittest.
* SF patch #489173: Make os.spawnv not block the interpreter, fromTim Peters2001-12-073-3/+18
| | | | | | | | | | | | Anthony Roach. Release the global interpreter lock around platform spawn calls. Bugfix candidate? Hard to say; I favor "yes, bugfix". These clearly *should* have been releasing the GIL all along, if for no other reason than compatibility with the similar os.system(). But it's possible some program out there is (a) multithreaded, (b) calling a spawn function with P_WAIT, and (c) relying on the spawn call to block all their threads until the spawned program completes. I think it's very unlikely anyone is doing that on purpose, but someone may be doing so by accident.
* O_cwrite(): rewrote for clarity, replacing all the (Oobject *)selfGuido van Rossum2001-12-071-16/+17
| | | | | | | | | | | casts with a variable oself that has the proper type. A smart compiler may put this thing into a register. (I'm not sure what good this does except satisfy my desire to understand this function; I got a report about an uninitialized read from Insure++ about this function and it hurt my eyes to even look at it. I gotta run away or I'll get tempted to reformat the entire file...)
* _PyTuple_Resize(): this dumped core on tuple(globals()) for me. TurnsGuido van Rossum2001-12-071-6/+8
| | | | | | | | | | | out the for loop at the end intended to zero out new items wasn't doing anything, because sv->ob_size was already equal to newsize. The fix slightly refactors the function, introducing a variable oldsize and doing away with sizediff (which was used only once), and using oldsize and newsize consistently. I also added comments explaining what the two for loops do. (Looking at the CVS annotation of this function, it's no miracle a bug crept in -- this has been patched by many different folks! :-)
* Another name.Fred Drake2001-12-071-0/+1
|
* Align the number of %s with the number of format arguments.Finn Bock2001-12-071-2/+2
| | | | This closes patch "[ #490330 ] String format bug in test_b2."
* More info about the cycle detector.Guido van Rossum2001-12-071-2/+4
|
* Trivial spelling repair on new cyclic garbage text.Tim Peters2001-12-071-2/+2
|
* Added more information about reference counting limitations and the cycleFred Drake2001-12-071-0/+27
| | | | | detector. This closes SF bug #484950.
* Move import dbhash out of test_sundry and into test_bsddb,Guido van Rossum2001-12-072-1/+1
| | | | so that test_sundry won't fail if the bsddb module is absent.
* Not being able to copy PythonCore to the system-folder is not a fatal error, ↵Jack Jansen2001-12-072-4/+8
| | | | | | on OSX the user may not have permission to do so. Also give a more informative message in this case. Fixes bug 475253.
* Fix for:Michael W. Hudson2001-12-072-9343/+4128
| | | | | | | | [ #417634 ] configuring without C++ compiler name by checking that we're not about to try to compile C++ files with "yes". Now we wait for the system where the C++ compiler *is* called yes...
* Missing DECREFs when exception is raised in sys.excepthook.Jeremy Hylton2001-12-071-0/+3
| | | | | | | Bug fix candidate for 2.1 branch. (I imagine the other recent leak patches are bug fix candidates, too, but I forgot to mark mine as such.)
* Use an immutable tuple for __slots instead of a mutable listAndrew M. Kuchling2001-12-071-2/+2
| | | | Bump version number
* Fix for #489672 (Neil Norwitz): memory leak in test_sre.Guido van Rossum2001-12-071-1/+4
| | | | | | | | | (At least for the repeatable test case that Tim produced.) pattern_subx(): Add missing DECREF(filter) in both exit branches (normal and error return). Also fix a DECREF(args) that should certainly be a DECREF(match) -- because it's inside if (!args) and right after allocation of match.
* In unconditional except clauses, don't catch KeyboardInterrupt -- it'sGuido van Rossum2001-12-071-0/+6
| | | | | | | annoying that often you have to hit ^C numerous times before it works. The solution: before the "except:" clause, insert "except KeyboardInterrupt: raise". This propagates KeyboardInterrupt out, stopping the test in its tracks.
* audioop_ratecv() again: settle for a sloppier upper bound that's lessTim Peters2001-12-071-34/+19
| | | | obnoxious to compute and easier to explain. No compromise on safety.
* s/it/if/ in descriptions of spawn mode argument.Tim Peters2001-12-061-1/+1
|
* For ratecv, document that None should be the initial state argument (whenTim Peters2001-12-061-1/+2
| | | | | I was squashing spurious overflows in the implementation, I got hung up on this point).
* Visious hackery to solve a build-control problem related to our use ofFred Drake2001-12-062-0/+18
| | | | | | | distutils for the library modules built as shared objects. A better solution appears possible, but with the threat that the distutils becomes more magical ("complex"). This closes SF bug #458343.
* Don't fail on importing things with undefined references. Unfortunately weJack Jansen2001-12-061-1/+2
| | | | | | still fail on importing modules that link with libraries that fail their initialization code (such as windowing libraries when we don't have access to the window server) and that is what I really wanted to fix.
* Silly mistake in build directory extension fix.Jack Jansen2001-12-062-4120/+9345
|
* Wrap some long lines.Fred Drake2001-12-061-11/+21
|
* Cleaned up Mac OS X section to the current state of affairs.Jack Jansen2001-12-061-10/+8
|
* Test wether we are building on a case-insensitive filesystem (suchJack Jansen2001-12-064-395/+417
| | | | | as OSX HFS+) and if so add an extension to the python executable, but only in the build directory, not on the installed python.
* [Bug #475009] Tighten the pattern for the first line, so we don'tAndrew M. Kuchling2001-12-061-1/+1
| | | | adjust it when a versioned interpreter is supplied (#!.../python2 ...)
* Fix for SF bug #489671 (Neil Norwitz): memory leak in test_richcmp.Guido van Rossum2001-12-061-0/+8
| | | | | | Had nothing to do with rich comparisons -- some stack cleanup code was lost as a result of merging in Neil Schemenauer's generators patch. Reinserted the stack cleanup code, skipping it when yielding.
* sys.platform is now "darwin" without digits appended.Jack Jansen2001-12-061-0/+2
|
* Whitespace normalization.Fred Drake2001-12-0611-48/+48
|