[issue3403] Unexpected default arguments behaviour

2008-07-18 Thread SukkoPera

New submission from SukkoPera <[EMAIL PROTECTED]>:

I have just encountered a Python behaviour I wouldn't expect. Take
the following code:


class Parent:
a = 1

def m (self, param = a):
print "param = %d" % param

class Child (Parent):
a = 2

p = Parent ()
p.m ()

c = Child ()
c.m ()


I would expect to receive the following output:
param = 1
param = 2

But actually I get:
param = 1
param = 1

Is this the correct behaviour, and then why, or is it a bug? For
reference, I am using Python 2.5.1 on GNU/Linux.

There has been a short discussion about this at
http://groups.google.it/group/comp.lang.python/browse_thread/thread/9f740eea131e7ef2/56fd4e120a069a1d#56fd4e120a069a1d.

--
components: None
messages: 69943
nosy: SukkoPera
severity: normal
status: open
title: Unexpected default arguments behaviour
type: behavior
versions: Python 2.5

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3403] Unexpected default arguments behaviour

2008-07-18 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

This is another "problem" due to the fact that parameter defaults are
evaluated once during function definition, not every time the function
is called. This is expected and will not change.

--
nosy: +georg.brandl
resolution:  -> invalid
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3389] [PATCH] Allow custom logging Handlers in logging config files

2008-07-18 Thread Vinay Sajip

Vinay Sajip <[EMAIL PROTECTED]> added the comment:

Checked into SVN.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2674] unittest.TestProgram uses sys.exit()

2008-07-18 Thread J. Pablo Fernández

J. Pablo Fernández <[EMAIL PROTECTED]> added the comment:

I was bothered by this 'bug' ages ago, and I was work-arounding it. So
now I've spent some time in 'fixing' it with the patches on issue #3379.

--
nosy: +pupeno

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3404] wrong precision in float formatting

2008-07-18 Thread Hagen Fürstenau

New submission from Hagen Fürstenau <[EMAIL PROTECTED]>:

This seems to be wrong:

>>> "{0:.2}".format(1.2345)
'1.2'

The same happens for format specifiers "g" and "n", but not for "f":

>>> "{0:.2f}".format(1.2345)
'1.23'

With empty format specifier it can even get really wrong:

>>> "{0:.1}".format(1.2345)
'1.0'

--
components: Interpreter Core
messages: 69947
nosy: hagen
severity: normal
status: open
title: wrong precision in float formatting
type: behavior
versions: Python 2.6, Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3404] wrong precision in float formatting or doc error

2008-07-18 Thread Hagen Fürstenau

Hagen Fürstenau <[EMAIL PROTECTED]> added the comment:

Just found it documented for the % operator: There precision is number
of digits before and after decimal point for format "g". 

But then the documentation for 2.6 is wrong:

"The precision is a decimal number indicating how many digits should be
displayed after the decimal point for a floating point value."

--
assignee:  -> georg.brandl
components: +Documentation
nosy: +georg.brandl
title: wrong precision in float formatting -> wrong precision in float 
formatting or doc error
type: behavior -> 

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3404] wrong precision in float formatting or doc error

2008-07-18 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Fixed docs in r65099.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3362] locale.getpreferredencoding() gives bus error on Mac OS X 10.4.11 PPC

2008-07-18 Thread cfr

cfr <[EMAIL PROTECTED]> added the comment:

A work-around when using python from a shell environment (e.g. from a
bash shell in Terminal) is to issue

export __CF_USER_TEXT_ENCODING=0x1F5:0:0

before starting python. I haven't yet worked out how to apply this to
GUI apps. I tried editing ~/.MacOSX/environment.plist and
~/.CFUserTextEncoding but neither strategy prevents the crash.

I assume the fix works because it means one of the explicitly listed
encodings matches so things never get as far as the code which triggers
the error.

Without the fix, my environment contained

__CF_USER_TEXT_ENCODING=0x1F5:39:79

