[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-05-04 Thread Ben Hoyt
Ben Hoyt added the comment: That's right: if we have a separate scandir() that returns (name, stat) tuples, then a plain iterdir() is pretty much unnecessary -- callers just ignore the second stat value if they don't care about it. I'd slightly prefer the name iterdir_stat(), as that almost ma

[issue17809] FAIL: test_expanduser when $HOME ends with /

2013-05-04 Thread koobs
koobs added the comment: The attached patch strips the trailing slash from the home directory obtained from pw_dir in test_expanduser ./python -m test -j3 test_posixpath [1/1] test_posixpath 1 test OK. Can someone take care of the commit please, and thank you again Ezio for the assistance --

[issue17408] second python execution fails when embedding

2013-05-04 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Commit 8c1385205a35 causes segmentation fault (in non-debug build) or abort (in debug build) during interpreter shutdown after copying of e.g. bytes or object(). $ python -c 'import copy; copy.copy(b""); print("text")' text Segmentation fa

[issue17408] second python execution fails when embedding

2013-05-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should be fixed in 7de9852cdc0e, sorry. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue17809] FAIL: test_expanduser when $HOME ends with /

2013-05-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17894] Edits to descriptor howto

2013-05-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: > in contrast to an authoritative document closely tied to the actually > implementation details I fail to understand why a HOWTO should be an authoritative document closely tied to implementation details. If you don't want this document to be beginner-friend

[issue17809] FAIL: test_expanduser when $HOME ends with /

2013-05-04 Thread koobs
koobs added the comment: Thanks Antoine, I'm removing the 'Library' component on this one given the proposed resolution. Additionally, given the trivial nature and isolation of the change strictly to the test, I'd like to request this go into 3.2 as well. For any future security fixes to 3.2

<    1   2