| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Add tests for unbound locals (Nick Mathewson)
|
| |
|
|
|
|
| |
STILL NEEDS UNIX BUILD CHANGES.
|
|
|
|
| |
SF patch 102989 by Thomas Wouters
|
|
|
|
|
|
|
|
|
|
|
| |
discussion on python-dev. 'from mod import *' is still banned except
at the module level.
Fix value for special NOOPT entry in symtable. Initialze to 0 instead
of None, so that later uses of PyInt_AS_LONG() are valid. (Bug
reported by Donn Cave.)
replace local REPR macros with PyObject_REPR in object.h
|
| |
|
| |
|
|
|
|
|
| |
test_new: new.code() noew takes two more arguments
test_grammer: Add a bunch of test cases for lambda (not really PEP 227 related)
|
|
|
|
| |
New tests cases for nested scopes.
|
|
|
|
|
| |
also normalize checks for syntax errors and delete commented out
definition of verify.
|
|
|
|
| |
are different (Ping didn't test this).
|
|
|
|
| |
are different (Ping couldn't test this).
|
|
|
|
| |
Switch from octal escapes to hex escapes for other nonprintable characters.
|
|
|
|
|
| |
otherwise used in the same code block. (Not sure this is the right
place, but there is no test_list_comprehensions.py.)
|
|
|
|
| |
they're run.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
added test script and expected output file as well
this closes patch 103297.
__all__ attributes will be added to other modules without first submitting
a patch, just adding the necessary line to the test script to verify
more-or-less correct implementation.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
except that it always returns Unicode objects.
A new C API PyObject_Unicode() is also provided.
This closes patch #101664.
Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
|
|
|
|
| |
it anticipates another patch i was about to propose.
|
| |
|
|
|
|
|
|
|
| |
message, and tries to make the messages more consistent and helpful when
the wrong number of arguments or duplicate keyword arguments are supplied.
Comes with more tests for test_extcall.py and and an update to an error
message in test/output/test_pyexpat.
|
| |
|
|
|
|
|
|
| |
Closes SF patch #103123.
Regression test for function attributes, with output file.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
pid across threads (but in that case, it's still the same process, and so
still sharing the "template" cache in tempfile.py). Repaired that, and
added a new std test.
On Linux, someone please run that standalone with more files and/or more
threads; e.g.,
python lib/test/test_threadedtempfile.py -f 1000 -t 10
to run with 10 threads each creating (and deleting) 1000 temp files.
|
|
|
|
|
|
|
| |
codec to test all charmap codec features.
As side-effect of moving the test codec into a new module, the encodings
package codec import mechanism is checked as well.
|
|
|
|
|
|
|
| |
Wasn't built on Windows; not in config.c either.
Module init function missing DL_EXPORT magic.
test_xreadline output file obviously wrong (started w/ "test_xrl").
test program very unclear about what was expected.
|
| |
|
|
|
|
|
|
| |
variant that never needs to "search from the right".
Also fixed unlikely memory leak in get_line, if string size overflows INTMAX.
Also new std test test_bufio to make sure .readline() works.
|
|
|
|
|
| |
These will detect regression on SF bug #127271 and other import statement
bugs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the mapping dictionaries can now contain 1-n mappings, meaning
that character ordinals may be mapped to strings or Unicode object,
e.g. 0x0078 ('x') -> u"abc", causing the ordinal to be replaced by
the complete string or Unicode object instead of just one character.
Another feature introduced by the patch is that of mapping oridnals to
the emtpy string. This allows removing characters.
The patch is different from patch #103100 in that it does not cause a
performance hit for the normal use case of 1-1 mappings.
Written by Marc-Andre Lemburg, copyright assigned to Guido van Rossum.
|
|
|
|
|
|
|
| |
the urljoin() function, which exercises the urlparse() and urlunparse()
functions as side effects.
(Moshe, why did we have perfectly empty tests checked in for this?)
|
| |
|
|
|
|
| |
as the left operand. I don't know if this is a feature or a bug.
|
|
|
|
| |
comparing different types.
|
|
|
|
| |
this works on all platforms.
|
|
|
|
| |
overhaul. Closes SF patch #102878.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Christmas present to myself: the bisect module didn't define what
happened if the new element was already in the list. It so happens
that it inserted the new element "to the right" of all equal elements.
Since it wasn't defined, among other bad implications it was a mystery
how to use bisect to determine whether an element was already in the
list (I've seen code that *assumed* "to the right" without justification).
Added new methods bisect_left and insort_left that insert "to the left"
instead; made the old names bisect and insort aliases for the new names
bisect_right and insort_right; beefed up docstrings to explain what
these actually do; and added a std test for the bisect module.
|
|
|
|
|
|
|
|
|
| |
information from the Expat library that is not part of its public API.
Do not print this information as the format of the string may (and will)
change as Expat evolves.
Add additional tests to make sure the ParserCreate() function raises the
right exceptions on illegal parameters.
|
|
|
|
| |
This closes patch #102477.
|
|
|
|
|
|
|
|
| |
roundtrip(): Show the offending syntax tree when things break; this makes
it a little easier to debug the module by adding test cases.
(Still need better tests for this module, but there's not enough time
today.)
|
| |
|