which does not, apparently, correspond to any of the encodings
explicitly listed in _localemodule.c.

- cfr

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3405] Add support for the new data option supported by event generate (Tk 8.5)

2008-07-18 Thread Guilherme Polo

New submission from Guilherme Polo <[EMAIL PROTECTED]>:

Follows a patch that adds support for the new data option supported
event generate. It allows virtual events to pass a tcl object.

This patch is only intended to correctly support tcl objects, trying to
pass other objects (like a dict) will result in None being returned. If
you want to correctly pass and receive a dict, make it an attribute of
the tcl object being passed.

E.g.:

import Tkinter

def handle_it(event):
print event.data.something

root = Tkinter.Tk()
root.something = {1: 2}
root.after(1, lambda: root.event_generate('<>', data=root))
root.bind('<>', handle_it)
root.mainloop()

--
components: Tkinter
files: event_generate__data.diff
keywords: patch
messages: 69951
nosy: gpolo
severity: normal
status: open
title: Add support for the new data option supported by event generate (Tk 8.5)
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file10934/event_generate__data.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3406] LocaleTextCalendar and LocaleHTMLCalendar break without a locale

2008-07-18 Thread WoLpH

New submission from WoLpH <[EMAIL PROTECTED]>:

Steps to reproduce:
>>> import calendar
>>> calendar.LocaleHTMLCalendar()
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python2.5/calendar.py", line 540, in __init__
locale = locale.getdefaultlocale()
AttributeError: 'NoneType' object has no attribute 'getdefaultlocale'

The same goes for LocaleTextCalendar, the problem is caused by this 
code which obviously would never work:
if locale is None:
locale = locale.getdefaultlocale()

The fix should be quite easy, rename the local variable and it will 
work again :)

--
components: Extension Modules
messages: 69952
nosy: WoLpH
severity: normal
status: open
title: LocaleTextCalendar and LocaleHTMLCalendar break without a locale
type: crash
versions: Python 2.5

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3372] socket.setsockopt() is broken for multicast TTL and Loop options

2008-07-18 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

This is already fixed in release24-maint, release25-maint, trunk and py3k.

--
nosy: +gpolo
resolution:  -> out of date
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3406] LocaleTextCalendar and LocaleHTMLCalendar break without a locale

2008-07-18 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

This was fixed in r45302 and r58936

--
nosy: +gpolo
resolution:  -> out of date
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3088] test_multiprocessing hangs intermittently on POSIX platforms

2008-07-18 Thread Miki Tebeka

Miki Tebeka <[EMAIL PROTECTED]> added the comment:

I confirm this is solved for me in beta 2

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3399] Memory corruption in multiprocessing module, OS X 10.5.4

2008-07-18 Thread Mark Dickinson

Mark Dickinson <[EMAIL PROTECTED]> added the comment:

It looks like this isn't just me.  See the buildbot output at:

http://www.python.org/dev/buildbot/all/x86%20osx.5%20trunk/builds/33/ste
p-test/0

which shows:

test_multiprocessing
Assertion failed: (bp != NULL), function PyObject_Malloc, file 
Objects/obmalloc.c, line 746.
test test_multiprocessing failed -- errors occurred; run in verbose mode 
for details

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3346] test_ossaudiodev fails

2008-07-18 Thread Ismail Donmez

Ismail Donmez <[EMAIL PROTECTED]> added the comment:

Works fine in beta2.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3346] test_ossaudiodev fails

2008-07-18 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3358] 2to3 Iterative Wildcard Matching

2008-07-18 Thread Nick Edds

Nick Edds <[EMAIL PROTECTED]> added the comment:

Just as an added note: with the new changes made to fix_imports, this is
now noticeably slower than the recursive approach, even after I made a
few optimizations like removing the unnecessary len() in the while loop.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3334] 2to3 looses indentation on import fix

2008-07-18 Thread Nick Edds

Nick Edds <[EMAIL PROTECTED]> added the comment:

