Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added the "Host" header to the "GET" example. | Fred Drake | 2001-09-01 | 1 | -0/+1 |
| | | | | This closes SF bug #457100. | ||||
* | Add various and sundry news items -- most mine, one Barry's, one | Guido van Rossum | 2001-08-31 | 1 | -0/+44 |
| | | | | Michael Hudson's. | ||||
* | Oops. The -W option takes args, not -X. | Guido van Rossum | 2001-08-31 | 1 | -1/+1 |
| | |||||
* | Allow for the possibility that globals['__name__'] does not exist; | Guido van Rossum | 2001-08-31 | 1 | -1/+4 |
| | | | | | substitute "<string>" for the module name in that case. This actually occurred when running test_descr.py with -Dwarn. | ||||
* | Add warning mode for classic division, almost exactly as specified in | Guido van Rossum | 2001-08-31 | 9 | -25/+146 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PEP 238. Changes: - add a new flag variable Py_DivisionWarningFlag, declared in pydebug.h, defined in object.c, set in main.c, and used in {int,long,float,complex}object.c. When this flag is set, the classic division operator issues a DeprecationWarning message. - add a new API PyRun_SimpleStringFlags() to match PyRun_SimpleString(). The main() function calls this so that commands run with -c can also benefit from -Dnew. - While I was at it, I changed the usage message in main() somewhat: alphabetized the options, split it in *four* parts to fit in under 512 bytes (not that I still believe this is necessary -- doc strings elsewhere are much longer), and perhaps most visibly, don't display the full list of options on each command line error. Instead, the full list is only displayed when -h is used, and otherwise a brief reminder of -h is displayed. When -h is used, write to stdout so that you can do `python -h | more'. Notes: - I don't want to use the -W option to control whether the classic division warning is issued or not, because the machinery to decide whether to display the warning or not is very expensive (it involves calling into the warnings.py module). You can use -Werror to turn the warnings into exceptions though. - The -Dnew option doesn't select future division for all of the program -- only for the __main__ module. I don't know if I'll ever change this -- it would require changes to the .pyc file magic number to do it right, and a more global notion of compiler flags. - You can usefully combine -Dwarn and -Dnew: this gives the __main__ module new division, and warns about classic division everywhere else. | ||||
* | Fix a memory leak in str_subtype_new(). (All the other | Guido van Rossum | 2001-08-31 | 1 | -3/+3 |
| | | | | xxx_subtype_new() functions are OK, but I goofed up in this one. :-( ) | ||||
* | Correct name mangling algorithm, and add a comment. | Guido van Rossum | 2001-08-31 | 1 | -2/+1 |
| | |||||
* | Give 'super' a decent repr(), and readonly attributes to access the | Guido van Rossum | 2001-08-30 | 1 | -11/+36 |
| | | | | | type and obj properties. The "bogus super object" message is gone -- this will now just raise an AttributeError. | ||||
* | Added all the new files in the right packages and file groups (I think, ↵ | Jack Jansen | 2001-08-30 | 1 | -0/+0 |
| | | | | untested). | ||||
* | SF bug #456621: normpath on Win32 not collapsing c:\\.. | Tim Peters | 2001-08-30 | 2 | -8/+35 |
| | | | | | | I actually rewrote normpath quite a bit: it had no test cases, and as soon as I starting writing some I found several cases that didn't make sense. | ||||
* | Add Jack Jansen's explanation of the MacOS X changes | Andrew M. Kuchling | 2001-08-30 | 1 | -7/+43 |
| | |||||
* | Superseded by the (generated) xx.mcp. | Jack Jansen | 2001-08-30 | 1 | -0/+0 |
| | |||||
* | Case mismatch in "import Types". Apparently nobody has looked at this for a ↵ | Jack Jansen | 2001-08-30 | 1 | -2/+2 |
| | | | | looooong time. Reported by Chris Smith. | ||||
* | We should look in the directory containing the module, not in the module ↵ | Jack Jansen | 2001-08-30 | 1 | -1/+1 |
| | | | | itself, when we're looking for the resource file. | ||||
* | Group some projects into "Done" and "To do". Get rid of Tim's merge | Guido van Rossum | 2001-08-30 | 1 | -213/+46 |
| | | | | scratchpad -- the merge is long behind us. | ||||
* | metaclass(): add some more examples of metaclasses, including one | Guido van Rossum | 2001-08-30 | 1 | -0/+104 |
| | | | | | | using cooperative multiple inheritance. inherits(): add a test for subclassing the unicode type. | ||||
* | SF patch #455966: Allow leading 0 in float/imag literals. | Tim Peters | 2001-08-30 | 5 | -15/+84 |
| | | | | Consequences for Jython still unknown (but raised on Jython-Dev). | ||||
* | PyObject_Repr(): add missing ">" back at end of format string: "<%s | Guido van Rossum | 2001-08-30 | 1 | -1/+1 |
| | | | | object at %p>". | ||||
* | Fix _convert_NAME() so that it doesn't store locals for class bodies. | Jeremy Hylton | 2001-08-30 | 6 | -30/+30 |
| | | | | | | | | | Fix list comp code generation -- emit GET_ITER instead of Const(0) after the list. Add CO_GENERATOR flag to generators. Get CO_xxx flags from the new module | ||||
* | Squash new compiler wng. | Tim Peters | 2001-08-30 | 1 | -1/+1 |
| | |||||
* | Add testcases for inheritance from tricky builtins (numbers, strings, | Guido van Rossum | 2001-08-30 | 1 | -0/+74 |
| | | | | tuples). | ||||
* | Pytype_GenericAlloc(): round up size so we zap all four bytes of the | Guido van Rossum | 2001-08-30 | 1 | -16/+51 |
| | | | | | | | | | | | | __dict__ slot for string subtypes. subtype_dealloc(): properly use _PyObject_GetDictPtr() to get the (potentially negative) dict offset. Don't copy things into local variables that are used only once. type_new(): properly calculate a negative dict offset when tp_itemsize is nonzero. The __dict__ attribute, if present, is now a calculated attribute rather than a structure member. | ||||
* | Revert the previous patch to test_pow.py and move the test to test_unary.py | Fred Drake | 2001-08-30 | 2 | -10/+8 |
| | | | | | based on a suggestion from Tim Peters; also make sure that we're really doing exponentiation and not multiplication. | ||||
* | Added a regression test for the negation-of-exponentiation optimization | Fred Drake | 2001-08-30 | 1 | -0/+11 |
| | | | | bug from compile.c. (SF bug #456756.) | ||||
* | When re-writing a factor containing a unary negation of a literal, only | Fred Drake | 2001-08-30 | 1 | -0/+3 |
| | | | | | affect nodes without another operator. This was causing negated exponentiations to drop the exponentiation. This closes SF bug #456756. | ||||
* | More stuff discovered while writing the simplest of testcases: | Guido van Rossum | 2001-08-30 | 1 | -2/+5 |
| | | | | | | | tupledealloc(): only feed the free list when the type is really a tuple, not a subtype. Otherwise, use PyObject_GC_Del(). _PyTuple_Resize(): disallow using this for tuple subtypes. | ||||
* | Do the int inlining only if the type is really an int, not whenever | Guido van Rossum | 2001-08-30 | 1 | -6/+9 |
| | | | | | PyInt_Check() succeeds. That returns true for subtypes of int, which may override __add__ or __sub__. | ||||
* | Ah, the joy of writing test cases... | Guido van Rossum | 2001-08-30 | 1 | -1/+1 |
| | | | | | long_subtype_new(): fix a typo (type->ob_size instead of tmp->ob_size). | ||||
* | spurious pop | Jeremy Hylton | 2001-08-30 | 2 | -2/+0 |
| | |||||
* | Add news about GC API change. Explain how to upgrade extension modules. | Neil Schemenauer | 2001-08-30 | 1 | -3/+16 |
| | |||||
* | Update documentation for GC API. Closes SF patch #421893. | Neil Schemenauer | 2001-08-30 | 1 | -29/+48 |
| | |||||
* | win_getpass(): if sys.stdin is not sys.__stdin__, use | Guido van Rossum | 2001-08-30 | 1 | -0/+2 |
| | | | | | | | default_getpass(). This should prevent hanging when it is called in IDLE. Fixes SF bug #455648. | ||||
* | fix for part of bug #453523: disable unmarshalling of code objects in | Michael W. Hudson | 2001-08-30 | 1 | -1/+7 |
| | | | | restricted execution mode. | ||||
* | Update the links to the FIPS document that defines the Secure Hash | Fred Drake | 2001-08-30 | 1 | -8/+9 |
| | | | | Algorithm. This closes SF bug #454917. | ||||
* | Removed unreachable return to silence SGI compiler. | Sjoerd Mullender | 2001-08-30 | 1 | -2/+1 |
| | |||||
* | Removed an unreachable break statement to silence SGI compiler. | Sjoerd Mullender | 2001-08-30 | 1 | -1/+1 |
| | |||||
* | Removed unreachable goto statement to silence SGI compiler. | Sjoerd Mullender | 2001-08-30 | 1 | -1/+0 |
| | |||||
* | Removed some unreachable break statements to silence SGI compiler. | Sjoerd Mullender | 2001-08-30 | 1 | -3/+0 |
| | |||||
* | Removed some unreachable break statements to silence SGI compiler. | Sjoerd Mullender | 2001-08-30 | 1 | -3/+0 |
| | |||||
* | Started on the 2.2a2 installer | Jack Jansen | 2001-08-30 | 1 | -0/+0 |
| | |||||
* | Give the internal immutable list type .extend and .pop methods (they | Tim Peters | 2001-08-30 | 1 | -0/+2 |
| | | | | "should have" been added here when they were added to lists). | ||||
* | Add a new function imp.lock_held(), and use it to skip test_threaded_import | Tim Peters | 2001-08-30 | 4 | -4/+47 |
| | | | | when that test is doomed to deadlock. | ||||
* | Safety measures now that str and tuple are subclassable: | Guido van Rossum | 2001-08-30 | 1 | -1/+9 |
| | | | | | | If tp_itemsize of the basetype is nonzero, only allow empty __slots__ (declaring that no __dict__ should be added), and don't add a weakref offset. | ||||
* | Make 'super' subclassable. (Not sure how useful this is yet. :-) | Guido van Rossum | 2001-08-30 | 1 | -1/+1 |
| | |||||
* | Make unicode subclassable. | Guido van Rossum | 2001-08-30 | 1 | -2/+32 |
| | |||||
* | Make str and tuple types subclassable. | Guido van Rossum | 2001-08-30 | 2 | -4/+54 |
| | |||||
* | Make getset subclassable. | Guido van Rossum | 2001-08-30 | 1 | -1/+1 |
| | |||||
* | Fix typo: double semicolons. | Guido van Rossum | 2001-08-30 | 2 | -2/+2 |
| | |||||
* | Make the Py<type>_Check() macro use PyObject_TypeCheck(). | Guido van Rossum | 2001-08-30 | 3 | -3/+3 |
| | |||||
* | Squash new compiler wng in debug build. | Tim Peters | 2001-08-30 | 1 | -1/+1 |
| |