Re: [Tutor] Python "well-formed formulas"

2013-05-28 Thread Citizen Kant
2013/5/28 Dave Angel > On 05/28/2013 08:20 AM, Walter Prins wrote: > >> Hi, >> >> On 28 May 2013 12:44, Citizen Kant wrote: >> >> Could you please help me with a simple example of a Python well-formed >>> formula in order to understand &q

[Tutor] Python "well-formed formulas"

2013-05-28 Thread Citizen Kant
Could you please help me with a simple example of a Python well-formed formula in order to understand "well-formed formulas" and "formation rules" concepts properly? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: ht

Re: [Tutor] Fwd: Difference between types

2013-05-24 Thread Citizen Kant
emory but trying to understand, and sometimes I have the idea but don't have the knowledge to communicate the doubt properly. Thanks again. 2013/5/24 eryksun > On Fri, May 24, 2013 at 12:52 PM, Citizen Kant > wrote: > > They are values since they cannot be reduced by rewriting any

Re: [Tutor] Fwd: Difference between types

2013-05-24 Thread Citizen Kant
on remains value and Python doesn't spit its error messages. Then remains the fact that I have + - * / and other values that "act" as operators. According to Python they don't have a defined type, since if I type type(+) leads to an error.""" Is it possible to dr

Re: [Tutor] Fwd: Difference between types

2013-05-24 Thread Citizen Kant
Sorry. I'm not doing this on purpose, but I'm doing it anyway, so I'll check how to fix it. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Fwd: Difference between types

2013-05-24 Thread Citizen Kant
Are you referring to this definition? http://en.wikipedia.org/wiki/**Value_%28computer_science%29 As far as it goes, that's not an unreasonable rule of thumb, but it isn't bullet-proof. What, for example, do you make of this: 0x09 Is th

[Tutor] Difference between types

2013-05-23 Thread Citizen Kant
I guess I'm understanding that, in Python, if something belongs to a type, must also be a value. I guess I'm understanding that the reason why 9 is considered a value, is since it's a normal form*,* an element of the system that cannot be rewritten and reduced any further. I also guess I'm unders

[Tutor] Fwd: Available characters

2013-05-23 Thread Citizen Kant
Thanks! There are only 127 ASCII characters, so getting a list of them is trivial: ascii = map(chr, range(128)) # Python 2 ascii = list(map(chr, range(128))) # Python 3 or if you prefer a string: ascii = ''.join(map(chr, range(128))) If you don't like map(), you can use a list comprehensio

[Tutor] Fwd: Available characters

2013-05-22 Thread Citizen Kant
On Wed, May 22, 2013 at 2:14 PM, Citizen Kant wrote: > Does anybody know if there's a Python method that gives or stores the > complete list of ascii characters or unicode characters? The list of every > single character available would be perfect. The unicodedata module provides

[Tutor] Available characters

2013-05-22 Thread Citizen Kant
Does anybody know if there's a Python method that gives or stores the complete list of ascii characters or unicode characters? The list of every single character available would be perfect. Thanks. ___ Tutor maillist - Tutor@python.org To unsubscribe o