summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Add note about compiling FORMS with -Dclear=__GLclear.Guido van Rossum1998-10-211-0/+4
| | | | | (The GLHACK variable isn't really needed since the change to glmodule.c, but I'm too busy to remove it. It's harmless.)
* Check in the changed version after running the stubber again -- thisGuido van Rossum1998-10-211-13/+12
| | | | | | solves the conflict with curses over the 'clear' entry point much nicer. (Jack had checked in the changes to cstubs eons ago, but I never regenrated glmodule.c :-( )
* On a recommendation from Sjoerd Mullender, add -Dclear=__GLclear toGuido van Rossum1998-10-211-3/+4
| | | | | | the compilation flags for the gl, fl and fm modules. This avoids a name conflict with the curses module (both gl and curses have an entry point called 'clear').
* Add a missing DECREF in an error exit. Submitted by Jonathan Giddy.Guido van Rossum1998-10-191-0/+1
|
* Doc strings by Chris Petrilli.Guido van Rossum1998-10-141-6/+79
| | | | Also added MD5Type object.
* No need to issue a fatal error if the PyDict_SetItemString fails; theGuido van Rossum1998-10-141-3/+2
| | | | caller (in import.c) will test for errors and take appropriate action.
* ACK! There was still an unescaped newline in a docstring.Guido van Rossum1998-10-141-1/+1
|
* Doc strings by Chris Petrilli.Guido van Rossum1998-10-131-42/+177
|
* Looks like I didn't test this interactively. The EventHook() code wasGuido van Rossum1998-10-121-4/+1
| | | | | broken; it asked for the current thread state when there was none. Fixed by using the saved event_tstate.
* Patch by Jonathan Giddy (with some cleanup by me) to always use theGuido van Rossum1998-10-091-22/+30
| | | | | | thread state of the thread calling mainloop() (or another event handling function) rather than the thread state of the function that created the client data structure.
* There's no need to declare Tk_GetNumMainWindows() (and it breaksGuido van Rossum1998-10-081-2/+0
| | | | something in the latest win342 build).
* Use the t# format where appropriate. Greg Stein.Guido van Rossum1998-10-089-37/+34
|
* Changes to deal with the sigcheck+intrcheck vs. signalmodule controversy.Guido van Rossum1998-10-071-6/+12
|
* Changes to support other object types besides stringsGuido van Rossum1998-10-071-2/+15
| | | | | as the code string of code objects, as long as they support the (readonly) buffer interface. By Greg Stein.
* Make gcc -Wall happy.Guido van Rossum1998-10-072-6/+8
|
* Make gcc -Wall happy:Guido van Rossum1998-10-071-12/+0
| | | | Remove unused decls of getloclock() and is_lockobject().
* Make gcc -Wall happy:Guido van Rossum1998-10-071-6/+8
| | | | | (1) add dummy decl for strptime(); (2) move the code to set accept2dyear to the front of inittime().
* Documented PYTHONOPTIMIZE; by Marc Lemburg.Guido van Rossum1998-10-071-1/+1
|
* Make the version variable static (it has no business being exported).Guido van Rossum1998-10-071-1/+1
|
* Clarify sharedinstall commentGuido van Rossum1998-10-071-2/+3
|
* Andrew Dalke's implementation of string.count().Guido van Rossum1998-10-061-0/+47
|
* No need for (char *) cast from gdbm_strerror().Guido van Rossum1998-10-031-5/+3
|
* Win32 port. Patches by Milton L. Hankins.Guido van Rossum1998-10-031-1/+7
|
* Renamed thread.h to pythread.h.Guido van Rossum1998-10-016-6/+10
|
* Fixes for OS/2 by Jeff Rush.Guido van Rossum1998-09-281-9/+9
|
* Removed some OS/2 #defines (now in the OS/2 specific config.h).Guido van Rossum1998-09-281-15/+0
| | | | Patch by Jeff Rush.
* Get rid of the test for non-NULL thread state in EventHook; it can beGuido van Rossum1998-09-211-2/+0
| | | | triggered in situations that are not an error.
* When we have siginterrupt(), use it to disable restarting interruptedGuido van Rossum1998-09-211-0/+6
| | | | system calls.
* Enable the 'new' module by default.Guido van Rossum1998-09-211-1/+1
|
* Patches from Greg Stein to support 'P' format in struct module'sGuido van Rossum1998-09-181-0/+31
| | | | | native format, as void* (translated to Python int or long). Also adds PyLong_FromVoidPtr and PyLong_AsVoidPtr to longobject.c.
* Remove some unused variables from gethostbyaddr_ex and gethostbyaddr,Guido van Rossum1998-09-131-4/+0
| | | | discovered by Marc Lemburg.
* Michael P. Reilly suggested this fix: makesetup wants to prependGuido van Rossum1998-09-091-0/+1
| | | | "$(srcdir)/" before all source files even when is starts with "/".
* Now that we have standard (optional) long long support, the long longGuido van Rossum1998-08-311-66/+0
| | | | | support in this module can go. The patch only deletes code (PyLong_FromLongLong() and PyLong_AsLongLong()). By Sjoerd Mullender.
* Y2K fix affecting asctime(), mktime(), strftime().Guido van Rossum1998-08-251-19/+37
| | | | | | | | | | | | | | | | 2-digit years are now converted using rules that are (according to Fredrik Lundh) recommended by POSIX or X/Open: 0-68 mean 2000-2068, 69-99 mean 1969-1999. 2-digit years are now only accepted if time.accept2dyear is set to a nonzero integer; if it is zero or not an integer or absent, only year values >= 1900 are accepted. Year values 100-1899 and negative year values are never accepted. The initial value of time.accept2dyear depends on the environment variable PYTHONY2K: if PYTHONY2K is set and non-empty, time.accept2dyear is initialized to 0; if PYTHONY2K is empty or not set, time.accept2dyear is initialized to 0.
* Enter Jim Fulton's latest version. He writes:Jeremy Hylton1998-08-131-20/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | I had to make a slight diddle to work with Python 1.4, which we and some of our customers are still using. :( I've also made a few minor enhancements: - You can now both get and set the memo using a 'memo' attribute. This is handy for certain advanced applications that we have. - Added a 'binary' attribute to get and set the binary mode for a pickler. - Added a somewhat experimental 'fast' attribute. When this is set, objects are not placed in the memo during pickling. This should lead to faster pickling and smaller pickles in cases where: o you *know* there are no circular references, and o either you've: - preloaded the memo with class information by pickling classes in non-fast mode or by manipilating the memo directly, or - aren't pickling instances.
* Need mytime.h for Sleep().Guido van Rossum1998-08-131-0/+2
|
* Two fixes to find_class:Jeremy Hylton1998-08-111-9/+22
| | | | | | | | | | | | | | | 1. Only DECREF the class's module when the module is retrieved via PyImport_Import. If it is retrieved from the modules dictionary with PyDict_GetItem, it is using a borrowed reference. 2. If the module doesn't define the desired class, raise the same SystemError that pickle.py does instead of returning an AttributeError (which is cryptic at best). Also, fix the PyArg_ParseTuple in cpm_loads (the externally visible loads) function: Use "S" instead of "O" because cStringIO will croak with a "bad arguments to internal function" if passed anything other than a string.
* Added a module docstring (that's all this module needs).Guido van Rossum1998-08-111-1/+15
|
* Now include Python.hGuido van Rossum1998-08-081-0/+2
|
* Jim Fulton's patches to get rid of the class_map().Guido van Rossum1998-08-081-73/+27
|
* In Win32 version of listdir(), when FindFirstFile() returnsGuido van Rossum1998-08-061-0/+2
| | | | | ERROR_FILE_NOT_FOUND, return an empty list instead of raising an exception.
* Removed unused variables.Guido van Rossum1998-08-061-4/+0
|
* Undo a silly effect of a global substitution: the macintosh panic()Guido van Rossum1998-08-051-1/+1
| | | | | function had a reference to vPySys_WriteStderr(...) -- turn it back into fprintf(stder, ...).
* Changes for BeOS, QNX and long long, by Chris Herborth.Guido van Rossum1998-08-0412-14/+132
|
* Added gethostbyname_ex(), which returns the same kind of data asGuido van Rossum1998-08-041-37/+99
| | | | | | | | gethostbyaddr(). (Plain gethostbyname() returns only the IP address.) This moves the code shared by gethostbyaddr() and gethostbyname_ex() to a subroutine. Original patch by Dan Stromberg; some tweaks by GvR.
* parser__pickler(): Use Py_DECREF() when reference is known to be non-NULL.Fred Drake1998-08-041-1/+1
|
* Patch by Jody Winston (with my changes) to add some of the "waitGuido van Rossum1998-08-041-0/+151
| | | | | status inspection" macros as functions: WEXITSTATUS(), WIFEXITED(), WIFSIGNALED(), WIFSTOPPED(), WSTOPSIG(), WTERMSIG().
* Better error messages when raising ValueError for int literals. (TheGuido van Rossum1998-08-041-8/+3
| | | | | previous version of this code would not show the offending input, even though there was code that attempted this.)
* Make sure that at least one digit has been consumed in atoi().Guido van Rossum1998-07-251-0/+4
|
* Use 'S' format character for the optional constructor argument, so weGuido van Rossum1998-07-241-1/+1
| | | | | get a decent error message when it's not a string (instead of confusing errors when trying to use the thing).