summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Document several variables that were previously undocumented,Guido van Rossum1998-06-101-9/+35
| | | | | including the new __stdin__, __stdout__ and __stderr__. Also moved setttrace around to its proper place in the alphabet.
* Add the __doc__ string from the original module on copy_none().Guido van Rossum1998-06-091-1/+3
|
* Added notes about epochs, the year 2038, and a small Y2K disclaimerGuido van Rossum1998-06-091-4/+19
| | | | | (all with index entries!). Also update the list of functions that take or yield a time represented as a 9-tuple.
* Default content-type to application/x-www-form-urlencoded at the topGuido van Rossum1998-06-091-1/+1
| | | | | level of a form. This means that browsers that omit the content-type header when sending a POST command aren't penalized so heavily.
* Changed runs of 8 spaces to tab -- to satisfy the tab nanny.Guido van Rossum1998-06-091-7/+7
|
* Untabified -- to satisfy the tab nanny.Guido van Rossum1998-06-092-230/+230
|
* Get rid of tabnanny's last complaints.Guido van Rossum1998-06-091-3/+3
|
* From: "Tim Peters" <tim_one@msn.com>Guido van Rossum1998-06-093-9/+27
| | | | | | | | | | The 1.5.1 tabnanny.py suffers an assert error if fed a script whose last line is both indented and lacks a newline: if 1: print 'oh fudge' # no newline here: The attached version repairs that.
* When comparing objects of different types (which is done by comparingGuido van Rossum1998-06-091-8/+15
| | | | | the type names), make sure that numeric objects are considered smaller than all other objects, by forcing their name to "".
* Added docs for strptime().Guido van Rossum1998-06-091-0/+12
|
* Added strptime, if it exists. Modified after a patch by Jesse Hallio.Guido van Rossum1998-06-091-10/+53
|
* Clarify the type of the signal handler.Guido van Rossum1998-06-091-1/+2
|
* Should check that PyObject_Str() really returned a string!Guido van Rossum1998-06-091-0/+5
|
* getint() now raises ValueError, not TclError, on errors.Guido van Rossum1998-06-091-2/+2
|
* Added a line to process SGI_ABI.Guido van Rossum1998-06-081-0/+1
|
* When unmarshalling, add test for negative lengths on strings, tuplesGuido van Rossum1998-06-081-2/+14
| | | | | | and lists; if the size is negative, raise an exception. Also raise an exception when an undefined type is found -- all this to increase the chance that garbage input causes an exception instead of a core dump.
* Allow assignments to special class attributes -- with typechecks, andGuido van Rossum1998-05-291-12/+87
| | | | | | | | | | | | | | | | | | | not in restricted mode. __dict__ can be set to any dictionary; the cl_getattr, cl_setattr and cl_delattr slots are refreshed. __name__ can be set to any string. __bases__ can be set to to a tuple of classes, provided they are not subclasses of the class whose attribute is being assigned. __getattr__, __setattr__ and __delattr__ can be set to anything, or deleted; the appropriate slot (cl_getattr, cl_setattr, cl_delattr) is refreshed. (Note: __name__ really doesn't need to be a special attribute, but that would be more work.)
* A few minor updates on Emacs mode sectionBarry Warsaw1998-05-291-6/+6
|
* Remove the doc string -- it doesn't tell the truth.Guido van Rossum1998-05-291-13/+1
|
* New demo -- Perl style regular expression matching.Guido van Rossum1998-05-291-0/+183
| | | | Slightly more featureful than regexdemo.py.
* Say a bit more about .pyc and .pyo files.Guido van Rossum1998-05-291-5/+35
|
* Remove Emacs and #! cruft.Guido van Rossum1998-05-291-4/+0
|
* Improve the self-test code a bit: read a host from sys.argv[1] if set,Guido van Rossum1998-05-291-2/+8
| | | | and list the host name when prompting for the password.
* Tim's revision of the previous patch. He also added some sparts toGuido van Rossum1998-05-291-43/+35
| | | | the median-of-three code to get a few percent back.
* Add comments explaining thread unsafety of this code.Guido van Rossum1998-05-291-0/+10
|
* Make gauss() semi-thread-safe. It can still give duplicate results,Guido van Rossum1998-05-291-4/+14
| | | | | but it can no longer raise an exception when called by several threads simultaneously.
* Two places where _time() should be used said time.time(), whichGuido van Rossum1998-05-291-2/+2
| | | | doesn't work of course.
* Piers Lauders' latest version, with some of my own changes reapplied.Guido van Rossum1998-05-291-10/+31
| | | | Also replaced random()*32000 with randint(0, 31999).
* Fix a whole bunch of error return NULL that should be return -1.Guido van Rossum1998-05-291-5/+5
|
* Remove a few unused locals (I love VC++ for this!).Guido van Rossum1998-05-291-2/+0
|
* Sorry, the initializer for ob_type must really be NULL,Guido van Rossum1998-05-291-1/+1
| | | | else the damn thing won't compile on Windows :-(
* Quick fix -- define SIZEOF_LONG and SIZEOF_INT.Guido van Rossum1998-05-291-0/+4
|
* Moved from PCGuido van Rossum1998-05-291-0/+1214
|
* Moving to PCbuildGuido van Rossum1998-05-291-1214/+0
|
* On Windows, need #include <windows.h>; and it's MS_WINDOWS, not MS_WIN32.Guido van Rossum1998-05-291-2/+6
|
* Release the interpreter lock for calls that may block: _locking(),Guido van Rossum1998-05-291-2/+10
| | | | | | | _getch(), _getche(). Fix bogus error return when open_osfhandle() doesn't have the right argument list.
* Changes to make it possible to write multi-threaded programs usingGuido van Rossum1998-05-281-152/+390
| | | | | | | | | | Tkinter. This adds a separate lock -- read the comments. (This was also needed for Mark Hammond's attempts to make PythonWin Tkinter-friendly.) The changes have affected the EventHook slightly, too; and I've done some more cleanup of the code that deals with the different versions of Tcl_CreateFileHandler().
* Protect all uses of the random generator with a lock.Guido van Rossum1998-05-281-8/+24
| | | | Particles break out of their loop when the main loop exits.
* An example of a multi-threaded Tkinter program.Guido van Rossum1998-05-281-0/+44
|
* Patch by Lars Marius Garshol:Guido van Rossum1998-05-281-2/+30
| | | | | | | | | - Handle <? processing instructions >. - Allow . and - in entity names. Also fixed an oversight in the previous fix (in one place, [ \t\r\n] was used instead of string.whitespace).
* Guard against changes in the list size during a compare or sort.Guido van Rossum1998-05-281-22/+31
|
* Some systems (e.g. Linux) use enums for some symbols (like IPPROTO_IP)Guido van Rossum1998-05-281-0/+11
| | | | | | so that our #ifdef test has the wrong effect. Substitute hardcoded values for some important symbols (but not for the whole range -- some are pretty obscure so it's not worth it).
* Uses PyErr_ExceptionMatches() instead of comparing PyErr_Occurred().Guido van Rossum1998-05-281-1/+1
|
* Uses PyErr_ExceptionMatches() instead of comparing PyErr_Occurred().Guido van Rossum1998-05-281-1/+1
|
* For ControlWindow there is a new method do_rawcontrolhit(), which getsJack Jansen1998-05-281-14/+36
| | | | | | | | | control before TrackControl is called. The default implementation calls TrackControl and then do_controlhit(). For ScrolledWindow, do_rawcontrol passes a tracker function to TrackControl if the mouse is in one of the arrows or grey areas, and the tracker handles scrolling. For the thumb part nothing has changed.
* Allow an (optional) tracking function (or -1) to be specified toJack Jansen1998-05-283-41/+166
| | | | | TrackControl. TrackControl is now manually generated (too much work to explain this to bgen).
* get_long(): Use PyErr_ExceptionMatches(...) instead of PyErr_Occurred(...).Fred Drake1998-05-281-1/+1
|
* t_bootstrap(): Use PyErr_ExceptionMatches(...) instead of PyErr_Occurred(...).Fred Drake1998-05-281-1/+1
|
* Use PyErr_ExceptionMatches(...) instead of PyErr_Occurred() == ... in twoFred Drake1998-05-281-2/+4
| | | | places.
* add handler for JPython's org.python.core.PyStringMap object, whichJeremy Hylton1998-05-271-0/+7
| | | | walks and quacks like a dictionary.