summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Patch #671459: Invoke import hooks in Py_NewInterpreter.Martin v. Löwis2003-01-221-0/+1
|
* "Premature" doc changes, for new astimezone() rules, and the newTim Peters2003-01-223-60/+180
| | | | | | | | | tzinfo.fromutc() method. The C code doesn't implement any of this yet (well, not the C code on the machine I'm using now), nor does the test suite reflect it. The Python datetime.py implementation and test suite in the sandbox do match these doc changes. The C implementation probably won't catch up before Thursday (Wednesday is a scheduled "black hole" day this week <0.4 wink>).
* SF patch #667730: More DictMixinRaymond Hettinger2003-01-221-2/+4
| | | | | | Sebastien Keim pointed out that iterkeys and __contains__ require their own definitions so their behavior will update when the underlying method is subclassed.
* Make Alt-Key-2 the Zoom Height binding for ClassBrowser and PathBrowser,Kurt B. Kaiser2003-01-221-2/+2
| | | | consistent with the Edit/Shell windows.
* M Bindings.pyKurt B. Kaiser2003-01-224-24/+34
| | | | | | | | | | | | | M PyShell.py M config-keys.def M configHandler.py 1. Clear any un-entered characters from input line before printing the restart boundary. 2. Restore the Debug menu: There are now both Shell and Debug menus. 3. Add Control-F6 keybinding to Restart Shell. 4. Clarify PyShell.cancel_check() comment. 5. Update doc string for Bindings.py and re-format the file slightly.
* Added DepracationWarnings to the old Standard File calls.Jack Jansen2003-01-211-0/+9
|
* Tuples and lists don't have a copy() method (yet?).Jack Jansen2003-01-211-1/+1
|
* Avoid usage of PyDoc_STR in 2.2 compatibility code.Martin v. Löwis2003-01-211-1/+1
|
* Fix from Vinaj for the "writing to closed file" errors. SF 670390.Guido van Rossum2003-01-212-11/+14
|
* ossaudiodev.c currently gives compilation errors, and Greg doesn't fixGuido van Rossum2003-01-211-2/+3
| | | | it, so disable the build for now.
* SF bug 671779: Error in tzinfo.dst() docsTim Peters2003-01-211-2/+2
| | | | tzinfo dst() should return timedelta(0) if DST is not effect, not 0.
* Implemented StandardGetFile and friends with the new EasyDialogs fileJack Jansen2003-01-211-96/+20
| | | | dialogs.
* Oops, this file wasn't 8-bit-clean yet. Fixed.Jack Jansen2003-01-211-3/+3
|
* Fixed typo in package name that went unnoticed because of MacOSX's ↵Jack Jansen2003-01-211-1/+1
| | | | | | case-insensitive filenames.
* Spell out the arguments to AskFileForOpen and friends, so help() gives usefulJack Jansen2003-01-211-45/+100
| | | | help.
* Fix example in a docstring to not use 'file' as a variable nameAndrew M. Kuchling2003-01-211-2/+2
|
* Use new file dialogs in GetArgv()Jack Jansen2003-01-211-11/+10
|
* Compile site-packages with -t, not -tt.Jack Jansen2003-01-211-2/+8
|
* Conditionalize features not found in PyXML 1.95.2.Martin v. Löwis2003-01-211-0/+15
|
* Merge with PyXML 1.71:Martin v. Löwis2003-01-211-16/+136
| | | | | | | | | | | | | | | | | | | | | | 60: Added support for the SkippedEntityHandler, new in Expat 1.95.4. 61: Added support for namespace prefixes, which can be enabled by setting the "namespace_prefixes" attribute on the parser object. 65: Disable profiling changes for Python 2.0 and 2.1. 66: Update pyexpat to export the Expat 1.95.5 XML_GetFeatureList() information, and tighten up a type declaration now that Expat is using an incomplete type rather than a void * for the XML_Parser type. 67: Clarified a comment. Added support for XML_UseForeignDTD(), new in Expat 1.95.5. 68: Refactor to avoid partial duplication of the code to construct an ExpatError instance, and actually conform to the API for the exception instance as well. 69: Remove some spurious trailing whitespace. Add a special external-entity-ref handler that gets installed once a handler has raised a Python exception; this can cancel actual parsing earlier if there's an external entity reference in the input data after the the Python excpetion has been raised. 70: Untabify APPEND. 71: Backport PyMODINIT_FUNC for 2.2 and earlier.
* Don't use Posix semaphores on Solaris 8. Fixes #662787.Martin v. Löwis2003-01-214-2/+20
|
* 1. Restore the rest of Python IDLE setup.py Rev 1.4 (Python SF 634078)Kurt B. Kaiser2003-01-211-4/+7
| | | | | | (Loewis) which uses 'SRCDIR' (if available) in package dir path. 2. Merge Python IDLE setup.py Rev 1.5 (Loewis) to allow installation from the build directory. IDLEfork SF Patch 668998 (Loewis)
* flesh out open() docstringSkip Montanaro2003-01-211-1/+7
|
* more tweaksSkip Montanaro2003-01-211-13/+16
|
* * document open() functionSkip Montanaro2003-01-211-27/+41
| | | | | * promote the example and the documented restrictions to \subsection status * document the flag parameter of the DbfilenameShelf class
* New rule for tzinfo subclasses handling both standard and daylight time:Tim Peters2003-01-204-73/+68
| | | | | | | | | | | | When daylight time ends, an hour repeats on the local clock (for example, in US Eastern, the clock jumps from 1:59 back to 1:00 again). Times in the repeated hour are ambiguous. A tzinfo subclass that wants to play with astimezone() needs to treat times in the repeated hour as being standard time. astimezone() previously required that such times be treated as daylight time. There seems no killer argument either way, but Guido wants the standard-time version, and it does seem easier the new way to code both American (local-time based) and European (UTC-based) switch rules, and the astimezone() implementation is simpler.
* Recursive compare machinery: The code that intended to exempt tuplesTim Peters2003-01-201-9/+14
| | | | | | | | | | | | was broken because new-in-2.3 code added a tp_as_mapping slot to tuples. Repaired that. Added basic docs to check_recursion(). The code that intended to exempt tuples and strings was also broken here, and in 2.2: these should use PyXYZ_CheckExact(), not PyXYZ_Check() -- we can't know whether subclass instances are immutable. This part (and this part alone) is a bugfix candidate.
* On MacOSX, added -prebind option to link phase for executable (andJack Jansen2003-01-203-3/+13
| | | | framework, if applicable). This speeds up startup time by up to 50%.
* Fix bug #670845: cut & clear in the output window now work, in thatJust van Rossum2003-01-201-0/+6
| | | | | - clear clears the entire buffer - cut doesn't cut, but copies.
* ...and the old pyclbr.py faked Function instances with Class instancesKurt B. Kaiser2003-01-201-1/+4
| | | | | which had empty method and super attributes. ClassBrowser.IsExpandable() could not handle the missing attributes. SF Bug 667787.
* Add comments and remove duplicate tests.Walter Dörwald2003-01-201-26/+34
|
* Install email/test, email/test/data and bsddb/test subdirectories.Barry Warsaw2003-01-201-1/+2
|
* Port test_userdict.py to PyUnit. From SF patch #662807,Walter Dörwald2003-01-191-193/+233
| | | | with additional tests for setdefault(), pop() and popitem().
* Added a convenience routine pathname() which accepts either a string, unicode,Jack Jansen2003-01-192-3/+37
| | | | FSSpec or FSRef object and returns an 8-bit pathname (utf8 encoded).
* Sigh, due to sloppiness on my part bgen has become pretty mixed up wrt. tabsJack Jansen2003-01-1913-2168/+2168
| | | | and spaces. Detabbed the lot.
* Port test_unicode.py to PyUnit and add tests for errorWalter Dörwald2003-01-192-872/+1039
| | | | | | cases and a few methods. This increases code coverage in Objects/unicodeobject.c from 81% to 85%. (From SF patch #662807)
* Combine test_b1.py and test_b2.py into test_builtin.py,Walter Dörwald2003-01-194-1104/+1075
| | | | | | | | port the tests to PyUnit and add many tests for error cases. This increases code coverage in Python/bltinmodule.c from 75% to 92%. (From SF patch #662807, with assert_(not fcmp(x, y)) replaced with assertAlmostEqual(x, y) where possible)
* SF # 669553, fix memory (ref) leaksNeal Norwitz2003-01-192-14/+33
| | | | Will backport.
* Fix typoRaymond Hettinger2003-01-191-1/+1
|
* SF patch #634557: inspect.BlockFinder didn't do a good enough job findingRaymond Hettinger2003-01-191-0/+2
| | | | | | the end of code blocks. Patch contributed by Patrick O'Brien.
* SF patch #634866: Alex Martelli's corrections to the ref manual.Raymond Hettinger2003-01-193-48/+101
| | | | | Backport candidate. All but one or two of these changes are applicable to 2.2.2.
* SF patch #670367: Micro-optimizations for ceval.cRaymond Hettinger2003-01-191-18/+13
| | | | | | | | | | | | | | | | | | | | Make the code slightly shorter, faster, and easier to read. * Eliminate unused DUP_TOPX code for x==1. compile.c always generates DUP_TOP instead. * Since only two cases remain for DUP_TOPX, replace the switch-case with if-elseif. * The in-lined integer compare does a CheckExact on both arguments. Since the second is a little more likely to fail, test it first. * The switch-case for IS/IS_NOT and IN/NOT_IN can separate the regular and inverted cases with no additional work. For all four paths, saves a test and jump.
* Windows flavor of floatsleep(): folded long lines, introduced a tempTim Peters2003-01-191-12/+17
| | | | var for clarity.
* SF patch 670194: Performance enhancement for _strptime.py.Tim Peters2003-01-191-20/+36
| | | | | From Brett Cannon. Mostly speedups via caching format string -> compiled regexp.
* SF bug #668906: class browser raises AttributeErrorRaymond Hettinger2003-01-191-1/+1
| | | | | | | | The Py2.3 updates to the pyclbr module return both Class and Function objects. The IDLE ClassBrowser module only knew about Class and could not handle objects which did not define "super". Fixed by adding a guard.
* SF bug #670229: doc improvement for cStringIO.hRaymond Hettinger2003-01-191-5/+12
| | | | Gernot Hillier added more detail to the internal API documentation.
* SF patch #670423: Add missing identity tests to operator.cRaymond Hettinger2003-01-184-3/+49
|
* SF bug #668906: class browser raises AttributeErrorRaymond Hettinger2003-01-181-1/+1
| | | | | | | | The Py2.3 updates to the pyclbr module return both Class and Function objects. The IDLE ClassBrowser module only knew about Class and could not handle objects which did not define "super". Fixed by adding a guard.
* SF patch 670012: Compatibility changes for _strptime.py.Tim Peters2003-01-182-138/+127
| | | | | | | | | | | | | | | Patch from Brett Cannon: First, the 'y' directive now handles [00, 68] as a suffix for the 21st century while [69, 99] is treated as the suffix for the 20th century (this is for Open Group compatibility). strptime now returns default values that make it a valid date ... the ability to pass in a regex object to use instead of a format string (and the inverse ability to have strptime return a regex object) has been removed. This is in preparation for a future patch that will add some caching internally to get a speed boost.
* Fixed the first two bugs in the new file dialogs (found by Just):Jack Jansen2003-01-172-11/+13
| | | | | - AskFileForSave didn't work for string return values - filterProc didn't work.