[issue6301] Error in tutorial section 7.2

2009-06-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Even if the Win32 API functions do not have a concept of text/binary files, the C library functions that MS provides, and Python uses, have. See http://msdn.microsoft.com/en-us/library/yeby3zcb(VS.71).aspx -- resolution: - works for me

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

2009-06-18 Thread Georg Brandl
Georg Brandl ge...@python.org 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 ge...@python.org 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?

[issue6305] islice doesn't accept large stop values

2009-06-18 Thread Thomas Guest
New submission from Thomas Guest t...@wordaligned.org: 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(), (131) - 1) itertools.islice object at 0x63a0c0 islice(count(), (131)) Traceback

[issue6276] Fix contextlib.nested DeprecationWarning for test_signal.

2009-06-18 Thread Vikram U Shenoy
Vikram U Shenoy vikram.u.she...@gmail.com added the comment: Ping. This is a legit fix right ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6276 ___

[issue6305] islice doesn't accept large stop values

2009-06-18 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - rhettinger nosy: +rhettinger priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6305 ___

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread david
david da...@plasmatronics.com.au 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

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

[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 amaur...@gmail.com: -- keywords: +easy stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6300 ___

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

2009-06-18 Thread higer
New submission from higer higerinbeij...@gmail.com: 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

[issue6307] AttributeError in traceback.print_last()

2009-06-18 Thread Viktor Ferenczi
New submission from Viktor Ferenczi pyt...@cx.hu: 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

[issue6307] AttributeError in traceback.print_last()

2009-06-18 Thread Viktor Ferenczi
Viktor Ferenczi pyt...@cx.hu 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

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

2009-06-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: You are right of course. My alphabetizing skillz need work, apparently :(. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6303 ___

[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 rdmur...@bitdance.com 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'

[issue6307] AttributeError in traceback.print_last()

2009-06-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 ___

[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 drnlmuller+b...@gmail.com added the comment: Updated patch - adds a test for this. -- Added file: http://bugs.python.org/file14316/issue6233_py3k_with_test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6233

[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 pit...@free.fr added the comment: This regression is probably annoying enough to make it a blocker. -- nosy: +pitrou priority: - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6233

[issue1685] linecache .updatecache fails on utf8 encoded files

2009-06-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This was probably fixed by issue4016 (r70587) -- nosy: +amaury.forgeotdarc resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6308] termios fix for QNX breaks HP-UX

2009-06-18 Thread Michael Haubenwallner
New submission from Michael Haubenwallner michael.haubenwall...@salomon.at: The patch for issue 175 in Include/pyport.h to include sys/termio.h before termios.h for QNX does break for HP-UX: On HP-UX, 'struct termios' gets declared within sys/termio.h, but when included via termios.h _only_.

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

2009-06-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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,

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

2009-06-18 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org 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

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread Georg Brandl
Georg Brandl ge...@python.org 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

[issue6276] Fix contextlib.nested DeprecationWarning for test_signal.

2009-06-18 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6276 ___ ___

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk 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 ge...@python.org added the comment: Fixed in r73471. -- assignee: rhettinger - georg.brandl nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6276

[issue6189] subprocess module not compatible with python 2.5

2009-06-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Fixed with r73472 -- nosy: +amaury.forgeotdarc resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6189

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

2009-06-18 Thread Marko Schuetz
Marko Schuetz markoschu...@web.de 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

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread david
david da...@plasmatronics.com.au 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 rep...@bugs.python.org

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk 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 eantel...@acm.org: 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

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread Philip Jenvey
Philip Jenvey pjen...@users.sourceforge.net added the comment: Jython 2.5 behaves in the same way -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6301 ___

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

2009-06-18 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: 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