[issue4008] IDLE: checksyntax() doesn't support Unicode?

2008-10-04 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: @loewis: I guess that your locale is still UTF-8. To refute this claim, I reported that locale.getpreferredencoding reports 'ANSI_X3.4-1968'. I was following your instructions exactly (on Debian 4.0), and still, it opens successfully (when

[issue4035] Support bytes for os.exec*()

2008-10-04 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: This is incorrect. On Windows, if the path contains characters with no representation in CP_ACP, encoding the path as bytes makes it invalid. -- nosy: +loewis ___ Python tracker [EMAIL PROTECTED]

[issue4036] Support bytes for subprocess.Popen()

2008-10-04 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I think this should be deferred to 3.1. I'm not sure how much consistency across platforms is desirable, however, using strings is surely the better choice on Windows. I could sympathize with providing bytes support only on POSIX, but I'm sure

[issue4027] wrong page index number in reference book of python documentation

2008-10-04 Thread Winfried Plappert
Winfried Plappert [EMAIL PROTECTED] added the comment: In addition to the same issue: library.pdf, downloaded from http://docs.python.org/ftp/python/doc/2.6/python-docs-pdf-a4.tar.bz2: Glossarypoints to chapter 1, About these documents chapter 2, History and License

[issue4039] Add __enter__ and __exit__ methods to StringIO/cStringIO classes

2008-10-04 Thread peppergrower
New submission from peppergrower [EMAIL PROTECTED]: Currently, StringIO objects do not have __enter__ and __exit__ methods associated with them. As a result, the 'with' statement won't work properly on StringIO objects in a construction like the following, though they can otherwise be

[issue4039] Add __enter__ and __exit__ methods to StringIO/cStringIO classes

2008-10-04 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Certainly not for 2.5 or 2.6. Targetting this as 2.7. -- nosy: +loewis versions: +Python 2.7 -Python 2.5 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4039

[issue4015] [patch] make installed scripts executable on windows

2008-10-04 Thread anatoly techtonik
anatoly techtonik [EMAIL PROTECTED] added the comment: 1. Associations still do not show Scripts/ among executable files in Run dialog. 2. Association works only for one version of properly installed Python. It won't work if Python is installed for different user, if extensions are not

[issue4035] Support bytes for os.exec*()

2008-10-04 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: The fix can be changed to be specific to POSIX system: +if name == 'posix' \ +and isinstance(file, bytes): +encoding = sys.getfilesystemencoding() +PATH = (bytes(dir, encoding) for dir in PATH) My example was incorrect.

[issue4040] ignored exceptions in generators (regression?)

2008-10-04 Thread Benjamin Peterson
New submission from Benjamin Peterson [EMAIL PROTECTED]: Given this code: def f(): for i in f(): yield i for i in f(): print i 2.6 gives: Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in type 'exceptions.RuntimeError' ignored Exception

[issue4040] ignored exceptions in generators (regression?)

2008-10-04 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- components: +Interpreter Core type: - behavior ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4040 ___

[issue4039] Add __enter__ and __exit__ methods to StringIO/cStringIO classes

2008-10-04 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: This is a duplicate of #1286. -- nosy: +benjamin.peterson resolution: - duplicate status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4039

[issue1286] fileinput, StringIO, and cStringIO do not support the with protocol

2008-10-04 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- versions: +Python 2.7 -Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1286 ___ ___

[issue4041] reference to rexec in __import__

2008-10-04 Thread Winfried Plappert
New submission from Winfried Plappert [EMAIL PROTECTED]: on the web page http://docs.python.org/library/functions.html, __import__ references rexec why and how one could use __import__. On the rexec page (http://docs.python.org/library/rexec.html) it says: Deprecated since version 2.6. I think

[issue4041] reference to rexec in __import__

2008-10-04 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, fixed in r66793. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4041 ___

[issue4000] Additional 2to3 documentation updates

2008-10-04 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, fixed all of them in r66794. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4000 ___

[issue4029] Documentation displays incorrectly in iexplore.

2008-10-04 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: I concur with Terry on all counts. Specifically: 1. How the underscores are displayed depends on the font you've selected as your monospace font. Replacing them with an image is ugly and will never look remotely nice. 2. I will fix the

[issue3661] sys.call_tracing segfaults

2008-10-04 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Attaching patch. -- keywords: +needs review, patch Added file: http://bugs.python.org/file11702/fix_call_tracing_segfault.patch ___ Python tracker [EMAIL PROTECTED]

[issue4042] IDLE won't start in 2.6 final. A known fix was overlooked?

2008-10-04 Thread Robert Yodlowski
New submission from Robert Yodlowski [EMAIL PROTECTED]: I just installed the 2.6 final release on my fully updated Win XP system. When I tried to run IDLE I got the same... IDLE's subprocess didn't make connection. Either IDLE can't start subprocess or personal firewall is blocking. ...fatal

[issue4042] IDLE won't start in 2.6 final. A known fix was overlooked?

2008-10-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: IDLE 2.6 final works for me. (I believe that #3905 did not apply to 2.6) Can you please open a command prompt, and start IDLE from there? If you installed python in the default location, the command is: C:\python26\python

[issue4042] IDLE won't start in 2.6 final. A known fix was overlooked?

2008-10-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Sorry, copy/paste error. The correct command is of course: C:\python26\python C:\python26\Lib\idlelib\idle.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4042

[issue4043] Attempting to import deprecated modules in IDLE raises TypeError

2008-10-04 Thread Craig Holmquist
New submission from Craig Holmquist [EMAIL PROTECTED]: In Python 2.6, attempting to import depecated modules in IDLE raises a TypeError exception. I verified this with sets, mimify, and MimeWriter. Here's the output for sets: import sets Traceback (most recent call last): File pyshell#2,

[issue4042] IDLE won't start in 2.6 final. A known fix was overlooked?

2008-10-04 Thread Martin v. Löwis
Changes by Martin v. Löwis [EMAIL PROTECTED]: -- nosy: +loewis ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4042 ___ ___ Python-bugs-list mailing list

[issue4043] Warnings in IDLE raise TypeError (such as attempting to import deprecated modules)

2008-10-04 Thread Craig Holmquist
Craig Holmquist [EMAIL PROTECTED] added the comment: Actually, it looks like ANY warning will raise this error in IDLE. For example: import warnings warnings.warn('blah blah') Traceback (most recent call last): File pyshell#5, line 1, in module warnings.warn('blah blah') File

[issue4034] traceback attribute error

2008-10-04 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Here's a patch. It looks like traceback just needs to use a struct sequence instead of providing tp_getattr its self. -- keywords: +needs review, patch nosy: +benjamin.peterson Added file:

[issue3664] Pickler.dump from a badly initialized Pickler segfaults

2008-10-04 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Here's the fix. The added check in Pickler_dump should prevent any segfaults due to __init__() errors. I also added the check proposed by Christian as a safe-guard in case a core developer adds a new method that doesn't check if the

[issue3675] Python 2.6 can't read sets pickled with Python 3.0

2008-10-04 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: I agree with Antoine, protocols = 2 should remain compatible with Python 2.x or be deprecated. Keeping compatibility will require a hack, in addition to the proposed patch, in Pickler.save_global to map Python 3's module names to the ones

[issue4034] traceback attribute error

2008-10-04 Thread Greg Hazel
Greg Hazel [EMAIL PROTECTED] added the comment: There seem to be some other exception type and string inconsistencies, but they are not new to Python 2.6 tb.tb_frame = None Traceback (most recent call last): File stdin, line 1, in module TypeError: 'traceback' object has only read-only

[issue4042] IDLE won't start in 2.6 final. A known fix was overlooked?

2008-10-04 Thread Robert Yodlowski
Robert Yodlowski [EMAIL PROTECTED] added the comment: Amaury, when I tried to run IDLE from the command line as you suggested I got: C:\C:\python26\Lib\idlelib\idle.py IDLE Subprocess: socket error: An attempt was made to access a socket in a way forbidden by its access permissions,

[issue1415508] optparse enable_interspersed_args disable_interspersed_args

2008-10-04 Thread A.M. Kuchling
A.M. Kuchling [EMAIL PROTECTED] added the comment: Docstring portion of the patch applied to the trunk in rev. 66804; the change will appear in Python 2.6.1 and 2.7. Thanks! -- resolution: - accepted status: open - closed ___ Python tracker [EMAIL

[issue4043] Warnings in IDLE raise TypeError (such as attempting to import deprecated modules)

2008-10-04 Thread Craig Holmquist
Craig Holmquist [EMAIL PROTECTED] added the comment: I should have checked this more carefully, but apparently you can still use the imported module after the exception. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4043

[issue4043] Warnings in IDLE raise TypeError (such as attempting to import deprecated modules)

2008-10-04 Thread Craig Holmquist
Craig Holmquist [EMAIL PROTECTED] added the comment: Okay, I think I've got it now: 1. If you import sets, it raises TypeError. However, if you import it a second time, it seems to work properly. 2. Trying to import a module that relies on the deprecated module (ie, sqlalchemy) fails no

[issue4042] IDLE won't start in 2.6 final. A known fix was overlooked?

2008-10-04 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Amaury, when I tried to run IDLE from the command line as you suggested I got: C:\C:\python26\Lib\idlelib\idle.py This is not what Amaury suggested. He suggested that you put the path to python.exe before the path of idle.py