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
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
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?
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
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
___
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
___
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
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
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
___
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
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
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
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
___
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'
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
___
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
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
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
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_.
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,
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
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
Changes by Georg Brandl ge...@python.org:
--
assignee: - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6276
___
___
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
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
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
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
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
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
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
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
___
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
32 matches
Mail list logo