I believe the problem was that in the case of this fix, rather than
using set_prefix to give the new node the same prefix as before,
new.prefix = was used. Here is the one line fix which preserves the
prefix in the example given.

--
keywords: +patch
nosy: +nedds
Added file: http://bugs.python.org/file10935/fix_import.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3376] Use Python 3 lexer for 3.0 docs

2008-07-18 Thread Benjamin Peterson

New submission from Benjamin Peterson <[EMAIL PROTECTED]>:

I'm attaching two patches. One, for the Sphinx trunk, adds a
pygments_default_lexer option. The other, for the py3k branch, changes
the default lexer to python3. It also includes a rather hacky, overriden
highlightlang directive that changes the lexer from 'python' to
'python3' and calls the real highlightlang directive. This would
probably be better solved by adding a lexer_aliases option or something
to Sphinx. Note this doesn't work because the pygments version in SVN
doesn't have the Python 3 lexer.

--
keywords: +patch
nosy: +benjamin.peterson
Added file: http://bugs.python.org/file10936/default_lexer_option.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3376] Use Python 3 lexer for 3.0 docs

2008-07-18 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


Added file: http://bugs.python.org/file10937/for_py3k_branch.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2638] tkSimpleDialog Window Flashing

2008-07-18 Thread Ron Longo

Ron Longo <[EMAIL PROTECTED]> added the comment:

Excellent!  That solution works as well.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2894] 2to3 discards comments before import statements

2008-07-18 Thread Nick Edds

Nick Edds <[EMAIL PROTECTED]> added the comment:

This seems to have been the same problem that was causing whitespace to
get lost before some imports. I believe the fix_import change I provided
in that issue, issue 3334, also corrects this problem.

--
nosy: +nedds

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2894] 2to3 discards comments before import statements

2008-07-18 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

I still this problem with the latest version of 2to3.

--
nosy: +benjamin.peterson

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2894] 2to3 discards comments before import statements

2008-07-18 Thread Nick Edds

Nick Edds <[EMAIL PROTECTED]> added the comment:

Yeah sorry. I can't commit changes, so I have the diff in the other
issue but it has not yet been committed. Here it is again for redundancy.

--
keywords: +patch
Added file: http://bugs.python.org/file10938/fix_import.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-18 Thread Karen Tracey

Karen Tracey <[EMAIL PROTECTED]> added the comment:

This behavior has reappeared in the 2.6 beta releases:

Python 2.6b2 (r26b2:65082, Jul 18 2008, 13:36:54) 
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class F(object):
... def __iter__(self):
... yield 23
... def __len__(self):
... print 'len called, raising KeyboardInterrupt'
... raise KeyboardInterrupt
... 
>>> f = F()
>>> list(f)
len called, raising KeyboardInterrupt
[23]

Should a new bug be opened for this?  (I can't find one but I'm not too
experienced searchign Python's bug tracker.)

--
nosy: +kmtracey

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2532] file that breaks 2to3 (despite being correct python)

2008-07-18 Thread Nick Edds

Nick Edds <[EMAIL PROTECTED]> added the comment:

My iterative pattern matching doesn't break on this file, but as
mentioned elsewhere, the iterative solution is slower. I'll work on
speeding it up, but I don't immediately see a good way to do so. Any
ideas would be greatly appreciated.

--
nosy: +nedds

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber

engelbert gruber <[EMAIL PROTECTED]> added the comment:

and now it is 2.6 ?

--
nosy: +grubert

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

May even be too late for 2.6. :)

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber

engelbert gruber <[EMAIL PROTECTED]> added the comment:

i just wanted to get rid of one "python2.6 -3" warning in string and
found that a patch was already waiting. from this thing i conclude
smaller patches might get committed earlier , do they ?

On Fri, Jul 18, 2008 at 8:42 PM, Georg Brandl <[EMAIL PROTECTED]> wrote:
>
> Georg Brandl <[EMAIL PROTECTED]> added the comment:
>
> May even be too late for 2.6. :)
>
> ___
> Python tracker <[EMAIL PROTECTED]>
> 
> ___
>

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

