[issue14984] netrc module allows read of non-secured .netrc file

2013-10-09 Thread bruno Piguet
bruno Piguet added the comment: I apologise for coming back to this issue lately, after its closing. I must have misconfigured something in my tracking system. Thank-you everybody for the work done, especiallly the careful handling and documenting of the case only if password is present

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-09 Thread bruno Piguet
Changes by bruno Piguet bruno.pig...@gmail.com: -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14984 ___ ___ Python-bugs

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-08 Thread bruno Piguet
bruno Piguet added the comment: I missed the 3.3 window, may I re-propose the same minimal patch against 3.4.0a1 ? I'm not sure I follow any python standard lib coding style but the general idea is quite simple and easy to get. I chose to ignore the backward compatibility concern, since I

[issue14984] netrc module allows read of non-secured .netrc file

2012-06-09 Thread bruno Piguet
bruno Piguet bruno.pig...@gmail.com added the comment: Do you agree that the attached patch could be a practical solution ? The patch is for the 2.6 version of the lib. Transposition to other versions should be trivial. If we don't want to break backward compatibility, the solution is to add

[issue14984] netrc module alows read of non-secured .netrc file

2012-06-02 Thread bruno Piguet
New submission from bruno Piguet bruno.pig...@gmail.com: Most FTP clients require that the .netrc file be owned by the user and readable/writable by nobody other than the user (ie. permissions set to 0400 or 0600). The netrc module doesn't do this kind of checking, allowing the use a .netrc

[issue14984] netrc module allows read of non-secured .netrc file

2012-06-02 Thread bruno Piguet
Changes by bruno Piguet bruno.pig...@gmail.com: -- title: netrc module alows read of non-secured .netrc file - netrc module allows read of non-secured .netrc file ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14984

Re: Arrays/List, filters, Pytho, Ruby

2011-02-11 Thread Bruno Piguet
On 11 fév, 22:24, LL.Snark ll.sn...@gmail.com wrote: Hi, I'm looking for a pythonic way to translate this short Ruby code : t=[6,7,8,6,7,9,8,4,3,6,7] i=t.index {|x| xt.first} I'm thinking of two methods, depending on the length of the list, and the fact that you wish (or not) to scan the