New submission from David Benjamin:
This is somewhat of a nitpick. os.rename's documentation says "If dst is a
directory, OSError will be raised". On Unix, this isn't completely true. If the
source is a directory and the destination is an empty directory, it'll
over
David Benjamin added the comment:
Yes, communicate is needed if you have multiple pipes and need to be careful
about both ends doing a blocking reads/writes on different ones. There's only
one pipe here. Eh, whatever. If you guys really want to use communicate, I
don't r
David Benjamin added the comment:
Well, the theoretical deadlock's just if stdin is also a pipe, right? I think
there isn't be a difference between communicate and stdout.read if only stdout
is a pipe. Though it might be worth passing DEVNULL to stdin instead of
inheriting, just
New submission from David Benjamin:
The implementation of platform.architecture shells out to the file command. It
tries to escape quotes by replacing " with \", but that's not sufficient.
$ python3.2 -c 'import platform; platform.architecture("foo\\\";
David Benjamin added the comment:
I don't think that patch works. Consider a dict subclass which has overridden
update. Or perhaps a list subclass which has overridden addition. It would be
quite poor if Python's behavior here w.r.t. which overrides are followed
switched as you
Changes by David Benjamin :
--
nosy: +davidben
___
Python tracker
<http://bugs.python.org/issue9334>
___
___
Python-bugs-list mailing list
Unsubscribe: