summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Add new tokens // and //=, in support of PEP 238.Guido van Rossum2001-08-081-0/+1
|
* Implement PEP 238 in its (almost) full glory.Guido van Rossum2001-08-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This introduces: - A new operator // that means floor division (the kind of division where 1/2 is 0). - The "future division" statement ("from __future__ import division) which changes the meaning of the / operator to implement "true division" (where 1/2 is 0.5). - New overloadable operators __truediv__ and __floordiv__. - New slots in the PyNumberMethods struct for true and floor division, new abstract APIs for them, new opcodes, and so on. I emphasize that without the future division statement, the semantics of / will remain unchanged until Python 3.0. Not yet implemented are warnings (default off) when / is used with int or long arguments. This has been on display since 7/31 as SF patch #443474. Flames to /dev/null.
* beginning of work on the conf. handling smartsSteven M. Gava2001-08-081-11/+25
|
* Fix SF bug [ #447370 ] typo in urllib2.pyJeremy Hylton2001-08-071-7/+9
| | | | | | | | | Also fix another bug caught by pychecker-- HTTPError() raised when redirect limit exceed did not pass an fp object. Had to change method to keep fp object around until it's certain that the error won't be raised. Remove useless line in do_proxy().
* Apply two small changes to the Windows code, according to SF bugGuido van Rossum2001-08-071-2/+2
| | | | | #427345. These are supposed to support binary data and avoid buffering problems on Windows.
* Remove make_re() function; this is no longer needed since _sre and pcreFred Drake2001-08-071-10/+0
| | | | | | | are now allowed by ok_builtin_modules. This effectively backs out revision 1.26. This closes SF bug #448546.
* Add a test that xml.sax.saxutils.XMLGenerator does the right thingFred Drake2001-08-072-1/+18
| | | | | | when quoting attribute values that contain single & double quotes. This provides the rest of the regression test for SF bug #440351.
* Make sure XMLGenerator uses quoteattr() instead of escape() to quoteFred Drake2001-08-071-2/+2
| | | | | | | attribute values. Just using escape() can (and always has) led to broken XML being generated. This makes sure it always produces the right thing. This actually closes SF bug #440351.
* Fix the test so it uses IterableUserDict for the "for x in dict" test.Guido van Rossum2001-08-071-2/+2
|
* Remove the __iter__ method from the UserDict class -- it can silentlyGuido van Rossum2001-08-071-0/+2
| | | | | | | | | | break old code (in extreme cases). See SF bug #448153. Add a new subclass IterableUserDict that has the __iter__ method. Note that for new projects, unless backwards compatibility with pre-2.2 Python is required, subclassing 'dictionary' is recommended; UserDict might become deprecated.
* Add the NannyNag exception class and the process_tokens() function toGuido van Rossum2001-08-071-1/+1
| | | | | | | | | __all__, to indicate these are implied as part of the public API. IDLE's "Check Module" command uses this, and it broke once already because the reset_globals() and tokeneater() functions were deleted when Neil converted this to using the generator API of tokenizer. (See SF bug #448835.)
* Remove the test for the 'object' type -- it can no longer beGuido van Rossum2001-08-071-24/+0
| | | | | instantiated. (Its use as a base class is adequately tested by other tests.)
* silence warnings about import *Jeremy Hylton2001-08-071-0/+7
|
* more fleshing out, this time primarily the 'general' pageSteven M. Gava2001-08-071-2/+73
|
* fix for Bug ID 448100 - "test code using NL instead of CRNL"Piers Lauder2001-08-051-1/+1
|
* began font / indentation pageSteven M. Gava2001-08-051-7/+85
|
* Hack to workaround bug #445984: attempt to import _socket beforeGreg Ward2001-08-041-0/+4
| | | | | | | starting the test suite proper. If _socket fails to build, that will make this test fail with an ImportError -- handled by the test harness as "no such module _socket" -- instead of an AttributeError deep in CGIHTTPServer.
* further work on keybinding pageSteven M. Gava2001-08-041-29/+119
|
* Derived from SF patch #446899 Permit import of .pyw under Windows, fromTim Peters2001-08-041-39/+46
| | | | David Bolen.
* Refactor so that it is easier to work with alternate MIME types databases,Fred Drake2001-08-031-67/+138
| | | | | | and programmatically extend the database in different ways. This closes the SF bug (feature request) #439710.
* Don't use any characters C doesn't guarantee are safe for text-mode files.Tim Peters2001-08-031-12/+12
| | | | This should stop the bizarre translations Jack was getting from Mac CVS.
* Fix stupid bug: when migrating these tests from the Zope repository, theFred Drake2001-08-031-14/+20
| | | | | | | | | names of the test methods were not changed from the Zope-standard "check" names to the Python-standard "test_" names, so the tests were not actually being run. Added test of hexadecimal character references as a regression check for SF bug #445196.
* Change some comments into docstrings.Fred Drake2001-08-031-27/+31
| | | | | | Fix handling of hexadecimal character references (legal in XHTML) so that they are properly interpreted as character references. This fixes SF bug #445196.
* The test opened the binary test data files in text mode! Fixed.Jack Jansen2001-08-031-3/+3
|
* further work on config dialog, particularly highligthing configSteven M. Gava2001-08-031-34/+146
|
* Make sure that WeakValueDictionary[] raises KeyError instead of TypeErrorFred Drake2001-08-032-1/+6
| | | | for keys that are not in the dictionary.
* Miscellaneous minor cleanups.Fred Drake2001-08-021-20/+21
|
* This test failed under python -O.Tim Peters2001-08-021-3/+7
| | | | | rewrite_file(): Delete both .pyc and .pyo leftovers, and explicitly close the new source file after writing to it.
* Unit test for improved package import semantics.Guido van Rossum2001-08-021-0/+74
| | | | | Original by Alex Coventry (in SF patch #441791), adapted to the standard regression test framework.
* Patch #444359: Remove unused imports.Martin v. Löwis2001-08-028-9/+2
|
* Merge of descr-branch back into trunk.Tim Peters2001-08-025-7/+849
|
* s/endswith/startswith/Tim Peters2001-08-011-1/+1
|
* Rewritten version of Finn Bock's SF patch #446907 (Allow jython toTim Peters2001-08-011-1/+4
| | | | complete test_import).
* Turn an octal constant into a hex constant.Guido van Rossum2001-08-011-1/+1
|
* A more lightweight (and read only) way to view help textSteven M. Gava2001-07-311-38/+4
| | | | | until the new help system is implemented. Removed some commented cruft.
* indentation style changed to match existing sourceSteven M. Gava2001-07-312-174/+174
|
* improve viewfile handlingSteven M. Gava2001-07-311-113/+118
| | | | indentation style changed to match existing source
* Add dead imports of modules that are "magically" imported.Martin v. Löwis2001-07-312-0/+11
|
* Remove obsolete entries from regen scripts.Martin v. Löwis2001-07-3114-40/+1
|
* Initialize msg to avoid unbound locals.Martin v. Löwis2001-07-315-0/+6
|
* activate new about dialog for testingSteven M. Gava2001-07-311-5/+7
|
* removed redundant separate idlfefork verSteven M. Gava2001-07-311-2/+1
|
* some new dialogs and support files for new about and configuration ↵Steven M. Gava2001-07-314-0/+365
| | | | implementations
* Amazing. This would open the sound file in text mode. Fixed.Guido van Rossum2001-07-311-1/+1
| | | | SF bug #446219.
* test_codeup should not have had an expected-output file; removing it.Tim Peters2001-07-301-10/+0
|
* Add tests for getattr() and hasattr() with non-string argsJeremy Hylton2001-07-302-0/+24
|
* Get the whitespace right!Fred Drake2001-07-301-3/+3
|
* Fix for SF bug [ #443866 ] Evaluating func_code causing core dumpJeremy Hylton2001-07-302-0/+14
| | | | Add test that calls eval with a code object that has free variables.
* Ugly fix used when pyexpat is not available.Jeremy Hylton2001-07-301-0/+3
| | | | | | | | | | If pyexpat is not available and more than one attempt is made to load an expat-based xml parser, an empty xml.parser.expat module will be created. This empty module will confuse xml.sax.expatreader into thinking that pyexpat is available. The ugly fix is to verify that the expat module actually defines the names that are imported from pyexpat.
* Fix when pyexpat not builtJeremy Hylton2001-07-301-0/+1
| | | | | Import pyexpat first so that import error occurs when it is not available.