[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-08 Thread Christian Rickert
Christian Rickert added the comment: >>Ah, I think I see where you are coming from. I guess you aren’t intimately >>familiar with the HTTP protocol. Exactly. :) >>If you can given a specific comment line to add to a specific example, that >>might be useful. Even

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread Christian Rickert
Christian Rickert added the comment: >>So I don’t think this is a valid bug or regression. What gave you the idea to >>include the colon? "We ask that if you are going to consume the API that you pass a custom User-Agent header along with your requests. The User-Agent

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread Christian Rickert
New submission from Christian Rickert: A piece of software stopped working after the update from Python 3.4.x to 3.5 (both Linux and Windows). I found the cause in the Request.add_header("abcd","efgh") function: If the first parameter string "abcd" co

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread Christian Rickert
Christian Rickert added the comment: The URL "http://requestb.in/xrbl82xr; is invalid, you'll get a "urllib.error.HTTPError: HTTP Error 404: NOT FOUND" error." Instead, please use "http://www.example.com; to confirm. -- __

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread Christian Rickert
Christian Rickert added the comment: Hi David, Thanks for looking into this. IMHO it would be very helpful for code debugging, if "add_header" rejects invalid header arguments ad hoc. As an alternative, the documentation I used for the implementation [https://docs.python.org/3

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread Christian Rickert
Christian Rickert added the comment: I would suggest a red warning box that informs the reader about her/his responsibility to comply with HTTP specifications - i.e. ensuring compatibility and security. -- ___ Python tracker <rep...@bugs.python.

[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2012-07-26 Thread Christian Rickert
Christian Rickert m...@crickert.de added the comment: Noticed this odd behaviour with BooleanVar.get() as well: class MyCheckbutton(Checkbutton): def __init__(self, parent, **options): Checkbutton.__init__(self, parent, **options) self.var = BooleanVar