What is a Magic Number

Jan 19, 2011 at 9:41pm
please can someone tell me what a magic nuber is and its uses in Python...thanks in advance
Jan 19, 2011 at 9:43pm
Have you tried Googling it?

temityao wrote:
...and its uses in Python...

The fact that you ask it means you clearly have no idea what it is and you haven't even tried to research it yourself.
Jan 19, 2011 at 10:01pm
It's a way of making things difficult for anyone who ever has to read your code, including yourself in a week's time.
Jan 19, 2011 at 10:21pm
closed account (z05DSL3A)
It is many things.
see: http://en.wikipedia.org/wiki/Magic_number_(programming)
Jan 20, 2011 at 4:00am
Jan 20, 2011 at 2:41pm
i tried every search engine i know, but everything is really complicating
Topic archived. No new replies allowed.