summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add PY_SSIZE_T_MIN/MAX to _testcapi.Georg Brandl2006-04-131-0/+2
|
* C++ compiler changes. casts, rename variables with reserved names.Anthony Baxter2006-04-133-32/+32
|
* Support NFD of very long strings.Martin v. Löwis2006-04-131-3/+3
|
* whoops. missed one in an auto-generated file. another extern "C" {} for C++ ↵Anthony Baxter2006-04-131-0/+10
| | | | compiler compatibility
* spread the extern "C" { } magic pixie dust around. Python itself builds nowAnthony Baxter2006-04-133-0/+29
| | | | | using a C++ compiler. Still lots and lots of errors in the modules built by setup.py, and a bunch of warnings from g++ in the core.
* Fix for a bug found by Armin Rigo, plus test.Thomas Heller2006-04-121-1/+1
| | | | https://sourceforge.net/tracker/?func=detail&atid=532154&aid=1467852&group_id=71702
* Off-by-one buffer overflow error.Armin Rigo2006-04-121-1/+1
|
* Update for new grammarNeal Norwitz2006-04-121-4/+4
|
* remove forward declarations. No constructors to move for these files. MakesAnthony Baxter2006-04-122-6/+1
| | | | code work with C++ compilers.
* Move constructors, add some casts to make C++ compiler happy. Still a problemAnthony Baxter2006-04-121-202/+201
| | | | with the getstring() results in pattern_subx. Will come back to that.
* remove forward declarations, move constructor functions. makes code C++ safe.Anthony Baxter2006-04-121-43/+42
|
* Some more changes to make code compile under a C++ compiler.Anthony Baxter2006-04-114-9/+10
|
* Clear errno before calling opendir() and readdir().Georg Brandl2006-04-111-0/+1
|
* Bug #1467952: os.listdir() now correctly raises an error if readdir()Georg Brandl2006-04-111-0/+6
| | | | fails with an error condition.
* SF Patch #1463867: Improved generator finalization to allow generatorsPhillip J. Eby2006-04-101-1/+5
| | | | | | | | that are suspended outside of any try/except/finally blocks to be garbage collected even if they are part of a cycle. Generators that suspend inside of an active try/except or try/finally block (including those created by a ``with`` statement) are still not GC-able if they are part of a cycle, however.
* Fix warning about ptsname not being a prototype on Solaris. Is this ↵Neal Norwitz2006-04-101-1/+1
| | | | prototype even necessary anymore?
* Get rid of warnings about using chars as subscriptsNeal Norwitz2006-04-102-3/+3
| | | | on Alpha (and possibly other platforms) by using Py_CHARMASK().
* Fix some warnings on HP-UX when using cc/aCCNeal Norwitz2006-04-103-6/+4
|
* Fix problem (not checking return result) reported by CoverityNeal Norwitz2006-04-091-1/+4
|