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