Fredrik Lundh
0149e3a090
Fixed None reference leaks in TreeBuilder class (reported by Neal
...
Norwitz)
2005-12-18 13:58:25 +00:00
Neal Norwitz
8856fb750b
SF Patch #1365916 , mmap fails on AMD64
...
Fix some 64-bit issues due to mismatch format characters w/actual data types
2005-12-18 03:34:22 +00:00
Barry Warsaw
2a38a86c1c
Expose Subversion revision number (calculated via "svnversion .") to Python.
...
Add C API function Py_GetBuildNumber(), add it to the interactive prompt
banner (i.e. Py_GetBuildInfo()), and add it as the sys.build_number
attribute. The build number is a string instead of an int because it may
contain a trailing 'M' if there are local modifications.
2005-12-18 01:27:35 +00:00
Fredrik Lundh
b80775ecf1
Fixed reference counting error when using the entity dictionary
...
(reported by Chris Olds). Backported from the 1.0.6 development
branch.
2005-12-17 08:33:21 +00:00
Fredrik Lundh
6d52b55c56
updating to cElementTree 1.0.5 (step 3 of 3)
2005-12-16 22:06:43 +00:00
Fredrik Lundh
8c8836b406
updating to cElementTree 1.0.5 (step 2 of 3)
2005-12-16 22:06:06 +00:00
Fredrik Lundh
7cfe6eee0d
updating to cElementTree 1.0.5
2005-12-16 22:05:40 +00:00
Fredrik Lundh
c97ba7064e
added PSG licensing blurb
2005-12-14 22:30:36 +00:00
Fredrik Lundh
14b4feac6a
renamed to _elementtree (for Python 2.5)
2005-12-14 21:46:41 +00:00
Fredrik Lundh
0c53bfd374
copied cElementTree 1.0.4 to Modules
2005-12-14 21:45:58 +00:00
Armin Rigo
5c8cc2543b
Added the 'ULL' prefix to the unsigned long long literal constants.
...
Supresses numerous pages of compiler warnings.
2005-12-14 18:05:44 +00:00
Fredrik Lundh
cc117dbb9d
moved magic into structure (mainly to simplify the client code)
...
added missing API hooks
2005-12-13 21:55:36 +00:00
Fredrik Lundh
d7a42881db
renamed dispatch -> capi to match other CAPI implementations
...
(e.g. cStringIO, ucnhash, etc)
2005-12-13 20:43:04 +00:00
Fredrik Lundh
c3345040df
added cobject-based expat dispatch mechanism to pyexpat
2005-12-13 19:49:55 +00:00
Hye-Shik Chang
c5c57e6d98
Bug #1290333 : Added a workaround for cjkcodecs' _codecs_cn module
...
build problem on AIX.
2005-12-12 11:48:32 +00:00
Jeremy Hylton
af68c874a6
Add const to several API functions that take char *.
...
In C++, it's an error to pass a string literal to a char* function
without a const_cast(). Rather than require every C++ extension
module to put a cast around string literals, fix the API to state the
const-ness.
I focused on parts of the API where people usually pass literals:
PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type
slots, etc. Predictably, there were a large set of functions that
needed to be fixed as a result of these changes. The most pervasive
change was to make the keyword args list passed to
PyArg_ParseTupleAndKewords() to be a const char *kwlist[].
One cast was required as a result of the changes: A type object
mallocs the memory for its tp_doc slot and later frees it.
PyTypeObject says that tp_doc is const char *; but if the type was
created by type_new(), we know it is safe to cast to char *.
2005-12-10 18:50:16 +00:00
Armin Rigo
de5f05f3b1
Nobody on python-dev seemed particularly bothered that Hotshot generates half-
...
meaningless numbers, but I figured out I would fix that bug anyway.
2005-12-06 14:07:39 +00:00
Georg Brandl
a13c2446dc
Bug #869197 : setgroups rejects long integer argument
2005-11-22 19:30:31 +00:00
Andrew M. Kuchling
bb7e800506
[Patch #1350573 ] zlib.crc32 doesn't handle 0xffffffff seed. Add tests and bugfix. Bug reported by John Schmidt; bugfix by Danny Yoo.
2005-11-22 15:32:28 +00:00
Fred Drake
f5b7fd2239
update busted comment
2005-11-11 19:34:56 +00:00
Armin Rigo
f4afb21526
similar to SF bug 847019: a quick check in the time() constructor, which
...
accepts strings only for unpickling reasons. This check prevents the honest
mistake of passing a string like '2:59.0' to time() and getting an insane
object.
2005-11-07 07:15:48 +00:00
Neal Norwitz
0f46bbf781
Bug #1346533 , select.poll() doesn't raise an error if timeout > sys.maxint
...
Need to check return result of PyInt_AsLong()
Will backport.
2005-11-03 05:00:25 +00:00
Walter Dörwald
9fd115cb63
Whitespace cleanup.
2005-11-02 08:30:08 +00:00
Neal Norwitz
6eac2005bf
Cleanup the previous checkin.
...
Close the fd in the close method and invalidated it. Don't try
to close a second time when deallocating.
2005-11-02 05:36:37 +00:00
Neal Norwitz
7b631793ab
Bug #1344508 , Fix UNIX mmap leaking file descriptors. Will backport.
2005-11-02 05:26:07 +00:00
Martin v. Löwis
ab0f947a21
Remove .cvsignore files, as they live in svn:ignore
...
properties now.
2005-10-30 22:01:41 +00:00
Jeremy Hylton
ec97a28b60
Fix a bunch of imports to use code.h instead of compile.h.
...
Remove duplicate declarations from compile.h
2005-10-21 14:58:06 +00:00
Jeremy Hylton
3e0055f8c6
Merge ast-branch to head
...
This change implements a new bytecode compiler, based on a
transformation of the parse tree to an abstract syntax defined in
Parser/Python.asdl.
The compiler implementation is not complete, but it is in stable
enough shape to run the entire test suite excepting two disabled
tests.
2005-10-20 19:59:25 +00:00
Neal Norwitz
8456235088
Get bsddb module to compile with version 3.2 of BSD DB.
2005-10-20 04:30:15 +00:00
Hye-Shik Chang
331649acc7
Change the internal "undefined codepoint" mark for CJKCodecs decoders
...
from U+FFFD to U+FFFE which is considered more appropriate. (from
MAL's comment)
2005-10-06 15:51:59 +00:00
Raymond Hettinger
cc9a951f35
SF #1313496 : bisect C replacement doesn't accept named args
2005-10-05 11:39:12 +00:00
Neal Norwitz
a45770d6d0
SF Bug # 941346, AIX shared library fix
...
Since I can't test this, I'm just adding a comment. If we get access
to AIX boxes, we can test this and really resolve. Anyone from IBM
want to offer help?
Backport candidate I suppose.
2005-10-03 03:57:09 +00:00
Neal Norwitz
11bd119226
SF bug #887946 , segfault if redirecting directory
...
Also provide a warning if a directory is passed on the command line.
Add minimal command line test.
Will backport.
2005-10-03 00:54:56 +00:00
Neal Norwitz
484d9a409a
Patch #1309009 , Fix segfault in pyexpat when the XML document is
...
in latin_1, but Python incorrectly assumes it is in UTF-8 format
Will backport.
2005-09-30 04:46:49 +00:00
Georg Brandl
e677adc43a
Fix parse errors in readline module when compiling without threads.
2005-09-29 13:40:49 +00:00
Georg Brandl
e9f8ec98d4
Commit memory leaking fix.
2005-09-25 06:16:40 +00:00
Raymond Hettinger
6b27cda643
Convert iterator __len__() methods to a private API.
2005-09-24 21:23:05 +00:00
Hye-Shik Chang
9ceebd5445
Patch #1288833 : Removed thread lock from socket.getaddrinfo on
...
FreeBSD 5.3 and later versions which got thread-safe getaddrinfo(3).
(Reported by Maxim Sobolev)
2005-09-24 14:58:47 +00:00
Michael W. Hudson
10402a306f
Patches #1298449 and #1298499 : Add some missing checks for error
...
returns in cStringIO.c. Thanks to Andrew Bennetts.
This must be a backport candidate.
2005-09-22 09:19:01 +00:00
Neal Norwitz
058bde1944
SF Patch #1297028 , cjkcodecs does not initialize type pointer
...
Fix segfault. I tried to write a test, but it wouldn't crash
when running regrtest. This really should have some sort of test.
Should definitely be backported.
2005-09-21 06:44:25 +00:00
Armin Rigo
335ffe88bb
C89 compliance.
2005-09-20 19:04:02 +00:00
Neal Norwitz
3efd0a1e86
Remove unnecessary/extra parens when returning a value.
2005-09-19 06:45:53 +00:00
Neal Norwitz
24b3c22985
Forward port fixes for problems reported by valgrind
2005-09-19 06:43:44 +00:00
Martin v. Löwis
8b291e2d66
Patch #1213831 : Fix typo in unicodedata._getcode.
...
Will backport to Python 2.4.
2005-09-18 08:17:56 +00:00
Brett Cannon
bd9c3f7028
Change type on variable to silence gcc 4 warning. Call signature was found at
...
http://darwinsource.opendarwin.org/10.4.2/dyld-43.1/src/dyldAPIs.cpp .
2005-09-16 02:43:35 +00:00
Georg Brandl
402b53d43f
bug [ 1007046 ] os.startfile() doesn't accept Unicode filenames
2005-09-14 20:51:40 +00:00
Guido van Rossum
8ee3e5aa93
- Changes donated by Elemental Security to make it work on AIX 5.3
...
with IBM's 64-bit compiler (SF patch #1284289 ). This also closes SF
bug #105470 : test_pwd fails on 64bit system (Opteron).
2005-09-14 18:09:42 +00:00
Georg Brandl
a8bcecc872
bug [ 1274069 ] bz2module.c compiler warning
2005-09-03 07:49:53 +00:00
Walter Dörwald
a47d1c08d0
SF bug #1251300 : On UCS-4 builds the "unicode-internal" codec will now complain
...
about illegal code points. The codec now supports PEP 293 style error handlers.
(This is a variant of the Nik Haldimann's patch that detects truncated data)
2005-08-30 10:23:14 +00:00
Raymond Hettinger
b3f55f4a70
SF bug #1072182 : bad arg type to isspace in struct module
2005-08-26 08:39:56 +00:00