summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* _reduce(): Avoid infinite recursion in the pickler when self.__class__Guido van Rossum2001-12-271-0/+2
| | | | | | | | doesn't have the _HEAPTYPE flag set, e.g. for time.struct_time and posix.stat_result. This fixes the immediate symptoms of SF bug #496873 (cPickle / time.struct_time loop), replacing the infinite loop with an exception.
* Due to a cut-and-paste error, the type object exported under the nameGuido van Rossum2001-12-271-1/+1
| | | | | | statvfs_result was in fact the stat_result type object. :-( 2.2.1 bugfix!
* Modified version of patch #496882: echo SimpleStdin readline()Just van Rossum2001-12-271-1/+3
| | | | input to stdout.
* Elaborate the descriptions for onecmd(), precmd(), and postcmd() so they areFred Drake2001-12-271-9/+20
| | | | useful.
* Fix wrongly-named formal parameters in three places: begin_y was used twiceFred Drake2001-12-261-76/+75
| | | | | | | | instead of begin_y and begin_x for derwin(), subpad(), and subwin(). Reported for derwin() by Eric Huss. Added class annotations for the window methods so they would be properly described in the index.
* Added another name.Fred Drake2001-12-261-0/+1
|
* Added index entries similar to some recommended by Skip, and used the wordFred Drake2001-12-261-8/+12
| | | | | | | "interpolation" in the text, to make the string formatting material easier to find. This closes SF bug #487165. Bugfix: this should be applied for Python 2.2.1.
* Make this do the right thing with entries which start with the percent sign,Fred Drake2001-12-261-30/+54
| | | | | | | | | in response to Skip's comments in SF bug #487165. Make use of string methods instead of string module functions in most places. Add (and make the default) a way to collapse symbol entries into a single "Symbols" section in the generated index. This is similar to what makeindex does, but does not include entries beginning with an underscore.
* More index entries.Fred Drake2001-12-262-1/+4
|
* Close an improperly-closed verbatim environment.Fred Drake2001-12-261-3/+6
| | | | | | | | This closes SF patch #496215. Add a little more detail to the example that had not been closed. Bugfix: this should be made part of 2.2.1.
* SF bug #495548: troublesome #define in pyport.hTim Peters2001-12-252-1/+5
| | | | | | | | | Removed the ancient "#define ANY void". Bugfix candidate? Hard call. The bug report claims the existence of this #define creates conflicts with other packages, which is easy to believe. OTOH, some extension authors may still be relying on its presence. I'm afraid you can't win on this one.
* SF bug #496549 -Qnew and in-place division "/=".Tim Peters2001-12-251-11/+14
| | | | | | | | eval_frame(): Under -Qnew, INPLACE_DIVIDE wasn't getting handed off to INPLACE_TRUE_DIVIDE (like BINARY_DIVIDE was getting handed off to BINARY_TRUE_DIVIDE). Bugfix candidate.
* Don't set passiveserver to 0 in connect(). See SF bug #495693.Guido van Rossum2001-12-231-1/+0
| | | | | This should definitely be backported to 2.2.1. I'll leave it to Jack to decide whether he wants to fix this in MacPython 2.2.
* Fix the erroneous availability annotation for s.makefile() from the lastFred Drake2001-12-221-5/+7
| | | | | checkin (my fault!). Wrap some long lines and fix some markup inconsistencies.
* Regenerated for Linux 2.2.4.Martin v. Löwis2001-12-221-55/+182
|
* Add TCP socket options from glibc 2.2.4. Fixes #495680.Martin v. Löwis2001-12-221-0/+31
| | | | 2.2.1 bugfix candidate.
* Windows build: close out 2.2, prep for 2.3.Tim Peters2001-12-215-17/+19
|
* Added 2.3a1 section.Tim Peters2001-12-211-0/+30
|
* And we start all over again!Barry Warsaw2001-12-211-3/+3
|
* Merge of the release22 branch changes back into the trunk.Barry Warsaw2001-12-217-7/+80
|
* Add notes that fromfd() and s.makefile() are Unix-specific.Fred Drake2001-12-211-12/+14
| | | | | | This fixes SF bug #495896. Fix up various markup consistency & style guide conformance nits.
* Doc changes on the trunk will not be in Python 2.2, so let's call it 2.2+.Fred Drake2001-12-212-2/+2
|
* PyOS_vsnprintf(): Change PyMem_Malloc() call to PyMem_MALLOC() macro,Barry Warsaw2001-12-211-2/+2
| | | | | | | (ditto for PyMem_Free() -> PyMem_FREE()) to fix and close SF bug #495875 on systems that HAVE_SNPRINTF=0. Check in on both release-22 branch and trunk.
* Suggested by Pete Shinners: treat .m and .mm files as source code.Andrew M. Kuchling2001-12-211-1/+1
| | | | | | Question for Jack Jansen: is this reasonable? Candidate for 2.2 release branch (if Jack thinks it's OK).
* forward-patch from release21-maint branch:Anthony Baxter2001-12-211-0/+6
| | | | | | | | | | Make dumbdbm merely "dumb", rather than "terminally broken". Without this patch, it's almost impossible to use dumbdbm _without_ causing horrible datalossage. With this patch, dumbdbm passes my own horrible torture test, as well as the roundup test suite. dumbdbm really could do with a smidgin of a rewrite or two, but that's not suitable for the release21-maint branch.
* 1.00 at last!Andrew M. Kuchling2001-12-211-6/+29
| | | | | | Describe super() very briefly A few minor reformattings and wording changes Set the release date (presumably tomorrow...)
* Add a reference to the signal module to the os.kill() description.Fred Drake2001-12-211-1/+3
| | | | This closes SF bug #495609.
* Fix typo in httplib example.Fred Drake2001-12-211-1/+1
| | | | This fixes SF bug #495221.
* Fix up some examples in the tutorial so we don't contradict our ownFred Drake2001-12-201-2/+2
| | | | | advice on docstrings. This fixes SF bug #495601.
* Applying r22c1 branch mods back to the trunk.Jack Jansen2001-12-208-25/+57
|
* Fix the availability statement for the spawn*() functions to reflect theFred Drake2001-12-201-2/+3
| | | | | actual availability on Windows. This fixes SF bug #495191.
* Re-commit Ping's patch to the cgi and cgitb documentation, using theFred Drake2001-12-202-51/+47
| | | | | right version this time. Thanks, Ping! (This was from SF patch #494582, "\index -> \indexii" version.)
* test_parseaddr_empty(): New test for assuring thatBarry Warsaw2001-12-201-0/+4
| | | | | Utils.parseaddr('<>') -- i.e. on an empty address, returns the empty string. Built on rfc822, this used to return None.
* Update the documentation linksAndrew M. Kuchling2001-12-201-15/+6
| | | | Remove reference to this being a draft
* Use the final patch/bug numbersAndrew M. Kuchling2001-12-201-2/+1
|
* ZZZ.Guido van Rossum2001-12-201-0/+1
|
* SF patch #495358 (Artur Zaprzala): rfc822.AddressList and "<>" addressGuido van Rossum2001-12-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | rfc822.AddressList incorrectly handles empty address. "<>" is converted to None and should be "". AddressList.__str__() fails on None. I got an email with such an address and my program failed processing it. Example: >>> import rfc822 >>> rfc822.AddressList("<>").addresslist [('', None)] >>> str(rfc822.AddressList("<>")) Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.1/rfc822.py", line 753, in __str__ return ", ".join(map(dump_address_pair, self.addresslist)) TypeError: sequence item 0: expected string, None found [His solution: in the internal routine AddrlistClass.getrouteaddr(), initialize adlist to "".]
* Another contributor.Guido van Rossum2001-12-201-0/+1
|
* Whitespace normalization.Tim Peters2001-12-201-1/+0
|
* Apparently it's Cygwin with a capital C.Michael W. Hudson2001-12-191-2/+2
|
* partial merge with current pythonware codebase:Fredrik Lundh2001-12-191-3/+4
| | | | | - use repr instead of implied str for doubles - updated version number to 1.0.0 (for 2.2 final)
* Fix a typoNeal Norwitz2001-12-191-1/+1
|
* More cygwin news. This section is getting a bit long. Oh well.Michael W. Hudson2001-12-191-25/+43
|
* SF bug #495021: Crash calling os.stat with a trailing backslashTim Peters2001-12-191-14/+20
| | | | | | | Patch from Mark Hammond, plus code rearrangement and comments from me. posix_do_stat(): Windows-specific code could try to free() stack memory in some cases when a path ending with a forward or backward slash was passed to os.stat().
* Add test for pickling new-style class with custom metaclass.Guido van Rossum2001-12-191-0/+12
|
* Fix for SF bug #494904: Cannot pickle a class with a metaclass,Guido van Rossum2001-12-191-0/+1
| | | | reported by Dan Parisien.
* save(): Fix for SF bug #494904: Cannot pickle a class with aGuido van Rossum2001-12-191-0/+5
| | | | | | | | | | | | metaclass, reported by Dan Parisien. Objects that are instances of custom metaclasses, i.e. whose ob_type is a subclass of PyType_Type, should be pickled the same as new-style classes (objects whose ob_type is PyType_Type). This can't be done through the existing dispatch switches, and the __reduce__ trick doesn't work for these, since it finds the unbound __reduce__ for instances of the class (inherited from PyBaseObject_Type). So check explicitly using PyType_IsSubtype().
* Pickler.save(): Fix for SF bug #494904: Cannot pickle a class with aGuido van Rossum2001-12-191-0/+4
| | | | | | | | | | | metaclass, reported by Dan Parisien. Objects that are instances of custom metaclasses, i.e. whose class is a subclass of 'type', should be pickled the same as new-style classes (objects whose class is 'type'). This can't be done through a dispatch table entry, and the __reduce__ trick doesn't work for these, since it finds the unbound __reduce__ for instances of the class (inherited from 'object'). So check explicitly using issubclass().
* Add some additional tests that check more proxy behaviors.Fred Drake2001-12-191-0/+18
|
* proxy_compare(): Make sure that we unwrap both objects being compared ifFred Drake2001-12-191-6/+13
| | | | both are proxy objects.