summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Start of a test suite for the "os" module -- this only tests the temporaryFred Drake2001-07-171-0/+60
| | | | | file management functions that have just been made available on more platforms.
* Use the "st" versions of the "ast" calls in the parser module -- there isFred Drake2001-07-171-2/+2
| | | | no reason to pretend the syntax trees we're dealing with are abstract.
* Deleting zombiesGuido van Rossum2001-07-173-383/+0
|
* INSTALLATION: Remove the coexist.patch instructionsKurt B. Kaiser2001-07-172-21/+10
| | | | | | | | **************** setup.py: Remove the idles script, add some words on IDLE Fork to the long_description, and clean up some line spacing.
* Put this in the attic, at least for now...Kurt B. Kaiser2001-07-171-186/+0
|
* Implement idle command interface as suggested by GvR [idle-dev] 16 JulyKurt B. Kaiser2001-07-173-38/+26
| | | | | | | | | | | | | | | | | | | | | | | | | **************** PyShell: Added functionality: usage: idle.py [-c command] [-d] [-i] [-r script] [-s] [-t title] [arg] ... idle file(s) (without options) edit the file(s) -c cmd run the command in a shell -d enable the debugger -i open an interactive shell -i file(s) open a shell and also an editor window for each file -r script run a file as a script in a shell -s run $IDLESTARTUP or $PYTHONSTARTUP before anything else -t title set title of shell window Remaining arguments are applied to the command (-c) or script (-r). ****************** idles: Removed the idles script, not needed ****************** idle: Removed the IdleConf references, not required anymore
* Added tests for the new yield support in the parser module.Fred Drake2001-07-171-1/+132
| | | | (Should be merged with descr branch.)
* This has never worked on Windows. Now it does. If it breaks on Unix now,Tim Peters2001-07-161-1/+7
| | | | great, it's your turn to watch it fail for months <0.9 wink>.
* test_basic(): Add a test for "person@dom.ain (User J. Person)" whichBarry Warsaw2001-07-161-0/+12
| | | | | | | | was already correctly parsed (contrary to a comment in Mailman). test_rfc2822_phrases(): RFC 2822 now requires that we allow `.' in phrases, which means we must accept dots in unquoted realname parts. Add a test to check the change in rfc822.py 1.58.
* Stoopid change, just to mention that the last checkin resolves SF bugBarry Warsaw2001-07-161-1/+1
| | | | #437395
* Fix address parsing to be RFC 2822 conformant. Specifically, dots areBarry Warsaw2001-07-161-105/+123
| | | | | | | | | | | | | | | | | | | | | | | | now allowed in unquoted RealName areas (technically, they are defined as "obsolete syntax" we MUST accept in phrases, as part of the obs-phrase production). Thus, parsing To: User J. Person <person@dom.ain> correctly returns "User J. Person" as the RealName. AddrlistClass.__init__(): Add definition of self.phraseends which is just self.atomends with `.' removed. getatom(): Add an optional argument `atomends' which, if None (the default) means use self.atomends. getphraselist(): Pass self.phraseends to getatom() and break out of the loop only when the current character is in phraseends instead of atomends. This allows dots to continue to serve as atom delimiters in all contexts except phrases. Also, loads of docstring updates to document RFC 2822 conformance (sorry, this should have been two separate patches).
* Add a unit test for sgmllib (needs work, but has already caught problems).Fred Drake2001-07-161-0/+243
| | | | Based on the test for the HTMLParser module.
* Give more useful information about a failing PyUnit-style test.Fred Drake2001-07-161-2/+11
|
* Remove a duplicate test.Fred Drake2001-07-161-1/+0
|
* Document doctest's generator-future hack.Tim Peters2001-07-161-0/+7
|
* In CDATA mode, make sure entity-reference syntax is not interpreted;Fred Drake2001-07-161-8/+26
| | | | | | | entity references are not allowed in that mode. Do a better job of scanning <!DOCTYPE ...> declarations; based on the code in HTMLParser.py.
* Fix a mismatched parenthesis in the last patch.Guido van Rossum2001-07-161-1/+1
|
* [Bug #441527] Fixes for preprocessor support, contributed by TarnAndrew M. Kuchling2001-07-161-4/+5
| | | | Weisner Burton
* Added installation instructions.Kurt B. Kaiser2001-07-162-0/+240
| | | | | | | Added a patch which modifies idlefork so that it can co-exist with "official" IDLE in the site-packages directory. This patch is not necessary if only idlefork IDLE is installed. See INSTALLATION for further details.
* Add a script "idles" which opens a Python Shell window.Kurt B. Kaiser2001-07-161-0/+13
| | | | | | | | | The default behaviour of idlefork idle is to open an editor window instead of a shell. Complex expressions may be run in a fresh environment by selecting "run". There are times, however, when a shell is desired. Though one can be started by "idle -t 'foo'", this script is more convenient. In addition, a shell and an editor window can be started in parallel by "idles -e foo.py".
* Ugly. A pile of new xxxFlags() functions, to communicate to the parserTim Peters2001-07-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | that 'yield' is a keyword. This doesn't help test_generators at all! I don't know why not. These things do work now (and didn't before this patch): 1. "from __future__ import generators" now works in a native shell. 2. Similarly "python -i xxx.py" now has generators enabled in the shell if xxx.py had them enabled. 3. This program (which was my doctest proxy) works fine: from __future__ import generators source = """\ def f(): yield 1 """ exec compile(source, "", "single") in globals() print type(f())
* Call out IDLE Fork in startup message.Kurt B. Kaiser2001-07-161-1/+1
|
* Add a script "idles" which opens a Python Shell window.Kurt B. Kaiser2001-07-162-12/+12
| | | | | | | | | The default behaviour of idlefork idle is to open an editor window instead of a shell. Complex expressions may be run in a fresh environment by selecting "run". There are times, however, when a shell is desired. Though one can be started by "idle -t 'foo'", this script is more convenient. In addition, a shell and an editor window can be started in parallel by "idles -e foo.py".
* Part way to allowing "from __future__ import generators" to communicateTim Peters2001-07-161-0/+2
| | | | | | | | | | that info to code dynamically compiled *by* code compiled with generators enabled. Doesn't yet work because there's still no way to tell the parser that "yield" is OK (unlike nested_scopes, the parser has its fingers in this too). Replaced PyEval_GetNestedScopes by a more-general PyEval_MergeCompilerFlags. Perhaps I should not have? I doubted it was *intended* to be part of the public API, so just did.
* Preliminary support for "from __future__ import generators" to enableGuido van Rossum2001-07-154-0/+6
| | | | | | | | the yield statement. I figure we have to have this in before I can release 2.2a1 on Wednesday. Note: test_generators is currently broken, I'm counting on Tim to fix this.
* tabnanny and pyclbr are now found in /LibKurt B. Kaiser2001-07-142-708/+0
|
* Remove, was retained for 1.5.2 supportKurt B. Kaiser2001-07-141-157/+0
|
* Be more permissive in what is accepted as an attribute name; this makesFred Drake2001-07-141-1/+1
| | | | | this module slightly more resiliant in the face of XHTML input, or just colons in attribute names.
* Installing Idle to site-packages via Distutils does notKurt B. Kaiser2001-07-141-1/+1
| | | | | | copy the Idle help.txt file. Ref SF Python Patch 422471
* py-cvs-2001_07_13 (Rev 1.3) mergeKurt B. Kaiser2001-07-141-3/+3
| | | | | "Make copy, cut and paste events case insensitive. Reported by Patrick K. O'Brien on idle-dev. (Should other bindings follow suit?)" --GvR
* py-cvs-2001_07_13 (Rev 1.4) mergeKurt B. Kaiser2001-07-141-8/+0
| | | | | | | "Move the action of loading the configuration to the IdleConf module rather than the idle.py script. This has advantages and disadvantages; the biggest advantage being that we can more easily have an alternative main program." --GvR
* py-cvs-2001_07_13 (Rev 1.4) mergeKurt B. Kaiser2001-07-141-6/+20
| | | | | "Quick update to the extension mechanism (extend.py is gone, long live config.txt)" --GvR
* py-cvs-2001_07_13 (Rev 1.16) mergeKurt B. Kaiser2001-07-141-11/+23
| | | | | "Refactored, with some future plans in mind. This now uses the new gotofileline() method defined in FileList.py" --GvR
* py-cvs-2001_07_13 (Rev 1.34) mergeKurt B. Kaiser2001-07-141-1/+1
| | | | | | | | | | | | | | | | "Amazing. A very subtle change in policy in descr-branch actually found a bug here. Here's the deal: Class PyShell derives from class OutputWindow. Method PyShell.close() wants to invoke its parent method, but because PyShell long ago was inherited from class PyShellEditorWindow, it invokes PyShelEditorWindow.close(self). Now, class PyShellEditorWindow itself derives from class OutputWindow, and inherits the close() method from there without overriding it. Under the old rules, PyShellEditorWindow.close would return an unbound method restricted to the class that defined the implementation of close(), which was OutputWindow.close. Under the new rules, the unbound method is restricted to the class whose method was requested, that is PyShellEditorWindow, and this was correctly trapped as an error." --GvR
* py-cvs-2001_07_13 (Rel 1.9) mergeKurt B. Kaiser2001-07-141-0/+1
| | | | | | | | | "Taught IDLE's autoident parser that "yield" is a keyword that begins a stmt. Along w/ the preceding change to keyword.py, making all this work w/ a future-stmt just looks harder and harder." --tim_one (From Rel 1.8: "Hack to make this still work with Python 1.5.2. ;-( " --fdrake)
* py-cvs-2001_07_13 (Rel 1.7) mergeKurt B. Kaiser2001-07-141-0/+1
| | | | | | | "Move the action of loading the configuration to the IdleConf module rather than the idle.py script. This has advantages and disadvantages; the biggest advantage being that we can more easily have an alternative main program." --GvR
* py-cvs-2000_07_13 (Rev 1.9) mergeKurt B. Kaiser2001-07-141-11/+7
| | | | | | | | | | | "Delete goodname() method, which is unused. Add gotofileline(), a convenience method which I intend to use in a variant. Rename test() to _test()." --GvR This was an interesting merge. The join completely missed removing goodname(), which was adjacent, but outside of, a small conflict. I only caught it by comparing the 1.1.3.2/1.1.3.3 diff. CVS ain't infallible.
* py-cvs-2000_07_13 (Rev 1.38) mergeKurt B. Kaiser2001-07-141-7/+3
| | | | | | "Remove legacy support for the BrowserControl module; the webbrowser module has been included since Python 2.0, and that is the preferred interface." --fdrake
* py-cvs-rel2_1 (Rev 1.2) mergeKurt B. Kaiser2001-07-141-0/+0
| | | | Copied py-cvs rev 1.2 changed file to idlefork MAIN
* py-cvs-rel2_1 (Rev 1.2) mergeKurt B. Kaiser2001-07-141-0/+0
| | | | Copied py-cvs 1.2 changed file to idlefork MAIN
* py-cvs-rel2_1 (rev 1.5) merge - whitespace normalizationKurt B. Kaiser2001-07-141-1/+1
|
* py-cvs-rel2_1 (Rev 1.3) merge - whitespace normalizationKurt B. Kaiser2001-07-141-8/+8
|
* py-cvs-rel2_1 (Rev 1.15) merge - whitespace normalizationKurt B. Kaiser2001-07-141-1/+1
|
* py-cvs-rel2_1 (Rev 1.2) merge - whitespace normalizationKurt B. Kaiser2001-07-141-1/+1
|
* cvs-py-rel2_1 (Rev 1.29 - 1.33) mergeKurt B. Kaiser2001-07-141-11/+25
| | | | | | | | | | | Merged the following py-cvs revs without conflict: 1.29 Reduce copyright text output at startup 1.30 Delay setting sys.args until Tkinter is fully initialized 1.31 Whitespace normalization 1.32 Turn syntax warning into error when interactive 1.33 Fix warning initialization bug Note that module is extensively modified wrt py-cvs
* py-cvs-rel2_1 (Rev 1.6 - 1.8) mergeKurt B. Kaiser2001-07-131-4/+23
| | | | Fix autoindent bug and deflect Unicode from text.get()
* py-cvs-rel2_1 (Rev 1.3)Kurt B. Kaiser2001-07-131-1/+1
| | | | "move "from Tkinter import *" to module level" --jhylton
* py-cvs-rel2_1 (Rev 1.6) merge - whitespace normalizationKurt B. Kaiser2001-07-131-1/+1
|
* cvs-py-rel2_1 (Rev 1.5) merge - whitespace normalizationKurt B. Kaiser2001-07-131-7/+6
|
* Updated this file to match reality.Guido van Rossum2001-07-131-44/+45
| | | | Thanks Shane for pointing this out!