summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Another variant of the 2-3-5 test, mixing generators with a LazyList class.Tim Peters2001-06-241-0/+37
| | | | | | | Good news: Some of this stuff is pretty sophisticated (read nuts), and I haven't bumped into a bug yet. Bad news: If I run the doctest in an infinite loop, memory is clearly leaking.
* Pure brute-force hackery to allow Python to build on Windows again,Tim Peters2001-06-241-0/+12
| | | | | because I need to make progress and don't have time now to think about whatever it is the new code is trying to accomplish.
* More tests.Tim Peters2001-06-241-1/+68
|
* Add a recursive Sieve of Eratosthenes prime generator. Not practical,Tim Peters2001-06-231-1/+39
| | | | but it's a heck of a good generator exerciser (think about it <wink>).
* Add all the examples from PEP 255, and a few email examples.Tim Peters2001-06-231-2/+183
|
* New std test for generators, initially populated with doctests NeilS putTim Peters2001-06-231-0/+139
| | | | together.
* Properly use &&. Closes bug #434988.Martin v. Löwis2001-06-231-2/+2
|
* Properly use &&. Closes bug #434989.Martin v. Löwis2001-06-231-1/+1
|
* Patch #401196: Configuration machinery for IPv6.Martin v. Löwis2001-06-238-344/+2197
| | | | | Contributed by Jun-ichiro "itojun" Hagino. get{addr,name}info emulation code taken from WIDE.
* Fix typoAndrew M. Kuchling2001-06-232-2/+2
|
* Correct erroneous description of precmd.Eric S. Raymond2001-06-231-2/+6
|
* Change the semantics of "return" in generators, as discussed on theTim Peters2001-06-232-25/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Iterators list and Python-Dev; e.g., these all pass now: def g1(): try: return except: yield 1 assert list(g1()) == [] def g2(): try: return finally: yield 1 assert list(g2()) == [1] def g3(): for i in range(3): yield None yield None assert list(g3()) == [None] * 4 compile.c: compile_funcdef and com_return_stmt: Just van Rossum's patch to compile the same code for "return" regardless of function type (this goes back to the previous scheme of returning Py_None). ceval.c: gen_iternext: take a return (but not a yield) of Py_None as meaning the generator is exhausted.
* Remove some bogus trailing whitespace.Fred Drake2001-06-231-2/+2
|
* Fix minor markup nits.Fred Drake2001-06-232-6/+2
|
* Use a named reference to another chapter instead of hard coding theFred Drake2001-06-231-2/+2
| | | | | chapter number. This also makes the reference a hyperlink in the HTML version.
* gen_iternext(): Don't assume that the current thread state's frame isTim Peters2001-06-231-2/+2
| | | | | not NULL. I don't think it can be NULL from Python code, but if using generators via the C API I expect a NULL frame is possible.
* Fix a very minor (but annoying when looking for things!) markup nit.Fred Drake2001-06-237-0/+43
|
* PyFrameObject: rename f_stackbottom to f_stacktop, since it points toTim Peters2001-06-233-10/+14
| | | | | | | | the next free valuestack slot, not to the base (in America, stacks push and pop at the top -- they mutate at the bottom in Australia <winK>). eval_frame(): assert that f_stacktop isn't NULL upon entry. frame_delloc(): avoid ordered pointer comparisons involving f_stacktop when f_stacktop is NULL.
* Add "yeild" to the list of keywords.Fred Drake2001-06-231-2/+18
| | | | Fix a very minor (but annoying when looking for things!) markup nit.
* Consistently use semi-colons after the last property for each selector.Fred Drake2001-06-231-26/+26
|
* Give the pattern used to pick out a source anchor a more specific pattern.Fred Drake2001-06-231-1/+1
|
* Added several names.Fred Drake2001-06-231-0/+4
|
* Contributed updates from Harald Hanche-Olsen, giving details of the branchFred Drake2001-06-231-0/+49
| | | | | cuts for the complex math functions. Includes a brief description of what branch cuts are.
* Added support for our new \infinity and \plusminus macros, and theFred Drake2001-06-231-1/+4
| | | | | | standard \textbar macro (not supported in many versions of LaTeX2HTML). Added newline to error message.
* \infinity,Fred Drake2001-06-231-0/+2
| | | | \plusminus: New macros to allow us to avoid math mode for these symbols.
* Miscellaneous code cleanups.Fred Drake2001-06-231-4/+10
| | | | | Make sure we do not lose track of the build directory -- convert a user- supplied directory to an absolute path.
* Disallow 'yield' in a 'try' block when there's a 'finally' clause.Tim Peters2001-06-231-0/+10
| | | | | Derived from Thomas Wouters's patch on the Iterators list, but doesn't try to read c->c_block[c->c_nblocks].
* Remove an extra tab character.Fred Drake2001-06-221-1/+1
|
* Re-organize a little, clean up some markup.Fred Drake2001-06-221-52/+73
| | | | | | | Added some comments about sys.exit(), SystemExit, and preventing restricted code from exiting the interpreter. This closes SF bug #434743.
* Add sha and _sre to the list of allowed built-in modules.Fred Drake2001-06-221-1/+1
|
* Corrected an error in the information on supporting weak references inFred Drake2001-06-221-9/+7
| | | | | | extension types (the docs reflected a development version of the API). This closes SF bug #435066.
* Adjust to understand use of either single- or double-quotes to quoteFred Drake2001-06-221-20/+23
| | | | | | attribute values, and make the logic surrounding the platform annotations just a little easier to read. Also make the platform notes appear in the generated page; they were supposed to, but did not.
* Add the new texinputs/license.tex to the shared dependencies.Fred Drake2001-06-221-0/+1
|
* This is a trivial command line utility to print MD5 checksums.Guido van Rossum2001-06-221-0/+32
| | | | | | | | | | I published it on the web as http://www.python.org/2.1/md5sum.py so I thought I might as well check it in. Works with Python 1.5.2 and later. Works like the Linux tool ``mdfsum file ...'' except it doesn't take any options or read stdin.
* Fix & clean up the information about building Python with large file supportFred Drake2001-06-221-4/+3
| | | | | | for Linux. This closes SF bug #434975.
* Changed the order of the buttons for EasyDialogs.AskYesNoCancel() from the ↵Just van Rossum2001-06-221-0/+0
| | | | unusual [cancel, no, yes] to the more standard [no, cancel, yes].
* Record Windows build number for 2.0.1 final.Tim Peters2001-06-221-0/+2
|
* don't blow up when the charno SyntaxError value is NoneJust van Rossum2001-06-211-1/+3
|
* repaired expandselection and uncomment breakageJust van Rossum2001-06-211-4/+5
|
* Added support for the gc module (!).Just van Rossum2001-06-211-0/+6
|
* Somehow, under certain circumstances, config.h and rename1.h would pop back up.Guido van Rossum2001-06-212-442/+0
| | | | Try to see if 'cvs delete' fixes this.
* Teach the UNPACK_SEQUENCE opcode how to tease an iterable object intoTim Peters2001-06-213-32/+93
| | | | | giving up the goods. NEEDS DOC CHANGES
* Try to avoid creating reference cycles involving generators. Only keep aNeil Schemenauer2001-06-211-14/+27
| | | | | | reference to f_back when its really needed. Do a little whitespace normalization as well. This whole file is a big war between tabs and spaces but now is probably not the time to reindent everything.
* Got rid of a silly #if.Jack Jansen2001-06-201-1/+1
|
* Move license information to a less annoying location in the document.Fred Drake2001-06-201-0/+13
| | | | Add documentation for PyErr_SetFromErrnoWithFilename().
* Update to include the license information in a less annoying place.Fred Drake2001-06-205-0/+16
|
* Separate the copyright statements and license text; include some newFred Drake2001-06-202-96/+261
| | | | comments regarding the history of Python licensing from Guido.
* Separate the version number and release status into two separate values.Fred Drake2001-06-201-1/+2
|
* Update to use the newly separated values $PACKAGE_VERSION and $RELEASE_INFO.Fred Drake2001-06-201-5/+5
| | | | | Normalize all HTML attributes to be written as name="value" instead of name='value'.
* Don't use extern when we mean staticforward (OSX gcc is picky about it).Jack Jansen2001-06-203-24/+5
| | | | Blacklist SendControlMessage: it's signature has changed between Universal Headers 3.3 and 3.4.