summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make weak references subclassable:Fred Drake2004-07-028-109/+338
| | | | | | | | | | | | | | | | | | | | | | - weakref.ref and weakref.ReferenceType will become aliases for each other - weakref.ref will be a modern, new-style class with proper __new__ and __init__ methods - weakref.WeakValueDictionary will have a lighter memory footprint, using a new weakref.ref subclass to associate the key with the value, allowing us to have only a single object of overhead for each dictionary entry (currently, there are 3 objects of overhead per entry: a weakref to the value, a weakref to the dictionary, and a function object used as a weakref callback; the weakref to the dictionary could be avoided without this change) - a new macro, PyWeakref_CheckRefExact(), will be added - PyWeakref_CheckRef() will check for subclasses of weakref.ref This closes SF patch #983019.
* Update info about the windows build.Thomas Heller2004-07-021-3/+2
|
* SF #951851 fixed.Thomas Heller2004-07-021-0/+3
|
* When importing an extension on Windows, the code reads the PE 'importThomas Heller2004-07-021-0/+12
| | | | | | | | | | | | | | | | | | table' of the dll, to make sure that the dll really was build for the correct Python version. It does this by looking for an entry 'pythonXY.dll' (X.Y is the Python version number). The code now checks the size of the dll's import table before reading entries from it. Before this patch, the code crashed trying to read the import table when the size was zero (as in Win2k's wmi.dll, for example). Look for imports of 'pythonXY_d.dll' in a debug build instead of 'pythonXY.dll'. Fixes SF 951851: Crash when reading "import table" of certain windows dlls. Already backported to the 2.3 branch.
* Fix for SF 982215: bdist_wininst - Next button not greyed out during file copy.Thomas Heller2004-07-023-0/+8
| | | | | | | Patch from Mark Hammond. Recompiled binary. Already packported to the 2.3 branch.
* SF Bug #215126: Over restricted type checking on eval() functionRaymond Hettinger2004-07-029-31/+103
| | | | | | The builtin eval() function now accepts any mapping for the locals argument. Time sensitive steps guarded by PyDict_CheckExact() to keep from slowing down the normal case. My timings so no measurable impact.
* add cp866 rowSkip Montanaro2004-07-021-0/+4
|
* Change signatures for arguments to "s" and friends to be the proper ``constBrett Cannon2004-07-011-6/+6
| | | | | | | | char *`` instead of just ``char *``. Also added the mentioning of "const" in some places where it was left out even when the signature already stated the fact. Closes bug #980925.
* Committing Tim's patch for SF bug #983585:Fred Drake2004-07-011-2/+1
| | | | test_repr() fails with id() values that appear negative
* Document that encode() and decode() raise UnicodeErrorWalter Dörwald2004-07-011-5/+10
| | | | | | instead of ValueError. Add a note about error handling schemes added by PEP 293.
* link to the codecs page from the "".encode() description.Skip Montanaro2004-07-012-2/+3
|
* FixMichael W. Hudson2004-07-011-39/+44
| | | | | | | | [ 924301 ] A leak case with cmd.py & readline & exception by ensuring that the readline completion function is always reset even in the case of an exception being raised. As a bonus, this makes the documentation for pre & postloop accurate again.
* fix small consistency nitFred Drake2004-07-011-1/+1
|
* add omitted markupFred Drake2004-07-011-2/+3
|
* * Fix typos.Raymond Hettinger2004-07-011-14/+70
| | | | | * Format an example so that the identation is more obvious. * Add a section on the decimal module to the Brief Tour Part II.
* Move Decimal from the sandbox into production.Raymond Hettinger2004-07-011-0/+62
|
* Move Decimal from the sandbox into production.Raymond Hettinger2004-07-011-0/+1
|
* Move Decimal from the sandbox into production.Raymond Hettinger2004-07-0134-1/+27040
|
* use file() in preference to open()Skip Montanaro2004-06-301-3/+3
|
* tyopMichael W. Hudson2004-06-301-1/+1
|
* restore NEWS entry for 957240Michael W. Hudson2004-06-301-0/+3
|
* Check in the updated version of patch #957240, which doesn't relyMichael W. Hudson2004-06-302-17/+24
| | | | on the marshalling characteristics of infinities.
* fix handling when a proper getopt(1) is available; the "--"Fred Drake2004-06-291-0/+4
| | | | end-of-options marker wasn't recognized
* [Patch #974633] Check PyObject_MALLOC return for errorAndrew M. Kuchling2004-06-292-0/+5
|
* [Bug #948970] Add PyExc_* symbols to index.Andrew M. Kuchling2004-06-291-28/+28
| | | | | (I ran this through texcheck, but don't have LaTeX installed on this machine and therefore haven't verified that the changes are accepted by LaTeX.)
* [Bug #978556] Update SHA spec URL; bugfix candidateAndrew M. Kuchling2004-06-291-7/+5
|
* [Bug #912845] urllib2 only checks for a 200 return code, but 206 is also ↵Andrew M. Kuchling2004-06-291-2/+2
| | | | | | legal if a Range: header was supplied. (Actually, should the first 'if' statement be modified to allow any 2xx status code?)
* Remove unused import. (If it's there for some deep, dark reason, it should ↵Andrew M. Kuchling2004-06-291-1/+0
| | | | have been commented.)
* Add test case for bug #912845: requesting an HTTP byte range doesn't workAndrew M. Kuchling2004-06-291-6/+16
|
* Docstring grammar fixAndrew M. Kuchling2004-06-291-1/+1
|
* Add a missing space.Brett Cannon2004-06-291-1/+1
|
* Fix stupid mistake of forgetting to mention that the fix for bug #981299Brett Cannon2004-06-291-2/+2
| | | | entailed editing the urlparse module.
* rsync is now a recognized protocol that uses "netloc" (i.e. specifies a networkBrett Cannon2004-06-292-1/+4
| | | | | | location) in its addressing. Closes bug #981299.
* Changed applicable use of ``char *`` declarations that are passed intoBrett Cannon2004-06-291-6/+6
| | | | | | | | | PyArg_ParseTuple() to ``const char *`` to match the recommendation made in section 1.3 and to support better coding habits. Section 1.8 ("Keyword Parameters for Extension Functions") and it's coding example were not touched since it is stems from an accredited source and thus did not want to step on anyone's toes.
* Add readme.txtMartin v. Löwis2004-06-281-0/+3
|
* Patch from Mark Hammond to fix a test error.Raymond Hettinger2004-06-281-9/+12
| | | | Now runs without exception on WinME/98.
* Adds support for DB.pget and DBCursor.pget methods.Gregory P. Smith2004-06-283-3/+225
| | | | | Based on a patch supplied by Ian Ward <ian@arevco.ca> on the pybsddb mailing list 2004-03-26.
* Add weakref support to all bsddb.db objects.Gregory P. Smith2004-06-281-7/+127
| | | | | Make DBTxn objects automatically call abort() in their destructor if not yet finalized and raise a RuntimeWarning to that effect.
* Added socket.getservbyport(), and make its second argument and that ofBarry Warsaw2004-06-284-18/+73
| | | | getservbyname() optional. Update the tests and the docs.
* Add missing backslash for PyDateTimeAPI->Delta_FromDelta() macro.Brett Cannon2004-06-281-1/+1
|
* raise the module minor version.Gregory P. Smith2004-06-271-1/+1
|
* SF patch / bug #967763Gregory P. Smith2004-06-272-43/+85
| | | | | | | | | | | | Fix memory leaks revealed by valgrind and ensuing code inspection. In the existing test suite valgrind revealed two memory leaks (DB_get and DBC_set_range). Code inspection revealed that there were many other potential similar leaks (many on odd code error paths such as passing something other than a DBTxn object for a txn= parameter or in the face of an out of memory error). The most common case that would cause a leak was when using recno or queue format databases with integer keys, sometimes only with an exception exit.
* Add code for a range function that uses generators.Brett Cannon2004-06-271-42/+64
| | | | | | | | | Cleaned up existing code by abstracting code to parse arguments. Also removed any unneeded operations (such as calling 'int' on a division when using floor division also works). Fixed a bug where the values returned by OldStyleRange could be short by one value. Added more documentation. Testing code also has a basic sanity check.
* Fix SF bug # 897820 - we can no longer use the DB_TRUNCATE flag whenGregory P. Smith2004-06-271-6/+11
| | | | | | opening the DB to implement legacy interface flag='n' support as BerkeleyDB 4.2.52 no longer allows it in transaction protected environments. Do the os.unlink ourselves.
* sizeof(char) is 1, by definition, so get rid of that expression inTim Peters2004-06-272-17/+11
| | | | places it's just noise.
* Patch #923098: Share interned strings in marshal.Martin v. Löwis2004-06-276-31/+122
|
* Patch #966493: Cleanup generator/eval_frame exposure.Martin v. Löwis2004-06-275-18/+13
|
* Mention Py_RETURN_NONE when introducing the idiom of how to have a functionBrett Cannon2004-06-271-1/+2
| | | | return Py_None.
* * Silence a test failure that resulted when test_site was run byRaymond Hettinger2004-06-271-7/+10
| | | | | | | | | | regrtest.py after it ran test_frozen. This test was really only designed to be run immediately after startup. Afterwards, other modules could be loaded when had not been fixed-up by site.py Took the chicken way out and only tested those modules known to be imported by site.py. * Normalized whitespace.
* SF bug #980419: int left-shift causes memory leakRaymond Hettinger2004-06-261-4/+26
|