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
Martin v. Löwis
35c38eaeae
heck environment closed status before closing a cursors. Fixes #763928 .
2003-07-15 19:12:54 +00:00
Andrew M. Kuchling
a3016678ed
[Patch #708374 ] Only apply the check for file size if the file is a regular file, not a character or block device.
2003-07-15 12:37:46 +00:00
Raymond Hettinger
1d7a3489e9
SF patch #770521 : make itertools type declarations static
...
(Contributed by Andrew I MacIntyre.)
2003-07-14 07:07:12 +00:00
Jeremy Hylton
fff093fa7f
The Unpickler forget about its find_class attribute.
2003-07-11 19:42:49 +00:00
Mark Hammond
14350ab006
Fix [ 766669 ] Consistent GPF on exit
...
Use Py_AtExit instead of atexit so we are called during Py_Finalize()
rather than during DLL teardown.
2003-07-09 04:57:46 +00:00
Gregory P. Smith
455d46f0d9
bsddb 4.1.6:
...
* Extended DB & DBEnv set_get_returns_none functionality to take a
"level" instead of a boolean flag. The boolean 0 and 1 values still
have the same effect. A value of 2 extends the "return None instead
of raising an exception" behaviour to the DBCursor set methods.
This will become the default behaviour in pybsddb 4.2.
* Fixed a typo in DBCursor.join_item method that made it crash instead
of returning a value. Obviously nobody uses it. Wrote a test case
for join and join_item.
2003-07-09 04:45:59 +00:00