[issue22852] urllib.parse wrongly strips empty #fragment

2014-11-13 Thread Stian Soiland-Reyes
Stian Soiland-Reyes added the comment: I tried to make a patch for this, but I found it quite hard as the urllib/parse.py is fairly low-level, e.g. it is constantly encoding/decoding bytes and strings within each URI component. Basically the code assumes there are tuples of strings

[issue22852] urllib.parse wrongly strips empty #fragment

2014-11-12 Thread Stian Soiland-Reyes
New submission from Stian Soiland-Reyes: urllib.parse can't handle URIs with empty #fragments. The fragment is removed and not reconsituted. http://tools.ietf.org/html/rfc3986#section-3.5 permits empty fragment strings: URI-reference = [ absoluteURI | relativeURI ] [ # fragment

Re: What was that web interaction library called again?

2007-06-27 Thread Stian Soiland
2007/6/26, Omer Khalid [EMAIL PROTECTED]: On the RESTFul web service, I would like to piggy pack my own question two is there a way to make the connection secure between two Restful service running on GNU/linux? https? -- Stian Søiland Any society that would give up a little

Re: Pythonic wrappers for SQL?

2006-01-16 Thread Stian Soiland
On 1/14/06, EleSSaR^ [EMAIL PROTECTED] wrote: Kenneth McDonald si è profuso/a a scrivere su comp.lang.python tutte queste elucubrazioni: there any good libraries out there that let one write (basic) queries in a Pythonic syntax, rather than directly in SQL? You need an ORM. Beyond

Re: Keyboard problems with Python shell over SSH

2005-01-23 Thread Stian Soiland
På 23. jan 2005 kl. 21:55 skrev Nils Emil P.Larsen: I connect to my server using SSH and then run 'python' to enter the shell. I can't use the arrow buttons (up, down, left and right). Instead I get this ^[[A , ^[[B, ^[[C or ^[[D. Your Python installation is probably compiled without readline

Re: Why would I get a TypeEror?

2005-01-16 Thread Stian Soiland
På 14. jan 2005 kl. 22:58 skrev Steven Bethard: (Any mac users? How do I fix this to appear in Norwegian? =) Note that if you're not comfortable with short-circuiting behavior, you can also code this using lazy evaluation: (lambda: 1/x, lambda: 1.0e99)[x==0]() .. and people wonder why so