summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Undo Barry's change. This file is not imported, it's fed as input toGuido van Rossum2002-08-292-15/+15
| | | | | | the tokenize module by test_tokenize.py. The FutureWarnings only appeared during installation, and I've figured out a way to suppress those in a different way.
* Suppress warnings when byte-compiling the installed library modules.Guido van Rossum2002-08-291-3/+4
| | | | This seems the sanest thing to do.
* Restore the hex/oct constant tests that Barry commented out for fearGuido van Rossum2002-08-291-2/+9
| | | | of FutureWarnings. Added a comment explaining the situation.
* complex() was the only numeric constructor that created a new instanceRaymond Hettinger2002-08-292-0/+13
| | | | when given its own type as an argument.
* Fixed three exceptions in the Plain integers test, although I'm notBarry Warsaw2002-08-291-3/+3
| | | | | | | | | | | sure these are the best fixes. - Test maxint-1 against the negative octal constant -020000000000 - Comment out the tests for oct -1 and hex -1, since 037777777777 and 0xffffffff raise FutureWarnings now and in Python 2.4 those constants will produce positive values, not negative values. So the existing test seems to test something that won't be true in 2.4.
* The test_tokenize output has changed slightly, by the addition of someBarry Warsaw2002-08-291-12/+12
| | | | trailing `L's.
* Distutils-based script by Bill Fancher to download the Python documentationJack Jansen2002-08-281-0/+166
| | | | | | HTML tarball and use it to create a documentation tree readable and searchable with Apple Help Viewer. The documentation also shows up in Project Builder (if you add Python.framework to your project).
* - Install a symlink to the documentation (which lives in the framework)Jack Jansen2002-08-283-3/+14
| | | | | | in Python.app, and refer to it in Info.plist. This makes Apple Help Viewer recognize the Python documentation. - Changed the externally visible name of Python.app to "Python" (was PythonW).
* Distutils-based script by Bill Fancher to download the Python documentationJack Jansen2002-08-281-0/+1
| | | | | | HTML tarball and use it to create a documentation tree readable and searchable with Apple Help Viewer. The documentation also shows up in Project Builder (if you add Python.framework to your project).
* This file never made it to the repository, somehow.Jack Jansen2002-08-281-0/+28
|
* These were regenerated some time ago (with ascii chars only andJack Jansen2002-08-286-59/+61
| | | | fully qualified imports) but somehow not checked in yet.
* Interface to Apple Help Viewer.Jack Jansen2002-08-282-0/+7
|
* Quite down some FutureWarnings.Barry Warsaw2002-08-282-6/+6
|
* add warning about exception messagesSkip Montanaro2002-08-281-0/+7
|
* Note change in behavior from 1.5.2. The new argument to NameError isRaymond Hettinger2002-08-271-2/+2
| | | | | | an error message and not just the missing name. Closes SF Bug 599869.
* Whitespace normalization.Barry Warsaw2002-08-271-1/+1
|
* TypoBarry Warsaw2002-08-271-1/+1
|
* execfile should call PyErr_SetFromErrnoWithFilename instead ofPeter Schneider-Kamp2002-08-271-1/+1
| | | | | | simply PyErr_SetFromErrno This closes bug 599163.
* Add strong security warning about the rexec module.Fred Drake2002-08-271-5/+17
| | | | | | Closes SF patch #600861. Minor markup changes.
* Don't use tempfile.mktemp(), since it produces annoying warnings, andFred Drake2002-08-271-5/+6
| | | | usually isn't what we want anyway.
* Fix a couple of whitespace consistency nits.Fred Drake2002-08-261-2/+2
|
* Simplify, and avoid PyModule_GetDict() while we're at it.Fred Drake2002-08-261-5/+2
|
* Fix an inaccuracy in the commentBarry Warsaw2002-08-261-2/+2
|
* Gave intersection_update a speed boost.Tim Peters2002-08-261-3/+1
|
* Gave issubet() and issuperset() major speed boosts. That's it for now!Tim Peters2002-08-251-2/+4
| | | | Someone else may want to tackle the mutating operations similarly.
* Gave __sub__/difference a factor of 2-5 speed boost.Tim Peters2002-08-251-1/+2
|
* Gave __xor__/symmetric_difference a factor of 2-5 speed boost.Tim Peters2002-08-251-4/+6
|
* Sped union by a factor of 3-4.Tim Peters2002-08-251-1/+2
|
* Sped intersection by large factors (3-5x faster than before on sets ofTim Peters2002-08-251-7/+2
| | | | cardinality 500; and the smaller the intersection, the bigger the speedup).
* Added a clue about why xyz_update isn't the same as __xyz__.Tim Peters2002-08-251-1/+4
|
* Implemented <, <=, >, >= for sets, giving subset and proper-subsetTim Peters2002-08-253-12/+45
| | | | | | meanings. I did not add new, e.g., ispropersubset() methods; we're going nuts on those, and, e.g., there was no "friendly name" for == either.
* TestSubset(): Generalized the framework to support testing upcomingTim Peters2002-08-251-10/+23
| | | | <, <=, etc methods too.
* Rewrote all remaining assert stmts.Tim Peters2002-08-251-30/+30
|
* Simplified construction of the test suite.Tim Peters2002-08-251-21/+23
|
* Simplified code building sets of characters.Tim Peters2002-08-251-5/+5
|
* Ack! Virtually every test here relied on an assert stmt. assert stmtsTim Peters2002-08-251-60/+60
| | | | should never be used in tests. Repaired dozens, but more is needed.
* Simplified the setup for is-subset testing.Tim Peters2002-08-251-25/+20
|
* Record a clue about why __or__ is not union, etc.Tim Peters2002-08-251-0/+5
|
* Replace 0 with False to match working in documentation. SF 599681.Raymond Hettinger2002-08-251-2/+2
|
* Correct documentation of allow_reuse_address to match the actual script.Raymond Hettinger2002-08-251-1/+1
| | | | Closes SF bug 599681.
* 1. Revert subprocess environment clearing, will restart subprocessKurt B. Kaiser2002-08-253-39/+17
| | | | | | | | | | instead. 2. Preserve the Idle client's listening socket for reuse with the fresh subprocess. 3. Remove some unused rpc code, comment out additional unused code. Modified Files: ScriptBinding.py rpc.py run.py
* Improve exception handling across rpc interfaceKurt B. Kaiser2002-08-241-1/+4
| | | | | Modified Files: rpc.py
* Removed < <= > >= from the API. Implemented as comparisons of theRaymond Hettinger2002-08-243-23/+5
| | | | | | | | underlying dictionaries, there were no reasonable use cases (lexicographic sorting of a list of sets is somewhat esoteric). Frees the operators for other uses (such as strict subset and superset comparisons). Updated documentation and test suite accordingly.
* string_contains(): speed up by avoiding function calls whereGuido van Rossum2002-08-241-9/+12
| | | | | | possible. This always called PyUnicode_Check() and PyString_Check(), at least one of which would call PyType_IsSubtype(). Also, this would call PyString_Size() on known string objects.
* Speed up the most egregious "if token in (long tuple)" cases by usingGuido van Rossum2002-08-241-10/+19
| | | | | a dict instead. (Alas, using a Set would be slower instead of faster.)
* Speedup for PyObject_IsTrue(): check for True and False first.Guido van Rossum2002-08-241-0/+4
| | | | | Because all built-in tests return bools now, this is the most common path!
* At Tim Peter's suggestion, propagated GvR's binary operator changes toRaymond Hettinger2002-08-242-8/+48
| | | | | | | | | | | | the inplace operators. The strategy is to have the operator overloading code do the work and then to define equivalent method calls which rely on the operators. The changes facilitate proper application of TypeError and NonImplementedErrors. Added corresponding tests to the test suite to make sure both the operator and method call versions get exercised. Add missing tests for difference_update().
* Speedup for PyObject_RichCompareBool(): PyObject_RichCompare() almostGuido van Rossum2002-08-241-1/+4
| | | | | always returns a bool, so avoid calling PyObject_IsTrue() in that case.
* Since instances of _TemporarilyImmutableSet are always thrown awayRaymond Hettinger2002-08-241-5/+1
| | | | | | immediately after the comparison, there in no use in caching the hashcode. The test, 'if self._hashcode is None', never fails. Removing the caching saves a few lines and a little time.
* Expanded tests for sets of sets.Raymond Hettinger2002-08-241-0/+4
|