Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Coverity found bug: test result of PyTuple_New() against NULL before use. | Thomas Wouters | 2006-03-07 | 1 | -6/+6 |
| | | | | Will backport. | ||||
* | Coverity found refleak: need to free 'v' after calling Tkinter_Error(). | Thomas Wouters | 2006-03-07 | 1 | -2/+5 |
| | | | | Will backport to release24. | ||||
* | Coverity-found bug: don't use temp->next *before* checking it for NULL. Also | Thomas Wouters | 2006-03-07 | 1 | -2/+4 |
| | | | | return rather than use it again. | ||||
* | Bug #1432525: os.listdir now releases the GIL while calling | Georg Brandl | 2006-03-07 | 1 | -3/+15 |
| | | | | readdir(). | ||||
* | Change int to Py_ssize_t in several places. | Martin v. Löwis | 2006-03-07 | 1 | -4/+4 |
| | | | | | Add (int) casts to silence compiler warnings. Raise Python exceptions for overflows. | ||||
* | Don't DECREF a borrowed reference. | Thomas Wouters | 2006-03-07 | 1 | -1/+0 |
| | |||||
* | SF patch #1443865; gc.get_count() added and optional argument 'generation' | Barry Warsaw | 2006-03-07 | 1 | -5/+34 |
| | | | | | | added to gc.collect(). Updated docs, unit test, and NEWS entry. (Also, fixed a typo in NEWS.) | ||||
* | Thanks to Coverity, these were all reported by their Prevent tool. | Neal Norwitz | 2006-03-07 | 5 | -2/+12 |
| | | | | | All of these (except _lsprof.c) should be backported. Particularly the hotshot change which validates sys.path. Can someone backport? | ||||
* | Fix warnings on x86 (32-bit) and support Win64. | Neal Norwitz | 2006-03-06 | 1 | -2/+15 |
| | |||||
* | Check NULL if Py_InitModule fails. | Hye-Shik Chang | 2006-03-06 | 1 | -1/+2 |
| | |||||
* | Make PyGC_Collect() use Py_ssize_t. | Neal Norwitz | 2006-03-04 | 1 | -11/+11 |
| | |||||
* | - Modernize code to use Py_ssize_t more intensively. | Hye-Shik Chang | 2006-03-04 | 18 | -168/+131 |
| | | | | - Do some minor code clean-ups. | ||||
* | Explain why we use the unsigned int format for a signed int variable. | Thomas Wouters | 2006-03-02 | 1 | -0/+4 |
| | | | | (Should 'code' be cast to the right pointer type?) | ||||
* | Properly fix Py_SAFE_DOWNCAST-triggerd bugs. | Thomas Wouters | 2006-03-02 | 1 | -7/+10 |
| | |||||
* | Py_SAFE_DOWNCAST isn't quite doing the right thing for going from Py_ssize_t | Thomas Wouters | 2006-03-02 | 1 | -7/+4 |
| | | | | | | to an unsigned int (and back again) on 64-bit machines, even though the actual value of the Py_ssize_t variable is way below 31 bits. I suspect compiler-error. | ||||
* | Make Py_ssize_t-clean | Thomas Wouters | 2006-03-02 | 1 | -2/+4 |
| | |||||
* | Remove UNLESS. | Martin v. Löwis | 2006-03-01 | 1 | -29/+28 |
| | |||||
* | Use Py_ssize_t for arithmetic on Py_ssize_t's, instead of unsigned ints. | Thomas Wouters | 2006-03-01 | 1 | -2/+2 |
| | |||||
* | Fix gcc (4.0.x) warning about use of uninitialized variable. | Thomas Wouters | 2006-03-01 | 1 | -0/+1 |
| | |||||
* | Patch #1440601: Add col_offset attribute to AST nodes. | Martin v. Löwis | 2006-03-01 | 1 | -1/+1 |
| | |||||
* | Rework channelnumber/samplesize detetion code's output variables a bit to | Thomas Wouters | 2006-03-01 | 2 | -14/+12 |
| | | | | | convince gcc (4.0.x) the variables are never used uninitialized (and raising a proper exception if they ever are.) | ||||
* | Silence gcc (4.0.x) warning about use of uninitialized value. | Thomas Wouters | 2006-03-01 | 1 | -1/+1 |
| | |||||
* | Fix brainfart. | Thomas Wouters | 2006-03-01 | 1 | -1/+1 |
| | |||||
* | Remove gcc (4.0.x) warning about uninitialized value by explicitly setting | Thomas Wouters | 2006-03-01 | 1 | -2/+1 |
| | | | | | | | the sentinel value in the main function, rather than the helper. This function could possibly do with an early-out if any of the helper calls ends up with a len of 0, but I doubt it really matters (how common are malformed hangul syllables, really?) | ||||
* | Make Py_ssize_t-clean. | Thomas Wouters | 2006-03-01 | 1 | -8/+13 |
| | |||||
* | Make Py_ssize_t-clean. | Thomas Wouters | 2006-03-01 | 1 | -17/+18 |
| | |||||
* | Change GC refcount to Py_ssize_t. | Martin v. Löwis | 2006-03-01 | 1 | -1/+1 |
| | |||||
* | Repair mangled code in the Windows flavor of | Tim Peters | 2006-03-01 | 1 | -2/+1 |
| | | | | | | | | | | | posix__getfullpathname(). In partial answer to the now-deleted XXX comment: /* XXX(twouters) Why use 'et#' here at all? insize isn't used */ `insize` is an input parameter too, and it was left uninitialized, leading to seemingly random failures. | ||||
* | Py_ssize_t-ify. | Thomas Wouters | 2006-03-01 | 1 | -5/+10 |
| | |||||
* | Fix DBEnv's set_tx_timestamp wrapper to be slightly more correct on | Thomas Wouters | 2006-03-01 | 1 | -4/+5 |
| | | | | | | | | | non-32bit platforms. Will still only allow 32 bits in a timestamp on Win64, but at least it won't crash, and it'll work right on platforms where longs are big enough to contain time_t's. (A better-working, although conceptually less-right fix would have been to use Py_ssize_t here, but Martin and Tim won't let me.) | ||||
* | Updates to the with-statement: | Guido van Rossum | 2006-02-28 | 1 | -0/+36 |
| | | | | | | | | | | | | | | | | - New semantics for __exit__() -- it must re-raise the exception if type is not None; the with-statement itself doesn't do this. (See the updated PEP for motivation.) - Added context managers to: - file - thread.LockType - threading.{Lock,RLock,Condition,Semaphore,BoundedSemaphore} - decimal.Context - Added contextlib.py, which defines @contextmanager, nested(), closing(). - Unit tests all around; bot no docs yet. | ||||
* | Another bit of unconstification. | Tim Peters | 2006-02-28 | 1 | -1/+1 |
| | |||||
* | SF patch #1438387, PEP 328: relative and absolute imports. | Thomas Wouters | 2006-02-28 | 1 | -13/+28 |
| | | | | | | | | | | | | | | | | | | | | | | | - IMPORT_NAME takes an extra argument from the stack: the relativeness of the import. Only passed to __import__ when it's not -1. - __import__() takes an optional 5th argument for the same thing; it __defaults to -1 (old semantics: try relative, then absolute) - 'from . import name' imports name (be it module or regular attribute) from the current module's *package*. Likewise, 'from .module import name' will import name from a sibling to the current module. - Importing from outside a package is not allowed; 'from . import sys' in a toplevel module will not work, nor will 'from .. import sys' in a (single-level) package. - 'from __future__ import absolute_import' will turn on the new semantics for import and from-import: imports will be absolute, except for from-import with dots. Includes tests for regular imports and importhooks, parser changes and a NEWS item, but no compiler-package changes or documentation changes. | ||||
* | unconst. | Martin v. Löwis | 2006-02-27 | 1 | -2/+2 |
| | |||||
* | Convert array.array.insert to use Py_ssize_t (like the rest already does.) | Thomas Wouters | 2006-02-27 | 1 | -2/+2 |
| | |||||
* | More unconsting. | Martin v. Löwis | 2006-02-27 | 9 | -62/+56 |
| | |||||
* | unconst. | Martin v. Löwis | 2006-02-27 | 1 | -9/+9 |
| | |||||
* | Revert backwards-incompatible const changes. | Martin v. Löwis | 2006-02-27 | 12 | -30/+30 |
| | |||||
* | Update for PEP 308 patch. | Thomas Wouters | 2006-02-27 | 1 | -3/+54 |
| | |||||
* | Create _ast module. | Martin v. Löwis | 2006-02-27 | 1 | -0/+4 |
| | | | | Cleanup Python-ast.c generation. | ||||
* | - Patch 1433928: | Guido van Rossum | 2006-02-25 | 1 | -1/+265 |
| | | | | | | | | - The copy module now "copies" function objects (as atomic objects). - dict.__getitem__ now looks for a __missing__ hook before raising KeyError. - Added a new type, defaultdict, to the collections module. This uses the new __missing__ hook behavior added to dict (see above). | ||||
* | Fix typo in functional module | Georg Brandl | 2006-02-21 | 1 | -2/+2 |
| | |||||
* | NETLINK_TCPDIAG and NETLINK_NFLOG aren't defined on older Linux | Guido van Rossum | 2006-02-21 | 1 | -0/+4 |
| | | | | systems; define these conditionally. | ||||
* | Patch #931938: prevent setting sys.prefix to "" | Georg Brandl | 2006-02-20 | 1 | -0/+6 |
| | |||||
* | Bug #854823: socketmodule now builds on Sun platforms even when | Georg Brandl | 2006-02-20 | 1 | -2/+2 |
| | | | | INET_ADDRSTRLEN is not defined. | ||||
* | Fix a build problem introduced by r42230. | Hye-Shik Chang | 2006-02-19 | 1 | -1/+1 |
| | |||||
* | Remove two instances of trailing commas. Resolves patch #1209781. | Georg Brandl | 2006-02-19 | 2 | -2/+2 |
| | |||||
* | Patch #1352711: make zipimport raise a complete IOError | Georg Brandl | 2006-02-19 | 1 | -2/+1 |
| | |||||
* | Remove unused variable | Neal Norwitz | 2006-02-18 | 1 | -1/+0 |
| | |||||
* | Patch #1393157: os.startfile() now has an optional argument to specify | Georg Brandl | 2006-02-18 | 1 | -7/+14 |
| | | | | a "command verb" to invoke on the file. |