Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Note the sole case in which the ban on "from ... import *" within a | Jeremy Hylton | 2002-04-01 | 1 | -1/+5 |
| | | | | function is enforced. | ||||
* | Remove the following restriction: | Jeremy Hylton | 2002-04-01 | 1 | -4/+0 |
| | | | | | | | Names bound by import statements may not occur in global statements in the same scope. Why not? | ||||
* | Note that it is illegal to delete a cell variable. | Jeremy Hylton | 2002-04-01 | 1 | -2/+6 |
| | | | | Note that deleteing an unbound local will raise a NameError. | ||||
* | Given lambda its own section, instead of burying it in boolean operators. | Jeremy Hylton | 2002-04-01 | 1 | -30/+7 |
| | |||||
* | Update / simplify Identifiers section for nested scopes. | Jeremy Hylton | 2002-04-01 | 1 | -18/+2 |
| | | | | How do I create a cross reference to section 4.1? | ||||
* | Update docs for nested scopes. | Jeremy Hylton | 2002-04-01 | 2 | -257/+134 |
| | | | | | | | | | | | | | Replace section 4.1 with section A.3. The new section 4.1 is titled "Naming and binding." It includes the text of section A.3 augmented with some of the detailed text from the old section 4.1. The \dfn, \index stuff is probably wrong, but I tried. Also update other parts of appendix A to mention that nested scopes and generators are standard features. | ||||
* | Update to push the docs to python.org instead of python.sf.net. | Fred Drake | 2002-04-01 | 2 | -9/+12 |
| | |||||
* | Fixed errors in two comments. | Tim Peters | 2002-04-01 | 1 | -3/+4 |
| | |||||
* | Copy section on generators from the 2.2 document with a bit of rewriting | Andrew M. Kuchling | 2002-04-01 | 1 | -1/+153 |
| | | | | Add an item | ||||
* | Restructured my pool-management overview in terms of the three | Tim Peters | 2002-04-01 | 1 | -21/+61 |
| | | | | | | | | | | | | | possible pool states. I think it's much clearer now. Added a new long overdue block-management overview comment block. I believe the comments are in good shape now. Added two comments about possible small optimizations (one getting rid of runtime multiplications at the cost of a new pool_header member; the other getting rid of runtime divisions and the pool_header capacity member, at the cost of a static const vector of 32 uints). | ||||
* | Mention 2.2.1 in intro and in bug/patch counts | Andrew M. Kuchling | 2002-04-01 | 1 | -8/+11 |
| | | | | Fix two typos spotted by Joonas Paalasmaa | ||||
* | Format strings (tuples,) appropriately | Neal Norwitz | 2002-04-01 | 2 | -3/+3 |
| | |||||
* | Use attributes appropriately | Neal Norwitz | 2002-04-01 | 2 | -2/+2 |
| | |||||
* | There is no TestError, use TestFailed appropriately | Neal Norwitz | 2002-04-01 | 3 | -10/+10 |
| | |||||
* | Update documentation of code objects. | Jeremy Hylton | 2002-04-01 | 1 | -10/+15 |
| | | | | | | | | Split the description of co_flags into two paragraphs. The first describes the flags that are used for non-future purposes, where CO_GENERATOR was added. The second describes __future__'s use of co_flags and mentions the only one currently meaningful, CO_FUTURE_DIVISION. | ||||
* | Minor adjustments. | Fred Drake | 2002-04-01 | 1 | -1/+2 |
| | |||||
* | Small fixes for description of function attributes. | Jeremy Hylton | 2002-04-01 | 1 | -5/+3 |
| | | | | | | func_closure is a readonly attribute. Add \ttindex{} for func_closure. Remove discussion of func_closure specific to 2.1. | ||||
* | Reindent. Break long lines. Move comments before the statements. | Martin v. Löwis | 2002-04-01 | 1 | -3482/+3641 |
| | |||||
* | Use the PyModule_Add*() APIs instead of manipulating the module dict | Fred Drake | 2002-04-01 | 5 | -283/+280 |
| | | | | directly. | ||||
* | Remove all but one use of the module dict. | Fred Drake | 2002-04-01 | 1 | -44/+38 |
| | |||||
* | Remove unused variable and call to PyModule_GetDict(). | Fred Drake | 2002-04-01 | 1 | -2/+1 |
| | |||||
* | Switch to using METH_NOARGS where possible. | Fred Drake | 2002-04-01 | 1 | -38/+18 |
| | | | | Convert to use PyModule_*() instead of manipulating the module dict directly. | ||||
* | Remove UNLESS. | Martin v. Löwis | 2002-04-01 | 1 | -152/+152 |
| | |||||
* | New PYMALLOC_DEBUG function void _PyMalloc_DebugDumpStats(void). | Tim Peters | 2002-04-01 | 2 | -1/+98 |
| | | | | | | | | | | | | | This displays stats about the # of arenas, pools, blocks and bytes, to stderr, both used and reserved but unused. CAUTION: Because PYMALLOC_DEBUG is on, the debug malloc routine adds 16 bytes to each request. This makes each block appear two size classes higher than it would be if PYMALLOC_DEBUG weren't on. So far, playing with this confirms the obvious: there's a lot of activity in the "small dict" size class, but nothing in the core makes any use of the 8-byte or 16-byte classes. | ||||
* | We expect to skip the new test_mpz on Windows. | Tim Peters | 2002-04-01 | 1 | -1/+5 |
| | |||||
* | Use the PyModule_*() API instead of manipulating the module dictionary | Fred Drake | 2002-04-01 | 2 | -11/+11 |
| | | | | directly. | ||||
* | Get rid of another use of PyArg_Parse() | Neal Norwitz | 2002-04-01 | 1 | -2/+2 |
| | |||||
* | Get rid of all METH_OLDARGS & PyArg_Parse. | Neal Norwitz | 2002-04-01 | 2 | -43/+125 |
| | | | | | Fix floating point exception if mpz.powm(10, 1, 0) (modulus == 0). Add a test. | ||||
* | Remove some now-obsolete generator future statements. | Tim Peters | 2002-04-01 | 6 | -19/+5 |
| | | | | | I left the email pkg alone; I'm not sure how Barry would like to handle that. | ||||
* | Convert file.readinto() to stop using METH_OLDARGS & PyArg_Parse. | Neal Norwitz | 2002-04-01 | 2 | -2/+17 |
| | | | | Add test for file.readinto(). | ||||
* | Hopeful fix for SF bug 503031: urllib.py: open_http() host problem. | Guido van Rossum | 2002-03-31 | 1 | -1/+5 |
| | | | | | | | I really can't test this, but from reading the discussion in that bug report, it's likely that this works. It may also close a whole bunch of other bug reports related to urllib and proxies on Windows, but who knows. | ||||
* | mpz_float() only takes one parameter now | Neal Norwitz | 2002-03-31 | 1 | -5/+0 |
| | |||||
* | Added a "run with commandline Python" flag. Works in MachoPython, should work | Jack Jansen | 2002-03-31 | 1 | -12/+54 |
| | | | | | in OSX MacPython (untested), and should be disabled/removed in OS9 (but that doesn't happen yet). | ||||
* | Get rid of warnings due to changing to METH_NOARGS | Neal Norwitz | 2002-03-31 | 1 | -5/+5 |
| | |||||
* | Use METH_VARARGS rather than METH_OLDARGS implicitly (args are ignored) | Neal Norwitz | 2002-03-31 | 1 | -1/+1 |
| | |||||
* | Convert METH_OLDARGS -> METH_NOARGS: remove args parameter | Neal Norwitz | 2002-03-31 | 1 | -243/+247 |
| | | | | Use METH_OLDARGS explicitly rather than implicitly. | ||||
* | Revert use of METH_OLDARGS (use 0) to support 1.5.2 | Neal Norwitz | 2002-03-31 | 1 | -2/+4 |
| | |||||
* | Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTuple | Neal Norwitz | 2002-03-31 | 3 | -47/+34 |
| | | | | Please review for correctness. | ||||
* | Remove METH_OLDARGS: | Neal Norwitz | 2002-03-31 | 11 | -164/+85 |
| | | | | | | | Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTuple Convert METH_OLDARGS -> METH_NOARGS: remove args parameter Please review. All tests pass, but some modules don't have tests. I spot checked various functions to try to make sure nothing broke. | ||||
* | Convert from using METH_OLDARGS to METH_NOARGS. | Neal Norwitz | 2002-03-31 | 3 | -85/+44 |
| | | | | These should be safe. | ||||
* | Fix whitespace | Neal Norwitz | 2002-03-31 | 1 | -2/+1 |
| | |||||
* | Use symbolic METH_VARARGS/METH_OLDARGS instead of 1/0 for ml_flags | Neal Norwitz | 2002-03-31 | 3 | -17/+17 |
| | |||||
* | Use symbolic METH_VARARGS instead of 1 for ml_flags | Neal Norwitz | 2002-03-31 | 5 | -51/+51 |
| | |||||
* | Use docstrings for exception classes | Neal Norwitz | 2002-03-31 | 2 | -2/+4 |
| | |||||
* | Derive exception classes from Exception | Neal Norwitz | 2002-03-31 | 2 | -2/+2 |
| | |||||
* | Stop using string exceptions | Neal Norwitz | 2002-03-31 | 2 | -2/+2 |
| | |||||
* | Add one more assert that indirectly interlocking conditions are consistent | Tim Peters | 2002-03-31 | 1 | -0/+1 |
| | | | | with each other. | ||||
* | Fixed an error in a new assert. | Tim Peters | 2002-03-31 | 1 | -1/+1 |
| | |||||
* | Fixed a typo in a new comment. | Tim Peters | 2002-03-31 | 1 | -1/+1 |
| | |||||
* | _PyMalloc_Free(): As was already done for _PyMalloc_Malloc, rearranged | Tim Peters | 2002-03-31 | 1 | -37/+47 |
| | | | | | | | | | | the code so that the most frequent cases come first. Added comments. Found a hidden assumption that a pool contains room for at least two blocks, and added an assert to catch a violation if it ever happens in a place where that matters. Gave the normal "I allocated this block" case a longer basic block to work with before it has to do its first branch (via breaking apart an embedded assignment in an "if", and hoisting common code out of both branches). |