summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix one test to reflect the change in method lookup policy.Guido van Rossum2001-08-281-2/+1
|
* Make sure the JUMP_ABSOLUTE and POP_BLOCK at the end of a for loop areJeremy Hylton2001-08-281-1/+1
| | | | contiguous.
* XXX_NAME ops should affect varnamesJeremy Hylton2001-08-281-1/+4
| | | | | | varnames should list all the local variables (with arguments first). The XXX_NAME ops typically occur at the module level and assignment ops should create locals.
* Generate FOR_ITER-based loops instead of old FOR_LOOP-based loopsJeremy Hylton2001-08-281-5/+9
|
* FOR_ITER is a jrel_op() not a plain old def_op()Jeremy Hylton2001-08-281-1/+1
|
* Added list of tests expected to be skipped on the mac.Jack Jansen2001-08-281-0/+36
|
* Handle private namesJeremy Hylton2001-08-273-20/+50
| | | | | | | | | | | | | | | | | | | (Hard to believe these were never handled before) Add misc.mangle() that mangles based on the rules in compile.c. XXX Need to test the corner cases Update CodeGenerator with a class_name attribute bound to None. If a particular instance is created within a class scope, the instance's class_name is bound to that class's name. Add mangle() method to CodeGenerator that mangles if the class_name has a class_name in it. Modify the FunctionCodeGenerator family to handle an extra argument-- the class_name. Wrap all name ops and attrnames in calls to self.mangle()
* A quick hack to make the test pass on the Mac (similar to the quick hackJack Jansen2001-08-271-0/+4
| | | | to make it pass on Windows:-).
* emit SET_LINENO for augmented assignmentsJeremy Hylton2001-08-271-0/+4
|
* Many changes -- bug fixes and sundry improvementsJeremy Hylton2001-08-271-33/+30
| | | | | | | | | | | | | | | | Make nested scopes enabled by default Add is_constant_false() helper so that compiled code and symbols are consistent with builtin compiler's handling of "if 0:" Fix doc string handling to be consistent with recent change that eliminates the doc string from the Module's node attribute. Add fix to print handling from Evan & Shane. Track change to visitor api by making "verbose" explicit. Comment out setting CO_NESTED flag (it's unnecessary in 2.2).
* Fix another test still expecting overflow on big int literals.Tim Peters2001-08-271-7/+2
|
* Change test_overflow to test_no_overflow; looks like big int literalsTim Peters2001-08-271-4/+5
| | | | | are auto-coerced to longs now, but this test still expected OverflowError. I can't imagine this test failure was unique to Windows.
* Fix for sibling nodes that define the same free variableJeremy Hylton2001-08-271-6/+10
| | | | | | | | Evan Simpson's fix. And his explanation: If you defined two nested functions in a row that refer to the same non-global variable, the second one will be generated as though the variable were global.
* Add lookup_name() to optimize use of stack framesJeremy Hylton2001-08-271-5/+21
| | | | | | | | | | | | The use of com_node() introduces a lot of extra stack frames, enough to cause a stack overflow compiling test.test_parser with the standard interpreter recursionlimit. The com_node() is a convenience function that hides the dispatch details, but comes at a very high cost. It is more efficient to dispatch directly in the callers. In these cases, use lookup_node() and call the dispatched node directly. Also handle yield_stmt in a way that will work with Python 2.1 (suggested by Shane Hathaway)
* Two changes to visitor API:Jeremy Hylton2001-08-271-20/+23
| | | | | | | Remove _preorder as alias for dispatch and call dispatch directly. Add an extra optional argument to walk() XXX Also comment out some code that does debugging prints.
* Add content-type header to ftp URLs (SF patch #454553)Jeremy Hylton2001-08-273-14/+27
| | | | | | | | Modify rfc822.formatdate() to always generate English names, regardless of locale. This is required by RFC 1123. In open_local_file() of urllib and urllib2, use new formatdate() from rfc822.
* SF bug [#455775] float parsing discrepancy.Tim Peters2001-08-271-0/+15
| | | | PyTokenizer_Get: error if exponent contains no digits (3e, 2.0e+, ...).
* Patch by Bill Noon: added 'dylib' as a library type along withJack Jansen2001-08-272-4/+9
| | | | | 'static' and 'shared'. This fixes extension building for dynamic Pythons on MacOSX.
* Undo previous checkin -- Barry fixed it better.Guido van Rossum2001-08-241-2/+0
|
* Update test output to match new (more informative) error message aboutGuido van Rossum2001-08-241-2/+2
| | | | calling unbound method with wrong first argument.
* Quick and dirty fix for test_extcall failures trigged by Guido'sBarry Warsaw2001-08-242-4/+8
| | | | | | | recent classobject.c change. When calling an unbound method with no instances as first argument, the error message has changed. The message now contains the class name, but the output text being compared to is too generic, so skip printing it.
* Remove the local 'getset' class -- this is now a built-in type withGuido van Rossum2001-08-241-18/+0
| | | | the same signature.
* Rip the import repr truncation test out of here and put it in test_repr.pyBarry Warsaw2001-08-241-35/+0
|
* Added lots of tests for reprs of "simple" objects, such as file,Barry Warsaw2001-08-241-0/+156
| | | | | | | lambda (anonymous functions?), function, xrange, buffer, cell (need to fill in), and (some) descriptor types. Also added a new test case for testing repr truncation fixes.
* Repair repr of future-features (wasn't updated to include the newTim Peters2001-08-241-2/+3
| | | | compiler-flag argument).
* supers(): typo -- "if verify" should be "if verbose".Guido van Rossum2001-08-241-1/+1
|
* Add test suite for super().Guido van Rossum2001-08-241-0/+32
|
* Add a test for the new getset type.Guido van Rossum2001-08-241-0/+24
|
* SF patch #454553 by Walter Dörwald: add content-type to FTP URLs, likeGuido van Rossum2001-08-241-4/+7
| | | | for urllib.
* Back out trying to use the C values for CO_xxx.Tim Peters2001-08-241-10/+10
| | | | | __future__.py reverted to 1.9. newmodule.c reverted to 2.32.
* Looks like someone forgot the change the expected output file.Tim Peters2001-08-241-14/+14
|
* Add a test for the new // operator too.Tim Peters2001-08-231-0/+4
|
* SF bug [#454456] int overflow code needs tests.Tim Peters2001-08-231-0/+61
| | | | | Added tests for boundary cases in magical PEP 237 int->long auto-overflow, but nothing here addresses the rest of the bug report so left it open.
* Patch #449054 to implement PEP 250. The standard install directory forGreg Ward2001-08-232-8/+22
| | | | | | modules and extensions on Windows is now $PREFIX/Lib/site-packages. Includes backwards compatibility code for pre-2.2 Pythons. Contributed by Paul Moore.
* Remove test_long's expected-output file.Tim Peters2001-08-232-9/+8
|
* untabificationFredrik Lundh2001-08-231-5/+5
|
* updated to current PythonWare version (1.0b3). fixed type checks inFredrik Lundh2001-08-231-9/+15
| | | | | DateTime constructor. use ServerProxy instead of Server in sample code.
* Committing and closing SF patch #441348 to help Jython to pass this test.Finn Bock2001-08-231-1/+1
|
* SF patch #454553 by Walter Dörwald: auto-guess content-type header forGuido van Rossum2001-08-231-5/+7
| | | | ftp urls.
* Don't make even the _slightest_ modification between test and checkin,Jack Jansen2001-08-231-1/+1
| | | | or you will break something:-)
* The MacOS module may be available on Mac OS X, but it doesn't have a ↵Jack Jansen2001-08-231-1/+1
| | | | SchedParams() method, and there's no need to call it anyway.
* Turn OverflowWarning into an error locally, in order to make theGuido van Rossum2001-08-231-0/+3
| | | | OverflowError test succeed.
* Ignore OverflowWarning by default. To enable the warning, useGuido van Rossum2001-08-231-0/+1
| | | | | | | | python -Wdefault or python -Wdefault::OverflowWarning
* Merge changes from r22a2-branch back into trunk. Also, change patchBarry Warsaw2001-08-221-0/+3
| | | | level to 2.2a2+
* Enhancements:Ka-Ping Yee2001-08-211-93/+111
| | | | | | | | | | - file URL now starts with "file://" (standard) rather than "file:" - new optional argument 'context' to enable() - repeated variable names don't have their values shown twice - dotted attributes are shown; missing attributes handled reasonably - highlight the whole logical line even if it has multiple physical lines - use nice generator interface to tokenize - formatting fixed so that it looks good in lynx, links, and w3m too
* A test of SSL support, using a roundabout method suggested by Guido.Barry Warsaw2001-08-201-0/+13
| | | | However, this is only enabled with regrtest's --use=network switch.
* Use test_support.requires() to decide whether additional largefileBarry Warsaw2001-08-201-7/+8
| | | | tests should be run.
* Removed --have-resources flag in favor of the more granular -u/--useBarry Warsaw2001-08-201-22/+61
| | | | | | | | | | | | | | | | | | | flag, which specifies external or resource intensive tests to perform. This is used by test_largefile and test_socket_ssl. -u/--use takes a comma separated list of flags, currently supported: largefile, network. usage(): New function. Note that the semantics of main() have changed slightly; instead of returning an error code, it raises a SystemExit (via sys.exit()) with the given error code. main(): use_large_resources => use_resources Also, added support for long-option alternative to the short options. _expectations: Added test_socket_ssl to the list of expectedly skipped tests.
* use_large_resources => use_resourcesBarry Warsaw2001-08-201-2/+8
| | | | | | | | requires(): New function which can be used to `assert' that a specific -u/--use resource flag is present. Raises a TestSkipped if not. This is used in test_largefile and test_socket_ssl to enable external or resource consumptive tests that are normally disabled.
* Whitespace normalization.Tim Peters2001-08-202-3/+3
|