Re: [Tutor] The Charms of Gmail

2013-12-21 Thread Dominik George
> I'm sorry Mark, I'm stuck with using gmail [...] Use sane e-mail, then. -- # apt-assassinate --help Usage: apt-assassinate [upstream|maintainer] PGP-Fingerprint: 3C9D 54A4 7575 C026 FB17 FD26 B79A 3C16 A0C4 F296 signature.asc Description: Digital signature

Re: [Tutor] Stuck on error

2013-12-21 Thread Marc Tompkins
On Sat, Dec 21, 2013 at 12:36 PM, NZHacker1 . wrote: > I'm not finished with the program and I put Plays = int(x) * 100, > plays = int(x) * 100 > on purpose. > > I don't think you understood what people were trying to tell you. Python is case-sensitive; "plays" and "Plays" are NOT the same vari

Re: [Tutor] Global namespace/dictionary

2013-12-21 Thread Dave Angel
On Sat, 21 Dec 2013 14:22:32 -0500, Keith Winston wrote: Tutor maillist - Tutor@python.org Please stick with text mail, not html. -- DaveA ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.

[Tutor] Stuck on error

2013-12-21 Thread NZHacker1 .
I'm trying to make a lottery in python and I keep getting this error. There's an error in your program: ***Cant assign to operator.(Mega Millions, line 47) Here's the code. import random for i in range(1): RN1 = random.randint(1,75) for i in range(1): RN2 = random.randint(1,75) for

[Tutor] Global namespace/dictionary

2013-12-21 Thread Keith Winston
On Sat, Dec 21, 2013 at 12:56 PM, wrote: > py> x = 23 > py> d = globals() > py> d['x'] > 23 > py> d['x'] = 42 > py> x > 42 > Well this is sort of fascinating, but a bit confusing: I was playing with this, and it seems like the global dictionary includes not just the name but the entire contents

[Tutor] The Charms of Gmail

2013-12-21 Thread Keith Winston
On Sat, Dec 21, 2013 at 6:00 AM, wrote: > I'm unsure as to what the subject line has in common with class and > instance variables, would you care to explain it please. > I'm sorry Mark, I'm stuck with using gmail where I have to remember to delete the (essentially invisible) included text of t

Re: [Tutor] more html/css question than python

2013-12-21 Thread Alan Gauld
On 21/12/13 19:10, Matthew Ngaha wrote: On Sat, Dec 21, 2013 at 5:56 PM, Alan Gauld wrote: basic javascript, so it's definately better to also learn jquery? I've always pushed it to the side :( In reality JavaScript is the only game in town for browser scripting. And if you want to have al

Re: [Tutor] class variables

2013-12-21 Thread eryksun
On Sat, Dec 21, 2013 at 12:40 PM, Steven D'Aprano wrote: > On Sat, Dec 21, 2013 at 08:41:17AM -0500, eryksun wrote: >> >> >>> vars(type)['__base__'] >> > > Oooh, nice! I always forget about vars(), and end up messing about with > __dict__. It's a bit more efficient to use the __dict__ at

Re: [Tutor] more html/css question than python

2013-12-21 Thread Devin Jeanpierre
On Sat, Dec 21, 2013 at 11:10 AM, Matthew Ngaha wrote: > so xhtml even over html5? isn't html5 the new thing these days? I know > basic javascript, so it's definately better to also learn jquery? > I've always pushed it to the side :( HTML5 has an XML representation (called XHTML5) which works e

Re: [Tutor] more html/css question than python

2013-12-21 Thread Matthew Ngaha
On Sat, Dec 21, 2013 at 5:56 PM, Alan Gauld wrote: > You really need to know html and css if you are building > modern web UIs. That's because most good modern web sites > use a lot of client side(browser) scripting, usually using > JQuery. JQuery requires that you really understand how > html ta

Re: [Tutor] more html/css question than python

2013-12-21 Thread Timo
op 21-12-13 16:07, Matthew Ngaha schreef: hey guys ive got the very basics of django down. i was able to design a very basic dynamite site and interacted with django. It's basic & limited in every way, with the little it does, and the plain ugly design. This won't be good enough to put up anywher

Re: [Tutor] more html/css question than python

2013-12-21 Thread Alan Gauld
On 21/12/13 15:07, Matthew Ngaha wrote: My question is, How do you guys or designers in general go about creating a site. Most of my personal websites are so trivial that I just hand craft everything in vim. If I had to do something bigger where looks were important I'd probably go with a simp

Re: [Tutor] class variables

2013-12-21 Thread Steven D'Aprano
On Sat, Dec 21, 2013 at 08:41:17AM -0500, eryksun wrote: > On Sat, Dec 21, 2013 at 2:14 AM, Steven D'Aprano wrote: > > > > (Sometimes, people will call them "members", especially if they are used > > to C#. The meaning here is member as in an arm or leg, as in > > "dismember", not member in the se

Re: [Tutor] class variables [was Tutor Digest, Vol 118, Issue 99]

2013-12-21 Thread Steven D'Aprano
(I fixed the subject line for you.) On Sat, Dec 21, 2013 at 02:53:28AM -0500, Keith Winston wrote: > On Sat, Dec 21, 2013 at 2:14 AM, wrote: > > > I don't like the terms "class variable" and "instance variable". In the > > Python community, these are usually called class and instance attributes

[Tutor] more html/css question than python

2013-12-21 Thread Matthew Ngaha
hey guys ive got the very basics of django down. i was able to design a very basic dynamite site and interacted with django. It's basic & limited in every way, with the little it does, and the plain ugly design. This won't be good enough to put up anywhere but on localhost. My question is, How do

Re: [Tutor] class variables

2013-12-21 Thread eryksun
On Sat, Dec 21, 2013 at 2:14 AM, Steven D'Aprano wrote: > > (Sometimes, people will call them "members", especially if they are used > to C#. The meaning here is member as in an arm or leg, as in > "dismember", not member in the sense of belonging to a group.) A Python object isn't just a fixed-s

Re: [Tutor] Tutor Digest, Vol 118, Issue 99

2013-12-21 Thread Mark Lawrence
On 21/12/2013 07:53, Keith Winston wrote: On Sat, Dec 21, 2013 at 2:14 AM, mailto:tutor-requ...@python.org>> wrote: I don't like the terms "class variable" and "instance variable". In the Python community, these are usually called class and instance attributes rather than variables

Re: [Tutor] Tutor Digest, Vol 118, Issue 99

2013-12-21 Thread Keith Winston
On Sat, Dec 21, 2013 at 2:14 AM, wrote: > I don't like the terms "class variable" and "instance variable". In the > Python community, these are usually called class and instance attributes > rather than variables or members. > Hey Steven, that was a very generous explanation. Thanks! Very clear.