As Karen pointed out, you should consider a phone number to be a
string, not an integer. Integers are there to do mathematical
operations on, which I can't imagine you requiring for a phone number
(what's the relevance of my phone no. + 5?). Also anything that you
would want to do with a phone number would be attained more naturally
through string methods. Say you wanted to retrieve the last 4 digits -
using phone_str[-4:] makes more sense than phone_int % 10000.

Don't be fooled by the fact that that phone numbers have numerals in
them - phone "numbers" could well have used alphabetical characters,
or colors, or anything else that could map to a series of frequencies.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to