On Feb 6, 2014, at 4:44, Ram Rachum
Ah, you're talking about non-programmers. I can't imagine though a non-programmer seriously complaining that "0x0" is a number while "0z" isn't.
Can you please read the whole sentence before replying to it? I specifically said "Would a newbie--or a non-programmer using a program--understand..." And you can't imagine a non-programmer complaining that "0123" is either not a number, or the number 83?
On Thu, Feb 6, 2014 at 2:41 PM, Andrew Barnert
wrote: On Feb 6, 2014, at 4:35, Ram Rachum
wrote: On Thu, Feb 6, 2014 at 2:31 PM, Andrew Barnert
wrote: On Feb 6, 2014, at 4:19, Ram Rachum
wrote: I don't understand... The newbie will pass '0x13412' to the int constructor by mistake and be surprised when it's parsed as hex? Doesn't make sense does it?
Would a newbie--or a non-programmer using a program--understand why, say, "0X0" counts as a valid number but "0Z" doesn't?
Since they're likely to get the same confusion while feeding literals to the Python shell, I think this is acceptable.
You think it's acceptable that a non-programmer should have to understand the python shell to use any program written in Python?
participants (3)
-
Andrew Barnert
-
Paul Moore
-
Ram Rachum