summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Fixed inet_ntoa() docstring.Fred Drake2000-03-071-1/+1
|
* Second attempt to fix the ctermid_r/tmpnam_r warnings: define USE_CTERMID_RGreg Ward2000-03-011-3/+13
| | | | | and USE_TMPNAM_R at the top of the file and refer to them later; this catches a second reference to 'tmpnam_r' that I didn't spot first time around.
* Fix compiler warning: only use "_r" form of 'ctermid()' and 'tmpnam()' whenGreg Ward2000-03-011-2/+2
| | | | building a threaded Python.
* Patch by Fred Gansevles (the module's original author).Guido van Rossum2000-02-292-28/+58
| | | | | | | | | | | This patch fixes 3 small problems. 1) If a map is used which is generated with 'makedbm -a', the trailing '\0' is now handled correctely. 2) The nis.maps() function skipped the first map in the output list. 3) The library '-lnsl' is added in Setup.in (needed on Linux glibc2 and Solaris systems. Maybe on other systems too?) [I note that this still doesn't work when you are using NIS+ --GvR]
* Massive patch by Skip Montanaro to add ":name" to as manyGuido van Rossum2000-02-2931-231/+231
| | | | PyArg_ParseTuple() format string arguments as possible.
* Better fix for mpzmodule problem reported by Peter Funk: just useAndrew M. Kuchling2000-02-251-6/+2
| | | | mp_bits_per_limb with GMP 2.0
* Delete references to _SC_AIO_LIST_MAX; it appears that that symbol wasGuido van Rossum2000-02-251-3/+0
| | | | | just a typo in some Linux header; the real symbol is _SC_AIO_LISTIO_MAX.
* Peter Funk:Guido van Rossum2000-02-241-0/+5
| | | | | | | This patch allows building the Python 'mpzmodule' under SuSE Linux without having to install the source package of the GMP-libary. The gmp-mparam.h seems to be an internal header file. The patch shouldn't hurt any other platforms.
* What used to be tp_xxx4 is now tp_flags; set it to Py_TPFLAGS_DEFAULT.Fred Drake2000-02-211-2/+1
|
* Patch from Vladimir Marangozov <marangoz@python.inrialpes.fr>Andrew M. Kuchling2000-02-181-6/+6
| | | | | | | The same problem (mixed mallocs) exists for the pcre stack. The buffers md->... are allocated via PyMem_RESIZE in grow_stack(), while in free_stack() they are released with free() instead of PyMem_DEL().
* Patch from Vladimir Marangozov <marangoz@python.inrialpes.fr>:Andrew M. Kuchling2000-02-181-4/+2
| | | | | | The buffers self->regex and self->regex_extra are allocated in pcre_compile() and pcre_study() via pcre_malloc, but are released via free() instead of pcre_free.
* Patch by Jim Ahlstrom to add crc32, a useful checksum functionGuido van Rossum2000-02-161-0/+141
| | | | | | | | | | | (e.g. used for ZIP files). The patch includes code that says: + Copyright (C) 1986 Gary S. Brown. You may use this program, or + code or tables extracted from it, as desired without restriction. My interpretation (and Jim's) is that Gary S Brown has no claims under copyright, patent or other rights or interests. Lawyers might disagree.
* Protect against core dumps in gdbm: don't allow access by key once theFred Drake2000-02-071-2/+8
| | | | | | database is closed. Raise gdbm.error instead. Bug report #198 submitted by Barry Haddow <bhaddow@orbism.com>.
* Patch from Paul Sokolovsky <Paul.Sokolovsky@technologist.com>:Fred Drake2000-02-043-3/+9
| | | | | Attached is patch (against 1.5.2 release) to allow some modules to be buildable as pyd's (usual &PyType_Type stuff).
* Added docstring to crypt.crypt() based on the documentation.Fred Drake2000-02-011-1/+10
|
* The initialization of posix_putenv_garbage should only be done when itGuido van Rossum2000-01-311-0/+2
| | | | is defined...
* The rest of the changes by Trent Mick and Dale Nagata for warning-freeGuido van Rossum2000-01-201-1/+1
| | | | compilation on NT Alpha. Mostly added casts etc.
* According to Ron Bickers, and with apparent approval of ChrisGuido van Rossum2000-01-141-1/+1
| | | | | | Herborth, the code in list2set() that sets max unconditionally to 0 should not be used on BeOS. So be it. Anybody using BeOS, please test!
* The functions asctime() and mktime() are documented to take a 9-tupleGuido van Rossum2000-01-121-4/+10
| | | | | | only. Through some mysterious interaction, they would take 9 separate arguments as well. This misfeature is now disabled (to end a difference with JPython).
* setup_confname_table(): Use size_t instead of int for an index whenFred Drake1999-12-301-1/+1
| | | | | | | building the dicts used to inform the user about the defined constants when using the *conf*() APIs. Thanks to Mark Hammond <mhammond@skippinet.com.au>.
* For ZlibError and ZLIB_VERSION, only attempt to add entry to theFred Drake1999-12-221-3/+6
| | | | | module dict if the inserted object isn't NULL (basic defensive programming!).
* Fix typo in docstring: wbites -> wbitsAndrew M. Kuchling1999-12-201-1/+1
|
* Patch and new file by Geoff Furnish for C++ compilation.Guido van Rossum1999-12-162-2/+17
|
* Rip out the code to check the ordering of the tables used to mapFred Drake1999-12-151-31/+65
| | | | | | | | | | | | strings to integers for the *conf*() functions. Added code to sort the tables at module initialization. Three dictionaries, confstr_names, sysconf_names, and pathconf_names, are added to the module as well. These map known configuration setting names to the numeric value which is used to represent the setting in the system call. This code is always called. Updated related comments.
* Added table entries for Irix 6.5 names for confstr()/sysconf()/Fred Drake1999-12-151-0/+174
| | | | | | | | pathconf() names, from Sjoerd. Added code to verify that these tables are properly ordered, only included and used when CHECK_CONFNAME_TABLES is defined. This is only needed to test the tables, so I haven't enabled this by default.
* Added support for getlogin(); does *not* use getlogin_r() whereFred Drake1999-12-141-44/+73
| | | | | | | | | | | | | | | available since the interface is poorly defined on at least one major platform (Solaris). Moved table of constant names for fpathconf() & pathconf() into the conditional that defines the conv_path_confname() helper; Mark Hammond reported that defining the table when none of the constants were defined causes the compiler to complain (won't allow 0-length array, imagine that!). In posix_fpathconf(), use conv_path_confname() as the O& conversion function, instead of the conv_confname() helper, which has the wrong signature (posix_pathconf() already used the right thing).
* Removed debugging prints.Fred Drake1999-12-131-4/+0
|
* Added bindings for getgroups(), fpathconf(), pathconf(), confstr(),Fred Drake1999-12-131-1/+863
| | | | | | | and sysconf(). *Lots* of tables to define names used by *conf*(); explanation to go in message to python-dev list.
* The call to PyArg_ParseTuple in al_Connect had one too few arguments.Guido van Rossum1999-12-101-1/+1
| | | | This fixes PR#157.
* Added support for abort(), ctermid(), tmpfile(), tempnam(), tmpnam(),Fred Drake1999-12-091-163/+326
| | | | | | | | | and TMP_MAX. Converted all functions that used PyArg_Parse() or PyArg_NoArgs() to use PyArg_ParseTuple() and specified all function names using the :name syntax in the format strings, to allow better error messages when TypeError is raised for parameter type mismatches.
* OpenSSL support. This is based on patches for a version of SSLeay byGuido van Rossum1999-12-071-1/+7
| | | | | | Brian E Gallew, which were improved and adapted to OpenSSL 0.9.4 by Laszlo Kovacs of HP. Both have kindly given permission to include the patches in the Python distribution. Final formatting by GvR.
* OpenSSL support. This is based on patches for a version of SSLeay byGuido van Rossum1999-12-071-1/+290
| | | | | | Brian E Gallew, which were improved and adapted to OpenSSL 0.9.4 by Laszlo Kovacs of HP. Both have kindly given permission to include the patches in the Python distribution. Final formatting by GvR.
* Correct the docstring for byteswap(); error noted by Bernhard ReiterFred Drake1999-12-031-4/+9
| | | | | | | <bernhard@uwm.edu>. Added a check that no parameters were passed to byteswap(); previously allowed any parameters you happened to pass.
* Patches by Kannan Vijayan:Guido van Rossum1999-11-181-4/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | new: readline.get_begidx() -> int gets the beginning index in the command line string delimiting the tab-completion scope. This would probably be used from within a tab-completion handler readline.get_endidx() -> int gets the ending index in the command line string delimiting the tab-completion scope. This would probably be used from within a tab-compeltion handler readline.set_completer_delims(string) -> None sets the delimiters used by readline as word breakpoints for tab-completion readline.get_completer_delims() -> string gets the delimiters used by readline as word breakpoints for tab-completion fixed: readline.get_line_buffer() -> string doesnt cause a debug message every other call
* Jack Jansen: Mac has no EINTR.Guido van Rossum1999-11-081-0/+4
|
* Patch by Dieter Maurer to make things work for Tcl/Tk 8.1. ThisGuido van Rossum1999-11-051-2/+2
| | | | | | simply moves the call to Tk_MainWindow() after the Tcl/Tk initialization calls. The patch is unconditional, it works with earlier and later versions as well.
* Patch by Dieter Maurer to make things work for Tcl/Tk 8.1 (tested withGuido van Rossum1999-11-051-0/+4
| | | | | | 8.1.1). His approach doesn't work with Tcl/Tk 8.2, so I've placed it inside #if TKMAJORMINOR == 8001 and #endif. See also his patch for tkappinit.c.
* split() docstring: Made signature and description for the firstFred Drake1999-11-041-3/+3
| | | | | parameter match. Error pointed out by François Pinard <pinard@iro.umontreal.ca> on c.l.py.
* Bugfix by Jack Jansen for Macintosh (for the inet_ntoa/aton changes):Guido van Rossum1999-11-041-1/+6
| | | | | <arpa/inet.h> doesn't exist and isn't needed; and inet_addr() returns a structure containing a long rather than a long.
* Patch by Jason Trowbridge. (Followup to his PR#110.) (SlightlyGuido van Rossum1999-10-191-18/+69
| | | | | | | | | | | | reformatted.) - Illegal padding is now ignored. (Recommendation by GvR.) - Padding no longer removes characters from data string (resulting in lost data/strings with negative lengths). - Illegal characters outside the ASCII range are now ignored, instead of possibly being remapped to a valid character.
* John DuBois tells us that SCO OpenServer 5.0 and later requires _SVID3Guido van Rossum1999-10-191-0/+5
| | | | before it reveals the needed definitions in sys/statvfs.h.
* Fix PR#110 -- bad input ("====") for a2b_base64() caused it to callGuido van Rossum1999-10-191-0/+2
| | | | _PyString_Resize() with a negative size.
* parser__pickler(): Don't drop the third argument toFred Drake1999-09-201-5/+11
| | | | | | | parser_ast2tuple(). Create an temporary empty dictionary to use. Bug reported by Mark Favas <m.favas@per.dem.csiro.au>. Fix a couple of comments.
* Added comment with web location of bsddb windows port.Guido van Rossum1999-09-201-1/+4
|
* (1) On Linux, we really need to trust the configure script to selectGuido van Rossum1999-09-151-2/+13
| | | | | | | | | the right variant of gethostbyname_r for us, since not all Linuxes are equal in this respect. Reported by Laurent Pointal. (2) On BeOS, Chris Herborth reports that instead of arpa/inet.h you must include net/netdb.h to get the inet_ntoa() and inet_addr() prototypes.
* It appears that inet_aton() doesn't really exist except in libresolv;Guido van Rossum1999-09-091-20/+3
| | | | | the proper function to call is inet_addr(). Since we already had code to do that (for MS-Windows), this simplifies things a lot!
* Added keyword parameter support to all public interfaces; keywordFred Drake1999-09-091-62/+76
| | | | | | | | | names match the documentation. Removed broken code that supports the __methods__ attribute on ast objects; the right magic was added to Py_FindMethod() since this was originally written. <ast-object>.__methods__ now works, so dir() and rlcompleter are happy.
* Fixed memory leak in ratecv, in response to PR#72. By Sjoerd Mullender.Guido van Rossum1999-09-071-8/+18
|
* Patch by Mark Hammond to avoid certain header files on Windows/CE.Guido van Rossum1999-08-272-0/+4
|
* Tiny patch by Mark Hammond to avoid sys/types.h if we don't have itGuido van Rossum1999-08-271-2/+4
| | | | (for Windows/CE).