[issue6303] print does not appear in the 3.x documentation index

2009-06-18 Thread Georg Brandl
Georg Brandl added the comment: If you're referring to the general index, there is a "print() (built-in function)" entry in http://docs.python.org/dev/py3k/genindex-P.html. Am I missing another index? -- resolution: -> works for me status: open -> closed __

[issue6304] Confusing error message when passing bytes to print with file pointing to a binary file

2009-06-18 Thread Georg Brandl
Georg Brandl added the comment: How would you propose to fix this? print() should certainly not catch all TypeErrors and raise a new one... Maybe exception chaining could be used, so that print raises a TypeError of its own with the cause being the original message? -- nosy: +georg.br

[issue6305] islice doesn't accept large stop values

2009-06-18 Thread Thomas Guest
New submission from Thomas Guest : Python 3.0 (r30:67503, Jan 7 2009, 16:22:01) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin >>> from itertools import islice, count >>> islice(count(), (1<<31) - 1) >>> islice(count(), (1<<31)) Traceback (most recent call last): File "", line 1, i

[issue6276] Fix contextlib.nested DeprecationWarning for test_signal.

2009-06-18 Thread Vikram U Shenoy
Vikram U Shenoy added the comment: Ping. This is a legit fix right ? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue6305] islice doesn't accept large stop values

2009-06-18 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger priority: -> low ___ Python tracker ___ ___ Python-bugs-l

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread david
david added the comment: So, it's wrong, and it's not helpful unless you already know what it means, but it works for someone who doesn't need the Python tutorial! I'm gobsmacked. If "the C libraries that Python uses" have the concept of Text/Binary, why not just say so? Conversely, if you

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: A small improvement could be made: - Windows makes a distinction between text and binary files + Python on Windows makes a distinction between text and binary files The meaning should have been obvious as-is, but the fact of the matter is that the OP is "go

[issue6300] encode and decode should accept 'errors' as a keyword argument

2009-06-18 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- keywords: +easy stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue6306] filecmp.cmp can not compare two files from different OS with the same content

2009-06-18 Thread higer
New submission from higer : I just want to compare two files,one from windows and the other from unix. But I do not want to compare them through reading them line by line. Then I found there is a filecmp module which is used as file and directory comparisons. However,when I use two same files (on

[issue6307] AttributeError in traceback.print_last()

2009-06-18 Thread Viktor Ferenczi
New submission from Viktor Ferenczi : Python 2.5.4, Windows MSI installer, WinXP SP2, 32 bit: Try the following code: (test script attached) import traceback try: someundefinedsymbol except: traceback.print_last() It will raise the following exception: Traceback (most recent call las

[issue6307] AttributeError in traceback.print_last()

2009-06-18 Thread Viktor Ferenczi
Viktor Ferenczi added the comment: >From the manual of the sys module: """ last_type last_value last_traceback These three variables are not always defined; they are set when an exception is not handled and the interpreter prints an error message and a stack traceback. """ So the AttributeEr

[issue6303] print does not appear in the 3.x documentation index

2009-06-18 Thread R. David Murray
R. David Murray added the comment: You are right of course. My alphabetizing skillz need work, apparently :(. -- ___ Python tracker ___ _

[issue6306] filecmp.cmp can not compare two files from different OS with the same content

2009-06-18 Thread R. David Murray
R. David Murray added the comment: If you do not want to compare them by reading line by line, then you are doing a binary comparison (which is what filecmp does) and the two files are, indeed, different. If you want to compare them in text mode, you are moving into 'diff' territory and could u

[issue6307] AttributeError in traceback.print_last()

2009-06-18 Thread R. David Murray
R. David Murray added the comment: In 2.7/3.1 this message is a ValueError saying "no last traceback". -- nosy: +r.david.murray priority: -> low resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2009-06-18 Thread Neil Muller
Neil Muller added the comment: Updated patch - adds a test for this. -- Added file: http://bugs.python.org/file14316/issue6233_py3k_with_test.diff ___ Python tracker ___

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2009-06-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: This regression is probably annoying enough to make it a blocker. -- nosy: +pitrou priority: -> release blocker ___ Python tracker ___

[issue1685] linecache .updatecache fails on utf8 encoded files

2009-06-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This was probably fixed by issue4016 (r70587) -- nosy: +amaury.forgeotdarc resolution: -> out of date status: open -> closed ___ Python tracker _

[issue6308] termios fix for QNX breaks HP-UX

2009-06-18 Thread Michael Haubenwallner
New submission from Michael Haubenwallner : The patch for issue 175 in Include/pyport.h to include before for QNX does break for HP-UX: On HP-UX, 'struct termios' gets declared within , but when included via _only_. Due to the include guard, it does not declare 'struct termios' when includ

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2009-06-18 Thread R. David Murray
R. David Murray added the comment: Is there any use case for feedparser accepting strings as input that isn't a design error waiting to bite the programmer? -- nosy: +r.david.murray priority: -> high stage: -> test needed type: -> behavior versions: +Python 3.1, Python 3.2 -Python 3.

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2009-06-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: dato: We've started some branches that try to address this, by exposing both a read-a-buncha-bytes interface and a read-a-string interface. rdm: As it turns out, yes. There are use cases for reading a string containing only ascii bytes. In general, this is p

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread Georg Brandl
Georg Brandl added the comment: I'm -0 about that change. However, I'd like to defend the original wording; it is *not* Python that makes the text/binary distinction. Python just calls fopen(), which is what portable C programs are supposed to do, with the mode it is given by the programmer in

[issue6276] Fix contextlib.nested DeprecationWarning for test_signal.

2009-06-18 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread Michael Foord
Michael Foord added the comment: The wording as it stands just seems plain wrong. Either "Python on Windows" or "On Windows" is better - the former over the latter but either... -- nosy: +michael.foord ___ Python tracker

[issue6276] Fix contextlib.nested DeprecationWarning for test_signal.

2009-06-18 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r73471. -- assignee: rhettinger -> georg.brandl nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue6189] subprocess module not compatible with python 2.5

2009-06-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Fixed with r73472 -- nosy: +amaury.forgeotdarc resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue1074015] current directory in sys.path handles symlinks badly

2009-06-18 Thread Marko Schuetz
Marko Schuetz added the comment: I think this behavior is causing a related problem: Assume I have directories currentWorkspace and branchRepository. On branchRepository I have files main.py and module.py. main.py imports module.py. In currentWorkspace main.py links to the repository version

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread david
david added the comment: If this is like to be non-portable to jPython, I'd like to be told. However, I can see that the tutorial may be the wrong place to mention that. -- ___ Python tracker

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread Michael Foord
Michael Foord added the comment: This behavior of Python when reading files is so fundamental that I can't imagine Jython doesn't behave the same way. (IronPython certainly has the same behavior.) -- ___ Python tracker

[issue6309] Tix needs TCL package require statement

2009-06-18 Thread Erik Antelman
New submission from Erik Antelman : For at least Tix.ComboBox it appears to be necessary to invoke the TCL package loading explicitly with: root.tk.eval('package require Tix') This was demonstrated on: Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread Philip Jenvey
Philip Jenvey added the comment: Jython 2.5 behaves in the same way -- nosy: +pjenvey ___ Python tracker ___ ___ Python-bugs-list mail

[issue6310] Windows "App Paths" key is not checked when installed for current user

2009-06-18 Thread anatoly techtonik
New submission from anatoly techtonik : I found that if Python installed only for current user on Windows XP Home Edition SP3 Python fails to run from Start -> Run dialog or using ShellExecute() call. It is because it creates "App Paths" key in HKEY_CURRENT_USER\Software\Microsoft\Windows\Current