summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* The "O!" format code should implement an isinstance() testGuido van Rossum2001-08-281-1/+1
| | | | rather than a type equality test.
* XXX_NAME ops should affect varnamesJeremy Hylton2001-08-282-2/+8
| | | | | | 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-282-10/+18
|
* FOR_ITER is a jrel_op() not a plain old def_op()Jeremy Hylton2001-08-281-1/+1
|
* Added explanation that [...] * n generates shallow copies of [...], soFred Drake2001-08-281-2/+26
| | | | | | the contents will be shared by multiple references. This closes SF bug #455694.
* Added list of tests expected to be skipped on the mac.Jack Jansen2001-08-281-0/+36
|
* Fix a number of minor markup errors, and improve the consistency a bit.Fred Drake2001-08-281-16/+16
|
* Plant a mention in the description of backreferences of the fact thatEric S. Raymond2001-08-281-1/+5
| | | | while \0 doesn't do what one might expect, \g<0> does.
* Refcount info for PyString_FromFormat() and PyString_FromFormatV().Barry Warsaw2001-08-281-0/+8
| | | | Closes SF patch #455666.
* Documentation for PyString_FromFormat() and PyString_FromFormatV().Barry Warsaw2001-08-281-0/+28
| | | | Closes SF patch #455666.
* Experimental feature: allow \n as well as \r as newline for text files, by ↵Jack Jansen2001-08-271-0/+17
| | | | breaking in to the lowlevel I/O system. Can be disabled by defining WITHOUT_UNIX_NEWLINES.
* Handle private namesJeremy Hylton2001-08-276-40/+100
| | | | | | | | | | | | | | | | | | | (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()
* exceptions was missing from the module list. Added.Jack Jansen2001-08-271-0/+1
|
* 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-272-0/+8
|
* Many changes -- bug fixes and sundry improvementsJeremy Hylton2001-08-272-66/+60
| | | | | | | | | | | | | | | | 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.
* Use the new macresource module to open the accompanying resource file (if ↵Jack Jansen2001-08-2713-102/+37
| | | | needed).
* need() now returns the refno of the resource file opened, or None if theJack Jansen2001-08-271-4/+7
| | | | specified resource was already available and no file was opened.
* Module to help other modules locate their resources. It currently knows aboutJack Jansen2001-08-271-0/+68
| | | | | resources in applets and separate OS9 style resource files, but it will eventually also be thought the hoops to jump through on OSX/MachO.
* These have long outlived there usefulness, in my opinion. Moved to Unsupported.Jack Jansen2001-08-275-0/+0
|
* Fix for sibling nodes that define the same free variableJeremy Hylton2001-08-272-12/+20
| | | | | | | | 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-272-10/+42
| | | | | | | | | | | | 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-272-40/+46
| | | | | | | 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.
* Why didn't I think of Fred off the top of my head?Jeremy Hylton2001-08-271-0/+1
|
* Add everyone I can think of off the top of my headJeremy Hylton2001-08-271-0/+7
|
* Revise regrtest to compile entire standard library.Jeremy Hylton2001-08-271-9/+28
| | | | | | | | | The tests are run from a copy of the library directory, where everything has been compiled by the compiler package. Add a raw_input() call at the end of the script, so that I can check the output before the temp directory with the compiled code is removed.
* Add -c option to continue if one file has a SyntaxErrorJeremy Hylton2001-08-271-2/+15
|
* 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.
* Docs for the PEP 264 changes.Michael W. Hudson2001-08-274-22/+112
|
* If an integer constant can't be generated from an integer literalJeremy Hylton2001-08-271-5/+2
| | | | because of overflow, generate a long instead.
* SF bug [#455775] float parsing discrepancy.Tim Peters2001-08-272-5/+23
| | | | PyTokenizer_Get: error if exponent contains no digits (3e, 2.0e+, ...).
* Added Dean Draayer to the thank you list.Jack Jansen2001-08-271-2/+2
|
* Patch by Dean Draayer: support for indeterminate progress bars. YouJack Jansen2001-08-271-27/+37
| | | | | | get these by specifying maxval=0, which is now also the default. Untested.
* 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.
* Fixes by Thomas Heller:Jack Jansen2001-08-275-12/+13
| | | | | | - make the selftests work again (they were apparently not used since very early in bgen's development), with some minor cleanup by me - make emacs python mode happier
* Refer to the toolbox modules by their official name (Carbon.AE), not the ↵Jack Jansen2001-08-271-59/+59
| | | | internal name (_AE). This can slow things down (once) but it's the only way I can get things to work on OSX, OS9 dynamically loaded and OS9 frozen.
* When we're freezing to sourcecode and one of the modules is a dynamic module ↵Jack Jansen2001-08-271-0/+4
| | | | that is in a package we freeze that module at toplevel (outside any package). Not optimal, but there is little more we can do as config.c has no way to specify a builtin module has to be dumped into a package.
* Updated to the current state of affairs.Jack Jansen2001-08-272-0/+0
|
* Added targets for building the Carbon and Classic interpreter if you don't ↵Jack Jansen2001-08-271-0/+0
| | | | want to go through fullbuild.py.
* - A forgotten "from Carbon".Jack Jansen2001-08-271-2/+3
| | | | | - Made the "killed unknown window" code dependent on a global var, so you can easily turn the behaviour off for IDE debugging.
* A few forgotten "from Carbon"s.Jack Jansen2001-08-272-2/+2
|
* SF patch [ #455137 ] Makes popen work with COMMAND.COM on WNT, fromTim Peters2001-08-273-9/+26
| | | | Brian Quinlan.
* Two improvements suggested by Greg Stein:Barry Warsaw2001-08-271-2/+5
| | | | | | | | | PyString_FromFormatV(): In the final resize at the end, we can use PyString_AS_STRING() since we know the object is a string and can avoid the typechecking. PyString_FromFormat(): GS sez: "For safety/propriety, you should call va_end() on the vargs variable."
* Import the MacOS toolbox modules from the Carbon package.Jack Jansen2001-08-25100-331/+336
|
* Step 2 in putting the MacOS toolbox modules in a package: issue a ↵Jack Jansen2001-08-2545-0/+135
| | | | DepracationWarning in the compatibility modules.
* PyString_FromFormatV: Massage platform %p output to match what gcc does,Tim Peters2001-08-251-0/+8
| | | | | | | at least in the first two characters. %p is ill-defined, and people will forever commit bad tests otherwise ("bad" in the sense that they fall over (at least on Windows) for lack of a leading '0x'; 5 of the 7 tests in test_repr.py failed on Windows for that reason this time around).
* 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.