On Friday, 1 May 2015 14:06:34 UTC+2, Chris Angelico  wrote:
> On Fri, May 1, 2015 at 8:41 PM, Ronald van Zantvoort wrote:
> > mystring is already an IP address, sorry for not mentioning that.
> > The point is that ternary if; I've been scouring around the internet and 
> > there's a million different variations on the same idea.
> > I'm completely flabberghasted it's not a simple property within the object 
> > though, e.g. ip.sock_family.
> >
> > Was this a deliberate decision by the Python devs or can I try an RFE for 
> > that?
> 
> You could ask. At very worst, you'll find someone explain to you why
> it shouldn't be done. I suggest using the python-ideas mailing list;
> people there are usually reasonably friendly, though occasionally you
> find a caustic response to a dumb idea like "Python should use braces
> for indentation" :)

There are no dumb ideas, just dumb people ;)

But seriously, I'll go see over there, thanks :) It's just that I'm amazed that 
this isn't in there yet; it's 2 simple properties added in for convenience and 
IMHO very Pythonic to be able to do aforementioned code.

Thanks again pplz :)
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to