summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Add wrappers around the rich-comparison operations.Fred Drake2001-08-091-1/+22
| | | | | | | This closes SF patch #428320. Add wrappers to expose "floor" and "true" division. This closes SF feature request #449093.
* Add get_objects function. This is a low level function (likeNeil Schemenauer2001-08-091-0/+38
| | | | | get_referents, and is not yet documented in the library manual). Suggestions for a better name welcome.
* Add get_referents function. Closes SF patch #402925.Neil Schemenauer2001-08-091-0/+50
|
* Put conditional S_ISDIR definition(s) into pyport.h.Martin v. Löwis2001-08-081-9/+0
|
* Part of SF patch [#431848] mathmodule.c: doc strings & conversion, fromTim Peters2001-08-071-15/+18
| | | | | | Peter Schneider-Kamp. Clarified some docstrings in the spirit of the patch; left out the degrees() and radians() functions (see the patch comments on SF).
* - Rename PyType_InitDict() to PyType_Ready().Guido van Rossum2001-08-071-2/+2
| | | | | | - Add an explicit call to PyType_Ready(&PyList_Type) to pythonrun.c (just for the heck of it, really -- we should either explicitly ready all types, or none).
* Got rid of (hopefully) the last 68k-mac related ifdefs.Jack Jansen2001-08-071-7/+0
|
* Add more constants. Contributed by itojun.Martin v. Löwis2001-08-041-1/+73
|
* Auto-detect hstrerror. Raise socket.herror in PyH_Error. Register the threeMartin v. Löwis2001-08-041-2/+4
| | | | exception classes in the module dictionary.
* Do not use the system getaddrinfo on Mac OS X. Fixes bug #445928.Martin v. Löwis2001-08-031-6/+16
| | | | Since getnameinfo is not implemented, remove __APPLE__ check here.
* Merge of descr-branch back into trunk.Tim Peters2001-08-024-1/+240
|
* Cleaned up the docstring for readline.set_completer().Fred Drake2001-08-011-1/+1
| | | | Thanks to Nathaniel Gray for reporting the confusion.
* Enable PyOS_snprintf() et al. during alpha phase of 2.2.0 andMarc-André Lemburg2001-07-311-10/+2
| | | | add another use case to the socketmodule.
* Temporarily work around bug #445928: Force usage of getaddrinfo emulationMartin v. Löwis2001-07-301-2/+6
| | | | code on Darwin, since the C library version of that seems to be broken.
* Squash compiler wng about mixing signed and unsigned in comparison.Tim Peters2001-07-281-1/+2
|
* Fix buffer_info() docstring to match reality. See SF bug #444842.Guido van Rossum2001-07-271-1/+3
|
* Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.Martin v. Löwis2001-07-263-3/+3
|
* Use HAVE_SNPRINTF, not HAVE_SPRINTF, for checking the availability ofThomas Wouters2001-07-241-1/+1
| | | | snprintf.
* Autocheck for snprintf, and use sprintf if it is not available.Martin v. Löwis2001-07-242-7/+8
| | | | | Remove declaration of h_errno, since it is supposedly declared in netdb.h. Changes proposed by itojun.
* Add -E command line switch (ignore environment variables like PYTHONHOMENeil Schemenauer2001-07-233-9/+20
| | | | and PYTHONPATH).
* Before declaring h_errno, do not check for Win32 only. Instead, do checkMartin v. Löwis2001-07-232-2/+2
| | | | whether h_errno is a macro.
* Instead of accessing ss_family, cast sockaddr_storage to sockaddr and access ↵Martin v. Löwis2001-07-231-1/+5
| | | | sa_family.
* Set ai_addrlen even if there is no sa_len.Martin v. Löwis2001-07-211-0/+1
|
* Patch #401196: IPv6 extensions to the socket module.Martin v. Löwis2001-07-211-103/+546
| | | | | | | | New functions getnameinfo, getaddrinfo. New exceptions socket.gaierror, socket.herror. Various new constants, in particular AF_INET6 and error codes and parameters for getaddrinfo. AF_INET6 support in setipaddr, makesockaddr, getsockaddr, getsockaddrlen, gethost_common, PySocket_gethostbyaddr.
* Silence warnings in MSVC++: hide unused variables, add constness back toMartin v. Löwis2001-07-213-7/+14
| | | | inet_pton/ntop, convert htons argument to u_short.
* Make more warnings go away on the SGI compiler.Fred Drake2001-07-194-11/+6
| | | | This is part of SF patch #424992.
* Clean up some warnings from the SGI compiler.Fred Drake2001-07-191-3/+3
| | | | This is part of SF patch #434992.
* Kill a warning on the SGI compiler.Fred Drake2001-07-191-1/+1
| | | | This is part of SF patch #434992.
* Remove warnings from the SGI compiler.Fred Drake2001-07-192-7/+4
| | | | This is part of SF patch #434992.
* Elaborate a comment.Fred Drake2001-07-191-1/+4
|
* Port getaddrinfo to MSVC++.Martin v. Löwis2001-07-193-15/+15
|
* SF bug #442520: test_struct fails on SPARC.Tim Peters2001-07-181-4/+10
| | | | | | | | The ob_sval member of a string object isn't necessarily aligned to better than a native long, so the new "q" and "Q" struct codes can't get away w/ casting tricks on platforms where LONG_LONG requires stricter-than-long alignment. After I thought of a few elaborate workarounds, Guido bashed me over the head with the obvious memcpy approach, herewith implemented.
* Add "help" to the things one is encouraged to type for moreGuido van Rossum2001-07-181-1/+2
| | | | information. (I found this idea in the ActivePython 2.1 diffs.)
* On Windows, tempnam() is spelled with a leading underscore.Fred Drake2001-07-171-0/+4
|
* The syntax trees handled by this module are not "abstract," so take theFred Drake2001-07-171-132/+136
| | | | | "A" out of the internal abbreviations. For published functions with "ast" in their names, make alternate offerings using just "st".
* Remove code to initialize globals that are never used.Fred Drake2001-07-171-22/+11
| | | | | | Add some casts to quiet warnings from an unspecified non-GCC compiler. This closes SF patch #436258.
* Add support for yield statements.Fred Drake2001-07-171-1/+17
| | | | (Should be merged with descr branch.)
* File handlers don't work on the mac, so don't pretend they do. I guess this ↵Jack Jansen2001-07-161-1/+2
| | | | is a 2.1.1 candidate, if it isn't too late for that.
* Fix SF #441664: Python crash on del of a slice of a mmapThomas Wouters2001-07-161-0/+10
| | | | | | Check for slice/item deletion, which calls slice/item assignment with a NULL value, and raise a TypeError instead of coredumping. Bugreport and suggested fix by Alex Martelli.
* Part way to allowing "from __future__ import generators" to communicateTim Peters2001-07-161-1/+1
| | | | | | | | | | that info to code dynamically compiled *by* code compiled with generators enabled. Doesn't yet work because there's still no way to tell the parser that "yield" is OK (unlike nested_scopes, the parser has its fingers in this too). Replaced PyEval_GetNestedScopes by a more-general PyEval_MergeCompilerFlags. Perhaps I should not have? I doubted it was *intended* to be part of the public API, so just did.
* Remove redundant include of assert.h.Tim Peters2001-07-151-1/+0
|
* Python.h: Don't attempt to redefine NDEBUG if it's already defined.Tim Peters2001-07-152-2/+0
| | | | Others: Remove redundant includes of assert.h.
* [Bug #438050]Andrew M. Kuchling2001-07-141-1/+3
| | | | | | Include sys/poll.h if it was found by the configure script. The OpenGroup spec says poll.h is the correct header file to use, so that file is preferred.
* Fix bug #417212: "curses.newwin can return pads" by changing the PythonAndrew M. Kuchling2001-07-141-3/+2
| | | | | newwin() wrapper to always return a window, and never a pad. This makes the code match the documentation.
* Re-do the broken-nice() patch to break less platforms. Hopefully none :PThomas Wouters2001-07-111-3/+9
| | | | | | | Also note that it isn't just Linux nice() that is broken: at least FreeBSD and BSDI also have this problem. os.nice() should probably just be emulated using getpriority()/setpriority(), if they are available, but I'll get to that later.
* Patch #439995 (slightly modified from the uploaded version):Thomas Wouters2001-07-111-1/+18
| | | | | | | Work around Linux's nonstandard nice() systemcall, which does not return the new priority. This closes SF bug #439990.
* SF Patch #432457 by Jason Tishler: support for readline 4.2.Guido van Rossum2001-07-101-0/+4
| | | | | | | This patch allows the readline module to build cleanly with GNU readline 4.2 without breaking the build for earlier GNU readline versions. The configure script checks for the presence of rl_completion_matches in libreadline.
* initregex(): this function is declared void, so the recent change toTim Peters2001-07-091-1/+1
| | | | return NULL in an error case was itself an error.
* initregex(): Check return value of PyErr_Warn() and propagate the exceptionThomas Wouters2001-07-091-2/+4
| | | | (if any.)
* map re.sub() to string.replace(), when possibleFredrik Lundh2001-07-081-0/+23
|