Martin v. Löwis
405a7952fd
Patch #803998 : Correctly check for error in SSL_write.
2003-10-27 14:24:37 +00:00
Raymond Hettinger
f0c5aec85f
Minor improvements to itertools.tee():
...
* tee object is no longer subclassable
* independent iterators renamed to "itertools.tee_iterator"
* fixed doc string typo and added entry in the module doc string
2003-10-26 14:25:56 +00:00
Raymond Hettinger
4514369f27
Improvements to coding for itertools.tee():
...
* Add error checking code to PyList_Append() call.
* Replace PyObject_CallMethod(to->outbasket, "pop", NULL) with equivalent
in-line code. Inlining is important here because the search for the
pop method will occur for every element returned by the iterator.
* Make tee's dealloc() a little smarter. If the trailing iterator is
being deallocated, then the queue data is no longer needed and can
be freed.
2003-10-25 06:37:47 +00:00
Raymond Hettinger
6a5b027742
Added itertools.tee()
...
It works like the pure python verion except:
* it stops storing data after of the iterators gets deallocated
* the data queue is implemented with two stacks instead of one dictionary.
2003-10-24 08:45:23 +00:00
Guido van Rossum
16b9fa8db3
- The pwd module incorrectly advertised its struct type as
...
struct_pwent; this has been renamed to struct_passwd. (The old name
is still supported for backwards compatibility.)
2003-10-23 23:54:57 +00:00
Fred Drake
08317aefef
Update to Expat 1.95.7; there are no changes to the Expat sources.
2003-10-21 15:38:55 +00:00
Walter Dörwald
f0dfc7ac5c
Fix a bunch of typos in documentation, docstrings and comments.
...
(From SF patch #810751 )
2003-10-20 14:01:56 +00:00
Gustavo Niemeyer
0f0c06a5c2
Removing dead code.
2003-10-18 20:54:44 +00:00
Gustavo Niemeyer
ad3fc44ccb
Implemented non-recursive SRE matching.
2003-10-17 22:13:16 +00:00
Raymond Hettinger
8ae4689657
Simplify and speedup uses of Py_BuildValue():
...
* Py_BuildValue("(OOO)",a,b,c) --> PyTuple_Pack(3,a,b,c)
* Py_BuildValue("()",a) --> PyTuple_New(0)
* Py_BuildValue("O", a) --> Py_INCREF(a)
2003-10-12 19:09:37 +00:00
Raymond Hettinger
2f726e9093
SF bug #812202 : randint is always even
...
* Added C coded getrandbits(k) method that runs in linear time.
* Call the new method from randrange() for ranges >= 2**53.
* Adds a warning for generators not defining getrandbits() whenever they
have a call to randrange() with too large of a population.
2003-10-05 09:09:15 +00:00
Anthony Baxter
bab23cfc26
made the SGI INET_ADDRSTRLEN define apply for any compiler on Irix. Both the
...
SGI compiler and GCC seem to need this.
2003-10-04 08:00:49 +00:00
Martin v. Löwis
d46e684edd
Check for TclError when reading variables. Fixes #807314 .
...
Backported to 2.3.
2003-10-03 17:12:26 +00:00
Martin v. Löwis
a0f1734e44
Patch #813445 : Add missing socket.IPPROTO_IPV6. Backported to 2.3.
2003-10-03 13:56:20 +00:00
Gregory P. Smith
be0db8b125
bsddb3 4.2.2, adds DBCursor.get_current_size() method to return the length
...
of the current value without reading the value itself.
2003-10-01 06:48:51 +00:00
Gregory P. Smith
7000225fbc
raise pybsddb version number to 4.2.1 to differentiate between it and the
...
version in the python 2.3.1 tree.
2003-09-21 23:29:41 +00:00
Gregory P. Smith
41631e8f66
Adds basic support for BerkeleyDB 4.2.x. Compiles and passes tests; new
...
features in BerkeleyDB not exposed. notably: the DB_MPOOLFILE interface
has not yet been wrapped in an object.
Adds support for building and installing bsddb3 in python2.3 that has
an older version of this module installed as bsddb without conflicts.
The pybsddb.sf.net build/packaged version of the module uses a
dynamicly loadable module called _pybsddb rather than _bsddb.
2003-09-21 00:08:14 +00:00
Martin v. Löwis
e7a9796a0f
Patch #800697 : Add readline.clear_history.
2003-09-20 16:08:33 +00:00
Martin v. Löwis
212ede6cbf
Patch #730597 : Disable POPEN for RTEMS.
2003-09-20 11:20:30 +00:00
Martin v. Löwis
1b699a5f00
Patch #790000 : Allow os.access to handle Unicode file name.
2003-09-12 16:25:38 +00:00
Brett Cannon
62dba4c277
select.select() now accepts a sequence (as defined by PySequence_Fast()) for
...
its first three arguments.
Closes RFE #798046 .
2003-09-10 19:37:42 +00:00
Just van Rossum
ee8f10fa37
Patch #801349 : 64-bit fix for AMD64 from Gwenole Beauchesne.
...
Classical problem with int vs. long mismatch in varargs.
2.3 backport candidate.
2003-09-07 13:36:48 +00:00
Martin v. Löwis
f5b93736a2
Patch #798145 : Return correct information from nl_langinfo(RADIXCHAR).
...
Will backport to 2.3.
2003-09-04 18:24:47 +00:00
Jason Tishler
6bc06eca70
Bug #794140 : cygwin builds do not embed
...
The embed2.diff patch solves the user's problem by exporting the missing
symbols from the Python core so Python can be embedded in another Cygwin
application (well, at lest vim).
2003-09-04 11:59:50 +00:00
Martin v. Löwis
25f90d5c5d
Use de_DE in example, change message for unknown locale. Fixes #797447 .
...
Will backport to 2.3.
2003-09-03 04:50:13 +00:00
Raymond Hettinger
b5cb66542d
SF patch #798534 : Windows os.popen needlessly gets a reference to tuple ()
...
(Contributed by Andrew Gaul.)
Fixes a minor leak.
2003-09-01 22:25:41 +00:00
Raymond Hettinger
4f01f89b8c
For safety, replace a tuple entry before decreffing it.
2003-08-30 00:10:06 +00:00
Raymond Hettinger
a56f6b6600
SF bug #793826 : using itertools.izip to mutate tuples
...
Avoid Armin Rigo's dastardly exercise in re-entrancy.
2003-08-29 23:09:58 +00:00
Gregory P. Smith
6676f6edc1
Support DBEnv.set_shm_key() to allow multi-threaded multi-process
...
database environments to use shared memory on systems supporting it.
2003-08-28 21:50:30 +00:00
Raymond Hettinger
3432118022
SF #784031 : Byte-order bug in socket-module getaddrinfo.c
2003-08-17 21:28:39 +00:00
Michael W. Hudson
f02bcee095
Fix silly leak in test used in test_exceptions.
2003-08-15 13:03:30 +00:00
Andrew M. Kuchling
69f31eb80c
[Patch #739124 ] Add use_default_colors() to curses module
2003-08-13 23:11:04 +00:00
Skip Montanaro
eb2f0612e1
reverting to 2.41 version (distinct tp_names) - will add verbiage to the
...
docs
2003-08-11 14:51:15 +00:00
Skip Montanaro
e138828d03
shit - just change the visible name, not the comments - strictly speaking,
...
the tp_name is not correct, but what's exposed to users is known visibly as
"StringIO", not "StringI" or "StringO".
2003-08-11 13:15:11 +00:00
Skip Montanaro
4a0d3d2e40
typos
2003-08-11 13:09:12 +00:00
Raymond Hettinger
5475f2394a
SF bug #770485 : cStringIO does not set closed attr
2003-08-08 12:20:03 +00:00
Raymond Hettinger
b5a420883c
Modified itertools.izip() to match the behavior of __builtin__.zip()
...
which can now take zero arguments.
2003-08-08 05:10:41 +00:00
Martin v. Löwis
5db099a4fe
Release host name memory. Fixes #783312 . Will backport to 2.3.
2003-08-07 11:55:15 +00:00
Mark Hammond
7edd0a9b21
Demonstrate and fix [ 783882 ] os.lstat crashes with Unicode filename.
...
Will also check in on the 2.3 branch.
2003-08-06 02:46:58 +00:00
Raymond Hettinger
85004cc47d
SF bug #782369 : Massive memory leak in array module
...
Fixed leak caused by switching from PyList_GetItem to PySequence_GetItem.
Added missing NULL check.
Clarified code by converting an "if" to an "else if".
Will backport to 2.3.
2003-08-05 11:23:59 +00:00
Martin v. Löwis
106490915b
Patch #781722 : Reject AF_INET6 if IPv6 is disabled. Will backport to 2.3.
2003-08-05 06:25:06 +00:00
Anthony Baxter
f37f37dec0
Patch [ 776725 ] add SIGRTMIN, SIGRTMAX to signalmodule.c
...
Trivial patch, and the alternative is to guess at the right values
based on platform...
2003-07-31 10:35:29 +00:00
Mark Hammond
9a71475e9e
Fix [ 776721 ] locale.setlocale() leaks
...
Our saved locale was not being freed. Also check correct variable for
NULL.
2003-07-24 14:15:07 +00:00
Thomas Heller
354e3d90d3
Change the zipimport implementation to accept files containing
...
arbitrary bytes before the actual zip compatible archive. Zipfiles
containing comments at the end of the file are still not supported.
Add a testcase to test_zipimport, and update NEWS.
This closes sf #775637 and sf #669036 .
2003-07-22 18:10:15 +00:00
Fred Drake
f239c6d537
Repair mis-application of Jeremy's patch. Thanks, Neal!
2003-07-21 17:22:43 +00:00
Fred Drake
7b6caffd70
Fix memory leak reported & discussed on the Python XML-SIG mailing list.
...
This patch was provided by Jeremy Kloth, and corresponds to pyexpat.c
1.77 in the PyXML CVS.
2003-07-21 17:05:56 +00:00
Tim Peters
6a627250d2
Merge 23c1-branch back into the head. Barry will send email about the
...
New Plan (releases to be made off the head, ongoing random 2.4 stuff
to be done on a short-lived branch, provided anyone is motivated enough
to create one).
2003-07-21 14:25:23 +00:00
Jeremy Hylton
fb509a36c8
Get socketmodule compiling on IRIX 6.5.10.
...
I don't think the fix here is very good, but I'm not sure what would
be better. In particular, we should not be defining _SGIAPI, but lots
of things break if we remove it.
2003-07-17 16:58:48 +00:00
Michael W. Hudson
afd43b5512
Remove inaccurate (and it turns out, entirely superfluous) declarations of
...
PyOS_InputHook and PyOS_ReadlineFunctionPointer).
The inaccuracies were causing problems in framework builds on Mac OS X.
2003-07-17 16:26:58 +00:00
Jeremy Hylton
032fffefe6
Remove unused variable.
2003-07-17 15:56:07 +00:00