summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Be smarter about clearing the weakref lists for instances, instance methods,Fred Drake2001-10-262-3/+6
| | | | | | and functions: we only need to call PyObject_ClearWeakRefs() if the weakref list is non-NULL. Since these objects are common but weakrefs are still unusual, saving the call at deallocation time makes a lot of sense.
* Many, many small fixes and improvements, most suggested by Detlef Lannert.Fred Drake2001-10-261-17/+27
|
* Added docs for PyObject_CallFunctionObArgs() and PyObject_CallMethodObArgs().Fred Drake2001-10-261-11/+32
| | | | Minor cleanups & markup consistency fixes.
* Added refcount data for PyObject_CallFunctionObArgs() andFred Drake2001-10-261-0/+9
| | | | PyObject_CallMethodObArgs().
* Added two new functions to conveniently call functions/methods from C.Fred Drake2001-10-262-5/+99
| | | | | | | PyObject_CallFunctionObArgs() and PyObject_CallMethodObArgs() have the advantage that no format strings need to be parsed. The CallMethod variant also avoids creating a new string object in order to retrieve a method from an object as well.
* Some style changes and typo fixes.Fred Drake2001-10-261-6/+9
|
* Updated this README to reality.Guido van Rossum2001-10-261-15/+6
|
* Some news.Guido van Rossum2001-10-261-1/+13
|
* Delete Makefile.pre.in (BDFL pronouncement)Andrew M. Kuchling2001-10-261-305/+0
|
* Clean up the tables of child links generated by stock LaTeX2HTML so we getFred Drake2001-10-261-0/+8
| | | | | | consistent (lack of) vertical space between sections, and remove some of the unnecessary cruft that was added in (finally we get to *remove* something that got generated!).
* Moved PythonScript to unsupported at Bill Bedford's request. It'll goJack Jansen2001-10-269-0/+0
| | | | away completely next release, unless someone complains.
* Typo: destuction --> destructionFred Drake2001-10-261-1/+1
| | | | Reported by Thomas Heller.
* further work supporting reading config dialog values form config files.Steven M. Gava2001-10-261-20/+40
|
* dynamic option menu widget.Steven M. Gava2001-10-261-0/+34
|
* further work on loading config dialog values from the config filesSteven M. Gava2001-10-261-61/+15
|
* Generalize dictionary() to accept a sequence of 2-sequences. At theTim Peters2001-10-267-36/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | outer level, the iterator protocol is used for memory-efficiency (the outer sequence may be very large if fully materialized); at the inner level, PySequence_Fast() is used for time-efficiency (these should always be sequences of length 2). dictobject.c, new functions PyDict_{Merge,Update}FromSeq2. These are wholly analogous to PyDict_{Merge,Update}, but process a sequence-of-2- sequences argument instead of a mapping object. For now, I left these functions file static, so no corresponding doc changes. It's tempting to change dict.update() to allow a sequence-of-2-seqs argument too. Also changed the name of dictionary's keyword argument from "mapping" to "x". Got a better name? "mapping_or_sequence_of_pairs" isn't attractive, although more so than "mosop" <wink>. abstract.h, abstract.tex: Added new PySequence_Fast_GET_SIZE function, much faster than going thru the all-purpose PySequence_Size. libfuncs.tex: - Document dictionary(). - Fiddle tuple() and list() to admit that their argument is optional. - The long-winded repetitions of "a sequence, a container that supports iteration, or an iterator object" is getting to be a PITA. Many months ago I suggested factoring this out into "iterable object", where the definition of that could include being explicit about generators too (as is, I'm not sure a reader outside of PythonLabs could guess that "an iterator object" includes a generator call). - Please check my curly braces -- I'm going blind <0.9 wink>. abstract.c, PySequence_Tuple(): When PyObject_GetIter() fails, leave its error msg alone now (the msg it produces has improved since PySequence_Tuple was generalized to accept iterable objects, and PySequence_Tuple was also stomping on the msg in cases it shouldn't have even before PyObject_GetIter grew a better msg).
* Update. __dict__ assignment done. Reorder remaining "to do" items byGuido van Rossum2001-10-261-7/+22
| | | | priority. Add tp_cache; add some comments to others.
* Allow assignment to newinstance.__dict__.Guido van Rossum2001-10-262-1/+50
|
* Fix two typos, one noted by Noah Spurrier in SF bug #475166, theGuido van Rossum2001-10-262-2/+3
| | | | | second noted after a second's thought about what the next line should do. :-(
* Add sendall() method, which loops until all data is written or anGuido van Rossum2001-10-261-2/+44
| | | | | | | error occurs, and doesn't return a count. (This is my second patch from SF patch #474307, with small change to the docstring for send().) 2.1.2 "bugfix" candidate.
* Add yet more markup that let's a stylesheet pick out a small bit of theFred Drake2001-10-261-3/+11
| | | | | presentation. This is acceptable since it only occurs in the formatted output and does not affect the document markup.
* Enforce a bit of markup consistency.Fred Drake2001-10-261-13/+12
| | | | | | When describing a Boolean return value, use "true" and "false" instead of "1" and "0". Style-guide conformance: no "iff" -- to obscure for many readers. ;-(
* Minor textual adjustment, and style-guide conformance (no use of "iff").Fred Drake2001-10-261-4/+5
|
* A fix for SF bug #472560, extra newlines returned by get_param() whenBarry Warsaw2001-10-253-1/+51
| | | | | | | | the separating semi-colon shows up on a continuation line (legal, but weird). Bug reported and fixed by Matthew Cowles. Test case and sample email included.
* Added various tidbits.Jack Jansen2001-10-251-3/+18
|
* I went back and figured out the release date for Python 2.2a1.Barry Warsaw2001-10-251-0/+1
|
* Applying proposed patch for bug #474583, optional support forBarry Warsaw2001-10-253-148/+263
| | | | | | | | | | | | | | | | | | | non-standard but common types. Including Martin's suggestion to add rejected non-standard types from patch #438790. Specifically, guess_type(), guess_extension(): Both the functions and the methods grow an optional "strict" flag, defaulting to true, which determines whether to recognize non-standard, but commonly found types or not. Also, I sorted, reformatted, and culled duplicates from the big types_map dictionary. Note that there are a few non-equivalent duplicates (e.g. .cdf and .xls) for which the first will just get thrown away. I didn't remove those though. Finally, use of the module as a script as grown the -l and -e options to toggle strictness and to do guess_extension(), respectively. Doc and unittest updates too.
* Use PyDict_Copy() and PyDict_Update() instead of using PyObject_CallMethod()Fred Drake2001-10-251-5/+3
| | | | | | to call the corresponding methods. This is not a performance improvement since the times are still swamped by disk I/O, but cleans up the code just a little.
* Typo: NamedNodeList --> NamedNodeMapFred Drake2001-10-251-1/+1
|
* Fix SF bug #474538: Memory (reference) leak in poller.register (Dave Brueck)Guido van Rossum2001-10-252-3/+14
| | | | | | | | Replace some tortuous code that was trying to be clever but forgot to DECREF the key and value, by more longwinded but obviously correct code. (Inspired by but not copying the fix from SF patch #475033.)
* Ignore the posixfile deprecation warning for the test suite.Fred Drake2001-10-251-0/+3
|
* complex_subtype_from_string(): move the declaration of s_buffer[] outGuido van Rossum2001-10-251-1/+3
| | | | | | | | of the if block where it was before. The name is only used inside that if block, but the storage is referenced outside it via the 's' variable. (This patch was part of SF patch #474590 -- RISC OS support.)
* Slightly better conformance to the Python C style guide.Fred Drake2001-10-251-4/+8
|
* One more LaTeX-ism that we'd rather ignore.Fred Drake2001-10-251-0/+1
|
* No need to run make twice here.Fred Drake2001-10-251-1/+0
|
* Update the rules so that changes to the HTML stylesheet cause appropriateFred Drake2001-10-251-21/+55
| | | | work to be done, but do not require the HTML to be re-built.
* After discussion with itojun, it was clarified that Tru64 is in error,Martin v. Löwis2001-10-251-1/+3
| | | | and that the work-around should be restricted to that system.
* (experimental) "finditer" method/function. this works pretty muchFredrik Lundh2001-10-242-0/+38
| | | | | like findall, but returns an iterator (which returns match objects) instead of a list of strings/tuples.
* Add a warning to the posixfile module stating that it will go away.Fred Drake2001-10-241-0/+7
|
* Make the deprecation notice use the same form as other such notices.Fred Drake2001-10-241-3/+3
| | | | This has sat around in a deprecated state for a *long* time!
* Minor revision of the text.Fred Drake2001-10-241-2/+2
|
* Note updated RISCOS port. Remove reference in the 2.1 release notesGuido van Rossum2001-10-241-4/+8
| | | | to os.extsep -- that variable actually didn't exist in that release!
* Convert getrefcount() to METH_O, and sys_excepthook() to useFred Drake2001-10-241-6/+3
| | | | PyArg_UnpackTuple().
* SF patch #474590 -- RISC OS supportGuido van Rossum2001-10-2433-189/+257
|
* SF bug #473525 pyclbr brokenTim Peters2001-10-241-5/+6
| | | | | | | | As the comments in the module implied, pyclbr was easily confused by "strange stuff" inside single- (but not triple-) quoted strings. It isn't anymore. Its behavior remains flaky in the presence of nested functions and classes, though. Bugfix candidate.
* SF patch #474590 -- RISC OS supportGuido van Rossum2001-10-2412-72/+140
|
* SF patch #474590 -- RISC OS supportGuido van Rossum2001-10-242-108/+377
|
* When describing "import *", add a level of indirection between "*" and theFred Drake2001-10-241-3/+17
| | | | | | | | set of names imported (the "public names"), adding a definition of "public names" that describes the use of __all__. This closes SF bug #473986. Flesh out the vague reference to __import__().
* Fix typo. Thanks to Jack Jansen for spotting it.Martin v. Löwis2001-10-241-1/+1
|
* Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED andMartin v. Löwis2001-10-245-7/+95
| | | | | | STRICT_SYSV_CURSES when compiling curses module on HP/UX. Generalize access to _flags on systems where WINDOW is opaque. Fixes bugs #432497, #422265, and the curses parts of #467145 and #473150.