summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Minor clarification of the zip() description, based on a comment sent toFred Drake2001-12-031-1/+1
| | | | python-docs.
* Make no assumption about how modules are built when referring to them; thisFred Drake2001-12-031-4/+3
| | | | | can vary by platform and installation. Based on suggestion to python-docs.
* Re-word the intro slightly to avoid reader misunderstanding: strings are notFred Drake2001-12-031-30/+24
| | | | | | | | | | | | | mutable! We do not want to shock anyone. This closes SF bug #483805. Re-factor so that the description of the "access" keyword parameter is not repeated in both the descriptions of mmap(). Also, only make sure the first description of mmap() appears in the index. The the index link is followed, the first is now used to locate the page on the screen; chances are really good both will be visible. This avoids the problem that the index entry for the second is selected and the first version is not visible, making the reader consider that mmap() is not available on Windows.
* Removed old and broken AE-based browser controller, use webbrowser.pyJust van Rossum2001-12-031-31/+11
| | | | instead. This fixes bug #488420.
* Clarify that the Python runtime may behave mysteriously when an exceptionFred Drake2001-12-031-4/+12
| | | | | is not handled properly. This closes SF bug #485153.
* Remove most references to __members__ and __methods__, leaving only one pairFred Drake2001-12-034-20/+10
| | | | | | of references that now state that these attributes have been removed, directing the reader to the dir() function. This closes SF bug #456420.
* Convert to using string methods instead of the string module.Fred Drake2001-12-031-29/+25
| | | | | | In goahead(), use a bound version of rawdata.startswith() since we use the same method all the time and never change the value of rawdata. This can save a lot of bound method creation.
* Add a test that makes sure unclosed entity references are handled consitently.Fred Drake2001-12-031-0/+6
|
* PyErr_Format() does not return a new reference; it always returns NULL.Fred Drake2001-12-031-7/+5
| | | | This closes SF bug #488387.
* Fix of SF bug #475877 (Mutable subtype instances are hashable).Guido van Rossum2001-12-033-3/+41
| | | | | | | | | | | | | | | | | Rather than tweaking the inheritance of type object slots (which turns out to be too messy to try), this fix adds a __hash__ to the list and dict types (the only mutable types I'm aware of) that explicitly raises an error. This has the advantage that list.__hash__([]) also raises an error (previously, this would invoke object.__hash__([]), returning the argument's address); ditto for dict.__hash__. The disadvantage for this fix is that 3rd party mutable types aren't automatically fixed. This should be added to the rules for creating subclassable extension types: if you don't want your object to be hashable, add a tp_hash function that raises an exception. Also, it's possible that I've forgotten about other mutable types for which this should be done.
* _tryorder should always be a list, then the problem Jack had to fix inGuido van Rossum2001-12-031-5/+4
| | | | | | 1.24 wouldn't have occurred in the first place. Remove a debug print command accidentally inserted by Martin in 1.23.
* New about super.Guido van Rossum2001-12-031-0/+15
|
* Missing comma in tuple initializer caused webbrowser.open() not to work atJack Jansen2001-12-031-1/+1
| | | | all in MacPython. (why did noone ever notice this?)
* Address SF patch #480716 as well as related issues.Guido van Rossum2001-12-032-18/+87
| | | | | | | | | | | | | | | | | | | SF patch #480716 by Greg Chapman fixes the problem that super's __get__ method always returns an instance of super, even when the instance whose __get__ method is called is an instance of a subclass of super. Other issues fixed: - super(C, C()).__class__ would return the __class__ attribute of C() rather than the __class__ attribute of the super object. This is confusing. To fix this, I decided to change the semantics of super so that it only applies to code attributes, not to data attributes. After all, overriding data attributes is not supported anyway. - While super(C, x) carefully checked that x is an instance of C, super(C).__get__(x) made no such check, allowing for a loophole. This is now fixed.
* Add Greg Chapman.Guido van Rossum2001-12-031-0/+1
|
* Add more inline documentation, as contributed in #487906.Martin v. Löwis2001-12-031-3/+8
|
* Clean up some material that is not part of the standard documentation.Fred Drake2001-12-031-43/+7
| | | | This closes SF bug #487308.
* PyString_FromFormatV, string_repr: document why these use sprintfTim Peters2001-12-031-5/+16
| | | | instead of PyOS_snprintf; add some relevant comments and asserts.
* Fix for SF bug #485678.Guido van Rossum2001-12-031-0/+6
| | | | | | | | slot_tp_descr_set(): When deleting an attribute described by a descriptor implemented in Python, the descriptor's __del__ method is called by the slot_tp_descr_set dispatch function. This is bogus -- __del__ already has a different meaning. Renaming this use of __del__ is renamed to __delete__.
* mysnprintf.c: Massive rewrite of PyOS_snprintf and PyOS_vsnprintf, toTim Peters2001-12-034-94/+78
| | | | | | | | | | | | | | | use wrappers on all platforms, to make this as consistent as possible x- platform (in particular, make sure there's at least one \0 byte in the output buffer). Also document more of the truth about what these do. getargs.c, seterror(): Three computations of remaining buffer size were backwards, thus telling PyOS_snprintf the buffer is larger than it actually is. This matters a lot now that PyOS_snprintf ensures there's a trailing \0 byte (because it didn't get the truth about the buffer size, it was storing \0 beyond the true end of the buffer). sysmodule.c, mywrite(): Simplify, now that PyOS_vsnprintf guarantees to produce a \0 byte.
* further work on new configuration system, specifically,Steven M. Gava2001-12-033-66/+110
| | | | on keybinding configuration
* A system() lookalike that sends commands to ToolServer, by Daniel Brotsky. ↵Jack Jansen2001-12-031-0/+67
| | | | The semantics aren't enough like system() to add this to the main Lib folder, but it is pretty useful nonetheless for selected people.
* Fix for SF bug #485678.Guido van Rossum2001-12-031-1/+1
| | | | | | | | slot_tp_descr_set(): When deleting an attribute described by a descriptor implemented in Python, the descriptor's __del__ method is called by the slot_tp_descr_set dispatch function. This is bogus -- __del__ already has a different meaning. Renaming this use of __del__ is renamed to __delete__.
* Changed logic for finding python home in Mac OS X framework Pythons.Jack Jansen2001-12-021-47/+45
| | | | | | Now sys.executable points to the executable again, in stead of to the shared library. The latter is used only for locating the python home.
* Added tests expected to be skipped on Mac OS X.Jack Jansen2001-12-021-0/+21
|
* Check for NULL return value of PyList_New (follow-up to patch #486743).Martin v. Löwis2001-12-021-0/+3
|
* Patch 487906: update inline docs.Martin v. Löwis2001-12-021-13/+21
|
* Another name.Fred Drake2001-12-021-0/+1
|
* Add reference to the "String Methods" section to make that informationFred Drake2001-12-021-0/+3
| | | | | easier to find. Based on the comment from Steve Alexander on the zope-coders mailing list.
* Patch #487784: Support Unicode commands in popen3/4 handling on UNIX.Martin v. Löwis2001-12-021-1/+2
|
* Compute thread headers through shell expansion in configure.Martin v. Löwis2001-12-023-3/+18
| | | | Fixes #485679.
* Patch #481718: Time module doc string changes.Martin v. Löwis2001-12-021-2/+4
|
* Patch #487275: windows-1251 charset alias.Martin v. Löwis2001-12-021-0/+2
|
* Patch #487275: Add windows-1251 charset alias.Martin v. Löwis2001-12-021-0/+1
|
* Patch #486743: remove bad INCREF, propagate exception in append_objects.Martin v. Löwis2001-12-021-6/+11
|
* Patch #487455: make types.StringTypes a tuple.Martin v. Löwis2001-12-021-2/+2
|
* Remove INET6 define. Use ENABLE_IPV6 instead.Martin v. Löwis2001-12-025-248/+236
|
* mywrite(): The test for trouble in PyOS_vsnprintf was wrong on bothTim Peters2001-12-021-3/+10
| | | | | ends. Also, when there is trouble, ensure the buffer has a traiing 0 byte.
* When the number of bytes written to the malloc'ed buffer is largerGuido van Rossum2001-12-011-5/+5
| | | | | | than the argument string size, copy as many bytes as will fit (including a terminating '\0'), rather than not copying anything. This to make it satisfy the C99 spec.
* Whitespace normalization.Tim Peters2001-12-011-1/+0
|
* SF bug #487743: test_builtin fails on 64 bit platform.Tim Peters2001-12-011-1/+1
| | | | | | | | Bugfix candidate. int_repr(): we've never had a buffer big enough to hold the largest possible result on a 64-bit box. Now that we're using snprintf instead of sprintf, this can lead to nonsense results instead of random stack corruption.
* Synchronize with pulldom from PyXML (revision 1.18).Fred Drake2001-11-301-2/+24
|
* Synchronize with minidom from PyXML (revision 1.35).Fred Drake2001-11-301-5/+5
|
* Drop xmllib in favor of SAX.Fred Drake2001-11-301-21/+30
|
* Add a couple of entries to the whitespace-cleanups table.Fred Drake2001-11-301-0/+2
|
* Add description of tkCommonDialog.Fred Drake2001-11-301-0/+1
|
* Added two new conversion specifications.Fred Drake2001-11-301-0/+7
|
* Change the chapter title to reflect the Tk affinity.Fred Drake2001-11-301-5/+5
| | | | | Use the new seealso* environment in the section pointing out other GUI toolkits.
* Add a new environment in the Python docs markup: seealso*. This is similarFred Drake2001-11-303-11/+41
| | | | | | | | to seealso, but does not add the "See also:" header or put the content in a box in the HTML version. Updated the description of \seeurl to better indicate when it should be used; the old description was written before we had \seetitle.
* Minor adjustments to markup for the getDOMImplementation() description.Fred Drake2001-11-301-10/+13
|