summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* The doc string for strptime had the arguments reversed -- the stringGuido van Rossum1999-01-071-1/+1
| | | | comes first, the format second! Scott Cotton discovered this.
* fix bug in PyZlib_flush.Jeremy Hylton1999-01-061-4/+4
| | | | patch from Grzegorz Makarewicz & Rafal Smotrzyk.
* Change the access() code to return 1 if granted, 0 if not granted.Guido van Rossum1999-01-061-4/+11
| | | | Patch (again) by Sean Reifschneider.
* Changes for long file support by Steve Clift.Guido van Rossum1999-01-061-3/+22
|
* Changes for long file support by Steve Clift.Guido van Rossum1999-01-061-9/+33
| | | | He also fixes thread-related evil that caused core dumps.
* Changes for long file support by Steve Clift.Guido van Rossum1999-01-061-14/+231
| | | | Also added access() and ttyname() by Sean Reifschneider.
* Patch by Charles Waldman to implement an optional nlines argument toGuido van Rossum1999-01-051-2/+18
| | | | w.scroll(). (It then calls wscrl(win, nlines) instead of scoll(win).)
* Get rid of the strptype() declaration -- on some BSD systems, it's aGuido van Rossum1999-01-031-1/+1
| | | | | conflict, and it should be declared in time.h anyway. (Too bad if gcc -Wall won't be happy if it isn't declared...)
* Chris Herborth discovered a typo in the arrow key symbols.Guido van Rossum1998-12-231-1/+2
|
* Thanks to Chris Herborth, the thread primitives now have proper Py*Guido van Rossum1998-12-216-81/+74
| | | | | names in the source code (they already had those for the linker, through some smart macros; but the source still had the old, un-Py names).
* Add dummy variable to avoid optimizer bug on OS/2 -- patch by Jeff Rush.Guido van Rossum1998-12-211-0/+2
| | | | (AMK: you should probably copy this into your patch set for pcre.)
* replace missing zalloc initialization (test_zlib now runsJeremy Hylton1998-12-211-0/+1
| | | | successfully)
* remove debugging fprintf (should have checked this before previousJeremy Hylton1998-12-211-2/+0
| | | | checkin)
* patches from AndrewJeremy Hylton1998-12-181-23/+51
| | | | | | | | NOTE: There is still a bug of some sort in the behavior of zlib. In at least one case, inflate returns Z_OK (which is typically interpreted to mean that more output space is needed) when it has finished inflating a buffer. This has been reported as a bug to the zlib maintainers; we may need to change the Python interface.
* When _PyString_Resize() reports failure, the variable referring to theFred Drake1998-12-181-5/+0
| | | | | string we wanted to resize is set to NULL. Don't Py_DECREF() those variables! (5 places)
* Jim Fulton writes:Guido van Rossum1998-12-151-42/+73
| | | | | This fixes a bug that can cause core dumps when doing seeks in input StringIO objects. This has a number of other clean-ups.
* Fixed bug reported to Gregor Hoffleit:Andrew M. Kuchling1998-12-141-1/+1
| | | | | | | > mpz.mpz('\xff') should return mpz(255). Instead it returns > mpz(4294967295L). Looks like the constructor doesn't work with strings > containing characters above chr(128). Caused by using just 'char' where 'unsigned char' should have been used.
* Need to initialize self->safe_constructors early on to prevent crashGuido van Rossum1998-12-111-0/+1
| | | | in early dealloc. Patch by Andrew Dalke.
* Gregor Hoffleit writes:Guido van Rossum1998-12-111-1/+1
| | | | | | | | | | | | | But IMHO, this problem really reveals an annoyance in Python's makesetup. makesetup puts the global include directories "$(INCLUDEPY) $(EXECINCLUDEPY)" in front of the directories defined by the module in Setup. Therefore global (potentially older) header files are preferred over the ones set by the module, which makes it hard to compile new versions of modules when the old versions are installed. AFAIK, the other way around is common practice for most other software. This patch to makesetup would be an potential fix for this problem, though I don't know if it breaks anything else.
* Remove prototypes for PyOS_strto[u]l -- Chris Herborth.Guido van Rossum1998-12-101-3/+0
|
* Needed to add DL_EXPORT to (redundant?) extern decl of module init function.Guido van Rossum1998-12-102-2/+2
|
* Make VC++ 5.0 compiler happy.Guido van Rossum1998-12-081-12/+8
|
* Correctly document atan2.Guido van Rossum1998-12-081-1/+1
|
* Py_Main() must be DL_EXPORT too.Guido van Rossum1998-12-072-2/+2
|
* Added Doc strings -- by Chris Petrilli.Guido van Rossum1998-12-042-67/+216
|
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-0447-46/+47
| | | | on BeOS or Windows.
* Fix two small bugs; add DL_EXPORT() to initcPickle decl.Guido van Rossum1998-12-041-2/+3
|
* Bernard Herzog pointed out that rl_parse_and_bind modifies itsGuido van Rossum1998-12-041-2/+9
| | | | argument string (bad function!), so we make a temporary copy.
* New version from Jim Fulton:Guido van Rossum1998-11-251-1172/+1110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - New copyright. (Open source) - Added new protocol for binary string pickles that takes out unneeded puts: p=Pickler() p.dump(x) p.dump(y) thePickle=p.getvalue() This has little or no impact on pickling time, but often reduces unpickling time and pickle size, sometimes significantly. - Changed unpickler to use internal data structure instead of list to reduce unpickling times by about a third. - Many cleanups to get rid of obfuscated error handling involving 'goto finally' and status variables. - Extensive reGuidofication. (formatting :) - Fixed binary floating-point pickling bug. 0.0 was not pickled correctly. - Now use binary floating point format when saving floats in binary mode. - Fixed some error message spelling error.
* New version from Jim Fulton:Guido van Rossum1998-11-251-71/+69
| | | | | | | - New copyright. (Open source) - Fixed problem in seek method. The seek method should (and now does) fill with nulls when seeking past the end of the "file".
* Doc strings by Chris Petrilli.Guido van Rossum1998-11-231-6/+44
|
* RajGopal Srinivasan noted that the latest code doesn't work whenGuido van Rossum1998-11-171-0/+6
| | | | | running in a non-threaded environment. He added some #ifdefs that fix this.
* audio(7I) suggests that applications do the following to get theBarry Warsaw1998-10-311-7/+42
| | | | | | | | | | | | | | | | | | | | device and control pseudo-device: - first look for the device filename in the environment variable AUDIODEV. - if not found, use /dev/audio - calculate the control device by tacking "ctl" onto the base device name. We now do this. Also, if the open fails, we call PyErr_SetFromErrnoWithFilename() to give a more informative error message. Added a fileno() method to the audio object returned from open(). This returns the file descriptor which can be used by applications to set up SIGPOLL notification, as per the manpage.
* 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().