Guido van Rossum
2743d87d79
Fix sloppy index() implementation:
...
- don't use min() and max()
- interpret negative start/stop argument like negative slice indices
2003-06-17 14:25:14 +00:00
Walter Dörwald
77cdeaff55
Modernize Lib/posixpath.py: Use startswith(), endswith(), rstrip(),
...
struct_passwd attributes and +=.
From SF patch #755245 .
2003-06-17 13:13:40 +00:00
Skip Montanaro
364ca40c2a
SF Patch 569574 - enhancements to cgitb for plain text display
2003-06-17 12:58:31 +00:00
Raymond Hettinger
d05abdec7b
SF #754014 : list.index() should accept optional start, end arguments
...
Also, modified UserList.index() to match and expanded the related tests.
2003-06-17 05:05:49 +00:00
Raymond Hettinger
c8106e1f1d
test_posixpath.py now uses unittest. The output file is no longer needed.
2003-06-17 04:19:59 +00:00
Neal Norwitz
98a379eda1
Add test for bug #751998 .
2003-06-16 22:51:22 +00:00
Brett Cannon
b47243ae45
Complete rewrite of tests by Walter Dorwald as unittest tests.
2003-06-16 21:54:50 +00:00
Kurt B. Kaiser
7345375771
Add ':' after IDLE version, fix spacing on a couple of lines I missed
2003-06-16 18:46:42 +00:00
Gustavo Niemeyer
d5b8090e4c
Made DateTime's constructor accept a time.struct_time class,
...
besides plain tuples.
2003-06-16 02:49:42 +00:00
Tim Peters
f545baa0cc
Whitespace normalization.
2003-06-15 23:26:30 +00:00
Brett Cannon
4a671fe634
Return None to signal that the module the object was defined in was not found when object has no __name__ attr but is needed to figure out location of object.
2003-06-15 22:33:28 +00:00
Martin v. Löwis
424a415951
Make CREDITS.txt a Latin-1 file. Extend ViewFile to support file encodings.
2003-06-15 22:28:05 +00:00
Tim Peters
04b9d47941
choose_boundary(): This no longer uses random, so stop importing it.
2003-06-15 22:12:23 +00:00
Tim Peters
080da28bdb
choose_boundary(): Incorporated a threadsafe incrementing counter, so that
...
unique boundary strings within a program run are guaranteed. On Windows,
duplicates were pretty likely, due to the coarse granularity of time.time.
Toned down the absurdly optimistic claims in the docstring.
Bugfix candidate.
2003-06-15 22:05:58 +00:00
Guido van Rossum
8b76351934
Add a missing 'self,' to a super call in recently checked-in code.
...
This was reported in the IDLEFORK bug tracker as #754971 .
2003-06-15 19:08:57 +00:00
Kurt B. Kaiser
7de3772b28
Forwardport Patch from IDLEfork SF 615312
...
Convert characters from the locale's encoding on output
2003-06-15 17:49:59 +00:00
Kurt B. Kaiser
9e8b828f07
Support testing in .../Lib/idlelib when calling <python PyShell.py>
...
by providing other modules access to globals set up in PyShell.main()
2003-06-15 17:38:45 +00:00
Kurt B. Kaiser
f35092c3d4
Move to Version 1.0b2
2003-06-15 17:12:25 +00:00
Greg Ward
523008c6cf
Update copyright dates.
...
Define True and False (if necessary) so this module can be copied as-is
to other projects (eg. Optik, Docutils) that don't depend on Python 2.3.
2003-06-15 15:37:18 +00:00
Martin v. Löwis
1ef23657c4
Patch #751107 : Slant must be 'roman', not 'normal'.
2003-06-14 21:40:04 +00:00
Martin v. Löwis
d6efae500c
Properly deal with tuples in Open._fixresult. Fixes bug reported in
...
follow-up to #621891 .
2003-06-14 21:34:32 +00:00
Kurt B. Kaiser
61e2c9a402
Forwardport Patch from IDLEfork SF 610329
...
Remove deprecated tempfile usage
2003-06-14 17:56:25 +00:00
Martin v. Löwis
1867f24416
Always unwrap _socketobj in socket.ssl. Revert httplib.py 1.25.
...
Fixes #754447 .
2003-06-14 13:30:53 +00:00
Martin v. Löwis
b8c084e82c
Support keyword and topics help in cli(). Fixes #715782 .
2003-06-14 09:03:46 +00:00
Martin v. Löwis
17fb50790d
Treat empty dat/dir pairs as dumbdbm. Fixes #744687 .
2003-06-14 08:16:34 +00:00
Martin v. Löwis
ba8f5ff76c
Copy builtin functions as atomic. Fixes #746304 . Will backport to 2.2.
2003-06-14 07:10:06 +00:00
Martin v. Löwis
e3b67bcb7e
Patch #754340 : Fix typo in redirect_request. Will backport to 2.2.
2003-06-14 05:51:25 +00:00
Kurt B. Kaiser
b3a0a666f2
Remove the 2.2 compatibility module boolcheck.py and related code
...
M PyShell.py
R boolcheck.py
M run.py
2003-06-14 03:33:20 +00:00
Kurt B. Kaiser
ae8bbff231
Remove reference to IDLEfork
2003-06-14 03:23:56 +00:00
Kurt B. Kaiser
76bcb5cb6d
Update NEWS.txt and move info on release 0.8.1 and earlier to HISTORY.txt
...
M HISTORY.txt
M NEWS.txt
2003-06-14 02:51:06 +00:00
Greg Ward
52ae0a596f
Remove comment about Unicode: SF #622831 was fixed loooong ago!
2003-06-14 00:26:39 +00:00
Brett Cannon
91012fe9b5
Cause calling interrupt_main in main thread raise KeyboardInterrupt instantly.
2003-06-13 23:56:32 +00:00
Brett Cannon
4e64d78bbb
dummy_thread modified to have interrupt_main and to behave appropriately when
...
called.
Added announcement in Misc/NEWS for thread.interrupt_main and mention of
dummy_thread's change.
2003-06-13 23:44:35 +00:00
Kurt B. Kaiser
93e8e54924
Interrupt module has been folded into the thread module
...
Modified Files:
run.py
Removed Files:
interruptmodule.c
2003-06-13 22:03:43 +00:00
Barry Warsaw
efad5880ba
AddressList.__str__(): Get rid of useless, and broken method. Closes
...
SF #753617 . Back port candidate (but low priority).
2003-06-13 21:16:06 +00:00
Guido van Rossum
99d2c251df
SF patch 707900, fixing bug 702858, by Steven Taschuk.
...
Copying a new-style class that had a reference to itself didn't work.
(The same thing worked fine for old-style classes.)
2003-06-13 19:28:47 +00:00
Jack Jansen
8475d0256a
Re-gegernated with the new gensuitemodule.
2003-06-13 14:31:19 +00:00
Jack Jansen
c8882b10c4
- Allow access to poperties of the "application" OSA class directly from
...
the toplevel package. This already worked for elements, but now for
properties too. Fixes #753925 .
- Even better, the toplevel class (such as Finder.Finder) now inherits
the element and property dictionaries of its application class and has
the necessary glue to allow you to say
f = Finder.Finder()
f.get(f.name)
2003-06-13 14:27:35 +00:00
Raymond Hettinger
fdbe5223b7
SF bug #753602 : random.sample not properly documented
...
The docs were fine but the "int=int" in the function call was both
ugly and confusing. Moved it inside the body of the function definition.
2003-06-13 07:01:51 +00:00
Brett Cannon
43e559a155
When calling tarname with an argument (and thus not use testtar.tar) return a
...
path for the file in the temp directory for the platform.
2003-06-12 19:16:58 +00:00
Thomas Heller
cd494adc3b
Fix for sf # 749210, wininst isn't build correctly after building zip.
...
The problem was that subcommands were not reinitialized.
Bugfix candidate, will backport myself.
2003-06-12 17:23:58 +00:00
Brett Cannon
455ea53d0e
Make creation of temporary file and directory more portable. Also made cleanup
...
code use proper functions to get paths.
Changed the name of tar file that is searched for to be absolute (i.e., not use
os.extsep) since filename is locked in based on name of file in CVS
(testtar.tar).
Closes bug #731403 .
2003-06-12 08:01:06 +00:00
Kurt B. Kaiser
a4e5c4da4d
No longer needed.
2003-06-12 04:38:13 +00:00
Kurt B. Kaiser
09cb74ba20
aboutDialog.py:
...
1. Add additional buttons for Python Copyright and Credits
2. Use the Python LICENSE file instead of the old IDLE LICENSE.txt
3. Add additional buttons for IDLE's README and NEWS
4. Implement a method to read text from a _Printer object
5. Rename the Ok button to Close
6. Clean up to conform to Python code formatting standards
textView.py:
1. Change background to white on all platforms
2. Increase height of frame
3. Add an optional parameter to textViewer to allow inserting text into
the viewer instead of reading a file.
4. Rename the Ok button to Close
Modified Files:
aboutDialog.py textView.py
2003-06-12 04:20:56 +00:00
Raymond Hettinger
f31cb0cbcf
One more multiple exception catch should be in a tuple.
2003-06-12 04:05:00 +00:00
Kurt B. Kaiser
d78b23025c
1. Remove the Readme entry on the Help Menu, now in About dialog.
...
2. Change title on About dialog.
Modified Files:
Bindings.py EditorWindow.py
2003-06-12 04:03:49 +00:00
Raymond Hettinger
abe14e6f04
The multiple exception catch should be in a tuple.
2003-06-12 03:59:17 +00:00
Kurt B. Kaiser
fe04afc629
Direct readers to CVS logs.
2003-06-12 03:57:23 +00:00
Kurt B. Kaiser
31dea4cf43
It /is/ a package...
2003-06-12 03:55:24 +00:00
Kurt B. Kaiser
1821056002
Updated for IDLEfork re-integration
2003-06-12 03:51:27 +00:00