summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* SF 539024, Fix broken link to numpyNeal Norwitz2002-04-041-1/+1
|
* _PyMalloc_Realloc(): removed a now-pointless cast.Tim Peters2002-04-041-1/+1
|
* _PyMalloc_{Malloc, Realloc}: Strive to meet the doc's promises aboutTim Peters2002-04-041-42/+44
| | | | | | | | | | | | | | | | | | | what these do given a 0 size argument. This is so that when pymalloc is enabled, we don't need to wrap pymalloc calls in goofy little routines special-casing 0. Note that it's virtually impossible to meet the doc's promise that malloc(0) will never return NULL; this makes a best effort, but not an insane effort. The code does promise that realloc(not-NULL, 0) will never return NULL (malloc(0) is much harder). _PyMalloc_Realloc: Changed to take over all requests for 0 bytes, and rearranged to be a little quicker in expected cases. All over the place: when resorting to the platform allocator, call free/malloc/realloc directly, without indirecting thru macros. This should avoid needing a nightmarish pile of #ifdef-ery if PYMALLOC_DEBUG is changed so that pymalloc takes over all Py(Mem, Object} memory operations (which would add useful debugging info to PyMem_xyz allocations too).
* Correct the descriptions of the PyObject_As*Buffer() return values.Fred Drake2002-04-041-6/+6
| | | | This closes SF bug #539081.
* As Neal pointed out, bool_print was an order of magnitude too complex.Guido van Rossum2002-04-041-12/+1
|
* Repair the Windows build (needs to compile in the new boolobject code).Tim Peters2002-04-041-0/+15
|
* Oops. Here are the new files. My apologies.Guido van Rossum2002-04-033-0/+460
|
* Add empty section for boolAndrew M. Kuchling2002-04-031-0/+12
|
* Add the 'bool' type and its values 'False' and 'True', as described inGuido van Rossum2002-04-0329-383/+494
| | | | | | | | | | | | | PEP 285. Everything described in the PEP is here, and there is even some documentation. I had to fix 12 unit tests; all but one of these were printing Boolean outcomes that changed from 0/1 to False/True. (The exception is test_unicode.py, which did a type(x) == type(y) style comparison. I could've fixed that with a single line using issubtype(x, type(y)), but instead chose to be explicit about those places where a bool is expected. Still to do: perhaps more documentation; change standard library modules to return False/True from predicates.
* e macresource.need() to open the W resource file in the application initJack Jansen2002-04-032-1/+4
| | | | | | | | code (if it isn't open already). PythonIDE still opens the resource file "manually" because it also uses presence of the CURS resource to determine whether it needs to adjust sys.path.
* Slight modernization.Fred Drake2002-04-032-5/+3
|
* Fix the names of the classmethod and staticmethod constructors as passed toFred Drake2002-04-031-2/+2
| | | | PyArg_ParseTuple() as part of the format string.
* Remove direct manipulation of the module dict.Fred Drake2002-04-031-9/+3
|
* Got the example program to work in MachoPython.Jack Jansen2002-04-031-2/+4
|
* Updated PEP link to point to the now-canonical site.Fred Drake2002-04-031-1/+1
|
* Update the PEP URL format to point to python.org.Fred Drake2002-04-031-1/+1
|
* Fold some long lines. Delete blank initial line.Guido van Rossum2002-04-031-4/+6
|
* Fix bugs:Mark Hammond2002-04-034-5/+98
| | | | | | | | | | | | | | | 457466: popenx() argument mangling hangs python 226766: popen('python -c"...."') tends to hang Fixes argument quoting in w9xpopen.exe for Windows 9x. w9xpopen.exe also never attempts to display a MessageBox when not executed interactively. Added test_popen() test. This test currently just executes "python -c ..." as a child process, and checks that the expected arguments were all recieved correctly by the child process. This test succeeds for me on Win9x, win2k and Linux, and I hope it does for other popen supported platforms too :)
* Convert more METH_OLDARGS & PyArg_Parse()Neal Norwitz2002-04-023-69/+69
| | | | Please review.
* Get rid of more PyArg_Parse & METH_OLDARGS.Neal Norwitz2002-04-022-13/+14
| | | | | PyArg_Parse( "s" ) -> PyString_AsString PyArg_Parse( "t#" ) -> PyString_AsStringAndSize
* SF patch 537536 by Phillip J. Eby, fix for SF bug 535444, super()Guido van Rossum2002-04-022-3/+15
| | | | | | broken w/ classmethods. Bugfix candidate.
* Add a note warning against semicolons following PyObject_HEAD.Fred Drake2002-04-021-5/+9
| | | | Minor cleanups.
* Fix for a bug in the fix for SF bug 503031. This time the OP verifiedGuido van Rossum2002-04-021-2/+2
| | | | | | that it works. Bugfix candidate (this and the previous checkin, obviously).
* Add an itemAndrew M. Kuchling2002-04-021-0/+20
|
* Add an experimental mechanism to support extending the pprint formatting.Fred Drake2002-04-023-9/+57
| | | | Partly responds to SF bug #505152.
* Make test_commands work on more systems. This removes much of the dependencyFred Drake2002-04-011-4/+5
| | | | | | | on how a system is configured. This closes SF bug #497160 (which has the patch) and #460613. Bugfix candidate.
* Explain that os.spawn*() return the process handle on Windows.Fred Drake2002-04-011-3/+5
| | | | | Clarify that os.waitpid() on Windows takes a process handle, not a process ID. This closes SF bug #537582.
* There is no PyArg_ConvertTuple(); call it by the right name.Fred Drake2002-04-011-1/+1
| | | | This closes SF bug #537511.
* Fix up the documentation of the type codes to give both the C and PythonFred Drake2002-04-011-17/+24
| | | | | | | | | types for each code, and give the actual C types. Clarified the support for slice operations and note when some TypeError exceptions are raised. This closes SF bugs 518767 and 536469.
* Change reference to execframes to naming.Jeremy Hylton2002-04-011-1/+1
|
* Restore a minimal definition of execution frame, since other parts ofJeremy Hylton2002-04-011-0/+6
| | | | | | | | the manual refer to it. XXX Not sure that it belongs in this section, or that the concept is particularly important for writing documentation. Perhaps references to the frame should be removed entirely.
* Update programmer's note on nested functions.Jeremy Hylton2002-04-011-5/+5
|
* Reword explanation of global statement since an undeclared global is aJeremy Hylton2002-04-011-3/+3
| | | | free variable and is subject to those rules.
* Note the sole case in which the ban on "from ... import *" within aJeremy Hylton2002-04-011-1/+5
| | | | function is enforced.
* Remove the following restriction:Jeremy Hylton2002-04-011-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 Hylton2002-04-011-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 Hylton2002-04-011-30/+7
|
* Update / simplify Identifiers section for nested scopes.Jeremy Hylton2002-04-011-18/+2
| | | | How do I create a cross reference to section 4.1?
* Update docs for nested scopes.Jeremy Hylton2002-04-012-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 Drake2002-04-012-9/+12
|
* Fixed errors in two comments.Tim Peters2002-04-011-3/+4
|
* Copy section on generators from the 2.2 document with a bit of rewritingAndrew M. Kuchling2002-04-011-1/+153
| | | | Add an item
* Restructured my pool-management overview in terms of the threeTim Peters2002-04-011-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 countsAndrew M. Kuchling2002-04-011-8/+11
| | | | Fix two typos spotted by Joonas Paalasmaa
* Format strings (tuples,) appropriatelyNeal Norwitz2002-04-012-3/+3
|
* Use attributes appropriatelyNeal Norwitz2002-04-012-2/+2
|
* There is no TestError, use TestFailed appropriatelyNeal Norwitz2002-04-013-10/+10
|
* Update documentation of code objects.Jeremy Hylton2002-04-011-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 Drake2002-04-011-1/+2
|
* Small fixes for description of function attributes.Jeremy Hylton2002-04-011-5/+3
| | | | | | func_closure is a readonly attribute. Add \ttindex{} for func_closure. Remove discussion of func_closure specific to 2.1.