On Thu, Mar 24, 2016, at 06:14, Lele Gaifax wrote: > I tried to insert an entry in my ~/.netrc for an account having a > password that contains a space, something like: > > machine my-host-name login myname password "My Password" > > The standard library netrc module does not seem able to parse it, > raising a NetrcParseError. Other programs (Emacs, to mention one) do > the right thing with an entry like that. > > I was not able to lookup an exact definition of netrc's syntax, so I > wonder: is the implementation somewhat flawed, or am I missing > something?
The implementation seems very basic... I ran into trouble trying to store entries with no password (with the idea in mind of having my program prompt for the password), though, out of curiosity, does ftp handle your quoted passwords? Also, I'm surprised that you're using .netrc for emacs - in my experience the file emacs uses is called .authinfo. -- https://mail.python.org/mailman/listinfo/python-list