Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add new tokens // and //=, in support of PEP 238. | Guido van Rossum | 2001-08-08 | 1 | -0/+1 |
| | |||||
* | Implement PEP 238 in its (almost) full glory. | Guido van Rossum | 2001-08-08 | 1 | -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 smarts | Steven M. Gava | 2001-08-08 | 1 | -11/+25 |
| | |||||
* | Fix SF bug [ #447370 ] typo in urllib2.py | Jeremy Hylton | 2001-08-07 | 1 | -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 bug | Guido van Rossum | 2001-08-07 | 1 | -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 pcre | Fred Drake | 2001-08-07 | 1 | -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 thing | Fred Drake | 2001-08-07 | 2 | -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 quote | Fred Drake | 2001-08-07 | 1 | -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 Rossum | 2001-08-07 | 1 | -2/+2 |
| | |||||
* | Remove the __iter__ method from the UserDict class -- it can silently | Guido van Rossum | 2001-08-07 | 1 | -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 to | Guido van Rossum | 2001-08-07 | 1 | -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 be | Guido van Rossum | 2001-08-07 | 1 | -24/+0 |
| | | | | | instantiated. (Its use as a base class is adequately tested by other tests.) | ||||
* | silence warnings about import * | Jeremy Hylton | 2001-08-07 | 1 | -0/+7 |
| | |||||
* | more fleshing out, this time primarily the 'general' page | Steven M. Gava | 2001-08-07 | 1 | -2/+73 |
| | |||||
* | fix for Bug ID 448100 - "test code using NL instead of CRNL" | Piers Lauder | 2001-08-05 | 1 | -1/+1 |
| | |||||
* | began font / indentation page | Steven M. Gava | 2001-08-05 | 1 | -7/+85 |
| | |||||
* | Hack to workaround bug #445984: attempt to import _socket before | Greg Ward | 2001-08-04 | 1 | -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 page | Steven M. Gava | 2001-08-04 | 1 | -29/+119 |
| | |||||
* | Derived from SF patch #446899 Permit import of .pyw under Windows, from | Tim Peters | 2001-08-04 | 1 | -39/+46 |
| | | | | David Bolen. | ||||
* | Refactor so that it is easier to work with alternate MIME types databases, | Fred Drake | 2001-08-03 | 1 | -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 Peters | 2001-08-03 | 1 | -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, the | Fred Drake | 2001-08-03 | 1 | -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 Drake | 2001-08-03 | 1 | -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 Jansen | 2001-08-03 | 1 | -3/+3 |
| | |||||
* | further work on config dialog, particularly highligthing config | Steven M. Gava | 2001-08-03 | 1 | -34/+146 |
| | |||||
* | Make sure that WeakValueDictionary[] raises KeyError instead of TypeError | Fred Drake | 2001-08-03 | 2 | -1/+6 |
| | | | | for keys that are not in the dictionary. | ||||
* | Miscellaneous minor cleanups. | Fred Drake | 2001-08-02 | 1 | -20/+21 |
| | |||||
* | This test failed under python -O. | Tim Peters | 2001-08-02 | 1 | -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 Rossum | 2001-08-02 | 1 | -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öwis | 2001-08-02 | 8 | -9/+2 |
| | |||||
* | Merge of descr-branch back into trunk. | Tim Peters | 2001-08-02 | 5 | -7/+849 |
| | |||||
* | s/endswith/startswith/ | Tim Peters | 2001-08-01 | 1 | -1/+1 |
| | |||||
* | Rewritten version of Finn Bock's SF patch #446907 (Allow jython to | Tim Peters | 2001-08-01 | 1 | -1/+4 |
| | | | | complete test_import). | ||||
* | Turn an octal constant into a hex constant. | Guido van Rossum | 2001-08-01 | 1 | -1/+1 |
| | |||||
* | A more lightweight (and read only) way to view help text | Steven M. Gava | 2001-07-31 | 1 | -38/+4 |
| | | | | | until the new help system is implemented. Removed some commented cruft. | ||||
* | indentation style changed to match existing source | Steven M. Gava | 2001-07-31 | 2 | -174/+174 |
| | |||||
* | improve viewfile handling | Steven M. Gava | 2001-07-31 | 1 | -113/+118 |
| | | | | indentation style changed to match existing source | ||||
* | Add dead imports of modules that are "magically" imported. | Martin v. Löwis | 2001-07-31 | 2 | -0/+11 |
| | |||||
* | Remove obsolete entries from regen scripts. | Martin v. Löwis | 2001-07-31 | 14 | -40/+1 |
| | |||||
* | Initialize msg to avoid unbound locals. | Martin v. Löwis | 2001-07-31 | 5 | -0/+6 |
| | |||||
* | activate new about dialog for testing | Steven M. Gava | 2001-07-31 | 1 | -5/+7 |
| | |||||
* | removed redundant separate idlfefork ver | Steven M. Gava | 2001-07-31 | 1 | -2/+1 |
| | |||||
* | some new dialogs and support files for new about and configuration ↵ | Steven M. Gava | 2001-07-31 | 4 | -0/+365 |
| | | | | implementations | ||||
* | Amazing. This would open the sound file in text mode. Fixed. | Guido van Rossum | 2001-07-31 | 1 | -1/+1 |
| | | | | SF bug #446219. | ||||
* | test_codeup should not have had an expected-output file; removing it. | Tim Peters | 2001-07-30 | 1 | -10/+0 |
| | |||||
* | Add tests for getattr() and hasattr() with non-string args | Jeremy Hylton | 2001-07-30 | 2 | -0/+24 |
| | |||||
* | Get the whitespace right! | Fred Drake | 2001-07-30 | 1 | -3/+3 |
| | |||||
* | Fix for SF bug [ #443866 ] Evaluating func_code causing core dump | Jeremy Hylton | 2001-07-30 | 2 | -0/+14 |
| | | | | Add test that calls eval with a code object that has free variables. | ||||
* | Ugly fix used when pyexpat is not available. | Jeremy Hylton | 2001-07-30 | 1 | -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 built | Jeremy Hylton | 2001-07-30 | 1 | -0/+1 |
| | | | | | Import pyexpat first so that import error occurs when it is not available. |