summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Moved VC++ 5.x stuff here.Guido van Rossum1998-05-269-4/+1200
|
* Mark Hammond writes:Guido van Rossum1998-05-261-17/+13
| | | | | | Also, here is a new version of import_nt.c, which allows you to register a Debug module in the registry. While I was there I removed some of the ugliness - what was I thinking :-)
* Don't die if win32api doesn't exist.Guido van Rossum1998-05-261-1/+6
|
* Fix a dumb typo in the revparse() regular exception: {1-4} should be {1,4}.Guido van Rossum1998-05-221-1/+1
| | | | Now you can click on revisions and diffs again!
* Document missing functions: xor, not, truth, countOf, indexOf, andGuido van Rossum1998-05-221-0/+28
| | | | (new!) contains.
* Use a different implementation of EventHook(). The new versionGuido van Rossum1998-05-221-37/+74
| | | | | | | | | | registers an input file handler for stdin with Tcl and handles Tcl events until something is available on stdin; it then deletes the handler and returns from EventHook(). This works with or without GNU readline, and doesn't busy-wait. It still doesn't work for Mac or Windows :-(
* Minor grammatical correction: "This module perform ..." --> "This moduleFred Drake1998-05-221-1/+1
| | | | performs ...".
* Fixed spelling in comment: "RFC", not "RFX".Fred Drake1998-05-221-1/+1
|
* Add an alias (and preferred name) "contains" for "sequenceIncludes".Guido van Rossum1998-05-221-47/+34
| | | | | | | | Rationalized the doc strings. Also simplify the module initialization -- we don't need a __version__ which is set to "$Rev" :-) and we don't need a fatal error when the initialization fails.
* introduce a new platform-specific variable: os.linesep is theGuido van Rossum1998-05-221-0/+5
| | | | | platform's line separator. \n on Unix, \r\n on DOS, OS/2 and Windows, \r on Macs.
* Address some gcc -Wall warnings (e.g. include <ctype.h>).Guido van Rossum1998-05-221-29/+54
| | | | | | | Make sure that no tp_as_numbers->nb_<whatever> function is called without checking for a NULL pointer. Marc-Andre Lemburg will love it! (Except that he's just rewritten all this code for a different approach to coercions ;-( )
* Change the last 4-space indent into a 1-tab indent.Guido van Rossum1998-05-221-1/+1
|
* Shouldn't use newdir.dir(), which no longer exists!Guido van Rossum1998-05-221-2/+1
|
* I think there was a tiny bug in new_function() -- the 'defaults'Guido van Rossum1998-05-221-1/+1
| | | | | argument was initialized to Py_None, but later checked for NULL. Consistently use Py_None.
* Add PyErr_PrintEx and PySequence_Contains.Guido van Rossum1998-05-221-0/+2
|
* Make function objects somewhat mutable -- the members func_code,Guido van Rossum1998-05-221-3/+35
| | | | | | func_defaults and func_doc (alias __doc__) may be assigned to. For the first two, there's a type restriction to code object and tuple, respectively.
* PySequence_In() -> PySequence_Contains().Guido van Rossum1998-05-221-1/+1
|
* Make sure that no use of a function pointer gotten from aGuido van Rossum1998-05-221-3/+5
| | | | | tp_as_sequence or tp_as_mapping structure is made without checking it for NULL first.
* In PyObject_IsTrue(), don't call function pointers that are NULLGuido van Rossum1998-05-221-3/+6
| | | | (nb_nonzero, mp_length, sq_length).
* Moved cmp_member() to abstract.c, as PySequence_Contains() [withGuido van Rossum1998-05-221-53/+2
| | | | | | | | swapped arguments]. Also make sure that no use of a function pointer gotten from a tp_as_sequence or tp_as_mapping structure is made without checking it for NULL first.
* A bunch of functions are now properly implemented in abstract.c, andGuido van Rossum1998-05-221-356/+40
| | | | | | | | | | | the code here becomes much simpler. In particular: abs(), divmod(), pow(), int(), long(), float(), len(), tuple(), list(). Also make sure that no use of a function pointer gotten from a tp_as_sequence or tp_as_mapping structure is made without checking it for NULL first. A few other cosmetic things, such as properly reindenting slice().
* Renamed PySequence_In() to PySequence_Contains().Guido van Rossum1998-05-221-1/+2
|
* Completely reformatted, standardizing indentation as well asGuido van Rossum1998-05-221-582/+900
| | | | | | | | | | | | | | | | programming style. Recoded many routines to incorporate better error checking, and/or better versions of the same function found elsewhere (e.g. bltinmodule.c or ceval.c). In particular, Py_Number_{Int,Long,Float}() now convert from strings, just like the built-in functions int(), long() and float(). Sequences and mappings are now safe to have NULL function pointers anywhere in their tp_as_sequence or tp_as_mapping fields. (A few places in other files need to be checked in too.) Renamed PySequence_In() to PySequence_Contains().
* knownfiles: Add the default installation dirs for ApacheFred Drake1998-05-211-0/+2
| | | | versions <= 1.2, >= 1.3.
* Trivial little change: when setting a member to an object, hold theGuido van Rossum1998-05-201-1/+3
| | | | | | | old value in a temporary and XDECREF it only after then new value has been set. This prevents the (unlikely) case where the destructor of the member uses the containing object -- it would find it in an undefined state.
* Added support for AMK's {definitions} environment; thanks for the reminder!Fred Drake1998-05-201-0/+20
|
* Added {definitions} environment, which has \term to define indivual terms.Fred Drake1998-05-201-0/+11
| | | | Similar to {description}.
* whrandom -> randomGuido van Rossum1998-05-205-12/+12
|
* Use random instead of whrandom.Guido van Rossum1998-05-205-18/+18
|
* Add Interfaces to replace remaining needs for importing whrandom.Guido van Rossum1998-05-201-0/+46
| | | | # XXX TO DO: make the distribution functions below into methods.
* Add LDLAST to the list of variables processed by the sed script.Guido van Rossum1998-05-201-0/+1
|
* Correct bug doc string (discovered by Berthold Hoellmann):Guido van Rossum1998-05-201-1/+1
| | | | get_line_buffer() does not take an optional argument.
* Get rid of nearly all clals to self._do -- turns out self.tk.call canGuido van Rossum1998-05-191-38/+48
| | | | be used just as well, so this saves one Python call in many cases!
* Use whrandom instead of rand.Guido van Rossum1998-05-191-5/+5
| | | | Run 500 steps instead of forever.
* Protection agains non-existing subdirectories for clean and clobberGuido van Rossum1998-05-191-2/+6
| | | | | | targets. On some platforms this would cause an infinite Make recursion. Also remove "Doc" from the SUBDIRSTOO variable, since it no longer exists in the standard distribution.
* Additions for Mark Hammond's Win32 specific hacks.Guido van Rossum1998-05-193-0/+398
|
* Don't use a separate node for footnotes; see if people scream. ;-)Fred Drake1998-05-191-0/+1
|
* Fix definition of release_version (global).Fred Drake1998-05-191-1/+1
|
* Added entry for mimetypes.Fred Drake1998-05-191-0/+3
|
* webcheck target in this Makefile wasn't used.Fred Drake1998-05-191-3/+0
|
* Fix the webcheck target so it checks the right files....Fred Drake1998-05-191-6/+6
|
* (py-ask-about-save): New variable used inBarry Warsaw1998-05-191-5/+13
| | | | | py-execute-import-or-reload. Same semantics as compilation-ask-about-save.
* (py-execute-string): Bind to C-c C-s, and put on menuBarry Warsaw1998-05-191-0/+2
|
* (py-stringlit-re): Another ME patch to recognize SQTQs and DQTQsBarry Warsaw1998-05-191-2/+20
| | | | | (single and double quoted triple quoted strings :-) with embedded single like-quotes. Also recognizes raw prefix.
* More ME patches:Barry Warsaw1998-05-191-4/+86
| | | | | | | | | | | | | | (py-execute-import-or-reload): Cool new command that imports or reloads the current file as a module, so as not to clutter the global namespace. Bound to C-c C-m. (py-execute-def-or-class): New command that sends the current def or class to the interpreter. Bound to C-M-x. (py-execute-string): New command that sends arbitrary string to the interpreter. Not bound by default. (py-describe-mode): Doco updates.
* (beginning-of-python-def-or-class): Renamed toBarry Warsaw1998-05-191-52/+82
| | | | | | | | | py-beginning-of-def-or-class, and defaliased for backwards compatibility. ME patch to add optional second argument, count. (end-of-python-def-or-class): Renamed to py-end-of-def-or-class, and defaliased for backwards compatibility. ME patch to add optional second argument, count.
* guess_extension(): Revise documentation string to be more clear. If notFred Drake1998-05-191-3/+6
| | | | inited, call init().
* Test that "import sys.imp" fails as it should.Guido van Rossum1998-05-191-1/+12
|
* Fix a curious bug: statements like "import sys.time" would succeed,Guido van Rossum1998-05-191-3/+10
| | | | | | because the path through the code would notice that sys.__path__ did not exist and it would fall back to the default path (builtins + sys.path) instead of failing). No longer.
* Add mimetypes documentation to library reference dependencies.Fred Drake1998-05-191-1/+2
|