Tim Peters
c285e62d76
Repair idiot typo, and complete the job of trying to
...
use the Windows time.clock() implementation on Win64.
2006-05-25 22:25:25 +00:00
Brett Cannon
4c803f1c81
Move over to use of METH_O and METH_NOARGS.
2006-05-25 22:00:14 +00:00
Bob Ippolito
45c6472f99
Add missing files from x86 darwin ctypes patch
2006-05-25 21:58:05 +00:00
Tim Peters
7a822dabad
Some Win64 pre-release in 2000 didn't support
...
QueryPerformanceCounter(), but we believe Win64 does
support it now. So use in time.clock().
It would be peachy if someone with a Win64 box tried
this ;-)
2006-05-25 21:50:17 +00:00
Ronald Oussoren
f5bc414334
Fix minor typo in prep_cif.c
2006-05-25 21:30:54 +00:00
Bob Ippolito
964e02a901
fix test_float regression and 64-bit size mismatch issue
2006-05-25 21:09:45 +00:00
Bob Ippolito
66c0935d67
enable darwin/x86 support for libffi and hence ctypes (doesn't yet support --enable-universalsdk)
2006-05-25 19:59:56 +00:00
Bob Ippolito
a99865b12e
Use faster struct pack/unpack functions for the endian table that matches the host's
2006-05-25 19:56:56 +00:00
Bob Ippolito
04ab994dca
Use LONG_MIN and LONG_MAX to check Python integer bounds instead of the incorrect INT_MIN and INT_MAX
2006-05-25 19:33:38 +00:00
Georg Brandl
684fd0c8ec
Replace PyObject_CallFunction calls with only object args
...
with PyObject_CallFunctionObjArgs, which is 30% faster.
2006-05-25 19:15:31 +00:00
Bob Ippolito
3b0cae9cc0
fix a struct regression where long would be returned for short unsigned integers
2006-05-25 19:15:27 +00:00
Bob Ippolito
3fc2bb9ccd
Fix Cygwin compiler issue
2006-05-25 19:03:19 +00:00
Bob Ippolito
94f68ee8ba
Struct now unpacks to PY_LONG_LONG directly when possible, also include #ifdef'ed out code that will return int instead of long when in bounds (not active since it's an API and doc change)
2006-05-25 18:44:50 +00:00
Bob Ippolito
eb62127842
refactor unpack, add unpack_from
2006-05-24 15:32:06 +00:00
Bob Ippolito
07c023b10e
fix typo in _struct
2006-05-23 19:32:25 +00:00
Bob Ippolito
d3611eb3c6
forward declaration for PyStructType
2006-05-23 19:31:23 +00:00
Bob Ippolito
4de3f998bf
fix linking issue, warnings, in struct
2006-05-23 19:25:52 +00:00
Bob Ippolito
232f3c91f9
patch #1493701 : performance enhancements for struct module
2006-05-23 19:12:41 +00:00
Bob Ippolito
7ccc95a315
patch #1493701 : performance enhancements for struct module
2006-05-23 19:11:34 +00:00
Bob Ippolito
27abce5ba8
revert #1493701
2006-05-23 19:09:51 +00:00
Bob Ippolito
fb8b84af54
Patch #1493701 : performance enhancements for struct module.
2006-05-23 18:46:41 +00:00
Martin v. Löwis
a43190bc78
Patch #1492356 : Port to Windows CE (patch set 1).
2006-05-22 09:15:18 +00:00
Georg Brandl
378d592617
Patch #1490224 : set time.altzone correctly on Cygwin.
2006-05-17 14:26:50 +00:00
Georg Brandl
9e5b5e4fe1
Fix typo in os.utime docstring (patch #1490189 )
2006-05-17 14:18:20 +00:00
Tim Peters
402cc242f0
PyZlib_copy(), PyZlib_uncopy(): Repair leaks on the normal-case path.
2006-05-17 01:30:11 +00:00
Georg Brandl
8d3342b489
Patch #1435422 : zlib's compress and decompress objects now have a
...
copy() method.
2006-05-16 07:38:27 +00:00
Martin v. Löwis
5f5d99c215
- Test for sys/statvfs.h before including it, as statvfs is present
...
on some OSX installation, but its header file is not.
Will backport to 2.4
2006-05-16 07:05:37 +00:00
Martin v. Löwis
e3edaea33d
Fix memory leak.
2006-05-15 05:51:36 +00:00
Tim Peters
375f06b175
Remove lie in new comment.
2006-05-13 23:33:19 +00:00
Tim Peters
8931ff1f67
Teach PyString_FromFormat, PyErr_Format, and PyString_FromFormatV
...
about "%u", "%lu" and "%zu" formats.
Since PyString_FromFormat and PyErr_Format have exactly the same rules
(both inherited from PyString_FromFormatV), it would be good if someone
with more LaTeX Fu changed one of them to just point to the other.
Their docs were way out of synch before this patch, and I just did a
mass copy+paste to repair that.
Not a backport candidate (this is a new feature).
2006-05-13 23:28:20 +00:00
Martin v. Löwis
77c176d5b5
Fix alignment error on Itanium.
2006-05-12 17:22:04 +00:00
Martin v. Löwis
682b1bb95f
Dynamically allocate path name buffer for Unicode
...
path name in listdir. Fixes #1431582 .
Stop overallocating MAX_PATH characters for ANSI
path names. Stop assigning to errno.
2006-05-12 12:27:28 +00:00
Neal Norwitz
38e3b7d2d3
Don't mask a no memory error with a less meaningful one as discussed on python-checkins
2006-05-11 07:51:59 +00:00
Neal Norwitz
c6a989ac3a
Fix problems found by Coverity.
...
longobject.c: also fix an ssize_t problem
<a> could have been NULL, so hoist the size calc to not use <a>.
_ssl.c: under fail: self is DECREF'd, but it would have been NULL.
_elementtree.c: delete self if there was an error.
_csv.c: I'm not sure if lineterminator could have been anything other than
a string. However, other string method calls are checked, so check this
one too.
2006-05-10 06:57:58 +00:00
Martin v. Löwis
9f485bcd68
Add missing PyMem_Free.
2006-05-08 05:25:56 +00:00
Martin v. Löwis
d4e3bb3d39
Port access, chmod, parts of getcwdu, mkdir, and utime to direct Win32 API.
2006-05-06 16:32:54 +00:00
Thomas Heller
9b83fc67ea
Clean up.
2006-05-05 19:14:24 +00:00
Thomas Heller
21a929f5ab
Export the 'free' standard C function for use in the test suite.
2006-05-05 18:42:14 +00:00
Martin v. Löwis
4fc2bda8d9
Drop now-unnecessary arguments to posix_2str.
2006-05-04 12:04:27 +00:00
Martin v. Löwis
8e0d494e41
Implement os.{chdir,rename,rmdir,remove} using Win32 directly.
2006-05-04 10:08:42 +00:00
Guido van Rossum
da5b701aee
Get rid of __context__, per the latest changes to PEP 343 and python-dev
...
discussion.
There are two places of documentation that still mention __context__:
Doc/lib/libstdtypes.tex -- I wasn't quite sure how to rewrite that without
spending a whole lot of time thinking about it; and whatsnew, which Andrew
usually likes to change himself.
2006-05-02 19:47:52 +00:00
Neal Norwitz
9652baaf44
Fix breakage from patch 1471883 (r45800 & r45808) on OSF/1.
...
The problem was that pyconfig.h was being included before some system headers
which caused redefinitions and other breakage. This moves system headers
after expat_config.h which includes pyconfig.h.
2006-05-02 07:27:47 +00:00
Martin v. Löwis
8672519ac0
Work around deadlock risk. Will backport.
2006-05-01 06:28:01 +00:00
Georg Brandl
de9b624fb9
Bug #1473625 : stop cPickle making float dumps locale dependent in protocol 0.
...
On the way, add a decorator to test_support to facilitate running single
test functions in different locales with automatic cleanup.
2006-04-30 11:13:56 +00:00
Martin v. Löwis
b75d43d374
Further changes for #1471883 : Edit Misc/NEWS, and
...
add expat_config.h.
2006-04-29 12:37:25 +00:00
Georg Brandl
6d78a582ec
Bug #1478429 : make datetime.datetime.fromtimestamp accept every float,
...
possibly "rounding up" to the next whole second.
2006-04-28 19:09:24 +00:00
Neal Norwitz
82d4cc27c6
Fix some warnings on Mac OS X 10.4
2006-04-28 05:28:05 +00:00
Hye-Shik Chang
f4795c82df
Fix build on MIPS for libffi. I haven't tested this yet because I
...
don't have an access on MIPS machines. Will be tested by buildbot. :)
2006-04-26 19:20:26 +00:00
Neal Norwitz
57a0361a9e
Patch from Aldo Cortesi (OpenBSD buildbot owner).
...
After the patch (45590) to add extra debug stats to the gc module, Python
was crashing on OpenBSD due to:
Fatal Python error: Interpreter not initialized (version mismatch?)
This seems to occur due to calling collect() when initialized (in pythonrun.c)
is set to 0. Now, the import will occur in the init function which
shouldn't suffer this problem.
2006-04-26 05:34:03 +00:00
Thomas Heller
4e1777de63
Fix compiler warnings on Darwin.
...
Patch by Brett Canon, see
https://sourceforge.net/tracker/?func=detail&atid=532156&aid=1475959&group_id=71702
2006-04-25 18:26:08 +00:00