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
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
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
y:
cursor.execute(
self.QUERIES['CREATE'],
(self.phone, seed_balance)
)
conn.commit()
except Exception as e:
return self.ERROR.format(e.a
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.
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
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
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
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
.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
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_
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
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
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
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
#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
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,
_
'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
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
19 matches
Mail list logo