summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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.
* getset_init(): the function name in the PyArg_ParseTuple() formatGuido van Rossum2001-08-241-1/+1
| | | | should just be "getset", not "getset.__init__".
* Improve the error message issued when an unbound method is called withGuido van Rossum2001-08-241-3/+49
| | | | | | an inappropriate first argument. Now that there are more ways for this to fail, make sure to report the name of the class of the expected instance and of the actual instance.
* 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.
* PyErr_Format(): Factor out most of this code intoBarry Warsaw2001-08-241-114/+1
| | | | | PyString_FromFormat() since it's much more generally useful than just for exceptions.
* repr's converted to using PyString_FromFormat() instead of sprintf'ingBarry Warsaw2001-08-2411-136/+95
| | | | | | into a hardcoded char* buffer. Closes patch #454743.
* PyString_FromFormat() and PyString_FromFormatV(): Largely ripped fromBarry Warsaw2001-08-242-0/+159
| | | | | | | | | | | | | | | | | | | PyErr_Format() these new C API methods can be used instead of sprintf()'s into hardcoded char* buffers. This allows us to fix many situation where long package, module, or class names get truncated in reprs. PyString_FromFormat() is the varargs variety. PyString_FromFormatV() is the va_list variety Original PyErr_Format() code was modified to allow %p and %ld expansions. Many reprs were converted to this, checkins coming soo. Not changed: complex_repr(), float_repr(), float_print(), float_str(), int_repr(). There may be other candidates not yet converted. Closes patch #454743.
* 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 'super' builtin type.Guido van Rossum2001-08-241-0/+3
|
* Add decl of PySuper_Type; fixup comments for the two other types.Guido van Rossum2001-08-241-2/+3
|
* Add 'super', another new object type with magical properties.Guido van Rossum2001-08-241-0/+155
| | | | | | | | | | | super(type) -> unbound super object super(type, obj) -> bound super object; requires isinstance(obj, type) Typical use to call a cooperative superclass method: class C(B): def meth(self, arg): super(C, self).meth(arg);
* Add a test for the new getset type.Guido van Rossum2001-08-241-0/+24
|