RE: how to let argument be optional falling back to certain integer

2020-06-22 Thread David Raymond
> This is true. I have written 0 as false in C so many times. But > clearly for me times have changed... I now look at numbers as a thing > in their own special class not to be confused as truth-values. (So much > so that I fell for this.) But I confess I still think of numbers as all > TRUE

Re: how to let argument be optional falling back to certain integer

2020-06-22 Thread Boris Dorestand
David Raymond writes: >> This is true. I have written 0 as false in C so many times. But >> clearly for me times have changed... I now look at numbers as a thing >> in their own special class not to be confused as truth-values. (So much >> so that I fell for this.) But I confess I still thin

Re: Problem installing Python

2020-06-22 Thread MRAB
On 2020-06-21 18:31, Aisha Akintola wrote: Good day, I downloaded python(python3.8.3) on my system (windows 8) to enable me use PyCharm. However, I realised the python wasn't well installed. I get message "the program can't start because api-ms-win-crt-runtime-I1-1-0.dll is missing from your comp

parsing encrypted netrc file

2020-06-22 Thread Seb
Hello, What's the pythonic way to do this without polluting the user's directory with the decrypted file? I wrongly thought this should do it: import os.path as osp import gnupg import netrc import tempfile gpg = gnupg.GPG() with open(osp.expanduser("~/.authinfo.gpg"), "rb") as f: with tem

Re: parsing encrypted netrc file

2020-06-22 Thread MRAB
On 2020-06-22 23:38, Seb wrote: Hello, What's the pythonic way to do this without polluting the user's directory with the decrypted file? I wrongly thought this should do it: import os.path as osp import gnupg import netrc import tempfile gpg = gnupg.GPG() with open(osp.expanduser("~/.authin

Re: parsing encrypted netrc file

2020-06-22 Thread Seb
On Tue, 23 Jun 2020 00:40:28 +0100, MRAB wrote: > On 2020-06-22 23:38, Seb wrote: >> Hello, >> What's the pythonic way to do this without polluting the user's >> directory with the decrypted file? I wrongly thought this should do >> it: >> import os.path as osp import gnupg import netrc import

Re: parsing encrypted netrc file

2020-06-22 Thread MRAB
On 2020-06-23 01:47, Seb wrote: On Tue, 23 Jun 2020 00:40:28 +0100, MRAB wrote: On 2020-06-22 23:38, Seb wrote: Hello, What's the pythonic way to do this without polluting the user's directory with the decrypted file? I wrongly thought this should do it: import os.path as osp import gn