summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Bug #1473625: stop cPickle making float dumps locale dependent in protocol 0.Georg Brandl2006-04-301-1/+3
| | | | | On the way, add a decorator to test_support to facilitate running single test functions in different locales with automatic cleanup.
* Further changes for #1471883: Edit Misc/NEWS, andMartin v. Löwis2006-04-291-0/+19
| | | | add expat_config.h.
* Bug #1478429: make datetime.datetime.fromtimestamp accept every float,Georg Brandl2006-04-281-0/+7
| | | | possibly "rounding up" to the next whole second.
* Fix some warnings on Mac OS X 10.4Neal Norwitz2006-04-281-0/+4
|
* Fix build on MIPS for libffi. I haven't tested this yet because IHye-Shik Chang2006-04-263-2/+13
| | | | don't have an access on MIPS machines. Will be tested by buildbot. :)
* Patch from Aldo Cortesi (OpenBSD buildbot owner).Neal Norwitz2006-04-261-7/+14
| | | | | | | | | | 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.
* Fix compiler warnings on Darwin.Thomas Heller2006-04-251-5/+5
| | | | | Patch by Brett Canon, see https://sourceforge.net/tracker/?func=detail&atid=532156&aid=1475959&group_id=71702
* Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python usesThomas Wouters2006-04-251-0/+4
| | | | | | | | | MAXPATHLEN-sized buffers for various output-buffers (like to realpath()), and that's correct on BSD platforms, but not Linux (which uses PATH_MAX, and does not define MAXPATHLEN.) Cursory googling suggests Linux is following a newer standard than BSD, but in cases like this, who knows. Using the greater of PATH_MAX and 1024 as a fallback for MAXPATHLEN seems to be the most portable solution.
* Fix SF bug #1476111: SystemError in socket sendto. The AF_INET6 andThomas Wouters2006-04-251-0/+16
| | | | | | AF_PACKET cases in getsockaddrarg were missing their own checks for tuple-ness of the address argument, which means a confusing SystemError was raised by PyArg_ParseTuple instead.
* SF bug/patch #1433877: string parameter to ioctl not null terminatedThomas Wouters2006-04-251-5/+10
| | | | | | | The new char-array used in ioctl calls wasn't explicitly NUL-terminated; quite probably the cause for the test_pty failures on Solaris that we circumvented earlier. (I wasn't able to reproduce it with this patch, but it has been somewhat elusive to start with.)
* Updated the sqlite3 module to the external pysqlite 2.2.2 version.Gerhard Häring2006-04-2315-262/+229
|
* Patch 1471761 - test for broken poll at runtimeRonald Oussoren2006-04-231-17/+66
| | | | | This patch checks if poll is broken when the select module is loaded instead of doing so at configure-time. This functionality is only active on Mac OS X.
* Patch 1471925 - Weak linking support for OSXRonald Oussoren2006-04-233-2/+98
| | | | | | This patch causes several symbols in the socket and posix module to be weakly linked on OSX and disables usage of ftime on OSX. These changes make it possible to use a binary build on OSX 10.4 on a 10.3 system.
* Fix more ssize_t issues.Martin v. Löwis2006-04-222-4/+4
|
* Fix more ssize_t problems.Martin v. Löwis2006-04-223-8/+16
|
* Fix comment typoAndrew M. Kuchling2006-04-221-1/+1
|
* Merge in changes from ctypes 0.9.9.6 upstream version.Thomas Heller2006-04-219-99/+297
|
* Backport p3yk r45619:Hye-Shik Chang2006-04-211-4/+28
| | | | | | Add empty __init__ methods for stateful multibytecodec instances. This resolves a problem found by Thomas Wouters: http://mail.python.org/pipermail/python-dev/2006-April/064051.html
* This is a long-ago patch I submitted to SF (1100924) to time the gc passes.Skip Montanaro2006-04-211-0/+29
| | | | | Barry approved it awhile ago. Been sitting in my sandbox for awhile as well.
* Address issues brought up by MvL on python-checkins.Neal Norwitz2006-04-201-4/+4
| | | | | | | | | I tested this with valgrind on amd64. The man pages I found for diff architectures are inconsistent on this. I'm not entirely sure this change is correct for all architectures either. Perhaps we should just over-allocate and not worry about it?
* Whitespace, fix indentationNeal Norwitz2006-04-201-2/+1
|
* Correct implementation and documentation of os.confstr. Add a simple testSkip Montanaro2006-04-201-6/+9
| | | | case. I've yet to figure out how to provoke a None return I can test.
* SF Patch #1062014: AF_UNIX sockets under Linux have a specialArmin Rigo2006-04-191-6/+31
| | | | abstract namespace that is now fully supported.
* Rename remaining StgDictObject's ffi_type fields to ffi_type_pointer.Thomas Heller2006-04-181-3/+3
|
* C++ compiler cleanup: the typical few casts, and ... C++ didn't like thatSkip Montanaro2006-04-186-37/+42
| | | | | | the StgDictObject's ffi_type member had the same name as its type. I changed that to ffi_type_pointer. Feel free to change it to something else more meaningful, just not ffi_type.
* C++ compiler cleanup: a cast here, a cast there... still does not compile ↵Skip Montanaro2006-04-181-3/+4
| | | | under C++ though...
* C++ compiler cleanup: "typename" is a C++ keywordSkip Montanaro2006-04-181-11/+11
|
* Fix refcounting.Thomas Heller2006-04-181-0/+2
| | | | This makes 'import ctypes; reload(ctypes)' no longer leak reference counts.
* C++ compiler cleanup: proper castsSkip Montanaro2006-04-181-2/+2
|
* correct function signatureSkip Montanaro2006-04-181-1/+1
|
* reset errno before calling confstr - use confstr() doc to simplify checks ↵Skip Montanaro2006-04-181-7/+9
| | | | afterwards
* Remove unused fieldNeal Norwitz2006-04-171-1/+0
|
* No reason to export get_decomp_record, make staticNeal Norwitz2006-04-171-1/+1
|
* Initialize structseq types only once.Martin v. Löwis2006-04-167-17/+48
|
* Fix valgrind problem with invalid memory readNeal Norwitz2006-04-161-2/+1
|
* Fix memory leakNeal Norwitz2006-04-161-1/+5
|
* err is no longer usedNeal Norwitz2006-04-161-1/+1
|
* Add missing PyObject_GC_Track call, causing *some* itertools.tee objects toThomas Wouters2006-04-151-0/+1
| | | | | | | | | not be tracked by GC. This fixes 254 of test_generators' refleaks on my machine, but I'm sure something else will make them come back :> Not adding a separate test for this kind of cycle, since the existing fib/m235 already test them in more extensive ways than any 'minimal' test has been able to manage.
* Use Py_VISIT in all tp_traverse methods, instead of traversing manually orThomas Wouters2006-04-156-74/+38
| | | | | | | | using a custom, nearly-identical macro. This probably changes how some of these functions are compiled, which may result in fractionally slower (or faster) execution. Considering the nature of traversal, visiting much of the address space in unpredictable patterns, I'd argue the code readability and maintainability is well worth it ;P
* Fix for FreeBSD. Fixes http://python.org/sf/1470353.Thomas Heller2006-04-151-2/+2
| | | | Looks like a libffi bug.
* Remove partial change (don't edit, commit and think at the same time :P)Thomas Wouters2006-04-151-1/+0
|
* Re-instate backward compatibility by defining Py_CLEAR if it isn'tThomas Wouters2006-04-151-0/+14
| | | | available.
* Use Py_CLEAR instead of in-place DECREF/XDECREF or custom macros, forThomas Wouters2006-04-154-37/+24
| | | | tp_clear methods.
* Patch #1191065: Fix preprocessor problems on systems where recvfromMartin v. Löwis2006-04-151-6/+8
| | | | is a macro.
* Coverity-found bug: datetime_strptime() failed to check for NULL return fromThomas Wouters2006-04-141-0/+4
| | | | | | PySequence_GetItem of the time.strptime() result. Not a high probability bug, but not inconceivable either, considering people can provide their own 'time' module.
* Patch #1470300: Port _hotshot to QNX4.25 port.Martin v. Löwis2006-04-141-2/+2
|
* Patch #1324762: Change --with-cxx to --with-cxx-main.Martin v. Löwis2006-04-141-11/+0
|
* Add a test for Py_ssize_t. Correct typo in getargs.c.Georg Brandl2006-04-131-11/+21
|
* Replace INT_MAX with PY_SSIZE_T_MAX.Martin v. Löwis2006-04-131-1/+1
|
* Replace INT_MAX with PY_SSIZE_T_MAX.Martin v. Löwis2006-04-131-3/+3
|