[issue28072] Empty Strings are not parsed to None.

2016-09-10 Thread Ethan Furman
Ethan Furman added the comment: Empty strings are empty strings, not None. An better way for your code example would be: def ...(): if url: else: raise URLError(...URL cannot be empty...) -- nosy: +ethan.furman resolution: -> not a bug stage: -> resolved

[issue28072] Empty Strings are not parsed to None.

2016-09-10 Thread Decorater
Changes by Decorater : -- versions: +Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue28072] Empty Strings are not parsed to None.

2016-09-10 Thread Decorater
New submission from Decorater: I noticed that the Python interpreter does not interpret a empty string as None so I have to do this unclean workaround every time in functions that cannot have a empty string passed to them. Here is some example Code I have to do to bypass this (the function