summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Jonathan Giddy:Guido van Rossum1998-06-121-1/+4
| | | | | The first one only shows up if $prefix != $exec_prefix, and the problem is caused by the recent change in location for config.h.
* With the recent change that makes numbers compare smaller than anything,Guido van Rossum1998-06-111-3/+3
| | | | the outcome of the test for max has changed.
* Now that test_MimeWriter is untabified, do the same here!Guido van Rossum1998-06-111-15/+15
|
* Add warning about use of lowercase/uppercase with maketrans().Guido van Rossum1998-06-111-0/+5
|
* Add timegm to list of functions tested, for Marc-Andre L.Guido van Rossum1998-06-113-3/+6
|
* Oops, bug in release date!Guido van Rossum1998-06-111-1/+1
|
* Be more careful than the previous patch. The default content-typeGuido van Rossum1998-06-111-1/+4
| | | | | | should only be set to application/x-www-form-urlencoded when the method is POST. E.g. for PUT, an empty default (defaulting to text/plain later) makes more sense.
* Support new overridable method, isheader() (ESR).Guido van Rossum1998-06-111-24/+48
| | | | Also implement __setitem__(), more-or-less correctly (GvR).
* Eric Raymond: added doc for isheader(); improved docs for constructor.Guido van Rossum1998-06-111-7/+18
|
* Document the changes I just checked in.Guido van Rossum1998-06-101-8/+39
|
* Some changes suggested/provided by Eric Raymond:Guido van Rossum1998-06-101-7/+52
| | | | | | | | | | | | | - explain seekable - when seekable==1, test fp.tell() and set it to 0 if that fails - support overridable method iscomment(line) to weed out comments - check for unread() method on file object before trying to seek And one of my own: - Add a get() method which behaves like a dictionary's get(); this is actually implemented by giving getheader() an optional second argument to specify the default, and aliasing get to getheader.
* 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
|