That is true. Barry might not want to allow a large catch-all patch; but
since those changes are not adding new features, simple small ones can
certainly get in before beta3.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3407] test_urllib2_localnet fails on MacOS X 10.4.11 (Intel)

2008-07-18 Thread Jean Brouwers

New submission from Jean Brouwers <[EMAIL PROTECTED]>:

The test_urllib2_localnet fails on MacOS X 10.4.11 (Intel) with Python 2.6b2 
(and 3.0b2), see 
below.

The same test also failed for Python 2.6b1 but was not reported as a test 
failure.


% ./python.exe 
Python 2.6b2 (r26b2:65082, Jul 18 2008, 09:00:40) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

% ./python.exe Lib/test/test_urllib2_localnet.py
test_proxy_qop_auth_int_works_or_throws_urlerror (__main__.ProxyAuthTests) ... 
ok
test_proxy_qop_auth_works (__main__.ProxyAuthTests) ... ok
test_proxy_with_bad_password_raises_httperror (__main__.ProxyAuthTests) ... ok
test_proxy_with_no_password_raises_httperror (__main__.ProxyAuthTests) ... ok

--
Ran 4 tests in 4.233s

OK
test_200 (__main__.TestUrlopen) ... ok
test_200_with_parameters (__main__.TestUrlopen) ... ok
test_404 (__main__.TestUrlopen) ... ok
test_bad_address (__main__.TestUrlopen) ... FAIL
test_basic (__main__.TestUrlopen) ... ok
test_geturl (__main__.TestUrlopen) ... ok
test_info (__main__.TestUrlopen) ... ok
test_redirection (__main__.TestUrlopen) ... ok
test_sending_headers (__main__.TestUrlopen) ... ok

==
FAIL: test_bad_address (__main__.TestUrlopen)
--
Traceback (most recent call last):
  File "Lib/test/test_urllib2_localnet.py", line 477, in test_bad_address
urllib2.urlopen, "http://www.python.invalid./";)
AssertionError: IOError not raised

--
Ran 9 tests in 9.486s

FAILED (failures=1)
Traceback (most recent call last):
  File "Lib/test/test_urllib2_localnet.py", line 491, in 
test_main()
  File "Lib/test/test_urllib2_localnet.py", line 488, in test_main
test_support.run_unittest(TestUrlopen)
  File ".../Python-2.6b2/Lib/test/test_support.py", line 731, in run_unittest
_run_suite(suite)
  File ".../Python-2.6b2/Lib/test/test_support.py", line 714, in _run_suite
raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
  File "Lib/test/test_urllib2_localnet.py", line 477, in test_bad_address
urllib2.urlopen, "http://www.python.invalid./";)
AssertionError: IOError not raised

--
components: Tests
messages: 69971
nosy: MrJean1
severity: normal
status: open
title: test_urllib2_localnet fails on MacOS X 10.4.11 (Intel)
type: behavior
versions: Python 2.6

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber

engelbert gruber <[EMAIL PROTECTED]> added the comment:

so i add a one liner replacing map(None with list ?

On 7/18/08, Georg Brandl <[EMAIL PROTECTED]> wrote:
>
>  Georg Brandl <[EMAIL PROTECTED]> added the comment:
>
>
> That is true. Barry might not want to allow a large catch-all patch; but
>  since those changes are not adding new features, simple small ones can
>  certainly get in before beta3.
>
>
>  ___
>  Python tracker <[EMAIL PROTECTED]>
>  
>  ___
>

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-18 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Reopening. For reference, the revision in which Raymond supposedly fixed
this is r39305.

--
nosy: +georg.brandl
priority: normal -> critical
status: closed -> open

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3408] urllib incomplete and urllib2 does not exist

2008-07-18 Thread vizcayno

New submission from vizcayno <[EMAIL PROTECTED]>:

