Martin v. Löwis
f9836ba4fe
Put conditional S_ISDIR definition(s) into pyport.h.
2001-08-08 10:28:06 +00:00
Tim Peters
fe71f81367
Part of SF patch [ #431848 ] mathmodule.c: doc strings & conversion, from
...
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).
2001-08-07 22:10:00 +00:00
Guido van Rossum
528b7eb0b0
- Rename PyType_InitDict() to PyType_Ready().
...
- 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).
2001-08-07 17:24:28 +00:00
Jack Jansen
f249addeed
Got rid of (hopefully) the last 68k-mac related ifdefs.
2001-08-07 15:32:37 +00:00
Martin v. Löwis
bcf4b35871
Add more constants. Contributed by itojun.
2001-08-04 22:37:23 +00:00
Martin v. Löwis
864e9ffb14
Auto-detect hstrerror. Raise socket.herror in PyH_Error. Register the three
...
exception classes in the module dictionary.
2001-08-04 22:32:03 +00:00
Martin v. Löwis
ae26dc23a9
Do not use the system getaddrinfo on Mac OS X. Fixes bug #445928 .
...
Since getnameinfo is not implemented, remove __APPLE__ check here.
2001-08-03 10:02:29 +00:00
Tim Peters
6d6c1a35e0
Merge of descr-branch back into trunk.
2001-08-02 04:15:00 +00:00
Fred Drake
52d55a3926
Cleaned up the docstring for readline.set_completer().
...
Thanks to Nathaniel Gray for reporting the confusion.
2001-08-01 21:44:14 +00:00
Marc-André Lemburg
03d1b1814b
Enable PyOS_snprintf() et al. during alpha phase of 2.2.0 and
...
add another use case to the socketmodule.
2001-07-31 18:05:33 +00:00
Martin v. Löwis
0b8de98f08
Temporarily work around bug #445928 : Force usage of getaddrinfo emulation
...
code on Darwin, since the C library version of that seems to be broken.
2001-07-30 16:52:55 +00:00
Tim Peters
9544fc5027
Squash compiler wng about mixing signed and unsigned in comparison.
2001-07-28 09:36:36 +00:00
Guido van Rossum
702d08ec05
Fix buffer_info() docstring to match reality. See SF bug #444842 .
2001-07-27 16:05:32 +00:00
Martin v. Löwis
4f1cd8bdcb
Patch #411138 : Rename config.h to pyconfig.h. Closes bug #231774 .
2001-07-26 13:41:06 +00:00
Thomas Wouters
7aeb6ef941
Use HAVE_SNPRINTF, not HAVE_SPRINTF, for checking the availability of
...
snprintf.
2001-07-24 11:03:34 +00:00
Martin v. Löwis
791bfda2b3
Autocheck for snprintf, and use sprintf if it is not available.
...
Remove declaration of h_errno, since it is supposedly declared in netdb.h.
Changes proposed by itojun.
2001-07-24 06:33:08 +00:00
Neil Schemenauer
7d4bb9f179
Add -E command line switch (ignore environment variables like PYTHONHOME
...
and PYTHONPATH).
2001-07-23 16:30:27 +00:00
Martin v. Löwis
fe36fc91ed
Before declaring h_errno, do not check for Win32 only. Instead, do check
...
whether h_errno is a macro.
2001-07-23 07:27:16 +00:00
Martin v. Löwis
9db2f571c3
Instead of accessing ss_family, cast sockaddr_storage to sockaddr and access sa_family.
2001-07-23 01:30:10 +00:00
Martin v. Löwis
c7cdc63755
Set ai_addrlen even if there is no sa_len.
2001-07-21 18:48:56 +00:00
Martin v. Löwis
2d8d4276c6
Patch #401196 : IPv6 extensions to the socket module.
...
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.
2001-07-21 18:05:31 +00:00
Martin v. Löwis
c925b1538a
Silence warnings in MSVC++: hide unused variables, add constness back to
...
inet_pton/ntop, convert htons argument to u_short.
2001-07-21 09:42:15 +00:00
Fred Drake
dff3a37afd
Make more warnings go away on the SGI compiler.
...
This is part of SF patch #424992 .
2001-07-19 21:29:49 +00:00
Fred Drake
e5065290e7
Clean up some warnings from the SGI compiler.
...
This is part of SF patch #434992 .
2001-07-19 21:16:41 +00:00
Fred Drake
6a16ea07b8
Kill a warning on the SGI compiler.
...
This is part of SF patch #434992 .
2001-07-19 21:11:13 +00:00
Fred Drake
0368bc44e8
Remove warnings from the SGI compiler.
...
This is part of SF patch #434992 .
2001-07-19 20:48:32 +00:00
Fred Drake
78bdb9bc46
Elaborate a comment.
2001-07-19 20:17:15 +00:00
Martin v. Löwis
d783041a14
Port getaddrinfo to MSVC++.
2001-07-19 17:37:46 +00:00
Tim Peters
3dac559299
SF bug #442520 : test_struct fails on SPARC.
...
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.
2001-07-18 20:47:31 +00:00
Guido van Rossum
36002d7af1
Add "help" to the things one is encouraged to type for more
...
information. (I found this idea in the ActivePython 2.1 diffs.)
2001-07-18 16:59:46 +00:00
Fred Drake
78b71c2ad3
On Windows, tempnam() is spelled with a leading underscore.
2001-07-17 20:37:36 +00:00
Fred Drake
c2683ddb29
The syntax trees handled by this module are not "abstract," so take the
...
"A" out of the internal abbreviations. For published functions with
"ast" in their names, make alternate offerings using just "st".
2001-07-17 19:32:05 +00:00
Fred Drake
2c7a6851ed
Remove code to initialize globals that are never used.
...
Add some casts to quiet warnings from an unspecified non-GCC compiler.
This closes SF patch #436258 .
2001-07-17 18:34:03 +00:00
Fred Drake
02126f20b6
Add support for yield statements.
...
(Should be merged with descr branch.)
2001-07-17 02:59:15 +00:00
Jack Jansen
84c10b13bb
File handlers don't work on the mac, so don't pretend they do. I guess this is a 2.1.1 candidate, if it isn't too late for that.
2001-07-16 19:32:52 +00:00
Thomas Wouters
1baac7201e
Fix SF #441664 : Python crash on del of a slice of a mmap
...
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.
2001-07-16 15:47:36 +00:00
Tim Peters
5ba5866281
Part way to allowing "from __future__ import generators" to communicate
...
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.
2001-07-16 02:29:45 +00:00
Tim Peters
045ca7ae72
Remove redundant include of assert.h.
2001-07-15 19:42:03 +00:00
Tim Peters
0d5dd68692
Python.h: Don't attempt to redefine NDEBUG if it's already defined.
...
Others: Remove redundant includes of assert.h.
2001-07-15 18:38:47 +00:00
Andrew M. Kuchling
737fbb340e
[Bug #438050 ]
...
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.
2001-07-14 20:54:37 +00:00
Andrew M. Kuchling
5a76c44181
Fix bug #417212 : "curses.newwin can return pads" by changing the Python
...
newwin() wrapper to always return a window, and never a pad. This makes
the code match the documentation.
2001-07-14 20:38:30 +00:00
Thomas Wouters
e38b2f1f00
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
...
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.
2001-07-11 22:35:31 +00:00
Thomas Wouters
c2c12dc31c
Patch #439995 (slightly modified from the uploaded version):
...
Work around Linux's nonstandard nice() systemcall, which does not return the
new priority.
This closes SF bug #439990 .
2001-07-11 14:45:34 +00:00
Guido van Rossum
353ae58964
SF Patch #432457 by Jason Tishler: support for readline 4.2.
...
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.
2001-07-10 16:45:32 +00:00
Tim Peters
06e415fe52
initregex(): this function is declared void, so the recent change to
...
return NULL in an error case was itself an error.
2001-07-09 18:15:38 +00:00
Thomas Wouters
4ccf119053
initregex(): Check return value of PyErr_Warn() and propagate the exception
...
(if any.)
2001-07-09 10:45:31 +00:00
Fredrik Lundh
2d96f11d07
map re.sub() to string.replace(), when possible
2001-07-08 13:26:57 +00:00
Fredrik Lundh
d89a2e7731
bug #416670
...
added copy/deepcopy support to SRE (still not enabled, since it's not
covered by the test suite)
2001-07-03 20:32:36 +00:00
Fredrik Lundh
ee2f18d0ee
bug #232815
...
ch is unsigned, so testing for negative values doesn't make
sense (as noticed by the OpenVMS compiler)
2001-07-03 19:27:05 +00:00
Fredrik Lundh
df781e6a3f
reapplied darryl gallion's minimizing repeat fix. I'm still not 100%
...
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...
2001-07-02 19:54:28 +00:00