summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove some overly complicated ways to concatenate and repeat stringsGuido van Rossum2002-06-121-6/+7
| | | | using "".join(). Fold a long line.
* Don't test for Java, test for sys.getrefcount.Guido van Rossum2002-06-121-2/+2
|
* Some provisional changes to get more tests to run on Windows (I hope).Guido van Rossum2002-06-121-6/+8
|
* Argh. Typo. :-(Guido van Rossum2002-06-121-1/+1
|
* Allow absent fromfd(), for Windows.Guido van Rossum2002-06-121-0/+2
|
* testSetSockOpt() should not require the reuse flag to be 1 -- anyGuido van Rossum2002-06-121-2/+2
| | | | | nonzero value is OK. Also fixed the error message for this and for testGetSockOpt().
* Lose the message on assertEqual calls -- they actually hideGuido van Rossum2002-06-121-18/+15
| | | | information on what went wrong.
* Docstring, layout and style tweaking. Increase fuzz to 1 second.Guido van Rossum2002-06-121-90/+87
|
* Add a new definition to Extension objects: depends.Jeremy Hylton2002-06-122-1/+6
| | | | | depends is a list of files that the target depends, but aren't direct sources of the target. think .h files.
* Add some more basic tests to validate the argument checking ofGuido van Rossum2002-06-121-1/+51
| | | | | settimeout(), test settimeout(None), and the interaction between settimeout() and setblocking().
* New test suite for the socket module by Michael Gilfix.Guido van Rossum2002-06-123-180/+486
| | | | Changed test_timeout.py to conform to the guidelines in Lib/test/README.
* SF bug 567826. Document new opcodes:Guido van Rossum2002-06-121-6/+50
| | | | | | ['BINARY_FLOOR_DIVIDE', 'BINARY_TRUE_DIVIDE', 'INPLACE_FLOOR_DIVIDE', 'INPLACE_TRUE_DIVIDE', 'GET_ITER', 'YIELD_VALUE', 'FOR_ITER', 'CONTINUE_LOOP']
* Add a testcase to ensure that cycles going through the __class__ linkGuido van Rossum2002-06-121-0/+6
| | | | of a new-style instance are detected by the garbage collector.
* SF bug 567538: Generator can crash the interpreter (Finn Bock).Guido van Rossum2002-06-123-2/+25
| | | | | | | | | | This was a simple typo. Strange that the compiler didn't catch it! Instead of WHY_CONTINUE, two tests used CONTINUE_LOOP, which isn't a why_code at all, but an opcode; but even though 'why' is declared as an enum, comparing it to an int is apparently not even worth a warning -- not in gcc, and not in VC++. :-( Will fix in 2.2 too.
* Rework the code to have only the GvR RPC. Output from execution of userKurt B. Kaiser2002-06-1211-1190/+171
| | | | code is directed to the Shell.
* The opcode YIELD_STMT was accidentally called YIELD_VALUE here.Guido van Rossum2002-06-111-1/+1
|
* patch #562492 - prevent duplicate lines in historySkip Montanaro2002-06-111-2/+19
| | | | also call using_history() to properly initialize history variables
* Fix SF #565414, FancyURLopener() needs to support **kwargsNeal Norwitz2002-06-111-2/+2
| | | | since the URLopener base class does and **kwargs are used in urlopen.
* Fix for problem reported by Neal Norwitz. Tighten up calculation ofMichael W. Hudson2002-06-112-3/+7
| | | | slicelength. Include his test case.
* Fold remaining long lines.Guido van Rossum2002-06-111-2/+6
|
* This is my nearly two year old patchMichael W. Hudson2002-06-1113-22/+570
| | | | | | | | | [ 400998 ] experimental support for extended slicing on lists somewhat spruced up and better tested than it was when I wrote it. Includes docs & tests. The whatsnew section needs expanding, and arrays should support extended slices -- later.
* Patch #488073: AtheOS port.Martin v. Löwis2002-06-1123-17/+1782
|
* add a version of GvR's q&d python idle printing patch,Steven M. Gava2002-06-115-3/+51
| | | | slightly tweaked and modified for the idlefork config system
* Completely revise markup for the list of list methods; the new markup matchesFred Drake2002-06-111-26/+35
| | | | | | | the semantics and presentation used in the library reference. Added an explanation of the use of [...] to denote optional arguments, since this is the only use of this in a signature line. Closes SF bug #567127.
* Record the latest fixes.Guido van Rossum2002-06-101-0/+9
|
* Took initial_tab and subsequent_tab away from the fill() method andGreg Ward2002-06-101-22/+34
| | | | | | | | transformed them into the initial_indent and subsequent_indent instance attributes. Now they actually work as advertised, ie. they are accounted for in the width of each output line. Plus you can use them with wrap() as well as fill(), and fill() went from simple-and-broken to trivial-and-working.
* SF patch 560794 (Greg Chapman): deepcopy can't handle customGuido van Rossum2002-06-101-8/+15
| | | | | | | | | | metaclasses. This is essentially the same problem as that reported in bug 494904 for pickle: deepcopy should treat instances of custom metaclasses the same way it treats instances of type 'type'. Bugfix candidate.
* Allow the standalone wrap() and fill() functions to take arbitraryGreg Ward2002-06-101-4/+6
| | | | keyword args, which are passed directly to the TextWrapper constructor.
* Make 'width' an instance attribute rather than an argument to the wrap()Greg Ward2002-06-101-31/+32
| | | | | | | and fill() methods. Keep interface of existing wrap() and fill() functions by going back to having them construct a new TextWrapper instance on each call, with the preferred width passed to the constructor.
* Remove the only use of a string method.Thomas Heller2002-06-101-1/+1
| | | | Fixes SF 564840.
* SF patch 564549 (Erik Andersén).Guido van Rossum2002-06-103-1/+13
| | | | | | | The WeakKeyDictionary constructor didn't work when a dict arg was given. Fixed by moving a line. Also adding a unit test. Bugfix candidate.
* Don't accept null bytes in the key.Guido van Rossum2002-06-101-2/+1
|
* Document that the key should not contain null bytes.Guido van Rossum2002-06-101-2/+3
|
* SF bug 563750 (Alex Martelli): posix_tmpfile():Guido van Rossum2002-06-102-2/+2
| | | | | | | The file returned by tmpfile() has mode w+b, so use that in the call to PyFile_FromFile(). Bugfix candidate.
* Tweak traceback message to avoid LaTeX2HTML bugAndrew M. Kuchling2002-06-101-3/+5
| | | | Add a reminder
* Add primitive printing support for Unix and Windows.Guido van Rossum2002-06-105-0/+38
|
* Fix typoAndrew M. Kuchling2002-06-101-2/+2
|
* Undo the last chunk of the previous patch, putting back a usefulGuido van Rossum2002-06-101-1/+3
| | | | | assert into PyType_Ready(): now that we're not clearing tp_dict, we can assert that it's non-NULL again.
* In the recent python-dev thread "Bizarre new test failure", weGuido van Rossum2002-06-101-32/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | discovered that subtype_traverse must traverse the type if it is a heap type, because otherwise some cycles involving a type and its instance would not be collected. Simplest example: while 1: class C(object): pass C.ref = C() This program grows without bounds before this fix. (It grows ever slower since it spends ever more time in the collector.) Simply adding the right visit() call to subtype_traverse() revealed other problems. With MvL's help we re-learned that type_clear() doesn't have to clear *all* references, only the ones that may not be cleared by other means. Careful analysis (see comments in the code) revealed that only tp_mro needs to be cleared. (The previous checkin to this file adds a test for tp_mro==NULL to _PyType_Lookup() that's essential to prevent crashes due to tp_mro being NULL when subtype_dealloc() tries to look for a __del__ method.) The same kind of analysis also revealed that subtype_clear() doesn't need to clear the instance dict. With this fix, a useful property of the collector is once again guaranteed: a single gc.collect() call will clear out all garbage. (It didn't always before, which put us on the track of this bug.) Will backport to 2.2.
* Three's a charm: yet another fix for SF bug 551412. Thinking againGuido van Rossum2002-06-101-19/+17
| | | | | | | | | | | about the test case, slot_nb_power gets called on behalf of its second argument, but with a non-None modulus it wouldn't check this, and believes it is called on behalf of its first argument. Fix this properly, and get rid of the code in _PyType_Lookup() that tries to call _PyType_Ready(). But do leave a check for a NULL tp_mro there, because this can still legitimately occur. I'll fix this in 2.2.x too.
* Fix typo, and add some remindersAndrew M. Kuchling2002-06-101-1/+12
|
* Tweak the description of pymalloc. Mention pymemcompat.h.Michael W. Hudson2002-06-101-24/+34
|
* refresh to pick up recent changesAndrew MacIntyre2002-06-101-3/+3
|
* make _sre a dynamically loadable module and build xxsubtypeAndrew MacIntyre2002-06-102-4/+17
|
* - Better commandline interface to BuildApplet, complete with options,Jack Jansen2002-06-093-49/+159
| | | | | | | verbose output to the console, etc. - Allow Cocoa applets to be built with BuildApplet. No full testing has been done yet to ensure OS9 operation hasn't suffered.
* Patch #505375: Make doc strings optional.Martin v. Löwis2002-06-095-0/+15
|
* Patch #505375: Make doc strings optional.Martin v. Löwis2002-06-096-31/+111
|
* escape 8-bit chars when generating .py files. fixes bug #566302Just van Rossum2002-06-091-1/+16
|
* Make all of TextWrapper's options keyword args to the constructor.Greg Ward2002-06-091-5/+9
|
* Record copyright and author.Greg Ward2002-06-071-0/+4
|