Re: Python surpasses Perl in popularity?

2008-11-24 Thread Lawrence D'Oliveiro
[EMAIL PROTECTED] wrote: > I would venture so far to say that perl is todays 'C'.. Perl is the FORTRAN of scripting languages. Python is in some ways like Pascal. Java is like COBOL. C? Who knows... -- http://mail.python.org/mailman/listinfo/python-list

Re: Security implications of using open() on untrusted strings.

2008-11-24 Thread Lawrence D'Oliveiro
Jorgen Grahn wrote: > Seems to me you simply want to know beforehand that the reading will > work. But you can never check that! You can stat(2) the file, or > open-and-close it -- and then a microsecond later, someone deletes the > file, or replaces it with another one, or write-protects it, or

Re: How to get a directory file descriptor?

2008-11-24 Thread r0g
Cong Ma wrote: > Dear all, > > Can you give me some hint on getting a directory file descriptor in Python? > Besides, what's good about os.fchdir() if I can't get a directory fd in the > first place? > > Thanks for your reply. > > Regards, > Cong. > for each in os.listdir(os.getcwd()): print

Re: 3.0rc3: 'os.extsep' gone ... ?

2008-11-24 Thread Lawrence D'Oliveiro
"Martin v. Löwis" wrote: > That doesn't really explain it. It always was os.path.extsep, > but it *also* was os.extsep. > > I don't know the rationale for this change myself, either. Probably because it's considered platform-specific. -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing digits in one place

2008-11-24 Thread Lawrence D'Oliveiro
Oltmans wrote: > Bytes Transfered so far X > > and X will increase and cursor should stay at this position. Most terminal emulators are VT100-compatible these days. You could use something like [80D to move back to the beginning of the same line. -- http://mail.python.org/mailman/listinfo/pytho

<    1   2