I am under Win XP sp 3:
After importing urllib it only shows a few objects when using dir() 
urllib2 module does not exist.

.python
Python 3.0b2 (r30b2:65106, Jul 18 2008, 18:44:17) [MSC v.1500 32 bit 
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib
>>> dir(urllib)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__pa
th__']
>>> import urllib2
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named urllib2
>>>

--
components: Windows
messages: 69974
nosy: vizcayno
severity: normal
status: open
title: urllib incomplete and urllib2 does not exist
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

I can replace those too.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3408] urllib incomplete and urllib2 does not exist

2008-07-18 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

This is expected. (Most of) the content of Python 2's urllib and urllib2
modules is now in the urllib.request submodule.  Look at the
documentation in http://docs.python.org/dev/3.0/library/urllib.request
for more details.

--
nosy: +georg.brandl
resolution:  -> invalid
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber

engelbert gruber <[EMAIL PROTECTED]> added the comment:

it is only one in string.py, but then again it is save to do.

thanks

On 7/18/08, Georg Brandl <[EMAIL PROTECTED]> wrote:
>
>  Georg Brandl <[EMAIL PROTECTED]> added the comment:
>
>
> I can replace those too.
>
>
>  ___
>  Python tracker <[EMAIL PROTECTED]>
>  
>  ___
>

Added file: http://bugs.python.org/file10939/lib_string-r65106

___
Python tracker <[EMAIL PROTECTED]>

___

lib_string-r65106
Description: Binary data
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-18 Thread Karen Tracey

Karen Tracey <[EMAIL PROTECTED]> added the comment:

Thanks for responding.

It had been fixed.  2.4/2.5 behave like so:

Python 2.5.1 (r251:54863, Mar  7 2008, 04:10:12) 
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class F(object):
... def __iter__(self):
... yield 23
... def __len__(self):
... print 'len called, raising KeyboardInterrupt'
... raise KeyboardInterrupt
... 
>>> f = F()
>>> list(f)
len called, raising KeyboardInterrupt
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 6, in __len__
KeyboardInterrupt
>>> 

It just seems to have regressed in 2.6.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-18 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

I'm sorry, my use of "supposedly" was wrong here.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

OK, I nixed the "simple" uses of map(None, a).

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber

engelbert gruber <[EMAIL PROTECTED]> added the comment:

http://bugs.python.org/issue3390 is similar trivial , replacing has_key by in
(this small patches might be considered tweaking the bugfix statistic)

i am off now (tell me if you think i should stay there)

On 7/18/08, Georg Brandl <[EMAIL PROTECTED]> wrote:
>
>  Georg Brandl <[EMAIL PROTECTED]> added the comment:
>
>
> OK, I nixed the "simple" uses of map(None, a).
>
>
>  ___
>  Python tracker <[EMAIL PROTECTED]>
>  
>  ___
>

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3408] urllib incomplete and urllib2 does not exist

2008-07-18 Thread vizcayno

vizcayno <[EMAIL PROTECTED]> added the comment:

Thanks Georg.
Python 3.0b2 on line manual continues indicating with explanation and 
some examples that import urllib and import urllib2 are valid. Do you 
recommend me to open another issue about this?
Regards.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3408] urllib incomplete and urllib2 does not exist

2008-07-18 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Yes, but you can also post them here, I'll fix it ASAP.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3390] [PATCH] replace last has_key in unittest by in operator

2008-07-18 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Thanks, committed in r65111.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3408] urllib incomplete and urllib2 does not exist

2008-07-18 Thread vizcayno

vizcayno <[EMAIL PROTECTED]> added the comment:

Ok.

In the python 3.0b2 on line documentation that comes with the .msi 
installer:

1) Search with word urllib and access the fourth line found: "urllib — 
Open arbitrary resources by URL" 

2) Search with word urllib2 and select first line found: urllib2 — 
extensible library for opening URLs.

In these cases documentation refers to 3.0b1, I must say.

