| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
Import OPT_ symbols from _symtable.
Define has_exec() and has_import_star().
|
| |
|
|
|
|
|
|
|
| |
file was deleted by a previous call to the visitor function.
This used to be the behavior in 1.5.2 and before, but a patch to avoid
making two stat() calls accidentally broke this in 2.0.
Moshe, this would be a good one for 2.0.1 too!
|
| |
|
|
| |
recently reported bug; also exposed some other bugs in the implementation.
|
| |
|
|
|
|
|
|
| |
parameter.
Weak*Dictionary.get(): Make the second parameter optional.
WeakKeyDictionary.has_key(), .keys(): Make these actually work!
|
| |
|
|
|
|
|
|
|
|
| |
its first return statement returns a single value while its caller
always expects it to return a tuple of two items. Fix this by
returning (s, 0) instead.
This won't make the locale test on Irix succeed, but now it will fail
because of a bug in the platform's en_US locale rather than because of
a bug in the locale module.
|
| |
|
|
|
|
| |
than from module pickletester. Using the latter turned out to cause
the test to break when invoked as "import test.test_pickle" or "import
test.autotest".
|
| |
|
|
| |
Reported by Juan M. Bello Rivas.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
cut-and-paste copy of the seek() method on the _Subfile class, but it
didn't make one bit of sense: it sets self.pos, which is not used in
this class or its subclasses, and it uses self.start and self.stop,
which aren't defined on this class or its subclasses. This is purely
my own fault -- I added this in rev 1.4 and apparently never tried to
use it. Since it's not documented, and of very questionable use given
that there's no tell(), I'm ripping it out.
This resolves SF bug 416199 by Andrew Dalke: mailbox.py seek problems.
|
| |
|
|
|
| |
set to 'en' there -- Windows does not understand the 'en_US' locale.
The test succeeds there.
|
| |
|
|
| |
Norwitz's PyChecker.
|
| |
|
|
| |
NotImplementedError) found by Neil Norwitz's PyChecker.
|
| |
|
|
| |
found by Neil Norwitz's PyChecker.
|
| |
|
|
| |
Neil Norwitz's PyChecker.
|
| |
|
|
| |
Neil Norwitz's PyChecker.
|
| |
|
|
| |
- Removed unused variable 'opts' in TestProgram.__init__ (thanks to PyChecker)
|
| |
|
|
|
| |
needed on some platforms (e.g. Solaris 8) when the test is run twice
in quick succession.
|
| |
|
|
|
|
| |
ZipFile.close() method that should be part of the preceding 'if'
block. On some platforms (Mark noticed this on FreeBSD 4.2) doing a
flush() on a file open for reading is not allowed.
|
| |
|
|
|
| |
argument "wb", while the only valid modes are "r", "w" or "a". Fix
this by changing the mode to "w".
|
| | |
|
| |
|
|
|
| |
failing later when Python is compiled without threading but a failing
'threading' module can be imported due to an earlier (caught) attempt.
|
| |
|
|
|
|
|
| |
device to use, skip this test instead of allowing an error to occur
when we attempt to play sound on the absent device.
Verified by Mark Favas.
|
| | |
|
| |
|
|
|
|
| |
references to an object before calling registered callbacks).
Change last uses of verify() to self.assert_().
|
| | |
|
| |
|
|
|
|
|
|
|
| |
now raises NameError instead of UnboundLocalError, because the var in
question is definitely not local. (This affects test_scope.py)
Also update the recent fix by Ping using get_func_name(). Replace
tests of get_func_name() return value with call to get_func_desc() to
match all the other uses.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Fixes SF bug #405427.
If an http response has a bogus return code, e.g. 400.100, raise
BadStatusLine.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Tools/idle/idlelib link doesn't cause an infinite loop -- aack!)
|
| | |
|
| |
|
|
| |
(such as the exceptions in _weakref and _locale!)
|
| | |
|
| |
|
|
| |
Restore Helper.__repr__ for now.
|
| |
|
|
|
|
|
|
| |
Make synopsis() load modules as '__temp__' so they don't clobber anything.
Change "constants" section to "data" section.
Don't show __builtins__ or __doc__ in "data" section.
For Bob Weiner: don't boldface text in Emacs shells or dumb terminals.
Remove Helper.__repr__ (it really belongs in site.py, and should be guarded by a check for len(inspect.stack) <= 2).
|
| |
|
|
| |
Make getmodule() on a module return the module itself.
|
| |
|
|
|
|
|
|
|
| |
fixes bug #414940, and redoes the fix for #129417 in a different way.
It also fixes a number of other problems with locale-specific formatting:
If there is leading or trailing spaces, then no grouping should be applied
in the spaces, and the total length of the string should not be changed
due to grouping.
Also added test case which works only if the en_US locale is available.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
value for the 'using' parameter of the get() function
or the BROWSER environment variable, if the thing
passed in is a path (as seems to be the case with KDE)
instead of a short name, examine the available
controllers to see if we can synthesize one based on a
pre-registered controller that shares the same base
name.
get(): If the user specifies a browser we don't know about, use
_synthesize() to attempt to create a usable controller.
Some small adjustments were needed in some of the browser classes to
support this.
|
| |
|
|
|
|
| |
Otherwise, continue/break will attempt to affect the wrong loop.
A few more fiddles to get the SET_LINENOs consistent across compilers.
|
| |
|
|
|
|
|
|
|
| |
Always emit a SET_LINENO 0 at the beginning of the module. The
builtin compiler does this, and it's much easier to compare bytecode
generated by the two compilers if they both do.
Move the SET_LINENO inside the FOR_LOOP block for list
comprehensions. Also for compat. with builtin compiler.
|
| | |
|
| |
|
|
| |
Fix handling of unbound top-level methods.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix annoying bugs in flow graph layout code. In some cases the
implicit control transfers weren't honored. In other cases,
JUMP_FORWARD instructions jumped backwards.
Remove unused arg from nextBlock().
pycodegen.py
Add optional force kwarg to set_lineno() that will emit a
SET_LINENO even if it is the same as the previous lineno.
Use explicit LOAD_FAST and STORE_FAST to access list comp implicit
variables. (The symbol table doesn't know about them.)
|