Re: [Tutor] Through a glass, darkly: the datetime module

2012-10-07 Thread Sander Sweers
Op 7 okt. 2012 04:29 schreef aklei...@sonic.net het volgende: I'm also not sure but I seem to remember that it is (SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY) which I think is extremely clever because it gets around the problem created by the fact that some people

Re: [Tutor] Through a glass, darkly: the datetime module

2012-10-07 Thread Mark Lawrence
On 07/10/2012 02:50, Steven D'Aprano wrote: On 07/10/12 12:08, Richard D. Moores wrote: On Sat, Oct 6, 2012 at 4:42 PM, Mark Lawrencebreamore...@yahoo.co.uk wrote: Use calendar.day_name. How? By reading the Fine Manual. http://docs.python.org/library/calendar.html#calendar.day_name

Re: [Tutor] Through a glass, darkly: the datetime module

2012-10-07 Thread Wayne Werner
On Sun, 7 Oct 2012, Steven D'Aprano wrote: It is a little-known fact that Unix sys admins, and C programmers, can only type a fixed number of keys before their brains explode. Sad but true. Since nobody knows how many keys that will be, but only that it is fixed at birth, they have a horror of

Re: [Tutor] Through a glass, darkly: the datetime module

2012-10-07 Thread Steven D'Aprano
On 07/10/12 23:41, Mark Lawrence wrote: On 07/10/2012 02:50, Steven D'Aprano wrote: On 07/10/12 12:08, Richard D. Moores wrote: On Sat, Oct 6, 2012 at 4:42 PM, Mark Lawrencebreamore...@yahoo.co.uk wrote: Use calendar.day_name. How? By reading the Fine Manual.

Re: [Tutor] Through a glass, darkly: the datetime module

2012-10-07 Thread Alan Gauld
On 07/10/12 13:54, Wayne Werner wrote: fixed at birth, they have a horror of typing four characters when two would do. (I think this might apply to COBOL programmers, too.) -Wayne Oh no, COBOL programmers are the opposite. The more characters they type the longer they live It's a

Re: [Tutor] [Tkinter-discuss] whats Style()

2012-10-07 Thread Matthew Ngaha
sorry i sent the email directly by mistake. Just like to say thanks once again for all the help ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] [Tkinter-discuss] whats Style()

2012-10-07 Thread Matthew Ngaha
sorry i sent the email directly by mistake. Just like to say thanks once again for all the help this email was a mistake, meant for anything mailing section.. please ignore it ___ Tutor maillist - Tutor@python.org To unsubscribe or change

[Tutor] string rules for 'number'

2012-10-07 Thread Arnej Duranovic
When I type this in the python idle shell ( version 3...) : '0' = '10' = '9' The interpreter evaluates this as true, WHY? 10 is greater than 0 but not 9 Notice I am not using the actual numbers, they are strings...I thought that numbers being string were ordered by their numerical

Re: [Tutor] string rules for 'number'

2012-10-07 Thread Joel Goldstick
On Sun, Oct 7, 2012 at 1:46 PM, Arnej Duranovic arne...@gmail.com wrote: When I type this in the python idle shell ( version 3...) : '0' = '10' = '9' The interpreter evaluates this as true, WHY? 10 is greater than 0 but not 9 Notice I am not using the actual numbers, they are

Re: [Tutor] string rules for 'number'

2012-10-07 Thread boB Stepp
On Oct 7, 2012 12:47 PM, Arnej Duranovic arne...@gmail.com wrote: When I type this in the python idle shell ( version 3...) : '0' = '10' = '9' The interpreter evaluates this as true, WHY? 10 is greater than 0 but not 9 Since they are strings it looks at these character by

Re: [Tutor] string rules for 'number'

2012-10-07 Thread Mark Lawrence
On 07/10/2012 18:46, Arnej Duranovic wrote: When I type this in the python idle shell ( version 3...) : '0' = '10' = '9' The interpreter evaluates this as true, WHY? 10 is greater than 0 but not 9 Notice I am not using the actual numbers, they are strings...I thought that numbers

Re: [Tutor] Through a glass, darkly: the datetime module

2012-10-07 Thread Roel Schroeven
Sander Sweers schreef: Op 7 okt. 2012 04:29 schreef aklei...@sonic.net mailto:aklei...@sonic.net het volgende: I'm also not sure but I seem to remember that it is (SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY) which I think is extremely clever because it gets

Re: [Tutor] Through a glass, darkly: the datetime module

