Martin v. Löwis
0b49e02e03
Patch #977074 : Move Encode/Decode to the top so gcc can inline them.
2004-08-03 13:08:07 +00:00
Michael W. Hudson
0bb8454ed4
Fix the reference count errors revealed by the test suite...
2004-08-03 11:31:31 +00:00
Raymond Hettinger
cbcff93d49
Restore compilation on MSVC++ 6.0
2004-08-03 08:52:46 +00:00
Armin Rigo
a41276956d
SF bug #808756 : refleaks in _hotshot.c.
2004-08-03 08:33:55 +00:00
Fred Drake
31d485c0f5
update to Expat 1.95.8
2004-08-03 07:06:22 +00:00
Mark Hammond
a57ec93b93
Fix [ 1001018 ]: Windows: setdefaulttimeout causes unnecessary timeouts on
...
connect error
2004-08-03 05:06:26 +00:00
Michael W. Hudson
c9f510aed2
Any call to insort_{left,right} with a non-list leaked a reference to None
...
(or to whatever the 'insert' method chose to return).
2004-08-02 13:24:54 +00:00
Anthony Baxter
c2a5a63654
PEP-0318, @decorator-style. In Guido's words:
...
"@ seems the syntax that everybody can hate equally"
Implementation by Mark Russell, from SF #979728 .
2004-08-02 06:10:11 +00:00
Neal Norwitz
014f103705
SF bug #999776 , zlib home page wrong
...
Backport candidate.
2004-07-29 03:55:56 +00:00
Hye-Shik Chang
eb34110190
Remove CJKCodecs implementation of UTF-7 and UTF-8 codec which
...
aren't intended to be part of Python distributiuon. This was
accidently imported on mass converting from standalone version of
CJKCodecs.
2004-07-28 09:36:52 +00:00
Martin v. Löwis
b600fe90a7
Switch arguments to memset (kudos to MSVC C4318 for finding that)
2004-07-27 15:03:53 +00:00
Martin v. Löwis
544f1195b1
Patch #995766 : Keyword argument support in cPickle.
2004-07-27 05:22:33 +00:00
Gustavo Niemeyer
7bd33c5e22
This change implements the following gettext features, as
...
discussed recently in python-dev:
In _locale module:
- bind_textdomain_codeset() binding
In gettext module:
- bind_textdomain_codeset() function
- lgettext(), lngettext(), ldgettext(), ldngettext(),
which return translated strings encoded in
preferred system encoding, if
bind_textdomain_codeset() was not used.
- Added equivalent functionality in translate()
function and catalog classes.
Every change was also documented.
2004-07-22 18:44:01 +00:00
Neal Norwitz
dc8e1942dd
Fix SF #994580 , typo in time.tzsets docstring. Backport candidate
2004-07-20 22:34:37 +00:00
Martin v. Löwis
81aec4bb80
Patch #984654 : Add more address family constants.
2004-07-19 17:01:20 +00:00
Martin v. Löwis
8fbefe2874
Patch #993173 : Enable audioop on 64-bit platforms.
2004-07-19 16:42:20 +00:00
Raymond Hettinger
e9c89e8308
Silence a GCC unused variable warning in debug builds.
2004-07-19 00:10:24 +00:00
Hye-Shik Chang
64a9e38f35
Replace an extern magic to assigning declared pointer from array's.
...
And unifdef(1) compatibility blocks.
2004-07-18 15:02:45 +00:00
Hye-Shik Chang
ca455e8bc9
Remove unused CNS-11643 mapping which shouldn't merged into main Python
...
yet.
2004-07-18 08:35:43 +00:00
Tim Peters
182b5aca27
Whitespace normalization, via reindent.py.
2004-07-18 06:16:08 +00:00
Tim Peters
91380d5f28
Repair MS compiler warning about signed-vs-unsigned mismatch. The plane
...
and width clearly don't need to be signed.
2004-07-18 04:34:33 +00:00
Tim Peters
7c7b3da46e
Added a comment explaining the extern ugliness.
2004-07-18 04:26:10 +00:00
Tim Peters
0f27166e6a
Changed the "predefinitions" of codec_list and mapping_list from static
...
to extern. It's not legal C to say
static whatever[];
because the size isn't given. Presumably this is a gcc extension.
2004-07-18 04:20:15 +00:00
Hye-Shik Chang
2bb146f2f4
Bring CJKCodecs 1.1 into trunk. This completely reorganizes source
...
and installed layouts to make maintenance simple and easy. And it
also adds four new codecs; big5hkscs, euc-jis-2004, shift-jis-2004
and iso2022-jp-2004.
2004-07-18 03:06:29 +00:00
Raymond Hettinger
67115a2b02
Apply VISIT macro.
2004-07-15 21:32:18 +00:00
Nicholas Bastin
9ba301e589
Moved SunPro warning suppression into pyport.h and out of individual
...
modules and objects.
2004-07-15 15:54:05 +00:00
Jack Jansen
59f072ad7c
Moved PyMac_GetScript() to _localemodule, which is the only place where
...
it is used, and made it private. Should fix #978662 .
2004-07-15 13:31:39 +00:00
Raymond Hettinger
58ed69b402
Exercise Jim's VISIT macro.
2004-07-15 05:32:47 +00:00
Hye-Shik Chang
69dc1c8f6a
Fix typo.
2004-07-15 04:30:25 +00:00
Jim Fulton
d15dc06df0
Implemented thread-local data as proposed on python-dev:
...
http://mail.python.org/pipermail/python-dev/2004-June/045785.html
2004-07-14 19:11:50 +00:00
Andrew M. Kuchling
b8e1717041
[Patch #947352 from Jason Andryuk] Add support for AF_PACKET hardware addresses
2004-07-10 23:39:35 +00:00
Brett Cannon
3e377decef
Change some declarations from `char * to const char *`. Also added
...
docstrings for decode and encode; accidentally were left out of the PyMethodDev
table.
2004-07-10 21:41:14 +00:00
Andrew M. Kuchling
27d3dda7f1
[Patch #909007 ] Enable a bunch of safe bug workarounds in OpenSSL, for compatibility with various broken SSL implementations out there.
2004-07-10 21:36:55 +00:00
Andrew M. Kuchling
9c3efe3ec6
[Patch #945642 ] Fix non-blocking SSL sockets, which blocked on reads/writes in Python 2.3.
...
(It turns out that the Debian unstable packaging of Python 2.3.4 includes this patch.)
Patch by Tino Lange.
2004-07-10 21:15:17 +00:00
Brett Cannon
3ffff2a270
Add comments at end of every #endif and fix ones already there when for closing
...
off #ifndef's.
2004-07-10 19:30:39 +00:00
Andrew M. Kuchling
42851ab490
[Patch #982665 ] add SO_EXCLUSIVEADDRUSE constant
2004-07-10 14:19:21 +00:00
Marc-André Lemburg
3f41974525
Add generic codecs.encode() and .decode() APIs that don't impose
...
any restriction on the return type (like unicode.encode() et al. do).
2004-07-10 12:06:10 +00:00
Brett Cannon
f6067ec336
Add an #ifdef __APPLE__ around typedef of foreachfunc to match Apple's
...
incorrect declaration for ypall_callback in /usr/include/rpcsvc/ypcInt.h .
Shouldn't hurt any code since the differences are unsigned long instead of int and
void * instead of char *. Removes warning about improper function pointer
assignment during compilation.
2004-07-10 00:57:37 +00:00
Neal Norwitz
37b0c1dbf4
Fix memory leak and bump the version per Greg
2004-07-09 23:33:06 +00:00
Neal Norwitz
b4a55813fe
Cleanup support for older pythons (perhaps it should be removed?)
2004-07-09 23:30:57 +00:00
Raymond Hettinger
a435c53e13
* balance the left/right search for getitem.
...
* use assertions instead of tests after internal calls that can't fail.
* expand test coverage
2004-07-09 04:10:20 +00:00
Michael W. Hudson
2384990603
PyThreadState_Swap(NULL) didn't do what I thought it did. Fixes
...
[ 987287 ] Python 2.4a1, interpreter hanging on Keyboard Interrupt
2004-07-08 15:28:26 +00:00
Michael W. Hudson
30ea2f223f
This closes patch:
...
[ 960406 ] unblock signals in threads
although the changes do not correspond exactly to any patch attached to
that report.
Non-main threads no longer have all signals masked.
A different interface to readline is used.
The handling of signals inside calls to PyOS_Readline is now rather
different.
These changes are all a bit scary! Review and cross-platform testing
much appreciated.
2004-07-07 17:44:12 +00:00
Andrew M. Kuchling
ea271f2d5e
[Bug #982806 ] The default argument for opening GDBM files is bogus. Patch #984672 by James Lamanna
2004-07-07 14:19:09 +00:00
Andrew MacIntyre
5a8b4593d3
OS/2 EMX needs addrinfo.h for code included from getaddrinfo.c
2004-07-07 14:02:59 +00:00
Fred Drake
0a4dd390bf
Make weak references subclassable:
...
- weakref.ref and weakref.ReferenceType will become aliases for each
other
- weakref.ref will be a modern, new-style class with proper __new__
and __init__ methods
- weakref.WeakValueDictionary will have a lighter memory footprint,
using a new weakref.ref subclass to associate the key with the
value, allowing us to have only a single object of overhead for each
dictionary entry (currently, there are 3 objects of overhead per
entry: a weakref to the value, a weakref to the dictionary, and a
function object used as a weakref callback; the weakref to the
dictionary could be avoided without this change)
- a new macro, PyWeakref_CheckRefExact(), will be added
- PyWeakref_CheckRef() will check for subclasses of weakref.ref
This closes SF patch #983019 .
2004-07-02 18:57:45 +00:00
Gregory P. Smith
19699a9351
Adds support for DB.pget and DBCursor.pget methods.
...
Based on a patch supplied by Ian Ward <ian@arevco.ca> on the pybsddb
mailing list 2004-03-26.
2004-06-28 04:06:49 +00:00
Gregory P. Smith
31c50659ea
Add weakref support to all bsddb.db objects.
...
Make DBTxn objects automatically call abort() in their destructor if
not yet finalized and raise a RuntimeWarning to that effect.
2004-06-28 01:20:40 +00:00
Barry Warsaw
11b91a0ea3
Added socket.getservbyport(), and make its second argument and that of
...
getservbyname() optional. Update the tests and the docs.
2004-06-28 00:50:43 +00:00
Gregory P. Smith
589c6abd1b
raise the module minor version.
2004-06-27 23:36:37 +00:00