summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* A start at non-trivial (== DST-aware) tests of timezone conversion.Tim Peters2002-12-291-0/+152
| | | | | | | Guido has in mind an easier way for users to code this stuff, but the only tests we have now are for fixed-offset tzinfo classes, and this stuff is extremely delicate in the endcases (read the new test code for why: there are holes in time <wink>).
* SF patch 658251: Install a C implementation of the Mersenne Twister as theRaymond Hettinger2002-12-292-239/+379
| | | | core generator for random.py.
* Remove some old debugging print statements.Kurt B. Kaiser2002-12-291-10/+0
|
* M EditorWindow.pyKurt B. Kaiser2002-12-292-16/+20
| | | | | | | | | | | | | | | M PyShell.py 1. PyShell Rev 1.39, EditorWindow Rev 1.37 fix was not handling a multiline prompt. 2. The same fix introduced a bug where hitting <enter> at a previous prompt-only line would copy the prompt to the iomark. 3. Move the setting of sys.ps1 earlier, into PyShell.main(), to allow this code to work before a shell is started up. 4. If cursor is on the input line in the prompt, and you hit <enter>, process the line instead of complaining. 5. If line has no stdin range (this includes the last line before shell restart) strip any prompt before recalling.
* Patch for bug #659709: bogus computation of float lengthMarc-André Lemburg2002-12-292-0/+51
| | | | | Python 2.2.x backport candidate. (This bug has been around since Python 1.6.)
* Incorporate Skip's suggestion to use SciPy's validation test nearRaymond Hettinger2002-12-291-0/+28
| | | | | | equality. Note, there is another flavor that compares to a given number of significant digits rather than decimal places. If there is a demand, that could be added at a later date.
* Bug #599248: strip directories when building Python. Out-of-tree builds ↵Andrew M. Kuchling2002-12-291-2/+5
| | | | should work again.
* Suppress unsafe *Cookie class warningsAndrew M. Kuchling2002-12-291-0/+5
|
* Patch #655760: add warnings when the unsafe *Cookie classes are instantiatedAndrew M. Kuchling2002-12-291-1/+11
|
* Gracefully delay runtime error up to 1s. Add .willdispatch().Martin v. Löwis2002-12-281-0/+1
|
* Make comparison and subtraction of aware objects ignore tzinfo if theTim Peters2002-12-271-8/+86
| | | | | | operands have identical tzinfo members (meaning object identity -- "is"). I misunderstood the intent here, reading wrong conclusion into conflicting clues.
* Add XXX about Winsock error valuesGuido van Rossum2002-12-261-0/+1
|
* Also skip testHostnameRes() if gethostbyaddr() raises an exception.Guido van Rossum2002-12-261-1/+5
|
* Skip testHostnameRes() if gethostbyname() raises an exception.Guido van Rossum2002-12-261-1/+5
|
* Fix julian day problem with strptime. Note: XXX about using 0, suggestions?Neal Norwitz2002-12-262-1/+15
|
* Added tests to ensure that timetz comparison, and datetimetzTim Peters2002-12-261-9/+67
| | | | | | | | | | | subtraction, work as documented. In the Python implementation, they weren't calling utcoffset() if both operands had the same tzinfo object. That's fine if it so happens that the shared tzinfo object returns a fixed offset (independent of operand), but can give wrong results if that's not so, and the latter obtains in a tzinfo subclass instance trying to model both standard and daylight times. The C implementation was already doing this "correctly", so we're just adding tests to verify it.
* SF 658405: calendar.py to rely on the datetime module instead of the timeRaymond Hettinger2002-12-251-18/+8
| | | | | | | | | module. The code is shorter, more readable, faster, and dramatically increases the range of acceptable dates. Also, used the floor division operator in leapdays().
* Implemented datetime.astimezone() and datetimetz.astimezone().Tim Peters2002-12-251-0/+53
|
* Whitespace normalization.Tim Peters2002-12-247-11/+10
|
* boolcheck cannot be deleted here.Tony Lownds2002-12-241-1/+1
|
* Move boolcheck before import of other IDLE modulesTony Lownds2002-12-241-3/+3
|
* Add test for SF #658106. Will backport.Neal Norwitz2002-12-241-0/+4
|
* M PyShell.pyKurt B. Kaiser2002-12-245-15/+35
| | | | | | | | | | | | | | | | M idle M idle.py M idle.pyw M setup.py Switch back to installing IDLE as a package. The IDLE GUI and the subprocess will both attempt to start up via the package mechanism, but if IDLE is not yet installed it is possible to run by calling python idle.py in the IDLE source directory, or to add the source directory to sys.path. One advantage of doing it this way is IDLE stays off sys.path. Developed in collaboration with Tony Lownds.
* Implemented .replace() methods for date, datetime, datetimetz, time andTim Peters2002-12-241-0/+150
| | | | timetz.
* IDLE should exit if it fails to connect with the execution serverKurt B. Kaiser2002-12-241-1/+1
| | | | subprocess. Currently it opens a dead shell window.
* 1. RPC stack levels were not pruned from traceback unless IDLE was startedKurt B. Kaiser2002-12-241-12/+27
| | | | | | from its source directory. 2. Replace final traceback '?' with '-toplevel-' 3. Remove duplicated import boolcheck
* Uniform Capitalization in MenusKurt B. Kaiser2002-12-241-20/+20
|
* Remove debugging connection messageKurt B. Kaiser2002-12-231-2/+3
|
* Make this script execute using pythonwTony Lownds2002-12-231-0/+1
|
* Revert to revision 1.3; Mac OS X has a platform specific startup script, ↵Tony Lownds2002-12-231-15/+2
| | | | macosx_main.py
* Move boolcheck to PyShellTony Lownds2002-12-232-7/+4
|
* Don't rebind True and False.Tim Peters2002-12-231-5/+5
|
* Last week we discussed adding this module to the standard library.Guido van Rossum2002-12-231-0/+78
| | | | | | Here's a draft. I have no immediate use for it, but I'd like this to be available for experimentation. I may withdraw it or change it radically up to and including the release of Python 2.3b1.
* Alt-H was conflicting with the Help menu on Windows.Kurt B. Kaiser2002-12-231-1/+1
| | | | Let's try Alt-2....
* M MANIFEST.inKurt B. Kaiser2002-12-234-52/+45
| | | | | | | | | | | | | | | M PyShell.py M idlever.py M setup.py 1. Update MANIFEST.in to include all non-pure Python files 2. PyShell and idlever reflect Rev 0.9a0 3. setup.py modified to install IDLE as a collection of modules with a .pth file living at the idlelib level in site-packages. This was done to make it easier to run from the source directory prior to installing IDLE. This approach may change back to the package technique depending on what happens with the Mac installation development.
* I give up: unless I write my own strftime by hand, datetime just can'tTim Peters2002-12-221-0/+6
| | | | | | be trusted with years before 1900, so now we raise ValueError if a date or datetime or datetimetz .strftime() method is called with a year before 1900.
* Implemented a Wiki suggestion:Tim Peters2002-12-221-71/+118
| | | | | | | | | | | | {timetz,datetimetz}.{utcoffset,dst}() now return a timedelta (or None) instead of an int (or None). tzinfo.{utcoffset,dst)() can now return a timedelta (or an int, or None). Curiously, this was much easier to do in the C implementation than in the Python implementation (which lives in the Zope3 code tree) -- the C code already had lots of hair to extract C ints from offset objects, and used C ints internally.
* Add configuration for packaging.Kurt B. Kaiser2002-12-222-0/+7
|
* When IDLE is installed and run from a startup script, the script'sKurt B. Kaiser2002-12-211-0/+5
| | | | | | | | directory becomes sys.path[0]. What is wanted is the directory from which IDLE was called. Insert the current working directory in the path if it isn't there already.
* M PyShell.pyKurt B. Kaiser2002-12-213-23/+24
| | | | | | | | | | | | | M idle M setup.py To be able to run from the source directory or from an installed version of IDLE, and also to allow the subprocess to find run(), Python needs to have the idlelib package on its path. 1. Modify setup.py to supply a .pth file living at same level as idlelib 2. Move boolcheck to PyShell.py 3. Remove boolcheck and path setting code from the "idle" script
* Added test to ensure that non-string result from dst() raises TypeError.Tim Peters2002-12-211-0/+6
|
* Changes sufficient so that pickles written by the Python implementationTim Peters2002-12-211-9/+15
| | | | can be read by the C implementation. I don't really understand this.
* Update the setup file:Kurt B. Kaiser2002-12-201-34/+42
| | | | | | | | | 1. Make it easier to change the package and script installation names. 2. Update the text files transferred to include the .def and new .txt files. 3. Update the description and long description, change email to python-dev, update the url to point at sourceforge. 4. Rename the build and install classes for clarity.
* Remove debugging statement checked in by accident, ah, carelessness.Kurt B. Kaiser2002-12-201-1/+0
|
* "'foo' in str" not implemented in Python 2.2, only single character lookupKurt B. Kaiser2002-12-201-1/+2
|
* *** empty log message ***Tony Lownds2002-12-201-1/+1
|
* Update way a subprocess is launched for Mac OS X.Tony Lownds2002-12-205-16/+107
| | | | | | | | | | Another applet mechanism has been developed for Python on Mac OS X and trying to use the -c "__import__('run').main()" trick is just not working. macosx_main.py is a new file which should be used as the startup file for Mac OS X applet bundles. This startup file understands a -p option, which when seen will start run.main(). When running as an applet, this seems like the best approach.
* Fix what I believe is a bug: when removing all previous handlers,Guido van Rossum2002-12-201-2/+2
| | | | should copy the handlers list because it's being modified by the loop.
* format_utcoffset(): The natural type of the buflen arg is size_t, soTim Peters2002-12-201-9/+16
| | | | | | | | | | used that. wrap_strftime(): Removed the most irritating uses of buf. TestDate.test_ordinal_conversions(): The C implementation is fast enough that we can afford to check the endpoints of every year. Also added tm_yday tests at the endpoints.
* Panel Bar on the Bottom is Probably More CommonKurt B. Kaiser2002-12-201-2/+4
|