Jakub Wilk uba...@users.sf.net added the comment:
Regarding Senthil's patch:
__next__() method seems superfluous to me (and the implementation is buggy).
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4608
STINNER Victor victor.stin...@haypocalc.com added the comment:
Should we also change stdin?
I don't know, but python -h only talks about stderr/stdout.
The manpage of Python2 is clear:
-u Force stdin, stdout and stderr to be totally unbuffered.
stdin is also unbuffered.
It seems
Mart Sõmermaa m...@mrts.pri.ee added the comment:
Mmmh, the problem with Perl's approach is that it changes the current
working directory (calls to chdir()), which is process-specific and not
thread-specific. Currently, no function in shutil changes the current
working directory, which is a
New submission from STINNER Victor victor.stin...@haypocalc.com:
PyFile_FromFd() never changes the name of new created file object:
$ ./python -c import sys; print(sys.stdout.buffer.name,
sys.stdout.name)
0 0
Expected result: stdout stdout.
---
Binary mode:
- with buffering == 0, the file
STINNER Victor victor.stin...@haypocalc.com added the comment:
In my last patch to fix the issue #4705, I replaced PyFile_FromFd() by
custom code which set correctly the file name.
PyFile_FromFd() is also used in:
- _Py_DisplaySourceLine(): name is not used, only
PyFile_GetLine(file)
-
STINNER Victor victor.stin...@haypocalc.com added the comment:
In my last patch to fix the issue #4705, I replaced PyFile_FromFd()
by custom code which set correctly the file name.
The standard I/O: sys.stdin, sys.stdout and sys.stderr.
___
Python tracker
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4762
___
___
Eric Smith e...@trueblade.com added the comment:
Perhaps the path of least resistance is to change PyObject_Hash to be
yet another place where PyType_Ready will be called implicitly if it
hasn't been called already?
I think that's the best thing to do. It would bring PyObject_Hash in
line
Remy Blank remy.bl...@pobox.com added the comment:
There's still a typo in the docstring of TestResult.addSkipped() (tuble
- tuple).
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1034053
___
Antoine Pitrou pit...@free.fr added the comment:
Using chdir() makes sense and it doesn't look like a too big problem to me:
It's a problem if another thread in the process is making file
operations using relative paths at the same time.
Since shutil functions have until now been safe against
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch. Not only does it fix the str tests, but it also adds
similar tests for bytes and bytearray objects.
--
keywords: +patch
stage: - patch review
versions: +Python 3.1
Added file:
Ronald Oussoren ronaldousso...@mac.com added the comment:
On 28 Dec, 2008, at 16:38, Benjamin Peterson wrote:
Benjamin Peterson benja...@python.org added the comment:
I applied the patch for #4060 in r67982.
I've backported that to 2.6-maint in r67987.
I would still like to know what
Ronald Oussoren ronaldousso...@mac.com added the comment:
I've committed the patch with some documentation in r67988, with a
backport to 2.6.x in r67989. r67990 (not backported) is a minor update
of the patch, it adds explicit support code for all three variants that
are configurable through
New submission from garcia ronald.gar...@rice.edu:
The documentation for PyErr_GivenExceptionMatches states that If given is
NULL, a memory access violation will occur. However, looking at the
code, this is not the case: the function returns 0 (read: false).
It appears, rather, that this
Martin v. Löwis mar...@v.loewis.de added the comment:
There is a tradition that any POSIX calls are added to the POSIX module
without much discussion, provided that
a) there is an autoconf test testing for their presence, and
b) they expose the API as-is, i.e. without second-guessing the
Christian Heimes li...@cheimes.de added the comment:
The openat() functions sound useful indeed. However I'm concerned about
the file descriptor requirment for the *at() POSIX functions. In Python
file descriptors can lead to resource leaks because developers are used
to automatic garbage
Benjamin Peterson benja...@python.org added the comment:
Thanks for the report! Fixed in r67995.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4763
Martin v. Löwis mar...@v.loewis.de added the comment:
Developers may think that the file descriptor is closed when the integer
object gets out of scope.
I'm not concerned about that. When they use os.open, they will typically
understand what a file handle is, and how it relates to
I propose
Benjamin Peterson benja...@python.org added the comment:
I think being able to delete free variables is reasonable and brings
more consistency as well as solving corner cases like this.
--
nosy: +benjamin.peterson
___
Python tracker
anatoly techtonik techto...@gmail.com added the comment:
Roumen, could you be more specific about what are you trying to say with
this 200kB piece of code? Was it the intention to post a link to man or
another piece of spec?
___
Python tracker
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I would like to see the complete list of messages.
Looks like a broken python installation...
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4685
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
keywords: +needs review
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4449
___
New submission from Jan Kaliszewski z...@chopin.edu.pl:
Py2.4 and 2.5 (and probably other 2.x releases too):
try: f=open('existing_dir')
... except IOError, exc: print exc.filename
...
None
(expected result: existing_dir)
Py3.0 (and possibly 3.1 too):
try: f=open('existing_dir')
... except
Andrew fbsd...@gmail.com added the comment:
Cannot reproduce this on RHEL 4. So far only RHEL 5.x seems to be affected.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4732
___
New submission from Alex Fainshtein alex_fainsht...@netzero.net:
How to reproduce:
1. Start IDLE - Python Shell window opens.
2. Open Options|Configure Idle
3. In idle dialog select Keys tab.
4. Click Set as New Custom Key Set button.
5 In New Custom Key Set dialog, type a name, click Ok.
101 - 125 of 125 matches
Mail list logo