Staging
v0.5.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
69374e4 Flush output more aggressively. This makes things look better if the setup script is running from inside Vim. 29 August 2001, 23:57:22 UTC
c806c88 Use new GC API. Remove usage of BASICSIZE macros. 29 August 2001, 23:54:54 UTC
e83c00e Use new GC API. 29 August 2001, 23:54:21 UTC
fd34369 Remove GC related code. It lives in gcmodule now. 29 August 2001, 23:54:03 UTC
4f4817f Make frames a PyVarObject. Use new GC API. 29 August 2001, 23:52:17 UTC
01b66a8 Remove bogus PyGC_HEAD_SIZE. 29 August 2001, 23:50:42 UTC
74b5ade Change the GC type flag since the API has changed. Allow types using the old flag to still compile. Remove the PyType_BASICSIZE and PyType_SET_BASICSIZE macros. Add PyObject_GC_New, PyObject_GC_NewVar, PyObject_GC_Resize, PyObject_GC_Del, PyObject_GC_Track, PyObject_GC_UnTrack. Part of SF patch #421893. 29 August 2001, 23:49:28 UTC
31ec142 Change the GC type flag since the API has changed. Allow types using the old flag to still compile. 29 August 2001, 23:46:35 UTC
251ead8 Make frames a PyVarObject instead of a PyObject. 29 August 2001, 23:45:25 UTC
9c63e6d Always compile gcmodule. 29 August 2001, 23:44:38 UTC
e4685ec Track the block stack more reasonably in order to handle continue in try/except or try/finally. Previous versions had only track SETUP_LOOP blocks and ignored the exception part. This meant that it allowed continue inside a try/except but generated buggy code. Now it does the right thing. 29 August 2001, 22:30:09 UTC
9263848 Improve stack depth computation for try/except and try/finally Add CONTINUE_LOOP to the list of unconditional transfers 29 August 2001, 22:27:14 UTC
4bd4ddd Add __getitem__() handler for use by visitContinue() 29 August 2001, 22:26:35 UTC
7c10008 Added xx and xxsubtype modules, for completeness and because xxsubtype is used by the test suite. 29 August 2001, 22:08:06 UTC
028f2d5 Started on release notes and readme for 2.2a2. 29 August 2001, 22:04:08 UTC
79248aa SF bug [#456252] Python should never stomp on [u]intptr_t. pyport.h: typedef a new Py_intptr_t type. DELICATE ASSUMPTION: That HAVE_UINTPTR_T implies intptr_t is available as well as uintptr_t. If that turns out not to be true, things must get uglier (C99 wants both, so I think it's an assumption we're *likely* to get away with). thread_nt.h, PyThread_start_new_thread: MS _beginthread is documented as returning unsigned long; no idea why uintptr_t was being used. Others: Always use Py_[u]intptr_t, never [u]intptr_t directly. 29 August 2001, 21:37:10 UTC
1936745 Generate SET_LINENO for list and tuple literals when the open paren starts a new line. Also fix undetected typo in visitDict() -- uncovered by recent change to add lineno attrs to atoms. 29 August 2001, 20:57:43 UTC
7845cf8 Make sure that atoms (Tuple, List, etc.) have lineno attributes 29 August 2001, 20:56:30 UTC
4ba9001 Fix off-by-one errors in code to find depth of stack. XXX The code is still widely inaccurate, but most (all?) of the time it's an overestimate. 29 August 2001, 20:55:17 UTC
8779787 Workaround by Tim Peters to skip this test if run from test.autotest, in which case it will hang because the import lock is already held by the main thread. 29 August 2001, 20:26:24 UTC
bf77c46 Undo change from list to dict for handling varnames, consts, etc. As the doc string for _lookupName() explains: This routine uses a list instead of a dictionary, because a dictionary can't store two different keys if the keys have the same value but different types, e.g. 2 and 2L. The compiler must treat these two separately, so it does an explicit type comparison before comparing the values. 29 August 2001, 19:45:33 UTC
5a9ac97 Change default() to use getChildNodes() instead of getChildren() 29 August 2001, 18:17:22 UTC
94afe32 Support // and //= Generate SET_LINENO for del statements. Define klass=1 for PyFlowGraph constructor for a class statement. A class has no varnames. 29 August 2001, 18:14:39 UTC
7abf520 Add support for // and //=. Avoid if/elif/elif/else tests where the final else is supposed to handle exactly one case instead of all other cases. When the list of operators is extended, the catchall else treats all new operators as the last operator in the set of tests. Instead, raise an exception if an unexpected operator occurs. 29 August 2001, 18:12:30 UTC
d4be10d Add generator detection to symbol table. Fix bug in handling of statements like "l[x:y] = 2". The visitor was treating this as assignments to l, x, and y! 29 August 2001, 18:10:51 UTC
e4e9cd4 Modify name conversion to be (hopefully) a bit more efficient. Use a dictionary instead of a list to map objects to their offsets in a const/name tuple of a code object. XXX The conversion is perhaps incomplete, in that we shouldn't have to do the list2dict to start. 29 August 2001, 18:09:50 UTC
5477f52 Revise implementations of getChildren() and getChildNodes(). Add support for floor division (// and //=) The implementation of getChildren() and getChildNodes() is intended to be faster, because it avoids calling flatten() on every return value. But it's not clear that it is a lot faster, because constructing a tuple with just the right values ends up being slow. (Too many attribute lookups probably.) The ast.txt file is much more complicated, with funny characters at the ends of names (*, &, !) to indicate the types of each child node. The astgen script is also much more complex, making me wonder if it's still useful. 29 August 2001, 18:08:02 UTC
96d68d5 Add opcodes for floor division and true division (PEP 238) 29 August 2001, 18:02:21 UTC
4de8df9 Add tests for augmented floor division 29 August 2001, 17:50:27 UTC
da8db8c Don't include doc string of class in its code child 29 August 2001, 17:19:02 UTC
8aea0cc Now that int is subclassable, have to change a test that tests for non-subclassability. (More tests for number subclassing should follow.) 29 August 2001, 15:48:43 UTC
bef1417 Make int, long and float subclassable. This uses a slightly wimpy and wasteful approach, but it works. :-) 29 August 2001, 15:47:46 UTC
e705ef1 Fix super() so that it is usable for static methods (like __new__) as well. In particular, the second argument can now be a subclass of the first as well (normally it must be an instance though). 29 August 2001, 15:47:06 UTC
c16fcdf Make the PyXXX_Check() macros for the numeric types inheritance-aware. 29 August 2001, 15:45:32 UTC
c51395d GUSI on the Mac creates threads with a default stack size of 20KB, which is not enough for Python. Increased the stacksize to a (somewhat arbitrary) 64KB. 29 August 2001, 15:24:53 UTC
f9dc043 Fix a minor markup typo. 29 August 2001, 02:34:10 UTC
8211237 marshal.c r_long64: When reading a TYPE_INT64 value on a box with 32-bit ints, convert to PyLong (rather than throwing away the high-order 32 bits). 29 August 2001, 02:28:42 UTC
da21ce3 On Fred's suggestion, convert sprintf() examples to use PyString_FromFormat(). Also fixed one grammar problem, and a few other mark-up issues. Sample code not checked. 29 August 2001, 01:41:58 UTC
0ab31b8 Add METH_O and METH_NOARGS change Rewrite snprintf() item a bit Bump version number 29 August 2001, 01:16:54 UTC
19ef62d pickle.py, load_int(): Match cPickle's just-repaired ability to unpickle 64-bit INTs on 32-bit boxes (where they become longs). Also exploit that int(str) and long(str) will ignore a trailing newline (saves creating a new string at the Python level). pickletester.py: Simulate reading a pickle produced by a 64-bit box. 28 August 2001, 22:21:18 UTC
12778e3 load_int: The fallback to long ints was coded in such a way that it couldn't succeed. Fixed. 28 August 2001, 22:08:34 UTC
08f9956 Update an email address. 28 August 2001, 21:26:33 UTC
c6d9581 Note change in fp literal syntax (e.g. "3e-" worked by accident before). 28 August 2001, 20:56:27 UTC
5592e4d Fix a typo in SLOT0 macro for the declaration of cache_str. Dunno why I didn't catch this before. 28 August 2001, 18:28:21 UTC
ce129a5 Fix the test again due to fewer calls to __getattr__. 28 August 2001, 18:23:24 UTC
2730b13 Finish the previous checkin: also avoid getattr when calling the method directly. 28 August 2001, 18:22:14 UTC
b5f17f2 Revise comments about TeX & LaTeX for accuracy. This closes SF bug #456222. 28 August 2001, 18:09:11 UTC
a5be8ed Fix one test to reflect the change in method lookup policy. 28 August 2001, 17:58:55 UTC
6071873 Change in policy: when a slot_tp_xxx function looks for the __xxx__ method, don't use getattr, but only look in the dict of the type and base types. This prevents picking up all sorts of weird stuff, including things defined by the metaclass when the object is a class (type). For this purpose, a helper function lookup_method() was added. One or two other places also use this. 28 August 2001, 17:47:51 UTC
2ac9c3e Make sure the JUMP_ABSOLUTE and POP_BLOCK at the end of a for loop are contiguous. 28 August 2001, 17:28:33 UTC
cbfc855 The "O!" format code should implement an isinstance() test rather than a type equality test. 28 August 2001, 16:37:51 UTC
63db7b9 XXX_NAME ops should affect varnames 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. 28 August 2001, 16:36:12 UTC
f354575 Generate FOR_ITER-based loops instead of old FOR_LOOP-based loops 28 August 2001, 16:35:18 UTC
318e167 FOR_ITER is a jrel_op() not a plain old def_op() 28 August 2001, 15:32:48 UTC
d800cff Added explanation that [...] * n generates shallow copies of [...], so the contents will be shared by multiple references. This closes SF bug #455694. 28 August 2001, 14:56:05 UTC
49a806e Added list of tests expected to be skipped on the mac. 28 August 2001, 14:49:00 UTC
5cb29a4 Fix a number of minor markup errors, and improve the consistency a bit. 28 August 2001, 14:25:03 UTC
46ccd1d Plant a mention in the description of backreferences of the fact that while \0 doesn't do what one might expect, \g<0> does. 28 August 2001, 12:50:03 UTC
8c64a54 Refcount info for PyString_FromFormat() and PyString_FromFormatV(). Closes SF patch #455666. 28 August 2001, 02:32:04 UTC
c86aa57 Documentation for PyString_FromFormat() and PyString_FromFormatV(). Closes SF patch #455666. 28 August 2001, 02:31:28 UTC
3070ee6 Experimental feature: allow \n as well as \r as newline for text files, by breaking in to the lowlevel I/O system. Can be disabled by defining WITHOUT_UNIX_NEWLINES. 27 August 2001, 23:16:34 UTC
c59e220 Handle private names (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() 27 August 2001, 22:56:16 UTC
e7d8322 exceptions was missing from the module list. Added. 27 August 2001, 22:50:41 UTC
535c524 A quick hack to make the test pass on the Mac (similar to the quick hack to make it pass on Windows:-). 27 August 2001, 22:31:58 UTC
80ea40d emit SET_LINENO for augmented assignments 27 August 2001, 21:58:09 UTC
2afff32 Many changes -- bug fixes and sundry improvements 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). 27 August 2001, 21:51:52 UTC
9f44815 Fix another test still expecting overflow on big int literals. 27 August 2001, 21:50:42 UTC
c15a828 Change test_overflow to test_no_overflow; looks like big int literals are auto-coerced to longs now, but this test still expected OverflowError. I can't imagine this test failure was unique to Windows. 27 August 2001, 21:45:32 UTC
3c06b9a Use the new macresource module to open the accompanying resource file (if needed). 27 August 2001, 21:41:23 UTC
a5d7da5 need() now returns the refno of the resource file opened, or None if the specified resource was already available and no file was opened. 27 August 2001, 21:37:45 UTC
de3226f Module to help other modules locate their resources. It currently knows about resources in applets and separate OS9 style resource files, but it will eventually also be thought the hoops to jump through on OSX/MachO. 27 August 2001, 21:21:07 UTC
8f2b13e These have long outlived there usefulness, in my opinion. Moved to Unsupported. 27 August 2001, 21:17:44 UTC
cd8a127 Fix for sibling nodes that define the same free variable 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. 27 August 2001, 21:06:35 UTC
7e30c9b Add lookup_name() to optimize use of stack frames 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) 27 August 2001, 21:02:51 UTC
058a5ad Two changes to visitor API: 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. 27 August 2001, 20:47:08 UTC
cccc478 Why didn't I think of Fred off the top of my head? 27 August 2001, 20:44:20 UTC
6276733 Add everyone I can think of off the top of my head 27 August 2001, 20:43:16 UTC
2a8ec79 Revise regrtest to compile entire standard library. 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. 27 August 2001, 20:40:43 UTC
33c2a62 Add -c option to continue if one file has a SyntaxError 27 August 2001, 20:39:21 UTC
6d8c1aa Add content-type header to ftp URLs (SF patch #454553) 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. 27 August 2001, 20:16:53 UTC
53da317 Docs for the PEP 264 changes. 27 August 2001, 20:02:17 UTC
71b6af9 If an integer constant can't be generated from an integer literal because of overflow, generate a long instead. 27 August 2001, 19:45:25 UTC
9aa70d9 SF bug [#455775] float parsing discrepancy. PyTokenizer_Get: error if exponent contains no digits (3e, 2.0e+, ...). 27 August 2001, 19:19:28 UTC
de1d495 Added Dean Draayer to the thank you list. 27 August 2001, 15:30:48 UTC
911e87d Patch by Dean Draayer: support for indeterminate progress bars. You get these by specifying maxval=0, which is now also the default. Untested. 27 August 2001, 15:24:07 UTC
e259e59 Patch by Bill Noon: added 'dylib' as a library type along with 'static' and 'shared'. This fixes extension building for dynamic Pythons on MacOSX. 27 August 2001, 15:08:16 UTC
9403591 Fixes by Thomas Heller: - 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 27 August 2001, 14:30:55 UTC
06bd323 Refer to the toolbox modules by their official name (Carbon.AE), not the 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. 27 August 2001, 14:01:05 UTC
206bd57 When we're freezing to sourcecode and one of the modules is a dynamic module 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. 27 August 2001, 13:59:35 UTC
60aa4cc Updated to the current state of affairs. 27 August 2001, 13:58:21 UTC
1c2a2b7 Added targets for building the Carbon and Classic interpreter if you don't want to go through fullbuild.py. 27 August 2001, 13:57:43 UTC
dc4d925 - A forgotten "from Carbon". - Made the "killed unknown window" code dependent on a global var, so you can easily turn the behaviour off for IDE debugging. 27 August 2001, 10:55:41 UTC
4d3052a A few forgotten "from Carbon"s. 27 August 2001, 10:54:55 UTC
402d598 SF patch [ #455137 ] Makes popen work with COMMAND.COM on WNT, from Brian Quinlan. 27 August 2001, 06:37:48 UTC
7c47beb Two improvements suggested by Greg Stein: 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." 27 August 2001, 03:11:09 UTC
5a6fdcd Import the MacOS toolbox modules from the Carbon package. 25 August 2001, 12:15:04 UTC
6dba6bc Step 2 in putting the MacOS toolbox modules in a package: issue a DepracationWarning in the compatibility modules. 25 August 2001, 11:53:43 UTC
6af5bbb PyString_FromFormatV: Massage platform %p output to match what gcc does, 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). 25 August 2001, 03:02:28 UTC
ea46fa8 Undo previous checkin -- Barry fixed it better. 24 August 2001, 19:46:21 UTC
d320ad0 Update test output to match new (more informative) error message about calling unbound method with wrong first argument. 24 August 2001, 19:31:43 UTC
back to top