Many thanks for your attention and guidelines.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3409] ElementPath.Path.findall problem with unicode input

2008-07-18 Thread Uwe Hoffmann

New submission from Uwe Hoffmann <[EMAIL PROTECTED]>:

if you call Element.findall(u"...") some silent errors can 
occure because of the isinstance(,type("")) check. I'm
not sure if it is even allowed to call findall with a unicode parameter.
The attached diff solves *my* problem.

--
components: Library (Lib), Unicode
files: ElementPath.diff
keywords: patch
messages: 69986
nosy: qual
severity: normal
status: open
title: ElementPath.Path.findall problem with unicode input
type: behavior
versions: Python 2.5, Python 2.6
Added file: http://bugs.python.org/file10940/ElementPath.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3410] platform.version() don't work as expected in Vista in portuguese

2008-07-18 Thread Felipe Portella

New submission from Felipe Portella <[EMAIL PROTECTED]>:

Using Vista in Portuguese platform.version is returning "32bits" 
instead of "6.0.6001". This is because in file platform.py line 379 
thee regular expression try to search for the word "Version" in 
english, while in Portuguese the command ver will return "Versão".

To solve this issue simple change:

'Version ([\d.]+))')

for

 '\S+ ([\d.]+))')

--
components: Library (Lib)
messages: 69987
nosy: portella
severity: normal
status: open
title: platform.version() don't work as expected in Vista in portuguese
type: behavior
versions: Python 2.5

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3411] str.format() on negative floats

2008-07-18 Thread Hagen Fürstenau

New submission from Hagen Fürstenau <[EMAIL PROTECTED]>:

This happens with an empty type field in the format specification:

>>> "{0:1}".format(-1.23)
'.0-1.23'

With type "g" it's ok:

>>> "{0:1g}".format(-1.23)
'-1.23'

--
components: Library (Lib)
messages: 69988
nosy: hagen
severity: normal
status: open
title: str.format() on negative floats
versions: Python 2.6, Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3410] platform.version() don't work as expected in Vista in portuguese

2008-07-18 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
assignee:  -> lemburg
nosy: +lemburg

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3411] str.format() on negative floats

2008-07-18 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
assignee:  -> eric.smith
nosy: +eric.smith

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3347] urllib.robotparser doesn't work in Py3k

2008-07-18 Thread Jeremy Hylton

Jeremy Hylton <[EMAIL PROTECTED]> added the comment:

Committed revision 65118.

I applied a simple version of this patch and added a unittest.

--
assignee:  -> jhylton
nosy: +jhylton
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3408] urllib incomplete and urllib2 does not exist

2008-07-18 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

I see. The CHM file includes some old files that weren't cleaned up
after the urllib and urllib2 modules were removed. This should be fixed
for the coming releases.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3379] Option to not-exit on test

2008-07-18 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Barry, this looks useful and shouldn't be at all disruptive even after
beta2. May I check it in?

--
assignee:  -> barry
nosy: +barry, georg.brandl

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3412] Fraction and Decimal in the Tutorial

2008-07-18 Thread Florian Mayer

New submission from Florian Mayer <[EMAIL PROTECTED]>:

I think that when floating point number limitations are mentioned we
should also tell that there are alternatives for processing numbers with
decimal extensions. I wrote a text that introduces the Decimal and the
Fraction type to the reader.

--
assignee: georg.brandl
components: Documentation
files: floating
messages: 69992
nosy: georg.brandl, segfaulthunter
severity: normal
status: open
title: Fraction and Decimal in the Tutorial
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file10941/floating

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3410] platform.version() don't work as expected in Vista in portuguese

2008-07-18 Thread Marc-Andre Lemburg

Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment:

Could you please check whether this is still the case with the current
version of platform.py we have in SVN ?

http://svn.python.org/view/python/trunk/Lib/platform.py?rev=64233&view=markup

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3379] Option to not-exit on test

2008-07-18 Thread Barry A. Warsaw

