Thomas Wouters
9fdcf4ad39
Conform the new module to /the/ C style.
...
Noone but me cares, but Guido said to go ahead and fix it if it bothered me.
2001-01-11 15:40:39 +00:00
Thomas Wouters
ade16076a1
Move the _socket module closer to the SSL-_socket line (mmap and
...
xreadlines inserted themselves inbetween the two) and clarify that the
normal socket module should be commented out. (Someone also suggested the
latter on c.l.py some time ago, I forget who, sorry.)
2001-01-11 14:46:40 +00:00
Guido van Rossum
2a78cf2288
SF Patch #102357 by bbum: Add support for frameworks and objective-c
...
source. Uesful for both GnuStep and for OSXS/OSX/Darwin.
(Note: I changed $(CCC) to $(CXX) since that's now the name of the C++
compiler. Please test!
2001-01-10 21:46:05 +00:00
Guido van Rossum
b961920ff4
Final part of SF patch #102409 by jlt63: Cygwin Python DLL and Shared
...
Extension Patch.
These are the changes to the Modules Makefile and makesetup script for
Cygwin.
2001-01-10 21:12:18 +00:00
Guido van Rossum
5a53019b0d
Part of SF patch #102409 by jlt63 to support building these modules
...
under CYGWIN as shared libraries (DLLs).
2001-01-10 21:03:32 +00:00
Guido van Rossum
3d15bd8806
Adapted version of Eric Raymond's patches to automatically configure
...
curses and readline (for Linux, at least).
These are done as shared libraries by default, and so is bsddb -- that
seems to make the most sense.
2001-01-10 18:53:48 +00:00
Tim Peters
0d9f9dcf67
Windows mmap should (as the docs probably <wink> say) create a mapping
...
without a name when the optional tagname arg isn't specified. Was
actually creating a mapping with an empty string as the name.
2001-01-10 05:42:18 +00:00
Tim Peters
58c82f0b56
Assorted xreadlines problems:
...
Wasn't built on Windows; not in config.c either.
Module init function missing DL_EXPORT magic.
test_xreadline output file obviously wrong (started w/ "test_xrl").
test program very unclear about what was expected.
2001-01-09 23:26:39 +00:00
Guido van Rossum
ea3375d96b
Jeff Epler's xreadlines module, with slight reformatting and some
...
changes for safety and tuning.
2001-01-09 21:46:50 +00:00
Guido van Rossum
92d8917f83
Address a bug in the uuencode decoder, reported bu "donut" in SF bug
...
#127718 : '@' and '`' seem to be confused.
2001-01-09 02:11:57 +00:00
Guido van Rossum
e2ad633051
Anonymous SF bug report #128053 point out that the #ifdef for
...
including "tmpfile" in the posix_methods[] array is wrong -- should be
HAVE_TMPFILE, not HAVE_TMPNAM.
2001-01-08 17:51:55 +00:00
Fred Drake
711370831a
Fix problems with validation of import statement parse trees.
...
This closes SF bug #127271 .
2001-01-07 05:59:59 +00:00
Andrew M. Kuchling
5a571639fc
Patch #103012 : Update fpectlmodule for current glibc;
...
The _setfpucw() function/macro doesn't seem to exist any more;
instead there's an _FPU_SETCW macro.
2001-01-04 01:01:12 +00:00
Fred Drake
2d4ac208b5
Mark the "encoding" parameter to ExternalEntityParserCreate() as optional
...
in the docstring.
2001-01-03 15:36:25 +00:00
Andrew M. Kuchling
caefb37ee1
Add the curses constants ERR and OK to the module at TG's suggestion
2000-12-26 15:57:01 +00:00
Fred Drake
4e36d5885b
Shortened / wrapped some long lines.
...
Removed warning on use of panel_userptr() in PyCursesPanel_userptr().
2000-12-23 05:46:23 +00:00
Andrew M. Kuchling
d7d2e19922
Add correction caught by Thomas Gellekum (and sitting in my e-mail)
2000-12-22 22:03:15 +00:00
Andrew M. Kuchling
1a86cbbc32
Add _curses_panel to Setup
2000-12-22 21:57:33 +00:00
Andrew M. Kuchling
7b59ed2ebd
Patch #102813 : add a wrapper for the panel library included with ncurses.
...
Original version written by Thomas Gellekum, reshaped into a separate
module by AMK.
2000-12-22 21:54:12 +00:00
Andrew M. Kuchling
3255268777
Export C API from this module.
...
Remove several macros and #includes; py_curses.h contains them now.
2000-12-22 21:52:27 +00:00
Andrew M. Kuchling
48f224c877
Fix bug 126587: matchobject.groupdict() leaks memory because of a missing
...
DECREF
2000-12-22 14:39:10 +00:00
Fred Drake
738293d663
When using the latest & greatest version of Expat (currently in the Expat
...
CVS repository), provide the library version information.
2000-12-21 17:25:07 +00:00
Andrew M. Kuchling
9de6ffa314
Another patch from Thomas Gellekum: add .overlay() and .overwrite()
...
window methods
2000-12-21 16:22:22 +00:00
Guido van Rossum
b1d136174a
Adding a warning about the regex module. This is the first official
...
use of PyErr_Warn()! This module is a good guinea pig because it's
been obsolete since 1.5.0 was released.
2000-12-19 18:21:39 +00:00
Guido van Rossum
fb10c3f664
Minimal fix for the complaints about pickling Unicode objects. (SF
...
bugs #126161 and 123634).
The solution doesn't use the unicode-escape encoding; that has other
problems (it seems not 100% reversible). Rather, it transforms the
input Unicode object slightly before encoding it using
raw-unicode-escape, so that the decoding will reconstruct the original
string: backslash and newline characters are translated into their
\uXXXX counterparts.
This is backwards incompatible for strings containing backslashes, but
for some of those strings, the pickling was already broken.
Note that SF bug #123634 complains specifically that cPickle fails to
unpickle the pickle for u'' (the empty Unicode string) correctly.
This was an off-by-one error in load_unicode().
XXX Ugliness: in order to do the modified raw-unicode-escape, I've
cut-and-pasted a copy of PyUnicode_EncodeRawUnicodeEscape() into this
file that also encodes '\\' and '\n'. It might be nice to migrate
this into the Unicode implementation and give this encoding a new name
('half-raw-unicode-escape'? 'pickle-unicode-escape'?); that would help
pickle.py too. But right now I can't be bothered with the necessary
infrastructural changes.
2000-12-19 02:08:38 +00:00
Guido van Rossum
20d3fc071b
Adapted from a patch by Barry Scott, SF patch #102875 and SF bug
...
#125981 : closing sockets was not thread-safe.
2000-12-18 22:23:44 +00:00
Neil Schemenauer
e9e860faf3
Add support for gdbm2 open flags ('s' and 'u'). Add module constant
...
open_flags which contains the flags supported by gdbm. Closes patch
#102802 .
2000-12-17 07:14:13 +00:00
Fred Drake
e8f3ad560f
Add returns_unicode to the __members__ list.
...
Fix a small style consistency nit.
2000-12-16 01:48:29 +00:00
Guido van Rossum
47f5fdc114
Add the -W option.
2000-12-15 22:00:54 +00:00
Andrew M. Kuchling
2e09530f3f
[Patch #102827 ] Fix for PR#119558, avoiding core dumps by checking for
...
malloc() returning NULL
2000-12-15 00:59:32 +00:00
Andrew M. Kuchling
2824d7f6b1
Wrapper for napms() function, contributed by Thomas Gellekum <tg@FreeBSD.org>
2000-12-15 00:44:02 +00:00
Jack Jansen
63596aeb33
The Mac C library (MSL from CodeWarrior 6) and I/O library (GUSI
...
2.1.3) finally agree on when the epoch is, so the code to convert
epochs has been disabled.
2000-12-12 22:42:30 +00:00
Guido van Rossum
cfc4cf601c
Add URL with info for PIL.
2000-12-12 21:07:08 +00:00
Tim Peters
d92dfe0ef5
SF bug 110843: Low FD_SETSIZE limit on Win32 (PR#41). Boosted to 512.
2000-12-12 01:18:41 +00:00
Guido van Rossum
f377d57328
Trivial typo fix, submitted by Charles Waldman (SF patch #102794 ).
2000-12-12 00:37:58 +00:00
Fred Drake
b6429a2020
validate_varargslist(): Fix two bugs in this function, one that affected
...
it when *args and/or **kw are used, and one when
they are not.
This closes bug #125375 : "parser.tuple2ast() failure on valid parse tree".
2000-12-11 22:08:27 +00:00
Guido van Rossum
37da22b3f4
The C+ compiler is called $(CXX) these days, not CCC.
...
This fixes SF Bug #124478 .
2000-12-06 23:46:29 +00:00
Fred Drake
e63544f872
posix_getlogin(): Be more cautious about interpreting a NULL from
...
getlogin() -- it is not clear that a NULL is always
an error.
2000-12-06 21:45:33 +00:00
Fred Drake
a30680b240
posix_getlogin(): Handle the possibility that getlogin() can return
...
NULL without setting errno; observed on Linux
Mandrake 7.2 by an anonymous user.
This closes bug #124758 .
2000-12-06 21:24:28 +00:00
Guido van Rossum
e4dad905d4
Patch by Michael Hudson to clarify the error message from
...
getsockaddrarg when the address is not a tuple.
2000-12-01 13:13:11 +00:00
Andrew M. Kuchling
469d5bb0b4
Clarify two comments
2000-11-30 01:57:18 +00:00
Guido van Rossum
d7aa0f245f
Update dependencies per /F.
2000-11-28 12:09:18 +00:00
Andrew M. Kuchling
26cc66fe6a
Patch #102412 from mwh: Add support for the setupterm() function, to
...
initialize the terminal without necessarily calling initscr()
2000-11-18 17:45:59 +00:00
Guido van Rossum
1bff883ac0
Allow new.function() called with explicit 3rd arg of None, as
...
documented, and as is reasonable (since it is optional, but there's
another argument following it that may require you to specify a
value). This solves SF bug 121887.
2000-11-13 20:29:20 +00:00
Tim Peters
7c1cb46126
Fix for SF bug 117402, crashes on str(array) and repr(array). This was an
...
unfortunate consequence of somebody switching from PyArg_Parse to
PyArg_ParseTuple but without changing the argument from a NULL to a tuple.
2000-11-10 19:04:19 +00:00
Andrew M. Kuchling
f16e0ed76c
Patch #102278 : add tparm() function to _curses module
2000-11-07 03:35:24 +00:00
Fredrik Lundh
fad27aee11
Added 38,642 missing characters to the Unicode database (first-last
...
ranges) -- but thanks to the 2.0 compression scheme, this doesn't add
a single byte to the resulting binaries (!)
Closes bug #117524
2000-11-03 20:24:15 +00:00
Thomas Wouters
2cffc7d420
Move our own getopt() implementation to _PyOS_GetOpt(), and use it
...
regardless of whether the system getopt() does what we want. This avoids the
hassle with prototypes and externs, and the check to see if the system
getopt() does what we want. Prefix optind, optarg and opterr with _PyOS_ to
avoid name clashes. Add new include file to define the right symbols. Fix
Demo/pyserv/pyserv.c to include getopt.h itself, instead of relying on
Python to provide it.
2000-11-03 08:18:37 +00:00
Andrew M. Kuchling
e7d3616409
Patch from Randall Hopper to fix PR #116172 , "curses module fails to
...
build on SGI":
* Check for 'sgi' preprocessor symbol, not '__sgi__'
* Surround individual character macros with #ifdef's, instead of making them
all rely on STRICT_SYSV_CURSES
2000-11-01 19:59:12 +00:00
Fred Drake
4ba298c325
ParserCreate(): Added test that the namespace_separator value, if given,
...
has the required length.
initpyexpat(): Provide the type object for the ParserCreate() return
value as XMLParserType.
2000-10-29 04:57:53 +00:00