summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update general copyright years to 2006.Georg Brandl2006-02-117-7/+8
|
* Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.Martin v. Löwis2006-02-113-0/+14
| | | | Proposed by Tim Peters.
* Explain the clearing of the stack in a comment in Python/ceval.c'sThomas Wouters2006-02-101-1/+2
| | | | | call_function(), rather than commenting on the lack of an explanation in a comment.
* One more mod for support of C++ classes.Jack Jansen2006-02-101-1/+1
|
* Avoid linking python with readline.Martin v. Löwis2006-02-102-1/+11
|
* For overriding C++ methods we also need to know whether a parameterJack Jansen2006-02-104-22/+45
| | | | is an output parameter or not. Added support for that.
* The default timer unit was incorrectly measured in milliseconds insteadArmin Rigo2006-02-101-3/+3
| | | | | of seconds, producing numbers 1000 times too large. It would be nice to write a test for this, but how... (thanks mwh)
* Added information on function name added to LogRecord, and the 'extra' ↵Vinay Sajip2006-02-091-13/+96
| | | | keyword parameter.
* Added function name to LogRecord.Vinay Sajip2006-02-091-5/+8
|
* Propagate exceptions from shutdown() if raiseExceptions is not set.Vinay Sajip2006-02-091-6/+14
| | | | Added 'extra' keyword argument handling to logging calls, as discussed on python-dev.
* Added lock acquisition/release around shared data structure manipulationVinay Sajip2006-02-091-19/+34
|
* Be a little less sensitive to failures. Only check for the result fromNeal Norwitz2006-02-091-1/+1
| | | | | | regrtest.py. If we grep for just "fail", that finds bsddb deadlock messages, which presumably are just warnings. They don't cause a test failure.
* Add doc discussing how AST compiler is structured and designed.Brett Cannon2006-02-091-0/+507
| | | | | It is out of date, though, thanks to lacking info on the arena API. It also should eventually be removed in favor of updating PEP 339.
* Port relevant patches for SF 1409455 to the trunk for email 3.0/Python 2.5.Barry Warsaw2006-02-085-8/+20
| | | | Will port to Python 2.4.
* Added the cProfile module.Armin Rigo2006-02-0814-109/+1701
| | | | | | | | | | | | | | | | | | | | | | | Based on lsprof (patch #1212837) by Brett Rosen and Ted Czotter. With further editing by Michael Hudson and myself. History in svn repo: http://codespeak.net/svn/user/arigo/hack/misc/lsprof * Module/_lsprof.c is the internal C module, Lib/cProfile.py a wrapper. * pstats.py updated to display cProfile's caller/callee timings if available. * setup.py and NEWS updated. * documentation updates in the profiler section: - explain the differences between the three profilers that we have now - profile and cProfile can use a unified documentation, like (c)Pickle - mention that hotshot is "for specialized usage" now - removed references to the "old profiler" that no longer exists * test updates: - extended test_profile to cover delicate cases like recursion - added tests for the caller/callee displays - added test_cProfile, performing the same tests for cProfile * TO-DO: - cProfile gives a nicer name to built-in, particularly built-in methods, which could be backported to profile. - not tested on Windows recently!
* Update projected release dateAndrew M. Kuchling2006-02-081-1/+2
|
* Fixed an oversight and a misunderstanding of PEP253:Jack Jansen2006-02-071-2/+20
| | | | | | | | | - Call tp_dealloc on the static baseclass, not dynamic (which leads to infinite loops with more than one baseclass) - Call tp_new and tp_init on baseclasses (overridable) -This line, and those below, will be ignored-- M bgen/bgenObjectDefinition.py
* Removed defensive test in Handler.closeVinay Sajip2006-02-071-4/+3
|
* Saved and restored logging._handlerList at the same time as saving/restoring ↵Vinay Sajip2006-02-071-0/+4
| | | | logging._handlers.
* Add versionadded note for new methodsNeal Norwitz2006-02-071-0/+2
|
* Bug #876637, prevent stack corruption when socket descriptorNeal Norwitz2006-02-073-2/+48
| | | | | | | | | | | | | | | | | | is larger than FD_SETSIZE. This can only be acheived with ulimit -n SOME_NUMBER_BIGGER_THAN_FD_SETSIZE which is typically only available to root. Since this wouldn't normally be run in a test (ie, run as root), it doesn't seem too worthwhile to add a normal test. The bug report has one version of a test. I've written another. Not sure what the best thing to do is. Do the check before calling internal_select() because we can't set an error in between Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS. This seemed the clearest solution, ie handle before calling internal_select() rather than inside. Plus there is at least one place outside of internal_select() that needed to be handled. Will backport.
* Fix indentation (whitespace only).Neal Norwitz2006-02-071-3/+3
|
* Check return results for errorsNeal Norwitz2006-02-071-0/+5
|
* Patch #1412872: zipfile: use correct system type on unixy systems.Martin v. Löwis2006-02-052-2/+9
|
* Get test_logging to not hang when running under regrtest.py -R ::Neal Norwitz2006-02-052-5/+6
| | | | | | | | | | | | | | Not sure why/how _handlers/_handlerList is out of sync. This could indicate a deeper problem. In test_logging, the only absolutely necessary change to get working was tcpserver.abort = 1. But we don't want to wait infinitely to join the threads, so give a 2.0 second timeout. There doesn't appear to be a need for a local abort variable in serve_until_stopped, so just use the instance member. Note the problem is only on HEAD, not in 2.4.
* Patch #1407135, bug #1424041, make mmap.mmap(-1, length) work the sameNeal Norwitz2006-02-055-13/+68
| | | | | | | | | | | on both Unix (SVR4 and BSD) and Windows. Restores behaviour of passing -1 for anonymous memory on Unix. Use MAP_ANONYMOUS instead of _ANON since the latter is deprecated according to Linux (gentoo) man pages. Should we continue to allow mmap.mmap(0, length) to work on Windows? 0 is a valid fd. Will backport bugfix portions.
* Whitespace normalizationNeal Norwitz2006-02-051-2/+2
|
* Use C-style commentNeal Norwitz2006-02-051-1/+1
|
* Resolves SF bug #1423972.Barry Warsaw2006-02-041-2/+4
|
* SF bug 1415455, fix typo in module nameNeal Norwitz2006-02-041-1/+1
|
* Patch #1422385: Changes to nis module to support multiple NIS domainsMartin v. Löwis2006-02-044-26/+101
|
* Fix typoNeal Norwitz2006-02-041-1/+1
|
* Drop C library for stat/fstat on Windows.Martin v. Löwis2006-02-032-117/+250
|
* parsedate_tz(): Minor cleanup.Barry Warsaw2006-02-032-3/+11
| | | | | Port from Python 2.3/email 2.5: Add a test for the tm_yday field is 1 in the return of parsedate().
* SF patch #1421726Fredrik Lundh2006-02-021-1/+1
| | | | fixed typo in language reference
* As discussed on python-dev, silence three gcc-4.0.x warnings, using assert()Thomas Wouters2006-02-011-2/+9
| | | | | | | | | | | to protect against actual uninitialized usage. Objects/longobject.c: In function ‘PyLong_AsDouble’: Objects/longobject.c:655: warning: ‘e’ may be used uninitialized in this function Objects/longobject.c: In function ‘long_true_divide’: Objects/longobject.c:2263: warning: ‘aexp’ may be used uninitialized in this function Objects/longobject.c:2263: warning: ‘bexp’ may be used uninitialized in this function
* Patch #1413711: Certain patterns of differences were making difflibGustavo Niemeyer2006-01-313-17/+34
| | | | | touch the recursion limit. The applied patch inlines the recursive __helper method in a non-recursive way.
* Fix typo.Martin v. Löwis2006-01-301-1/+1
|
* maintain support for older python versions in this module so that itGregory P. Smith2006-01-301-0/+16
| | | | is ok for a standalone pybsddb source dist for use with <= 2.3.
* fix test import for use in standalone pybsddb project bsddb3 module as wellGregory P. Smith2006-01-291-1/+6
| | | | as python builtin bsddb.
* Whitespace normalization.Tim Peters2006-01-291-1/+1
|
* Try a number of ports, in case 9020 is already in use.Martin v. Löwis2006-01-291-3/+14
|
* Explicitly close the server socket.Martin v. Löwis2006-01-291-0/+2
|
* add bsddb.db.DBEnv.set_tx_timestamp mentionGregory P. Smith2006-01-291-0/+2
|
* Delete aclocal.m4, and require autoconf 2.59, fixingMartin v. Löwis2006-01-293-123/+162
| | | | #811160 in a different way.
* Work around a Solaris peculiarity that caused test_pty to sometimes fail: aThomas Wouters2006-01-281-1/+8
| | | | | | | | | tty opened by os.openpty() isn't always a tty according to os.isatty(), when it's tested inside the process that opened it. Doesn't affect actual functionality, as using a tty this way is rarely, if ever, useful. Ignoring the failure allows the test for actual functionality to continue. Will backport to 2.4-maint.
* Improved handling of syntax errors.Jeremy Hylton2006-01-274-36/+314
| | | | | | | | | | | | | | | | | Expand set of errors caught in set_context(). Some new errors, some old error messages changed for consistency. Fixed error checking in generator expression code. The first set of tests were impossible condition given the grammar. In general, the ast code uses REQ() for those sanity checks. Fix some error handling for augmented assignments. As comments in the code explain, set_context() ought to work here, but I got unexpected crashes when I tried it. Should come back to this. Add note to Grammar that yield expression is a special case. Add doctest cases for SyntaxErrors raised by ast.c.
* Add wrapper for DBEnv.set_tx_timeout method to allow time based DB_RECOVERGregory P. Smith2006-01-272-0/+5
| | | | (test cases and dbobj wrapping)
* Add wrapper for DBEnv.set_tx_timeout method to allow time based DB_RECOVERGregory P. Smith2006-01-271-3/+18
|
* Fix PyGC_Collect() to be exported from the built DLL on Windows. (Fix givenBarry Warsaw2006-01-261-1/+1
| | | | by Matt Messier).