Barry A. Warsaw <[EMAIL PROTECTED]> added the comment:

I'm not sure it's a good idea.  When exit=False, don't you lose the
results?  It would be better to return the results, but then that makes
for an ugly API (changing the return value based on an argument is a
general no-no in Python).

It would seem better to add a new method that returned the results
instead of exiting.  You'd probably want to refactor runTests().

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3412] Fraction and Decimal in the Tutorial

2008-07-18 Thread Florian Mayer

Florian Mayer <[EMAIL PROTECTED]> added the comment:

Updated file to fix a minor problem

Added file: http://bugs.python.org/file10942/floating.rst

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3412] Fraction and Decimal in the Tutorial

2008-07-18 Thread Florian Mayer

Changes by Florian Mayer <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file10941/floating

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3412] Fraction and Decimal in the Tutorial

2008-07-18 Thread Raymond Hettinger

Raymond Hettinger <[EMAIL PROTECTED]> added the comment:

I'll build-out the discussion a bit and mention the new float.hex() and 
float.as_integer_ratio() methods.  Will also add references to decimal 
and fractions.

--
assignee: georg.brandl -> rhettinger
nosy: +rhettinger

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3355] Display bug in :show-inheritance: for class with standard docstring

2008-07-18 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Fixed in r65123. Thanks!

--
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3412] Fraction and Decimal in the Tutorial

2008-07-18 Thread Florian Mayer

Changes by Florian Mayer <[EMAIL PROTECTED]>:


Added file: http://bugs.python.org/file10943/floating.rst

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3411] str.format() on negative floats

2008-07-18 Thread Eric Smith

Eric Smith <[EMAIL PROTECTED]> added the comment:

Thanks for catching this.  I was not skipping the leading sign char when
looking for the decimal point in the string, which was causing me to
incorrectly determine that a decimal wasn't present.

Fixed in r65125 (trunk) and r65126 (py3k).

--
components: +Interpreter Core -Library (Lib)
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2772] Add PendingDeprecationWarning for % formatting

2008-07-18 Thread Eric Smith

Changes by Eric Smith <[EMAIL PROTECTED]>:


--
assignee: eric.smith -> 

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3344] IDLE - use enumerate instead of zip(count(), ...)

2008-07-18 Thread Terry J. Reedy

Changes by Terry J. Reedy <[EMAIL PROTECTED]>:


--
components: +IDLE

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3344] IDLE - use enumerate instead of zip(count(), ...)

2008-07-18 Thread Terry J. Reedy

Terry J. Reedy <[EMAIL PROTECTED]> added the comment:

This looks as straightforward as patches get.
I verified that itertools.count is not used elsewhere in the file,
so it is ok to zap the import.  Suggest apply.

--
nosy: +tjreedy

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1869] Builtin round function is sometimes inaccurate for floats

2008-07-18 Thread George Boutsioukis

George Boutsioukis <[EMAIL PROTECTED]> added the comment:

The issue is that the implementation of round includes multiplying the
number by 10**ndigits, thus unnecessarily losing some precision for
large numbers within the IEEE754 double limits. This means that even
smaller numbers can produce these results for higher ndigit values, eg.

>>> round(56294995342131.5, 3) #one less digit
56294995342131.508

In the submitted patch I used modf to split the number and keep the
integral intact.

--
keywords: +patch
nosy: +gboutsioukis
Added file: http://bugs.python.org/file10944/round_patch.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3413] typo in Mac/Makefile.in breaks installing IDLE

2008-07-18 Thread Erick Tryzelaar

New submission from Erick Tryzelaar <[EMAIL PROTECTED]>:

There's a slight typo in Mac/Makefile.in, where DESDIR was used instead of 
DESTDIR. This 
patch fixes it:

