Re: [Tutor] Confused "from module import Name" better than "import module"?

2005-07-11 Thread Matt Richardson
ty as my programs are fairly small and don't do a whole lot. I would imagine that there would be a penalty, but for now I'm happy with keeping my namespaces distinct and knowing what came from where at a glance. Matt -- Matt Richardson IT Consultan

Re: [Tutor] Confused "from module import Name" better than "import module"?

2005-07-11 Thread Matt Richardson
r, but I was curious about it. Going through the library reference I found a bunch of modules that would replace some ugly (but working) code I had, then started to wonder if importing a bunch of different modules would have much of an effect. In any case, I'm more concerned with readabilit

[Tutor] problem with class overloading (maybe it's just me)

2005-10-24 Thread Matt Richardson
overlooking, so I'll go get a cup of coffee and see if someone with better eyes spots my error. thanks, Matt -- Matt Richardson IT Consultant College of Arts and Letters CSU San Bernardino (909)537-7598 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] problem with class overloading (maybe it's just me)

2005-10-24 Thread Matt Richardson
Danny Yoo wrote: > Hope this helps! Helped a lot. Shows that syntax errors aren't always visible (like whitespace) and that I should know better than to attempt anything before having at least one cup of coffee. Thanks! Matt -- Matt Richardson IT Consultant College of Arts and Let

[Tutor] sockets

2006-05-03 Thread Matt Richardson
Just verifying what I looked up earlier: are strings and binary (through struct.pack) the only data types that can be sent through a socket? This is my first crack at socket programming, so I'll probably have lots of questions to bug you with. thanks, Matt __

Re: [Tutor] sockets

2006-05-04 Thread Matt Richardson
pear' either through theft or people taking them home to do 'work from home' or whatever. Makes annual inventory a huge pain. Matt -- Matt Richardson IT Consultant College of Arts and Letters CSU San Bernardino (909)537-7598 ___ Tutor

Re: [Tutor] sockets

2006-05-04 Thread Matt Richardson
Kent Johnson wrote: > > This would be very easy to do with XML-RPC. On the server side, writ a > function that takes three parameters - the IP address, MAC address, and > traceroute dump - and saves them to a database. Use SimpleXMLRPCServer > to expose the function. On the client side, gather

Re: [Tutor] debug process

2006-06-13 Thread Matt Richardson
in and run as you code, which saved me from making lots of silly mistakes. -- Matt Richardson IT Consultant College of Arts and Letters CSU San Bernardino work: (909)537-7598 fax: (909)537-5926 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] MySQLdb: cant get '... where field in %s' to work for string sequences

2006-06-23 Thread Matt Richardson
On 6/22/06, Justin Ezequiel <[EMAIL PROTECTED]> wrote: > how can I get 'select ... from ... where field in %s' to work for > sequences of strings? > sequences of integers works just fine > > import MySQLdb > > DBCRED = {'host': 'localhost', 'user': 'userjustin', > 'passwd': 'passwdjustin'

Re: [Tutor] Python Programming Books

2006-07-14 Thread Matt Richardson
On 7/14/06, wesley chun <[EMAIL PROTECTED]> wrote: > (LONG... you've been warned ;-) ) Heh, that was pretty long. I bought the first edition of Core Python and thought that it was well-written, but I didn't quite get it (stay with me, this gets better). It wasn't until after I had taken quite a

Re: [Tutor] Has anyone tried matplotlib...??

2006-10-22 Thread Matt Richardson
I just used it a couple of weeks ago to produce a histogram of randomly generated numbers. Read the documentation, it's well written and has good examples. Matt On 10/22/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > > Folks, > > Has anyone tried matplotlib ..//??? > > If yes, then is it easy