summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Also fix the comment.Marc-André Lemburg2002-02-161-1/+1
|
* Fix the name of the header file.Marc-André Lemburg2002-02-161-1/+1
|
* Break SSL support out of _socket module and place it into a newMarc-André Lemburg2002-02-164-557/+716
| | | | | | | | | | | | | | | | | | helper module _ssl. The support for the RAND_* APIs in _ssl is now only enabled for OpenSSL 0.9.5 and up since they were added in that release. Note that socketmodule.* should really be renamed to _socket.* -- unfortunately, this seems to lose the CVS history of the file. Please review and test... I was only able to test the header file chaos in socketmodule.c/h on Linux. The test run through fine and compiles don't give errors or warnings. WARNING: This patch does *not* include changes to the various non-Unix build process files.
* Fix typo.Fred Drake2002-02-141-1/+1
|
* Use PyModule_AddObject() instead of accessing the module dict directly.Fred Drake2002-02-142-10/+14
|
* Use PyModule_AddIntConstant() instead of creating a private helper function.Fred Drake2002-02-141-30/+22
| | | | This also avoids directly accessing the module'd __dict__.
* Simon Budig's patch (posted by me):Michael W. Hudson2002-02-131-0/+3
| | | | [ #513235 ] prevent readline filename completion
* Define VERSION in expat.h.Martin v. Löwis2002-02-131-0/+4
|
* Windows time_clock(): rewrite to get rid of horrid casting tricks.Tim Peters2002-02-131-12/+10
| | | | | Don't blame Mark! The horrid casting tricks were my idea to begin with. The rewrite works fine under VC6, and I *expect* will work fine under VC7.
* "Generate" from expat.h.in, for 1.95.2.Martin v. Löwis2002-02-121-0/+735
|
* Ensure we also build on VC7. Involves replacing largeint.h helper functions ↵Mark Hammond2002-02-122-22/+17
| | | | with msvc's native 64 bit integers.
* Use included Expat library. Drop support for older expat versions.Martin v. Löwis2002-02-111-171/+0
|
* Disable usage of Expat's config.h.Martin v. Löwis2002-02-113-0/+6
|
* Initial revisionMartin v. Löwis2002-02-1117-0/+11093
|
* Remove mentioning of -U option in "python -h" output.Marc-André Lemburg2002-02-111-1/+0
|
* start() and stop() methods: return None where there is no exception;Fred Drake2002-02-081-2/+8
| | | | | returning NULL causes the interpreter to raise a SystemError. Noted by Anthony Baxter at Python 10.
* Got rid of a few more NeXT ifdefs. The last, I think.Jack Jansen2002-02-014-111/+0
|
* Implement os.waitpid() for Windows, in a way that's compatible with LinuxTim Peters2002-02-011-2/+28
| | | | | | where their capabilities intersect. Would be nice if people using non- MSVC compilers (Borland etc) took a whack at doing something similar for them (this code relies on the MS _cwait function).
* Oh look, another one.Michael W. Hudson2002-01-301-1/+1
| | | | 2.2.1 candiate (he says, largely talking to himself :)
* I think this fixesMichael W. Hudson2002-01-301-1/+1
| | | | | | | | | | | | | [ #510644 ] test_curses segfaults If we use the *object* *allocator*, we should use the *object* *deallocator*, not the *raw memory* deallocator (confused yet?). I think this was what caused segfaults when pymalloc was enabled. Even if it wasn't the cause, it's still wrong. 2.2.1 candidate.
* Expose more MS WIndows constants usable w/ low-level os.open().Tim Peters2002-01-301-102/+125
|
* Fix spelling mistakes. Bugfix candidates.Neal Norwitz2002-01-291-1/+1
|
* Encode Unicode arguments to split/splitlist as UTF-8. Fixes #507962.Martin v. Löwis2002-01-261-2/+2
| | | | 2.2.1 bugfix candidate.
* Removed an XXX question (the answer is "yes" <wink>).Tim Peters2002-01-261-1/+1
|
* Patch #477750: Use METH_ constants in Modules.Martin v. Löwis2002-01-1727-449/+449
|
* Patch #477752: Drop old-style getargs from curses.Martin v. Löwis2002-01-172-372/+309
|
* Change some spaces to tabs. I don't *think* that was me, but itMichael W. Hudson2002-01-161-2/+2
| | | | might have been...
* Fix forMichael W. Hudson2002-01-161-8/+8
| | | | | | | [ #504284 ] Last build problems on AIX I'm ignoring the suggestion that this should be an autoconf test in the interests of having a fix today. Feel free to quibble.
* Patch #504225: add plan9 ifdef to timemodule floatsleep.Martin v. Löwis2002-01-161-23/+25
|
* There's no need for typechecks on the second and third argument ofGuido van Rossum2002-01-151-9/+2
| | | | | | | | | | new.instancemethod() -- the instancemethod object is now a perfectly general container. This fixes SF bug ##503091 (Pedro Rodriquez): new.instancemethod fails for new classes This is a 2.2.1 candidate.
* Export SIGINFO. Fixes #502077.Martin v. Löwis2002-01-121-0/+5
|
* Include <unistd.h> in Python.h. Fixes #500924.Martin v. Löwis2002-01-1218-66/+0
|
* Fixed "u#" parser marker to pass through Unicode objects as-is withoutMarc-André Lemburg2002-01-091-0/+50
| | | | | | going through the buffer interface API. Added tests for this to the _testcapi module and updated docs.
* Patch #497126: Always compile dl.Martin v. Löwis2002-01-011-7/+7
|
* Add fcntl.h constants from glibc 2.2.4. Fixes #496171.Martin v. Löwis2001-12-281-0/+70
|
* Due to a cut-and-paste error, the type object exported under the nameGuido van Rossum2001-12-271-1/+1
| | | | | | statvfs_result was in fact the stat_result type object. :-( 2.2.1 bugfix!
* Add TCP socket options from glibc 2.2.4. Fixes #495680.Martin v. Löwis2001-12-221-0/+31
| | | | 2.2.1 bugfix candidate.
* Merge of the release22 branch changes back into the trunk.Barry Warsaw2001-12-211-3/+5
|
* SF bug #495021: Crash calling os.stat with a trailing backslashTim Peters2001-12-191-14/+20
| | | | | | | Patch from Mark Hammond, plus code rearrangement and comments from me. posix_do_stat(): Windows-specific code could try to free() stack memory in some cases when a path ending with a forward or backward slash was passed to os.stat().
* save(): Fix for SF bug #494904: Cannot pickle a class with aGuido van Rossum2001-12-191-0/+5
| | | | | | | | | | | | metaclass, reported by Dan Parisien. Objects that are instances of custom metaclasses, i.e. whose ob_type is a subclass of PyType_Type, should be pickled the same as new-style classes (objects whose ob_type is PyType_Type). This can't be done through the existing dispatch switches, and the __reduce__ trick doesn't work for these, since it finds the unbound __reduce__ for instances of the class (inherited from PyBaseObject_Type). So check explicitly using PyType_IsSubtype().
* SF bug #494738: binascii_b2a_base64 overwrites memory.Tim Peters2001-12-191-3/+5
| | | | | | | | binascii_b2a_base64(): We didn't allocate enough buffer space for very short inputs (e.g., a 1-byte input can produce a 5-byte output, but we only allocated 2 bytes). I expect that malloc overheads absorbed the overrun in practice, but computing a correct upper bound is a very simple change.
* initxxsubtype(): Add a comment to make the magic clearer; I doubt it'sTim Peters2001-12-171-2/+4
| | | | obvious to anyone except PyType_Ready's author <0.9 wink>.
* Use PyType_Ready() for initialization of the ob_type field of ourGuido van Rossum2001-12-171-2/+4
| | | | types (the tp_base field must be initialized prior to that call).
* David Abrahams tried to compile this as a separate DLL under MSVC, andTim Peters2001-12-171-4/+21
| | | | | | | | | | | | | got a barrage of compile errors that didn't make sense to the C++ brain: MSVC does not allow C (but does allow C++) initializers to contain data addresses supplied by other DLLs. So changed the initializers here to use dummy nulls, and changed module init to plug in the foreign addresses at runtime (manually simulating what C++ does by magic). Tested on Windows, and Guido tested on Linux (thanks!). BTW, the *point* is that people are going to use this module as a template for writing their own subtypes, and it's unusual for extension authors to build their extensions into Python directly (separate DLLs are the norm on Windows); so it's better if we give them a template that works <wink>.
* Give xxsubtype a module docstring, so its oddball purpose is discoverableTim Peters2001-12-101-2/+8
| | | | | from a prompt without searching the source code (there was an SF bug report about this, already closed ... "479568 xxsubtype builtin").
* Mods by Tony Lownds (patch 490100, slightly massaged by me) to make TkinterJack Jansen2001-12-092-1/+74
| | | | | | | | | | | | | | work with Mac OS X Aqua-Tk, all nicely within ifdefs. The process is not for the faint of heart, though: you need to download and install the (alfa) Aqua-Tk, obtain a few needed X11 headers from somewhere else and then everything builds. To run scripts using Tkinter you must build with --enable-framework, build Python.app in Mac/OSX and run your Tkinter scripts with that. Then, about half the tests in Demo/tkinter work (or at least do something). Checking this in anyway because it shouldn't break anything, and newer versions of Aqua-Tk will streamline the process.
* bug #133283, #477728, #483789, #490573Fredrik Lundh2001-12-091-19/+11
| | | | | | | backed out of broken minimal repeat patch from July also fixed a couple of minor potential resource leaks in pattern_subx (Guido had already fixed the big one)
* Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum2001-12-0834-44/+46
| | | | | | | | | | | | | type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment.
* SF patch #489989 (Charles G Waldman) linuxaudiodev.c - fix initializationGuido van Rossum2001-12-081-9/+8
| | | | | | | | | | | | | | | | | | | | | The OSS Programmer's Reference (www.4front-tech.com) states: *Setting Sampling Parameters There are three parameters which affect the sound quality (and therefore memory and bandwidth requirements) of sampled audio data. These are: ** sample format (sometimes called number of bits) ** number of channels (mono or stereo), and ** sampling rate (speed) NOTE: It is important to always set these parameters in the above order. Setting sampling rate before the number of channels doesn't work with all devices.
* SF patch #489173: Make os.spawnv not block the interpreter, fromTim Peters2001-12-071-3/+10
| | | | | | | | | | | | Anthony Roach. Release the global interpreter lock around platform spawn calls. Bugfix candidate? Hard to say; I favor "yes, bugfix". These clearly *should* have been releasing the GIL all along, if for no other reason than compatibility with the similar os.system(). But it's possible some program out there is (a) multithreaded, (b) calling a spawn function with P_WAIT, and (c) relying on the spawn call to block all their threads until the spawned program completes. I think it's very unlikely anyone is doing that on purpose, but someone may be doing so by accident.