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
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]
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
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
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
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
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
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.
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
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
components: +Interpreter Core
type: - behavior
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4040
___
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
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
versions: +Python 2.7 -Python 2.6
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1286
___
___
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
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
___
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
___
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
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]
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
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
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
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,
Changes by Martin v. Löwis [EMAIL PROTECTED]:
--
nosy: +loewis
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4042
___
___
Python-bugs-list mailing list
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
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:
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
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
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
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,
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
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
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
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
32 matches
Mail list logo