Walter Dörwald added the comment:
Fixed in r58942 (trunk) and r58943 (2.5). Closing the issue.
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1427
__
Denes Vadasz added the comment:
When I say:
$ mkdir -p ~/tmp
$ TMP=3D~/tmp python Lib/tests/test=5Fsubprocess.py
the test is passed.
However with
$ TMP=3D~/tmp make test
the test still fails and the ~/tmp directory is removed during the test
run.
Regards
Denes Vadasz
Christian Heimes
Amaury Forgeot d'Arc added the comment:
I made some checks with the vc2005 (msvcr80) runtime library:
- fd==-2 corresponds to the _NO_CONSOLE_FILENO constant.
A comment in the CRT code says:
/*
* For stdin, stdout stderr, we use _NO_CONSOLE_FILENO (a value
* different from
Christian Heimes added the comment:
The patch is a good idea. However it doesn't work for VS 2003 and MSVCR71:
import sys
f = open(stderr.txt, w)
f.write(stdin: %i\n % sys.stdin.fileno())
f.write(stdout: %i\n % sys.stdout.fileno())
f.write(stderr: %i\n % sys.stderr.fileno())
pythonw.exe
Amaury Forgeot d'Arc added the comment:
Doh, you're right:
c:\python24\pythonw -c import sys;print sys.stderr.fileno()|more
-1
c:\python24-vc8\pythonw -c import sys;print sys.stderr.fileno()|more
-2
/me needs to get the code of msvcrt7.
We could simply check for (fd0) instead, but it's
Guido van Rossum added the comment:
BTW, what's the best way of reporting bugs in python.org?
--
nosy: +gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1421
__
Guido van Rossum added the comment:
I don't think this is worth fixing; you'll get an I/O error as soon as
I/O is attempted, which is upon the first read() for input, or upon the
firsh (implicit or explicit) flush() on output. You can't tell whether
a fd is valid or not without attempting I/O
Guido van Rossum added the comment:
I'm with Martin. Adam, why do you think tokenize should use bytes
instead of text strings?
--
nosy: +gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1420
__
New submission from David Barlow:
Version 2.5.1.
I'm trying to install Python on 32bit Vista Business. When I run the
MSI file it proceeds smoothly (well, apart from offering to install
to c:\python... instead of c:\program files\python...), and then
starts the install. It then tells me that
Guido van Rossum added the comment:
What software do you use to play the sample? Is it perhaps ignoring the
nchannels value from the header?
--
nosy: +gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1423
Guido van Rossum added the comment:
Can't reproduce this (Ubuntu dapper). I get the expected output.
--
nosy: +gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1424
__
Georg Brandl added the comment:
Martin, Guido: I think you misunderstand the patch description: it
doesn't make tokenize process bytes instead of bytes, but makes it
tokenize the new b... literals instead of the old u... literals.
__
Tracker [EMAIL PROTECTED]
Guido van Rossum added the comment:
Go for it!
--
nosy: +gvanrossum
priority: high - normal
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1426
__
___
Python-bugs-list
Christian Heimes added the comment:
Fixed in r58941 (trunk), r58947 (merge) and r58933
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1424
__
Guido van Rossum added the comment:
BTW Bill, how's the 3.0 port of SSL going?
--
nosy: +gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1419
__
___
Christian Heimes added the comment:
Fixed in r58950 for Python 2.5. Python 2.6 and 3k are already fixed.
--
nosy: +tiran
resolution: - fixed
status: open - closed
versions: +Python 2.5
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1254
Ron Adam added the comment:
George is correct. The changes are minimal.
The only addition is to run the tokenize_tests.txt file though compile()
as a way to force an exception if it needs updating in the future. The
results of the compile are not used.
__
Georg Brandl added the comment:
It used to be the tracker at http://pydotorg.python.org/, but the
PythonWebsiteCreatingNewTickets Wiki page says it's disabled...
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1421
__
Guido van Rossum added the comment:
Got it. Checked in as revision 58951.
--
resolution: - accepted
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1420
__
Guido van Rossum added the comment:
Please check in the frozen-related fixes.
Your changes to test_tcl break that test even when run without -R!
For test_pkg, I would rather see a fix that undoes all the changes to
sys.modules (note that it already restores sys.path and deletes the
files it's
Guido van Rossum added the comment:
IMO you don't need the 'closed' flag and you should continue to test for
fd 0. Whether it's -1 or -2, you still can't write to it...
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1415
Martin v. Löwis added the comment:
This error message is not produced by the Python MSI file, but by
Windows installer itself. It computes the set of files that we are about
to install, which includes the Microsoft C Runtime DLL. I guess that
this file is also in use by Explorer.
It is safe to
Christian Heimes added the comment:
W/o the closed flag it's impossible to distinguish between closed fd and
invalid fd.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1415
__
jeroen added the comment:
I played using winsound.PlaySound function for the wav. I used VLC and windows
media player for wav,au and aiff after that
All had the same problem. It was solved for sunau by doubling the nframes
number written by the close function in the sunau module. I assume
Christian Heimes added the comment:
How do you like;
class TestPkg(unittest.TestCase):
def setUp(self):
self.root = None
self.syspath = list(sys.path)
self.sysmodules = sys.modules.copy()
def tearDown(self):
sys.path[:] = self.syspath
Christian Heimes added the comment:
Fix for test_frozen comitted in r58953
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1414
__
___
Python-bugs-list mailing list
Unsubscribe:
Christian Heimes added the comment:
Python 2.6 (trunk) is raising a MemoryError in a non-debug build, too.
The problem is fixed in 2.6 and 3.0.
--
versions: -Python 2.6, Python 3.0
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1704621
Guido van Rossum added the comment:
If that makes the test pass with and without -R::, go for it!
On Nov 12, 2007 11:14 AM, Christian Heimes [EMAIL PROTECTED] wrote:
Christian Heimes added the comment:
How do you like;
class TestPkg(unittest.TestCase):
def setUp(self):
Christian Heimes added the comment:
Done
just the on_completion_match_display_hook was in a bad state. The rest
was fine except for some indentions.
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
Guido van Rossum added the comment:
Fixed in 2.5 branch (to be released with 2.5.2). Unit test added to 2.6
(trunk).
--
resolution: - accepted
status: open - closed
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1704621
Guido van Rossum added the comment:
I don't understand. When does the difference matter?
On Nov 12, 2007 10:14 AM, Christian Heimes [EMAIL PROTECTED] wrote:
Christian Heimes added the comment:
W/o the closed flag it's impossible to distinguish between closed fd and
invalid fd.
Christian Heimes added the comment:
Guido van Rossum wrote:
Guido van Rossum added the comment:
I don't understand. When does the difference matter?
When the check for fd 0 is removed from fileio_init() there is no way
to tell if fd 0 means fd closed or invalid fd.
In order to fix the
Guido van Rossum added the comment:
I don't understand. When does the difference matter?
When the check for fd 0 is removed from fileio_init() there is no way
to tell if fd 0 means fd closed or invalid fd.
I still don't understand. Why do you need to treat a closed fd
different from an
Christian Heimes added the comment:
Guido van Rossum wrote:
I still don't understand. Why do you need to treat a closed fd
different from an invalid fd. In both cases you can't use it and you
shouldn't close it.
I don't want to treat the fd differently. I want to return a sensible
error
Christian Heimes added the comment:
The mail gateway swallows examples:
import sys
sys.stderr = None
raise Exception(msg)
del sys.stderr
raise Exception(msg)
object : Exception('msg',)
type: Exception
refcount: 4
address : 0x839d274
lost sys.stderr
__
Raghuram Devarakonda added the comment:
Index: Lib/imaplib.py
===
--- Lib/imaplib.py (revision 58956)
+++ Lib/imaplib.py (working copy)
@@ -228,7 +228,7 @@
self.port = port
self.sock =
Guido van Rossum added the comment:
I don't want to treat the fd differently. I want to return a sensible
error message that is different from file closed when the fd is invalid.
Doesn't sound too important. Anyway, from which call do you want to
issue different messages?
I'd rather see
New submission from Giambattista Bloisi:
site.py ha two limitations that make difficult to use pth files on my
linux installation (gobolinux):
- it does not process pth files that are located in directories that are
already present in os.path at the time the main method is invoked
- it does not
Amaury Forgeot d'Arc added the comment:
Corrected by revision 58958.
with is innocent. The problem is this function in abc.py which uses a
generator expression:
def __instancecheck__(cls, instance):
Override for isinstance(instance, cls).
return any(cls.__subclasscheck__(c)
New submission from yan:
When I use python 2.4/2.5, I found a strange behavior like this:
urlparse.urljoin(http://www.python.org/[EMAIL PROTECTED],[EMAIL PROTECTED])
It will return http://www.python.org/[EMAIL PROTECTED]. But I think it
should be http://www.python.org/[EMAIL PROTECTED], right?
Amaury Forgeot d'Arc added the comment:
__instancecheck__ should be simpler: all classes are new-style, how is
it possible to have different results for
instance.__class__
and
type(instance)
?
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1265
Christian Heimes added the comment:
Good work Amaury! :)
I also wonder how type(cls) != cls.__class__ is possible with new style
classes. So far I found only one way and it ain't beautiful:
class Meta(type):
... def __getattribute__(self, key):
... if key == __class__: return
Christian Heimes added the comment:
Fixed in r58959
I followed your wish and set sys.stdin, stdout and stderr to None
together with __std?__. I also kept the check for fd 0 in
fileio_init(). A negative fd still raises the correct error with errno 9
(bad file descriptor).
--
Guido van Rossum added the comment:
Good work indeed!
Here's another way:
class C:
... @property
... def __class__(self): return D
...
class D: pass
...
C().__class__
class '__main__.D'
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1265
Guido van Rossum added the comment:
BTW: if you can show (e.g. with your unittest) that this indeed breaks
in 2.6 and 2.5, please do backport it.
BTW**2: I've noticed that abc.py's __instancecheck__ gets called a lot
at times when I don't expect it. Can you research this a bit?
Guido van Rossum added the comment:
PPSS. When backporting, a note in Misc/NEWS is appreciated.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1265
__
___
Python-bugs-list
Changes by Martin v. Löwis:
--
keywords: +patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1431
__
___
Python-bugs-list mailing list
Unsubscribe:
47 matches
Mail list logo