2012-10-07 Thread Sander Sweers
Roel Schroeven schreef op zo 07-10-2012 om 21:19 [+0200]: Sander Sweers schreef: Op 7 okt. 2012 04:29 schreef aklei...@sonic.net mailto:aklei...@sonic.net het volgende: I'm also not sure but I seem to remember that it is (SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,

Re: [Tutor] string rules for 'number'

2012-10-07 Thread Steven D'Aprano
On 08/10/12 04:46, Arnej Duranovic wrote: When I type this in the python idle shell ( version 3...) : '0'= '10'= '9' The interpreter evaluates this as true, WHY? 10 is greater than 0 but not 9 Notice I am not using the actual numbers, they are strings...I thought that numbers being

[Tutor] modulo

2012-10-07 Thread Esteban Izaguirre
Hi, I'm following coursera's learn to program: the fundamentals, which teaches programming basics in python. Our first assignement involves the modulo operator with a negative divident, and while I've managed to get to understand it enough for the purposes of the assignement with help from othe

Re: [Tutor] string rules for 'number'

2012-10-07 Thread Steven D'Aprano
On 08/10/12 05:20, Mark Lawrence wrote: [...] They'll be compared lexicographically, something I'm not inclined to attempt to explain so see here http://en.wikipedia.org/wiki/Lexicographical_order Please also be careful with your terminology. Note that I've used compared. Ordered is very

Re: [Tutor] modulo

2012-10-07 Thread Dave Angel
On 10/07/2012 06:49 PM, Esteban Izaguirre wrote: Hi, I'm following coursera's learn to program: the fundamentals, which teaches programming basics in python. Our first assignement involves the modulo operator with a negative divident, and while I've managed to get to understand it enough for

Re: [Tutor] modulo

2012-10-07 Thread Steven D'Aprano
Hello Esteban and welcome! On 08/10/12 09:49, Esteban Izaguirre wrote: So, i undertand how modulo works when only positive numbers are used, but how does modulo determine, that, say -15 % 14 is equal to 13? Think of modulo as almost exactly the same as remainder after division. When you say

Re: [Tutor] modulo

2012-10-07 Thread Oscar Benjamin
On 8 October 2012 00:07, Dave Angel d...@davea.name wrote: On 10/07/2012 06:49 PM, Esteban Izaguirre wrote: Hi, I'm following coursera's learn to program: the fundamentals, which teaches programming basics in python. Our first assignement involves the modulo operator with a negative divident,

Re: [Tutor] modulo

2012-10-07 Thread Dave Angel
On 10/07/2012 07:16 PM, Oscar Benjamin wrote: On 8 October 2012 00:07, Dave Angel d...@davea.name wrote: On 10/07/2012 06:49 PM, Esteban Izaguirre wrote: Hi, I'm following coursera's learn to program: the fundamentals, which teaches programming basics in python. Our first assignement involves

Re: [Tutor] modulo

2012-10-07 Thread Dave Angel
On 10/07/2012 08:00 PM, Jan Karel Schreuder wrote: On Oct 7, 2012, at 7:24 PM, Dave Angel d...@davea.name wrote: It still makes no sense to me. There are at least two equally silly ways to define the results of a negative modulus, and you've properly described one of them, presumably

Re: [Tutor] string rules for 'number'

2012-10-07 Thread Arnej Duranovic
Alright guys, I appreciate all your help SO much. I know understand, as the gentleman above said A string is a string is a string doesn't matter what is in it and they are ordered the same way...BUT this is what was going through my head. Since letters are ordered in such a way that A is less

Re: [Tutor] string rules for 'number'

2012-10-07 Thread eryksun
On Sun, Oct 7, 2012 at 1:46 PM, Arnej Duranovic arne...@gmail.com wrote: When I type this in the python idle shell ( version 3...) : '0' = '10' = '9' The interpreter evaluates this as true, WHY? 10 is greater than 0 but not 9 Notice I am not using the actual numbers, they are

Re: [Tutor] Through a glass, darkly: the datetime module

2012-10-07 Thread eryksun
On Sat, Oct 6, 2012 at 11:56 PM, Steven D'Aprano st...@pearwood.info wrote: The C programming language on Unix systems. ls instead of list LS is an abbreviation for list segments, not list. It goes back to Multics in the late 60s and 70s. In Multics, every segment is a file, and every file is

Re: [Tutor] modulo

2012-10-07 Thread wrw
On Oct 7, 2012, at 6:49 PM, Esteban Izaguirre esteban...@gmail.com wrote: Hi, I'm following coursera's learn to program: the fundamentals, which teaches programming basics in python. Our first assignement involves the modulo operator with a negative divident, and while I've managed to get to