summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* bug #416670Fredrik Lundh2001-07-031-16/+87
| | | | | added copy/deepcopy support to SRE (still not enabled, since it's not covered by the test suite)
* bug #232815Fredrik Lundh2001-07-031-1/+1
| | | | | ch is unsigned, so testing for negative values doesn't make sense (as noticed by the OpenVMS compiler)
* reapplied darryl gallion's minimizing repeat fix. I'm still not 100%Fredrik Lundh2001-07-021-1/+1
| | | | | sure about this one, but test #133283 now works even with the fix in place, and so does the test suite. we'll see what comes up...
* pythonware repository roundtrip (untabification)Fredrik Lundh2001-07-021-12/+13
|
* added martin's BIGCHARSET patch to SRE 2.1.1. martin reports 2xFredrik Lundh2001-07-022-19/+33
| | | | speedups for certain unicode character ranges.
* merged with pythonware's SRE 2.1.1 codebaseFredrik Lundh2001-07-022-5/+98
|
* use Py_UNICODE_WIDE instead of USE_UCS4_STORAGE and Py_UNICODE_SIZEFredrik Lundh2001-06-271-2/+3
| | | | tests.
* Windows build broke from recent Unicode changes -- need to #defineTim Peters2001-06-261-0/+1
| | | | | | SIZEOF_SHORT by hand here. Also added dynamic check that SIZEOF_SHORT is correct for the platform (in _testcapimodule).
* experimental UCS-4 support: added USE_UCS4_STORAGE define toFredrik Lundh2001-06-261-0/+4
| | | | | | unicodeobject.h, which forces sizeof(Py_UNICODE) == sizeof(Py_UCS4). (this may be good enough for platforms that doesn't have a 16-bit type. the UTF-16 codecs don't work, though)
* experimental UCS-4 support: don't assume that MS_WIN32 impliesFredrik Lundh2001-06-261-3/+3
| | | | HAVE_USABLE_WCHAR_T
* Remove const-ness in inet_pton declaration.Martin v. Löwis2001-06-251-1/+1
|
* Replace snprintf with sprintf.Martin v. Löwis2001-06-251-1/+1
|
* Fix typos in inet_pton/inet_ntop.Martin v. Löwis2001-06-241-2/+3
|
* Provide a definition for offsetof.Martin v. Löwis2001-06-241-0/+8
|
* Emulate inet_{pton,ntop} on systems that don't provide it.Martin v. Löwis2001-06-241-0/+41
|
* Pure brute-force hackery to allow Python to build on Windows again,Tim Peters2001-06-241-0/+12
| | | | | because I need to make progress and don't have time now to think about whatever it is the new code is trying to accomplish.
* Properly use &&. Closes bug #434988.Martin v. Löwis2001-06-231-2/+2
|