Re: [Tutor] Installing Python and modules

2011-12-19 Thread Jugurtha Hadjar
uot;Cannot install". I Google "nympy python 3.2" .. The second link seems interesting http://www.wilmott.com/messageview.cfm?catid=10&threadid=83588 The guy posting the question was advised to stick with Python 2.6 or 2.7 and given a li

Re: [Tutor] possibly a version error

2011-12-23 Thread Jugurtha Hadjar
'low': '16'}, {'condition': 'Partly Cloudy', 'date': '24 Dec 2011', 'high': '31', 'low': '20'}], 'title': 'Yahoo! Weather - Schenectady, NY'} I'll probably tinker with it to make it show the weather here in Algiers (Algeria, North Africa). Thanks, -- ~Jugurtha Hadjar, ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Which computer operating system is best for Python developers?

2012-02-23 Thread Jugurtha Hadjar
3.2.. Just a little thing to make my life easier. PS: If you have any question regarding the setting of the Virtual Box to run Ubuntu as a guest on Windows, feel free to ask for details. I'll be glad to provide links and things like that. -- ~Jugurtha Hadjar, _

Re: [Tutor] Which computer operating system is best for Python developers?

2012-02-23 Thread Jugurtha Hadjar
#x27;t mention here. -- DaveA Hey, these are very neat ideas (especially the "bat" folder and the arguments point) .. Thank you ! -- ~Jugurtha Hadjar, ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Teaching an 8-year-old programming.

2012-05-20 Thread Jugurtha Hadjar
similar stuff for C too. Later, he could do things with C/Python. I'm reading a book called "Real World Instrumentation with Python" where the author shows a combination between hardware level programming with C and wrapping/binding with Python. It's ve

Re: [Tutor] starting to learn

2012-07-16 Thread Jugurtha Hadjar
can really start to "learn" Python. Read more code, read other books, etc.. -- ~Jugurtha Hadjar, ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Good Taste Question: Using SQLite3 in Python

2015-04-28 Thread Jugurtha Hadjar
y: cursor.execute( self.QUERIES['CREATE'], (self.phone, seed_balance) ) conn.commit() except Exception as e: return self.ERROR.format(e.a

Re: [Tutor] Good Taste Question: Using SQLite3 in Python

2015-04-29 Thread Jugurtha Hadjar
lf.phone, seed_balance) ) conn.commit() except Exception as e: return self.ERROR.format(e.args[0]) as above Thank you for the feedback, Alan. -- ~Jugurtha Hadjar, ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Good Taste Question: Using SQLite3 in Python

2015-04-29 Thread Jugurtha Hadjar
her does it follow any structure, etc. I'll improve the code following the recommendations on this thread.. Thanks, Peter. -- ~Jugurtha Hadjar, ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Where do I start learning Python

2013-09-10 Thread Jugurtha Hadjar
s posted on your progress, Olatunde. -- ~Jugurtha Hadjar, ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] AntiSpam measures circumventing

2013-09-23 Thread Jugurtha Hadjar
that can't be converted back to text, etc.. If this is off-topic, you can just answer the "what is a better way to do that" part. Thanks, -- ~Jugurtha Hadjar, ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Passing arguments?

2013-10-20 Thread Jugurtha Hadjar
amount_to_pay = product_weight * shiprate print "Total to pay for product %s weighing %d pounds is: %d " % (product_name, product_weight, amount_to_pay) product_name = raw_input("Product name: ") product_weight = int(raw_input("Product weight: ")) calc_

[Tutor] Why is an instance smaller than the sum of its components?

2015-02-03 Thread Jugurtha Hadjar
.x) 12 >>> sys.getsizeof(bar().y) 12 Summary questions: 1 - Why are foo's and bar's class sizes the same? (foo's just a nop) 2 - Why are foo() and bar() the same size, even with bar()'s 4 integers? 3 - Why's bar()'s size smaller than the sum of the sizes of 4

Re: [Tutor] Why is an instance smaller than the sum of its components?

2015-02-03 Thread Jugurtha Hadjar
ere also have a link to a recursive getsizeof() recipe that does what I think you intend. Take a look at that recipe. Good luck! Yeap, I see that. Thanks for your time! -- ~Jugurtha Hadjar, ___ Tutor maillist - Tutor@python.org To unsubscribe or

Re: [Tutor] Why is an instance smaller than the sum of its components?

2015-02-03 Thread Jugurtha Hadjar
o yourself that your program is using more memory than is acceptable. Thanks for the pointer, I was scratching the itch on my way to do something else... But this stuff is fascinating and hard to resist! -- ~Jugurtha Hadjar, ___ Tutor maillist - T

Re: [Tutor] Why is an instance smaller than the sum of its components?

2015-02-03 Thread Jugurtha Hadjar
copied as many times as there are instances, which somehow bothered me memory wise, but had an appeal of having them completely separated. ... Rest of the post is partially grasped and requires further reading to fully appreciate. Thank you very much for taking

Re: [Tutor] Why is an instance smaller than the sum of its components?

2015-02-03 Thread Jugurtha Hadjar
he same size, even with bar()'s 4 integers? Because hash tables (dicts) contain empty slots. Once the hash table reaches 50% full, a resize is triggered. 3 - Why's bar()'s size smaller than the sum of the sizes of 4 integers? Because sys.getsizeof tells you the size of the ob

Re: [Tutor] Why is an instance smaller than the sum of its components?

2015-02-03 Thread Jugurtha Hadjar
Sorry for the full lines. They were wrapped here but were sent unfolded. It seems I need to "rewrap" on Thunderbird. -- ~Jugurtha Hadjar, ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.

Re: [Tutor] Looking for some direction

2019-05-11 Thread Jugurtha Hadjar
Hi, It seems you have a good overall idea on how you would tackle the project. First, have you talked to the people you are trying to build the application for, or are you the very people you're building this for? If you're building this for other people, try an figure out common scenarios on