summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Use True/False instead of 1/0.Greg Ward2002-06-071-5/+5
|
* Remove islower() -- not used anymore.Greg Ward2002-06-071-6/+0
|
* Conform to the bloody coding standards: "def foo()" not "def foo ()".Greg Ward2002-06-071-10/+10
| | | | Yuck.
* Convert _fix_sentence_endings() to use a regex, and augment it toGreg Ward2002-06-071-8/+8
| | | | | handle sentences like this: And she said, "Go to hell!" Can you believe that?
* Add fix_sentence_endings option to control whether we ensure thatGreg Ward2002-06-071-16/+25
| | | | | | | | sentences are separated by two spaces. Improve _fix_sentence_endings() a bit -- look for ".!?" instead of just ".", and factor out the list of sentence-ending punctuation characters to a class attribute.
* Initial revision. Currently biased towards English in a fixed-width font,Greg Ward2002-06-071-0/+239
| | | | according to the conventions that I (and Tim Peters) learned in school.
* Move the conex_finally label up, so that the errno value is alwaysGuido van Rossum2002-06-071-1/+1
| | | | returned.
* Added Bernard Yue who wrote test_timeout.py and participated in theGuido van Rossum2002-06-071-0/+1
| | | | timeout socket patch design.
* Added the 7 new top level domains, and reworded the nameorgs output.Barry Warsaw2002-06-071-113/+110
| | | | | | | | | | | | | | | | | | | | | | | | Not sure this is better in all cases. parse(): Fixed a bug in the output; the dict is referred to in the code as `countries' not `country'. Also added no-case-fold for the string "U.S." since the Virgin Islands name no longer wraps those in parentheses. main(): Fixed the argument parsing to agree with the docstring, i.e. --outputdict instead of --output. In the module docstring: - updated my email address - we don't need to explain about Python 1.5 regexps <wink> We also don't need to wrap the import of re with a try/except. Other style fixes: - untabification - revert back to <> style everywhere (and consistently)
* Added -t (--threshold) option to call gc.set_threshold(N).Guido van Rossum2002-06-071-25/+30
|
* Apply diff2.txt from SF patch http://www.python.org/sf/565471Walter Dörwald2002-06-071-35/+31
| | | | | | | | | | | | | This patch replaces string module functions with string methods in the Tools/world/world scripts. It also updates two outdated URLs and the countrycodes dictionary. It fixes a bug where result of string.find() was checked for truth instead of compared with -1. It also replaces <> with != in two spots.
* Add timeout mode. Clarify gnu_getopt.Guido van Rossum2002-06-071-1/+7
|
* Clarify the interaction between timeout/non-blocking mode, makefileGuido van Rossum2002-06-071-1/+10
| | | | and fromfd.
* Fix typoNeal Norwitz2002-06-071-1/+1
|
* Clarify the interaction between blocking and timeouts. Explain thatGuido van Rossum2002-06-071-16/+23
| | | | fromfd() assumes a blocking non-timeout socket.
* I decided to change the interaction between setblocking() andGuido van Rossum2002-06-071-5/+2
| | | | | | | | | | settimeout(). Already, settimeout() canceled non-blocking mode; now, setblocking() also cancels the timeout. This is easier to document. (XXX should settimeout(0) be an alias for setblocking(0)? They seem to have roughly the same effect. Also, I'm not sure that the code in connect() and accept() is correct in all cases. We'll sort this out soon enough.)
* gnu_getopt should be exported in __all__Skip Montanaro2002-06-071-1/+1
|
* Major cleanup. Renamed static methods to avoid Py prefix. Other miscGuido van Rossum2002-06-071-296/+290
| | | | cleanup as well, e.g. renamed NTinit to os_init.
* Repair a comment.Guido van Rossum2002-06-071-1/+1
|
* Whitespace normalization, folding long lines, uniform commentGuido van Rossum2002-06-071-224/+229
| | | | delimiters. Also repaired some docstrings and comments.
* Correct several blunders in the timeout code, mostly my own fault (forGuido van Rossum2002-06-071-14/+12
| | | | | | | | | | | | | | | | | | | | | not testing it -- apparently test_timeout.py doesn't test anything useful): In internal_select(): - The tv_usec part of the timeout for select() was calculated wrong. - The first argument to select() was one too low. - The sense of the direction argument to internal_select() was inverted. In PySocketSock_settimeout(): - The calls to internal_setblocking() were swapped. Also, repaired some comments and fixed the test for the return value of internal_select() in sendall -- this was in the original patch.