Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Patch #1262036: Make tarfile name absolute. Fixes #1257255. | Martin v. Löwis | 2005-08-24 | 2 | -20/+9 |
| | | | | Will backport to 2.4. | ||||
* | Update the PC configuration and project files for sha256 and sha512. | Raymond Hettinger | 2005-08-24 | 3 | -4/+70 |
| | |||||
* | * Add a fast equality check path for frozensets where the hash value has | Raymond Hettinger | 2005-08-24 | 1 | -5/+8 |
| | | | | | already been computed. * Apply a GET_SIZE macro(). | ||||
* | Remove the C99 "ULL" suffix from the 64bit unsigned long constants. | Gregory P. Smith | 2005-08-23 | 1 | -99/+99 |
| | | | | | | | | | | | | | | | | VC++6 doesn't accept them. This *will* result in tons of the following warning from gcc 3.x: (gcc "2.96ish" doesn't issue this warning) warning: integer constant is too large for "long" type the code compiles fine regardless. squashing the gcc warnings is the next task. Would someone on windows please confirm that this does or does not compile and if it does or does not pass the test_hashlib.py unit tests. | ||||
* | Add a check for the OpenSSL version number to conditionally compile | Gregory P. Smith | 2005-08-23 | 1 | -11/+33 |
| | | | | | the _hashlibopenssl module (>= 0.9.7 required) and to not compile the sha256 and sha512 modules if OpenSSL >= 0.9.8 is found. | ||||
* | More tutorial nits. | Raymond Hettinger | 2005-08-23 | 1 | -9/+9 |
| | |||||
* | SF bug #1168135: Python 2.5a0 Tutorial errors and observations (Contributed ↵ | Raymond Hettinger | 2005-08-23 | 1 | -24/+25 |
| | | | | by Michael R Bax.) | ||||
* | SF bug #1168135: Python 2.5a0 Tutorial errors and observations | Raymond Hettinger | 2005-08-23 | 1 | -57/+65 |
| | | | | (Contributed by Michael R Bax.) | ||||
* | In an e-mail to the webmaster alias, some suggested adding this text. ↵ | Andrew M. Kuchling | 2005-08-23 | 1 | -0/+10 |
| | | | | Windows users, please correct/expand as necessary. | ||||
* | ord() documentation update; this is what remains applicable from | Fred Drake | 2005-08-23 | 1 | -4/+9 |
| | | | | | SF patch #1057588; other changes make the rest of the patch out of date or otherwise unnecessary | ||||
* | add note about "markupbase" not being intended for direct use | Fred Drake | 2005-08-23 | 1 | -1/+7 |
| | | | | (closes SF bug #736659, patch #901369) | ||||
* | Revert previous code elimination, 'filename' is needed. | Kurt B. Kaiser | 2005-08-23 | 1 | -2/+7 |
| | |||||
* | 1. Mac line endings were incorrect when pasting code from some browsers | Kurt B. Kaiser | 2005-08-23 | 2 | -7/+6 |
| | | | | | | | when using X11 and the Fink distribution. Python Bug 1263656. 2. Eliminate duplicated code in ScriptBinding.run_module_event() Modified Files: NEWS.txt ScriptBinding.py | ||||
* | Typo fixes | Andrew M. Kuchling | 2005-08-23 | 1 | -4/+4 |
| | |||||
* | Note various items; write some shorter sections | Andrew M. Kuchling | 2005-08-23 | 1 | -16/+96 |
| | |||||
* | bug [ 1266296 ] Mistakes in decimal.Context.subtract documentation | Georg Brandl | 2005-08-22 | 3 | -3/+3 |
| | |||||
* | whoops, missed adding this last night in my hashlib commit | Gregory P. Smith | 2005-08-22 | 1 | -0/+114 |
| | |||||
* | Bug #1266283: lexists() is not exported from os.path | Georg Brandl | 2005-08-22 | 5 | -11/+13 |
| | |||||
* | [ sf.net patch # 1121611 ] | Gregory P. Smith | 2005-08-21 | 21 | -51/+2587 |
| | | | | | | | | | A new hashlib module to replace the md5 and sha modules. It adds support for additional secure hashes such as SHA-256 and SHA-512. The hashlib module uses OpenSSL for fast platform optimized implementations of algorithms when available. The old md5 and sha modules still exist as wrappers around hashlib to preserve backwards compatibility. | ||||
* | Fix BZ2File.(x)readlines() for files without a newline. | Georg Brandl | 2005-08-21 | 3 | -9/+51 |
| | |||||
* | SF bug #1168135: Python 2.5a0 Tutorial errors and observations | Raymond Hettinger | 2005-08-21 | 1 | -16/+13 |
| | | | | (Contributed by Michael R Bax.) | ||||
* | Empty sets and frozensets are also false. | Georg Brandl | 2005-08-21 | 1 | -3/+3 |
| | |||||
* | SF bug #1121416: zip incorrectly and incompletely documented | Raymond Hettinger | 2005-08-21 | 1 | -4/+4 |
| | | | | sequences ==> iterables | ||||
* | SF bug #1249837: container methods raise KeyError not IndexError | Raymond Hettinger | 2005-08-21 | 1 | -0/+2 |
| | | | | Minor clarification. | ||||
* | SF bug #1242657: list(obj) can swallow KeyboardInterrupt | Raymond Hettinger | 2005-08-21 | 4 | -0/+31 |
| | | | | | | Fix over-aggressive PyErr_Clear(). The same code fragment appears in various guises in list.extend(), map(), filter(), zip(), and internally in PySequence_Tuple(). | ||||
* | Mention explicitly the False is considered false. | Georg Brandl | 2005-08-21 | 1 | -3/+3 |
| | |||||
* | Fix PySet_Pop() notes. | Raymond Hettinger | 2005-08-21 | 1 | -2/+1 |
| | |||||
* | Add info about the set API. | Raymond Hettinger | 2005-08-20 | 1 | -0/+19 |
| | |||||
* | Implement random.sample() using sets instead of dicts. | Raymond Hettinger | 2005-08-19 | 1 | -9/+13 |
| | |||||
* | Typo fix | Andrew M. Kuchling | 2005-08-18 | 1 | -1/+1 |
| | |||||
* | Fix markup. | Raymond Hettinger | 2005-08-18 | 1 | -1/+1 |
| | |||||
* | Fix typo (fixes SF bug #1263086). | Walter Dörwald | 2005-08-18 | 1 | -1/+1 |
| | |||||
* | Add shortcuts for a|a and a&a. | Raymond Hettinger | 2005-08-17 | 1 | -8/+9 |
| | |||||
* | Expand the API notes. | Raymond Hettinger | 2005-08-17 | 1 | -4/+5 |
| | |||||
* | Note that the PyNumber protocol can access most set methods directly. | Raymond Hettinger | 2005-08-17 | 1 | -3/+10 |
| | |||||
* | Fix nits. | Raymond Hettinger | 2005-08-17 | 1 | -2/+2 |
| | |||||
* | Results of a line-by-line comparison back to dictobject.c. | Raymond Hettinger | 2005-08-17 | 1 | -127/+121 |
| | | | | | | | | | | | | * set_merge() cannot assume that the table doesn't resize during iteration. * convert some unnecessary tests to asserts -- they were necessary in dictobject.c because PyDict_Next() is a public function. The same is not true for set_next(). * re-arrange the order of functions to more closely match the order in dictobject.c. This makes it must easier to compare the two and ought to simplify any issues of maintaining both. | ||||
* | Numerous fix-ups to C API and docs. Added tests for C API. | Raymond Hettinger | 2005-08-16 | 4 | -26/+148 |
| | |||||
* | DECREF --> XDECREF | Raymond Hettinger | 2005-08-16 | 1 | -1/+1 |
| | |||||
* | Add a C API for sets and frozensets. | Raymond Hettinger | 2005-08-16 | 5 | -12/+210 |
| | |||||
* | Port from the Python 2.4 branch, patches for SF bug # 900092, | Barry Warsaw | 2005-08-15 | 3 | -8/+18 |
| | | | | hotshot.stats.load. | ||||
* | Correct definition of ST_GEN_IDX. | Martin v. Löwis | 2005-08-14 | 1 | -2/+2 |
| | |||||
* | More function re-ordering (placing like functions together). | Raymond Hettinger | 2005-08-13 | 1 | -86/+86 |
| | |||||
* | * Bring lookkey() and lookkey_string() closer to dict version. | Raymond Hettinger | 2005-08-13 | 1 | -93/+77 |
| | | | | | * Use set_next() for looping in issubset() and frozenset_hash(). * Re-order the presentation of cmp and hash functions. | ||||
* | Fix a too-aggressive assert (see SF#1257960). Previously, gen_iternext | Phillip J. Eby | 2005-08-13 | 1 | -1/+1 |
| | | | | | | | | | was never called during interpreter shutdown GC, so the f_back!=NULL assertion was correct. Now that generators get close()d during GC, the assertion was being triggered because the generator close() was being called as the top-level frame. However, nothing actually is broken by this; it's just that the condition was unexpected in previous Python versions. | ||||
* | Teach the sets module to correctly compute s-=s and s^=s as the empty set. | Raymond Hettinger | 2005-08-13 | 2 | -0/+17 |
| | |||||
* | Fix pystack command. | Neil Schemenauer | 2005-08-13 | 1 | -1/+1 |
| | |||||
* | * Fix SF #1257731. Make __contains__(), remove(), and discard() only do | Raymond Hettinger | 2005-08-12 | 1 | -0/+13 |
| | | | | | | | a frozenset conversion when the initial search attempt fails with a TypeError and the key is some type of set. Add a testcase. * Eliminate a duplicate if-stmt. | ||||
* | * Fix SF #1257731. Make __contains__(), remove(), and discard() only do | Raymond Hettinger | 2005-08-12 | 1 | -26/+30 |
| | | | | | | | a frozenset conversion when the initial search attempt fails with a TypeError and the key is some type of set. Add a testcase. * Eliminate a duplicate if-stmt. | ||||
* | Change the %s format specifier for str objects so that it returns a | Neil Schemenauer | 2005-08-12 | 5 | -17/+42 |
| | | | | | unicode instance if the argument is not an instance of basestring and calling __str__ on the argument returns a unicode instance. |