--- /tmp/Makefile.in2008-07-18 19:42:29.0 -0700
+++ Mac/Makefile.in 2008-07-18 19:42:33.0 -0700
@@ -216,7 +216,7 @@
test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p 
"$(DESTDIR)$(PYTHONAPPSDIR)"
-test -d "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" && rm -r 
"$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
cp -PR IDLE/IDLE.app "$(DESTDIR)$(PYTHONAPPSDIR)"
-   ln -sf $(INSTALLED_PYTHONAPP) 
"$(DESDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/MacOS/Python"
+   ln -sf $(INSTALLED_PYTHONAPP) 
"$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/MacOS/Python"
touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
 
 $(INSTALLED_PYTHONAPP): install_Python

--
components: Build
messages: 70001
nosy: erickt
severity: normal
status: open
title: typo in Mac/Makefile.in breaks installing IDLE
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3413] typo in Mac/Makefile.in breaks installing IDLE

2008-07-18 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

Thanks! Fixed in r65129.

--
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2772] Add PendingDeprecationWarning for % formatting

2008-07-18 Thread Raymond Hettinger

Raymond Hettinger <[EMAIL PROTECTED]> added the comment:

I think this is premature until be know for sure that % formatting will 
in-fact be deprecated in Py3.1.  Time will tell how well the new format 
options get accepted.  Likewise, we'll learn more about how readily 
legacy code can get converted.

Guido, can you pronouce?

--
assignee:  -> gvanrossum
nosy: +gvanrossum, rhettinger

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3414] frameworkinstall doesn't create Python.app, which breaks python

2008-07-18 Thread Erick Tryzelaar

New submission from Erick Tryzelaar <[EMAIL PROTECTED]>:

Hello again!

It looks like doing "make frameworkinstall maninstall" isn't creating 
"Python.framework/Versions/3.0/Resources/Python.app", so when I try to 
run python it errors out with: "python3.0: execv: 
/opt/local/Library/Frameworks/Python.framework/Versions/3.0/Resources/Py
thon.app/Contents/MacOS/Python: No such file or directory". In order to 
get that file created, I need to manually run "cd Mac && make 
install_Python".

This patch fixes it, but I'm not sure if this is the proper fix:

--- Mac/Makefile.in.old 2008-07-18 20:59:44.0 -0700
+++ Mac/Makefile.in 2008-07-18 20:57:44.0 -0700
@@ -46,7 +46,7 @@
 compileall=$(srcdir)/../Lib/compileall.py
 
 installapps: install_PythonLauncher install_IDLE checkapplepython 
install_pythonw \
-   install_versionedtools
+   install_versionedtools install_Python
 
 installapps4way: install_Python4way install_BuildApplet 
install_PythonLauncher install_IDLE install_pythonw4way 
install_versionedtools

--
components: Build
messages: 70004
nosy: erickt
severity: normal
status: open
title: frameworkinstall doesn't create Python.app, which breaks python
type: behavior
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3415] Interpreter error when running a script under debugger control

2008-07-18 Thread Nir

New submission from Nir <[EMAIL PROTECTED]>:

Interpreter error results in erroneous exception when running a script
under debugger control.

Full repro description:
On Windows System, try to run idle.py under the inspection of pdb.py. 
Note that you must set a breakpoint somewhere otherwise pdb will not
trace the script and the issue will not surface.

You should get the bad exception in line 295 of multicall.py

Python complains that a local variable has been used before being
declared while in effect it has been a couple of lines before that point.

Nir

--
components: Interpreter Core
messages: 70005
nosy: nirai
severity: normal
status: open
title: Interpreter error when running a script under debugger control
type: behavior
versions: Python 2.6, Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2532] file that breaks 2to3 (despite being correct python)

2008-07-18 Thread engelbert gruber

engelbert gruber <[EMAIL PROTECTED]> added the comment:

The much simpler input might be another problem::

  # this is accepted
  b = ("a = 0\n" * 100)
  # this one breaks it
  ("a = 0\n" * 100)

this looks similar to ``map(None, t)`` on a line by itself is 
translated to ``list(map(None, t))`` and the message "You should use a 
for loop her"

--
nosy: +grubert

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com