summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Better __credits__.Ka-Ping Yee2001-03-011-1/+2
|
* Add __author__ and __credits__ variables.Ka-Ping Yee2001-03-011-1/+2
|
* Add __author__ variable.Ka-Ping Yee2001-03-011-2/+5
| | | | Robustify: don't rely on modules being present in sys.modules.
* Docstring improvements.Ka-Ping Yee2001-03-011-196/+395
| | | | | | | | | | | | | Add checks for .pyo and .pyd. Collapse docfunction, docmethod, docbuiltin into the one method docroutine. Small formatting fixes. Link the segments of a package path in the title. Link to the source file only if it exists. Allow modules (e.g. repr.py) to take precedence over built-ins (e.g. repr()). Add interruptible synopsis scanner (so we can do searches in the background). Make HTTP server quit. Add small GUI for controlling the server and launching searches (like -k). (Tested on Win2k, Win98, and Linux.)
* Checking in patch 404826 -- urllib2 enhancements and documentations.Moshe Zadka2001-03-011-48/+115
| | | | | (please not that the library reference does *not* include the urllib2 documnetation -- that will wiat for Fred)
* Whitespace normalization.Tim Peters2001-03-011-1/+0
|
* final round of __all__ lists (I hope) - skipped urllib2 because Moshe may beSkip Montanaro2001-03-0117-1/+59
| | | | giving it a slight facelift
* move import into function to avoid having to add an __all__ list...Skip Montanaro2001-03-011-2/+2
|
* Add getlineno() routine to account for LINENO optimization.Ka-Ping Yee2001-03-011-3/+19
|
* Add tests for the .copy() methods of both weak dictionary classes.Fred Drake2001-03-011-1/+15
|
* Change WeakDictionary to WeakValueDictionary in a couple more places.Fred Drake2001-03-011-4/+7
| | | | | WeakValueDictionary.copy(), WeakKeyDictionary.copy(): Actually return the copy!
* Normalize case of paths in sys.path to avoid duplicates on Windows.Ka-Ping Yee2001-03-011-14/+24
| | | | | | Handle <... at 001B6378> like <... at 0x120f80> (%p is platform-dependent). Fix RCS version tag handling. Move __main__ behaviour into a function, pydoc.cli().
* Add test case for global stmt at module level.Jeremy Hylton2001-02-283-0/+10
| | | | | Fix test_grammar so that it ignores warning about global stmt at module level in exec.
* update output to reflect exception that is now raisedJeremy Hylton2001-02-281-3/+3
|
* Fix filter for SyntaxErrorsJeremy Hylton2001-02-281-4/+4
|
* Move a comment around to where it belongs (the code had alrady beenGuido van Rossum2001-02-281-1/+1
| | | | moved).
* Move some constant initialization from FTP.__init__() and FTP.connect()Fred Drake2001-02-281-16/+16
| | | | | | | | to the class namespace. Allow FTP.close() to be called more than once without tossing cookies. (This seems to be a fairly common idiom for .close() methods, so let's try to be consistent.)
* Add a new API:Guido van Rossum2001-02-281-0/+10
| | | | | | | | | warn_explicit(message, category, filename, lineno, module, registry) The regular warn() call calculates a bunch of values and calls warn_explicit() with these. This will be used to issue better syntax warnings.
* Leave #! lines featuring /usr/bin/env aloneAndrew M. Kuchling2001-02-281-2/+4
|
* Placate tabnannyAndrew M. Kuchling2001-02-281-1/+1
|
* Define lots of constants for indexes into the structures for the fileFred Drake2001-02-281-7/+51
| | | | | | | | | | | | | header and central directory structures, and use them as appropriate. The point being to make it easier to tell what is getting pulled out where; magic numbers are evil! Change the computation of the ZipInfo.file_offset field to use the length of the relevant "extra" field -- there are two different ones, and the wrong one had been used. ;-( This closes SF tracker patch #403276, but more verbosely than the proposed patch.
* Add regression test for future statements. This adds eight files, butJeremy Hylton2001-02-2810-0/+132
| | | | | seven are not tests in their own right; these files are mentioned in regrtest.
* Whitespace normalization.Tim Peters2001-02-286-12/+11
|
* Added regression test for SF tracker bug #403871: AttributeError inFred Drake2001-02-281-0/+19
| | | | | | | | | | | | | | ZipFile.__del__() when there was an IOError opening the underlying file in ZipFile.__init__(). This is an odd test: since the exception is in the __del__() method, it is not propogated. This test will trigger it but regrtest.py does not detect the failure (not sure why); we are dependent on it actually being noticed by a user to get a new bug report if it ever fails. ;-( On the other hand, this makes sure that code gets exercised, so a failure could be noticed!
* Fix SF tracker bug #403871: AttributeError in ZipFile.__del__() whenFred Drake2001-02-281-0/+2
| | | | there was an IOError opening the underlying file in ZipFile.__init__().
* verify that warnings are issued for bogus uses of globalJeremy Hylton2001-02-282-0/+44
|
* added missing element to __all__Skip Montanaro2001-02-281-1/+2
|
* added some elements missing from __all__Skip Montanaro2001-02-281-1/+2
|
* Macintosh compatibility.Ka-Ping Yee2001-02-271-1/+1
|
* Acknowledgements.Ka-Ping Yee2001-02-271-2/+3
|
* Fix $Revision$ processing so it doesn't get eaten by CVS!Ka-Ping Yee2001-02-271-2/+2
|
* Add $Revision: $ tag.Ka-Ping Yee2001-02-271-1/+1
|
* Add display of $Revision $ and credits.Ka-Ping Yee2001-02-271-10/+33
|
* No need to call filterwarnings() to suppress further warnings from thisFred Drake2001-02-271-3/+0
| | | | module; that won't happen.
* Replace all the platform-specific TERMIOS modules with a portable versionFred Drake2001-02-2714-3873/+17
| | | | | based on the termios module. The only added "feature" is the deprecation warning it spits out.
* Get the needed constants from termios, not TERMIOS.Fred Drake2001-02-272-5/+4
|
* Patch #404680: disables the nis module and enables the dl module whenAndrew M. Kuchling2001-02-271-0/+1
| | | | | building under Cygwin. Makes some fixes to the dlmodule in order to compile with Cygwin.
* add from __future__ import nested_scopes to strings passed to compileJeremy Hylton2001-02-271-6/+12
|
* Bug #229280: remove '/' characters from the OS name (for BSD/OS :) )Andrew M. Kuchling2001-02-271-1/+6
|
* Patch #403947: On Cygwin, use the Unix compiler class, and notAndrew M. Kuchling2001-02-271-1/+4
| | | | | | | | | | the Cygwin-specific compiler class. (According to Jason Tishler, cygwinccompiler needs some work to handle the differences in Cygwin- and MSVC-Python. Makefile and config files are currently ignored by cygwinccompiler, as it was written to support cygwin for extensions which are intended to be used with the standard MSVC built Python.)
* Patch #404275: generate a reasonable platform string for AIXAndrew M. Kuchling2001-02-271-0/+2
|
* Remove two meaningless, module-level global statements (one of aJeremy Hylton2001-02-271-7/+9
| | | | | | non-existent variable :-). Reflow long lines.
* Patch #403985: Add support for weak-keyed dictionariesMartin v. Löwis2001-02-273-3/+82
|
* pydoc: text and HTML documentation generator for interactive useKa-Ping Yee2001-02-271-0/+1158
|
* inspect: a module for getting information out of live Python objectsKa-Ping Yee2001-02-273-0/+824
|
* Fixing bug #227562 by calling URLopener.http_error_default whenMoshe Zadka2001-02-271-12/+18
| | | | an invalid 401 request is being handled.
* Preliminary support for future nested scopesJeremy Hylton2001-02-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compile.h: #define NESTED_SCOPES_DEFAULT 0 for Python 2.1 __future__ feature name: "nested_scopes" symtable.h: Add st_nested_scopes slot. Define flags to track exec and import star. Lib/test/test_scope.py: requires nested scopes compile.c: Fiddle with error messages. Reverse the sense of ste_optimized flag on PySymtableEntryObjects. If it is true, there is an optimization conflict. Modify get_ref_type to respect st_nested_scopes flags. Refactor symtable_load_symbols() into several smaller functions, which use struct symbol_info to share variables. In new function symtable_update_flags(), raise an error or warning for import * or bare exec that conflicts with nested scopes. Also, modify handle for free variables to respect st_nested_scopes flag. In symtable_init() assign st_nested_scopes flag to NESTED_SCOPES_DEFAULT (defined in compile.h). Add preliminary and often incorrect implementation of symtable_check_future(). Add symtable_lookup() helper for future use.
* Make sure ConfigParser uses .optionxform() consistently; this affectsFred Drake2001-02-263-0/+28
| | | | | | .has_option(), .remove_option(), and .set(). This closes SF tracker #232913.
* Add __future__.py to std library, + dull test to verify that assignmentsTim Peters2001-02-263-0/+87
| | | | therein are of the proper form.
* Additional tests for current, PEP described semantics:Barry Warsaw2001-02-261-3/+36
| | | | | | | | | | | | - func.__dict__ is None until the first attribute is assigned - del func.__dict__ is equivalent to func.__dict__ = None - disallowing assignment to function attribute through unbound method (it was always illegal to assign through bound method). - verifying that setting attribute explicitly on underlying function via meth.im_func is okay.