summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Add Shockwave Flash.Guido van Rossum2003-01-041-0/+1
| | | | (backport candidate?)
* Correct long standing bugs in the methods for random distributions.Raymond Hettinger2003-01-041-4/+6
| | | | | | | The range of u=random() is [0,1), so log(u) and 1/x can fail. Fix by setting u=1-random() or by reselecting for a usable value. Will backport.
* A new implementation of astimezone() that does what we agreed on in allTim Peters2003-01-041-16/+33
| | | | | | cases, plus even tougher tests of that. This implementation follows the correctness proof very closely, and should also be quicker (yes, I wrote the proof before the code, and the code proves the proof <wink>).
* Test an edge case for sample().Raymond Hettinger2003-01-041-0/+1
|
* Remove the random=None nonsense from sample() before it gets set in stone.Raymond Hettinger2003-01-041-18/+11
| | | | | | | It was once available so that faster generators could be substituted. Now, that is less necessary and preferrably done via subclassing. Also, clarified and shortened the comments for sample().
* M AutoExpand.pyKurt B. Kaiser2003-01-047-27/+55
| | | | | | | | | | | | | | | | | | | | | | | | M Bindings.py M EditorWindow.py M PyShell.py M config-keys.def M configHandler.py M help.txt 1. Annotate the shell window with last restart boundary upon restart. 2. Provide a shell menu entry and hot key (F6) to jump to the last restart boundary. 3. Add a new shell menu feature to restart the shell. 4. Update the help menu to add these features. 5. Update the help menu to put text in same order as the menus. 6. Correct a capitalization inconsistency on the Edit menu: Expand Word 7. Rename the "Debug" menu to be "Shell": it's doing more now. 8. Rearrange the "Shell" menu to make the StackViewer entries adjacent. 9. Add a get_geometry method to EditorWindow, which may be of use in making window positions persisent. 10. Make <ctrl-v> the "Classic Windows" paste key. 11. Restore decorum on the Help menu by removing "Advice". As Guido said, things will never be the same. Thanks, David!
* Convert Tcl path objects to strings. Fixes #661357.Martin v. Löwis2003-01-041-0/+6
| | | | Provide .string attribute and __unicode for Tcl_Objs.
* Remove a list comprehension, because a loop over the listWalter Dörwald2003-01-031-2/+1
| | | | | is done afterwards anyway, so what the list comp does can be done in the loop.
* Pass the strict argument from read() on to readfp(), so theWalter Dörwald2003-01-031-1/+1
| | | | file content ends up in the correct dict.
* Fix read_mime_types() so that it returns a dict as documented.Walter Dörwald2003-01-031-2/+2
| | | | | This fixes a bug reported as http://www.python.org/sf/661630, which was introduced in the patch http://www.python.org/sf/554192.
* Fix SF #659228, 'realpath' function missing from os.pathNeal Norwitz2003-01-034-4/+8
| | | | | | | Also added realpath = abspath for os2emx, similar to windows/mac which also don't really implement realpath. Backport candidate, I think?
* [Patch #658094 ] PEP 301 implementationAndrew M. Kuchling2003-01-031-0/+293
| | | | Add the 'register' distutils command
* [Patch #658094] PEP 301 implementationAndrew M. Kuchling2003-01-031-1/+12
| | | | Add 'classifiers' keyword to DistributionMetadata
* Fix for bug #661136Just van Rossum2003-01-031-3/+8
| | | | | | | | | | | | | Lesson learned: kids should not be allowed to use API's starting with an underscore :-/ zipimport in 2.3a1 is even more broken than I thought: I attemped to _PyString_Resize a string created by PyString_FromStringAndSize, which fails for strings with length 0 or 1 since the latter returns an interned string in those cases. This would cause a SystemError with empty source files (and no matching pyc) in the zip archive. I rewrote the offending code to simply allocate a new buffer and avoid _PyString_Resize altogether. Added a test that would've caught the problem.
* Remove debugging prints.Michael W. Hudson2003-01-031-2/+0
|
* Jack complained that on test_crlf_separation() was failing on MacOS9Barry Warsaw2003-01-021-4/+4
| | | | | | | | | | | | because the test file, msg_26.txt which has \r\n line endings, was getting munged by cvs, which knows to do line ending conversions for text files. But we want \r\n to be preserved on all platforms, so we cvs admin'd the file to be -kb (binary), which means we have to open the file in binary mode to preserve these line ends. Hopefully this will be the end of the thrashing on this issue (but probably not). Test passes on *nix now, and Tim confirms it passes on Windows. We'll leave it to Jack to test MacOS.
* The tzinfo methods utcoffset() and dst() must return a timedelta objectTim Peters2003-01-021-32/+40
| | | | | | (or None) now. In 2.3a1 they could also return an int or long, but that was an unhelpfully redundant leftover from an earlier version wherein they couldn't return a timedelta. TOOWTDI.
* Allow list sort's comparison function to explicitly be None. See SF patchSkip Montanaro2003-01-021-0/+20
| | | | 661092.
* 1. Remove obsolete, incorrect comment on non-package installationKurt B. Kaiser2003-01-021-7/+3
| | | | | 2. Add more .txt files to installation 3. Fix the reference to Visual Python, s/b VPython
* astimezone() internals: if utcoffset() returns a duration, complain ifTim Peters2003-01-021-0/+17
| | | | dst() returns None (instead of treating that as 0).
* Improve exception handling.Kurt B. Kaiser2003-01-023-3/+6
|
* SF #660795Neal Norwitz2003-01-022-0/+975
| | | | Add a test for logging from Vinay Sajip (module author)
* Replaced imp.set_frozenmodules() cruft with proper zipimport support.Just van Rossum2003-01-021-43/+42
| | | | | This work uncovered the zipimport bug in 2.3a1 -- wish I'd had time to do this before the release :-(.
* Ugh, zipimport is virtually broken in 2.3a1 :-( It worked by accident inJust van Rossum2003-01-021-4/+5
| | | | | | | | | | | | | the test set as it only tested with a zip archive in the current directory, but it doesn't work at all for packages when the zip archive was specified as an absolute path. It's a real embarrassing bug: a strchr call should have been strrchr; fever apparently implies dyslexia. Second stupid bug: the zipimport test failed with a name error __importer__ (which I had renamed to __loader__ everywhere but here). I would've sworn I ran the test after that change but that can't be true. What I don't understand that noone reported a failing test_zipimport.py before the release of 2.3a1.
* EMX fork() emulation not good enough to cope with test_socketserverAndrew MacIntyre2003-01-021-2/+2
|
* Clearing out old patch queue. Patch #558547, make SocketServer moreAnthony Baxter2003-01-021-1/+2
| | | | | robust. This makes socketserver's close() method callable repeatedly without error - similar to other file-like objects.
* A quicker astimezone() implementation, rehabilitating an earlierTim Peters2003-01-011-0/+25
| | | | | | | | | | | | | | | | | | | suggestion from Guido, along with a formal correctness proof of the trickiest bit. The intricacy of the proof reveals how delicate this is, but also how robust the conclusion: correctness doesn't rely on dst() returning +- one hour (not all real time zones do!), it only relies on: 1. That dst() returns a (any) non-zero value if and only if daylight time is in effect. and 2. That the tzinfo subclass implements a consistent notion of time zone. The meaning of "consistent" was a hidden assumption, which is now an explicit requirement in the docs. Alas, it's an unverifiable (by the datetime implementation) requirement, but so it goes.
* Revert last change -- test works on HPUX again after Martin's checkinNeal Norwitz2003-01-011-3/+2
| | | | | | to 'properly configure the slave terminal' See SF patch # 656590 for the details.
* Expose I_ constants. Auto-detect stropts.h. Properly configure the slave ↵Martin v. Löwis2003-01-011-1/+11
| | | | terminal.
* The failure of the last-second addition to the timezone coversion test isTim Peters2003-01-011-4/+12
| | | | | | understood now: it can't work. Added comments explaining why (it's "the usual"-- unrepresentable hours in local time --but in a slightly different guise).
* More installation info. Bump alpha version.Kurt B. Kaiser2003-01-012-7/+11
|
* Debugger was tracing through rpc.py when IDLEfork was not startedKurt B. Kaiser2003-01-011-21/+19
| | | | | from its source directory. Generalize the "workaround" (though the latter seems a reasonable solution?) to handle this.
* Improve exception handling.Kurt B. Kaiser2002-12-313-6/+6
|
* Make two tests non-locale-dependentBarry Warsaw2002-12-311-2/+2
|
* Replace all but one explicit emit('SET_LINENO') with call to set_lineno().Jeremy Hylton2002-12-311-8/+2
| | | | | | Remove broken code in visitDict(). I assume the code was trying to add set lineno events for each line of a dict constructor, but I think it was using the wrong object (node instead of k or v).
* Don't let the docstring end up in __main__.__doc__Tony Lownds2002-12-311-14/+14
|
* test01_close_dbenv_before_db(): Added an XXX comment that this test isBarry Warsaw2002-12-311-0/+2
| | | | BerkeleyDB version dependent.
* Comment out test, since it hangs on HPUX, still investigatingNeal Norwitz2002-12-311-2/+3
|
* SF patch [ 597919 ] compiler package and SET_LINENOJeremy Hylton2002-12-314-44/+69
| | | | | | | | | | | | | | | | | A variety of changes from Michael Hudson to get the compiler working with 2.3. The primary change is the handling of SET_LINENO: # The set_lineno() function and the explicit emit() calls for # SET_LINENO below are only used to generate the line number table. # As of Python 2.3, the interpreter does not have a SET_LINENO # instruction. pyassem treats SET_LINENO opcodes as a special case. A few other small changes: - Remove unused code from pycodegen and pyassem. - Fix error handling in parsermodule. When PyParser_SimplerParseString() fails, it sets an exception with detailed info. The parsermodule was clobbering that exception and replacing it was a generic "could not parse string" exception. Keep the original exception.
* Update (slightly) for Alpha releaseKurt B. Kaiser2002-12-311-0/+7
|
* Remove bogus test; the master is not a terminal on Solaris and HP-UX.Martin v. Löwis2002-12-311-2/+0
|
* Move history to HISTORY.txtKurt B. Kaiser2002-12-311-0/+122
|
* Update for Alpha 0 ReleaseKurt B. Kaiser2002-12-312-182/+61
|
* A new, and much hairier, implementation of astimezone(), building onTim Peters2002-12-311-86/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | an idea from Guido. This restores that the datetime implementation never passes a datetime d to a tzinfo method unless d.tzinfo is the tzinfo instance whose method is being called. That in turn allows enormous simplifications in user-written tzinfo classes (see the Python sandbox US.py and EU.py for fully fleshed-out examples). d.astimezone(tz) also raises ValueError now if d lands in the one hour of the year that can't be expressed in tz (this can happen iff tz models both standard and daylight time). That it used to return a nonsense result always ate at me, and it turned out that it seemed impossible to force a consistent nonsense result under the new implementation (which doesn't know anything about how tzinfo classes implement their methods -- it can only infer properties indirectly). Guido doesn't like this -- expect it to change. New tests of conversion between adjacent DST-aware timezones don't pass yet, and are commented out. Running the datetime tests in a loop under a debug build leaks 9 references per test run, but I don't believe the datetime code is the cause (it didn't leak the last time I changed the C code, and the leak is the same if I disable all the tests that invoke the only function that changed here). I'll pursue that next.
* Further cleanup of exceptions. All interpolation-related exceptionsFred Drake2002-12-311-30/+37
| | | | | now derive from InterpolationError, which is not raised directly (only subclasses get raised). This matches what the docs already said.
* Keep __main__ namespace cleanTony Lownds2002-12-311-1/+1
|
* patch attached to sf item #643711:Just van Rossum2002-12-311-49/+150
| | | | | | | | | | | | | | | | | | | | | any_missing() returns less bogus missing modules. - I've rewritten scan_code() more or less from scratch, factored bits and pieces out for readability. - keep track of global assignments and failed imports per module; use this to determine whether the Y in "from X import Y" is a submodule or just a global name. This is not 100% doable: you can't tell which symbols are imported when doing a star import of a non-Python module short of actually importing it. - added a new method to ModuleFinder: any_missing_maybe(), which returns *two* lists, one with certain misses, one with possible misses. The possible misses are *very* often false alarms, so it's useful to keep this list separate. any_misses() now simply returns the union of any_missing_maybe(). TODO: documentation, test_modulefinder.py
* moving modulefinder.py to the standard libraryJust van Rossum2002-12-311-0/+486
|
* Whitespace NormalizationKurt B. Kaiser2002-12-3123-322/+306
|
* Patch #658927: Add getctime to os.path.Martin v. Löwis2002-12-314-4/+16
| | | | Document that getatime and getmtime may return floats.