Re: [Tutor] Suggestions for more efficient and optimized coding technique,

2009-01-08 Thread Michael Langford
#x27; the slowest and 'e' flying as fast as its > spokes can engage, and every click of every wheel produces a viable but > possibly wrong response. However, each response is unique and in the nth > iteration where password is found, all previous iterations are unique so > there is ce

Re: [Tutor] Suggestions for more efficient and optimized coding technique,

2009-01-08 Thread Michael Langford
s that true and is it > a viable change. > > I realize my code looks like modified C++ structured code. I am trying to > become more Python concise but I think that is a matter of writing more and > more python code. > > All suggestions, ideas, critiques are most welcome. > > Thank you, > > Robert > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python Characteristics.

2008-07-09 Thread Michael Langford
shell (if that's what you're looking for) by using ipython: http://ipython.scipy.org/ A large percentage of python developers use IPython (the I stands for interactive, I think). -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___

Re: [Tutor] ooffice UNO to generate automatic powerpoint presentations

2008-06-13 Thread Michael Langford
>and images. >Has anyone done this with openoffice UNO? >Thanks for your comments, >Mark > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tut

Re: [Tutor] Controlling applications

2008-06-09 Thread Michael Langford
: > every weakness, every vice, has found its defenders, its rhetoric, its > ennoblement and exaltation, but stupidity hasn't. - Primo Levi > _______ > Tutor maillist - Tutor@python.org >

Re: [Tutor] Why not to use include?

2008-06-08 Thread Michael Langford
ת > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > _______ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Michael Langford Phone: 4

Re: [Tutor] __del__ exception

2008-06-05 Thread Michael Langford
acc>> ignored > > So once all objects have been destroyed, an exception is triggered on class > variable 'population'. > > Any more logical explanation and work around? I just need to understand what > python is doing here > > Thx > > Blaise > > > > > _

Re: [Tutor] pyUSB linux + unknown device

2008-05-13 Thread Michael Langford
ain__": > data = main() > print data.getDataPacket(10) > -- > View this message in context: > http://www.nabble.com/pyUSB-linux-%2B-unknown-device-tp17198596p17198596.html > Sent from the Python - tutor mailing list archive at Nabble.com. > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Memory Leak?

2008-05-08 Thread Michael Langford
n), your program runs > faster if it avoids creating cyclic garbage in the first place > > Yes is it reliable if you are intending to have non-cyclic data in the first place (which has no chance of no being gc-ed). This sounds like his use case.

Re: [Tutor] Memory Leak?

2008-05-07 Thread Michael Langford
ind in xrange(0,len(filenames): > results.append(function1(filenames[ind])) > > > > > -- > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it > now.<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i6

Re: [Tutor] Python Best Practice/Style Guide question

2008-04-29 Thread Michael Langford
r i.e. dependencies. > > TIA, > > Scott > > PS. There is a good best-practice link here too: ><http://www.fantascienza.net/leonardo/ar/python_best_practices.html> > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-21 Thread Michael Langford
, I guess. By the way, there was a recent XKCD that I liked: > http://xkcd.com/409/ > > > -- > www.fsrtechnologies.com > _______ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -

Re: [Tutor] python access of usb for winxp

2008-04-10 Thread Michael Langford
ly appreciated. > > Thanks and Best Regards, > --Govind Goyal > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.Row

Re: [Tutor] glade integration

2008-04-07 Thread Michael Langford
On Mon, Apr 7, 2008 at 2:29 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "Michael Langford" <[EMAIL PROTECTED]> wrote > > > While on the topic of glade, does anyone know of a working gui > > builder for > > glade on windows?

Re: [Tutor] glade integration

2008-04-07 Thread Michael Langford
Well there you go. Just needed to look elsewhere: http://sourceforge.net/project/showfiles.php?group_id=98754 On Mon, Apr 7, 2008 at 1:59 PM, Michael Langford < [EMAIL PROTECTED]> wrote: > While on the topic of glade, does anyone know of a working gui builder for > glade on windo

Re: [Tutor] glade integration

2008-04-07 Thread Michael Langford
; http://www.learningpython.com/2006/05/30/building-an-application-with-pygtk-and-glade/ > > > th > > > > _______ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Michael Langford Phone: 404-3

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Michael Langford
When you have you use Visual Studio, I suggest using the beautiful and wonder ViEmu. Best $90 I ever spent: http://www.viemu.com/ On Thu, Apr 3, 2008 at 2:40 PM, W W <[EMAIL PROTECTED]> wrote: > On Thu, Apr 3, 2008 at 12:15 PM, Michael Langford > <[EMAIL PROTECTED]> wrote: &

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Michael Langford
n time environment is IDLE. > > Any thoughts or preferences would be appreciated. > thanks! > > Jeffrey Dates > www.kungfukoi.com > > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > &g

Re: [Tutor] Question about Python ORM

2008-04-02 Thread Michael Langford
t; > > > Can you please tell me something about Python ORM? > > > > Regards, > > Kumar > > ___ > > Tutor maillist - Tutor@python.org > > http://mail.python.org/mailman/listinfo/tutor > > _______

Re: [Tutor] Problem with logic while extracting data from binary file

2008-04-01 Thread Michael Langford
#x27;, vl_field)[0] > value = data[start+8:(start+8+length)] > start = start+8+length > element = (group_num+element_num) > return element, start, value > else: > return elemen

Re: [Tutor] Interactive plots...

2008-04-01 Thread Michael Langford
. That could be a big problem if the goal is to get to the > truth." -Dr. Steven Hyman, Harvard > > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Let imported module access calling program

2008-03-25 Thread Michael Langford
tion == "LEFT": turnLeft() else: turnRight() def robotSetup(): """sets all the event handlers and defines the operational program""" #these will happen as things generate events registerEventHandler(SONAR_EVENT,handleSonarData) regis

Re: [Tutor] cross-compile python?

2008-03-24 Thread Michael Langford
ebrew in the native .elf format. > > Thanks > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com __

Re: [Tutor] Python to C++

2008-03-19 Thread Michael Langford
ttp://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Using pyusb

2008-03-19 Thread Michael Langford
ar 19, 2008 at 7:26 PM, Michael Langford <[EMAIL PROTECTED]> wrote: > I've never heard of the type of cable you're using. Can you send a > link to one to the list? > > You're missing most of the USB ideas more than the python ideas. > > USB is very very

Re: [Tutor] Using pyusb

2008-03-19 Thread Michael Langford
; RB = chr(0x6B) # k > LT = chr(0x68) # h > RT = chr(0x6A) # j > > S = chr(0x32) > s = chr(0x73) > > self.close() > self.open() > > msg = [A,B,A,B,A,B,A,B] > #help(self.handle.bulkWrite) > help(self.hand

Re: [Tutor] Python learning curve

2008-03-18 Thread Michael Langford
et aside a few days to figure out how to do it. > > Compile Mozilla according to the instructions found here using Mozilla 1.9. > > BuildingXULRunner has Miro specific instructions > > Recompiling Boost ¶ > You shouldn't have to do this unless you're debugging Boost specific is

Re: [Tutor] python, wxpython and postgresql

2008-03-18 Thread Michael Langford
the sql would be: UPDATE table1 SET address = '123 Easy Street' > WHERE rec_id = 1 > > Thanks again, > > > Bill > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailm

Re: [Tutor] login

2008-03-16 Thread Michael Langford
; > > values = urllib.urlencode({'user_name': 'MyUsername', > 'user_pass': > > 'MyPass^^', 'login' : 'Login'}) > > req = urllib2.Request('http://www.site.org/index.php', values) > >

Re: [Tutor] newbie needs help with rpg code in python

2008-03-16 Thread Michael Langford
e, you shouldn't hard-code values like 0.8 and 1.2 - but I wanted to > keep it simple. --Michael -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/ma

Re: [Tutor] newbie needs help with rpg code in python

2008-03-16 Thread Michael Langford
ber. For example, to subtract 80 - 120 % of damage_to_enemy from > temp_e_hp? > > Sorry for all the questions, but I'm totally stumped at the moment. > Thanks for your time > > -Jake > > > She said what? About who? Shameful celebrity quotes on Search Star! > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Const on Python

2008-03-06 Thread Michael Langford
he area that really matters in). --Michael -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] rss feed reader, but having trouble with unicode

2008-02-28 Thread Michael Langford
> > > > > > > > > > -- > > Rui > > http://ruivaldo.wordpress.com > > > > "Rubi? Aquela novela do SBT?" > > ~ Carla Perez sobre Ruby > > > > "Em Python, tudo é o

Re: [Tutor] DATA TYPES

2008-02-20 Thread Michael Langford
By writing the unit tests in cPython/Jython compatible code, you'll be able to run the same tests on both sets of functions and verify you've completed your port. ==Michael PS: Sorry about the missing %, it was there when I ran the code. Don

Re: [Tutor] DATA TYPES

2008-02-20 Thread Michael Langford
er your code with this loop and go through the output for lines that are wrong. --Michael -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to deal with a thread that doesn't terminate

2008-02-19 Thread Michael Langford
gt; and that thread hangs, can the thread be terminated? > How does one handle this situation? > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Michael Langford Phone: 40

Re: [Tutor] Change mouse cursor position

2008-02-19 Thread Michael Langford
m struct import pack; print pack('5b', (41*len('99')), > pow(8,2)+20, 4900**0.5, range(78)[-1], 10)" > _______ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael L

Re: [Tutor] Silly question: Modifying code while the script is running

2008-02-18 Thread Michael Langford
; anyone know of good way to do this, or can someone just point me in the > right direction? > > -Scott > > _______ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] designing POOP

2008-02-15 Thread Michael Langford
to OO design. For me considerations of > cohesion, encapsulation, DRY, testability, and any required reuse or > flexibility are far more important to design than correspondence with > tangible objects. > > Kent > > > __

Re: [Tutor] Closing file objects when object is garbage collected?

2008-02-12 Thread Michael Langford
.com/pub/a/python/2005/09/01/debugger.html It will allow you to poke around at the innards of your program right as it dies. --Michael -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to Set python path

2008-02-12 Thread Michael Langford
to work with > both paths? kindly give Solution for this problem.. > > > > regards > Narayana Moorthy.V > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > --

Re: [Tutor] Adding network play to an open source game.

2008-02-09 Thread Michael Langford
ur Hotmail(R)-get > >> your "fix". > >> http://www.msnmobilefix.com/Default.aspx > >> ___ > >> Tutor maillist - Tutor@python.org > >> http://mail.python.org/mailman/listinfo/tutor > >> > > > > ___ > > Tutor maillist - Tutor@python.org > > http://mail.python.org/mailman/listinfo/tutor > > _ > Shed those extra pounds with MSN and The Biggest Loser! > http://biggestloser.msn.com/ > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] PHP & Python suggestions....

2008-02-04 Thread Michael Langford
t; for what you need to do, but if you could do it this way, it would probably > be faster. > > Cheers > Chris Fuller > > > _______ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Michael Langfor

Re: [Tutor] Hello and newbie question about "self"

2008-02-03 Thread Michael Langford
C1(C2, C3): > def setname(self, who) > self.name = who > > class C1(C2, C3): > def __init__(self, who) > self.name = who > > Thanks for any pointers! > > Regards, > Patrick > > ___ > Tutor maillist - Tutor@python.org > ht

Re: [Tutor] os.system() problem

2008-02-03 Thread Michael Langford
See http://www.gnu.org/philosophy/no-word-attachments.html > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to compare the first line from multiple files

2008-01-31 Thread Michael Langford
from the first file as the reference.) > > How would I go about doing this. > > Thanks in advance. > > Regards, > Sorghum Crow > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor >

Re: [Tutor] how to make python program as executable

2008-01-30 Thread Michael Langford
at doesn't depend on the presence of python, then this tutorial will help you: http://wiki.python.org/moin/Freeze --Michael On Jan 30, 2008 9:11 AM, brindly sujith <[EMAIL PROTECTED]> wrote: > i am using linux... > > plz tell me how to do it > > > -

Re: [Tutor] how to make python program as executable

2008-01-30 Thread Michael Langford
> make it executable > > please guide me > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com _

Re: [Tutor] question about a number and bytes.

2008-01-29 Thread Michael Langford
need to do this in python? Second question. If > > you could do that, how would you use it in any other python context? > > > > ___ > > Tutor maillist - Tutor@python.org > > http://mail.python.org/mailman/listinfo/tutor > > > ____

Re: [Tutor] What web framework?

2008-01-29 Thread Michael Langford
wsgi.org/wsgi/Frameworks Pick according to your comfort level/motivation level when choosing between Configuration and Magic Probably use Paste(http://pythonpaste.org/), but maybe use a more involved framework too. --Michael -- Michael Langford Phone: 404-386-0495 Consulting:

Re: [Tutor] IronPython, the wii remote, and blender

2008-01-26 Thread Michael Langford
please tell me so. => (I got this > message in plain text this time!) > _ > Shed those extra pounds with MSN and The Biggest Loser! > http://biggestloser.msn.com/ > ___ > Tutor maillist - Tutor@python.org > http://mail.pyt

Re: [Tutor] Comparing more than 2 lists

2008-01-24 Thread Michael Langford
] Comparing more than 2 lists - [EMAIL PROTECTED] > > I need to be able to get along the lines of output: > Element 'one' contained in list1 and list2 > Element 'two' contained in list1 and list2 and list3 > ... > Element 'five' contained in list2 and list4 &g

Re: [Tutor] MySQLdb for Python 2.5? (Debian related)

2008-01-23 Thread Michael Langford
cation. There is no change system wide, just for the application that is running. This is *much* safer than using the system package manager. Its like running a standalone exe like putty on windows, versus installing a microsoft product. --Michael > Michael Langford schrieb: > > I

Re: [Tutor] MySQLdb for Python 2.5? (Debian related) (was: csv.reader: bad argument type)

2008-01-23 Thread Michael Langford
____ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] MySQLdb for Python 2.5? (Debian related) (was: csv.reader: bad argument type)

2008-01-23 Thread Michael Langford
_________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Obssfurcatedpuytthonlessons nneeded

2008-01-20 Thread Michael Langford
| BOX | > +-+ >knihT > > Fnord. > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Programming Ideas, need some focus

2008-01-18 Thread Michael Langford
yone else have any ideas for some types of programs that might actually > prove useful to people for beginners to work on? > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/list

Re: [Tutor] Programming Ideas, need some focus

2008-01-16 Thread Michael Langford
it seems the current advice for Sugar emulation on > the Mac is "come back next year, or the year after"... I did get PyGTK > working, tho. > > > On Jan 16, 2008, at 10:13 PM, Michael Langford wrote: > > > No, but this is quite useful for getting it up and going on your

Re: [Tutor] Programming Ideas, need some focus

2008-01-16 Thread Michael Langford
ttle > more Python experience and actually do something useful. I found lots > of noble exhortations to help, but very little in the way of > specifics. Does anyone know of any ongoing projects that could use > volunteers? Of the middling-capable range? > > Eric > > On Jan 16

Re: [Tutor] Programming Ideas, need some focus

2008-01-16 Thread Michael Langford
ogram that did this.. " type of thing to give me some direction. Or does > anyone else have any ideas for some types of programs that might actually > prove useful to people for beginners to work on? > > ___ > Tutor maillist - Tutor@pyth

Re: [Tutor] Reading Input Data

2008-01-15 Thread Michael Langford
ou would do in software like maple, this approach can greatly simplify the notation over the list/dict approach. If you're not using python as a huge substitute for a math solver, then avoid what I said like the plague and use a dict. --Michael On 1/15/08, Michael Langford <[EMAIL PRO

Re: [Tutor] Reading Input Data

2008-01-15 Thread Michael Langford
("file.csv")): s = line.split(",")[1] try: f = float(s) locals()["x%i" % subscript]=f except: locals()["x%i" % subscript]=s print x1 print x0 On Jan 15, 2008 3:47 PM, Michael Langford <[EMAIL PROTECTED

Re: [Tutor] Reading Input Data

2008-01-15 Thread Michael Langford
gt; > > > > > > > > > Never miss a thing. Make Yahoo your homepage. > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Document Control System

2008-01-14 Thread Michael Langford
___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Read protection of python files for Abaqus

2008-01-14 Thread Michael Langford
no matter what you do. So if nothing else, a determined attacker can just call your code again without understanding it. -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com On 1/14/08, Ferruh KAYHAN <[EMAIL PROTECTED]> wrote: > Dear Sir; > Thank you for yo

Re: [Tutor] Recieving emails in python

2008-01-13 Thread Michael Langford
ta > > sending out email > we are using sendmail so we ll continue using that for now > thanks > > > > On 1/13/08, Michael Langford <[EMAIL PROTECTED]> wrote: > > It depends. > > > > If you're trying to write a MTA, think about looking at and st

Re: [Tutor] Daemonizing Scripts

2008-01-13 Thread Michael Langford
> Messenger on the move. Text MSN to 63463 now! > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Recieving emails in python

2008-01-13 Thread Michael Langford
sages via say > [EMAIL PROTECTED] > > how to make python recieve emails and process it > after that it is straight forward processing in python inserting in db etc > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mail

Re: [Tutor] new guy problem, what's wrong with this program.

2008-01-13 Thread Michael Langford
uot;Ture" is. In > this case, I suspect you have misspelt "True". Programming languages > are quite picky about correct spelling! > > -- > John. > _______ > Tutor maillist - Tutor@python.org >

Re: [Tutor] Windowss sidebar gadgets with Python?

2008-01-09 Thread Michael Langford
twork programming. > > Thank you > > Put your friends on the big screen with Windows Vista(R) + Windows Live™. > Start now! > _______ > Tutor maillist - Tutor@pyth

Re: [Tutor] Choice of GUI builders

2008-01-02 Thread Michael Langford
, 2008 12:51 PM, johnf <[EMAIL PROTECTED]> wrote: > > On Wednesday 02 January 2008 06:56:54 am Michael Langford wrote: > > While some people are Adobe haters("They hate the web...etc"), I think > > a slick alternative available now is Flex2 calling python via XMLRPC. &g

Re: [Tutor] Choice of GUI builders

2008-01-02 Thread Michael Langford
ecent release just a month or so > ago), but if anyone has any suggestions, that'd be great. > > Thanks in advance, > Roy Chen > > _______ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor >

Re: [Tutor] Displaying images on a web page

2008-01-01 Thread Michael Langford
m your python backend). If you're really trying to avoid writing your own HTML out, the table example from GWT( http://gwt.google.com/samples/KitchenSink/KitchenSink.html#Panels) will do what you're looking for. Pyjamas(http://code.google.com/p/pyjamas/) will generate GWT code from pyt

Re: [Tutor] Careful Dictionary Building

2007-12-28 Thread Michael Langford
= [record] > > > > Once you get ~ 80,000 records it starts slowing down pretty badly (I > > would too ...). > > > > Here's hoping there is a really fast, pythonic way of doing this! > > > > > ___ > Tutor

Re: [Tutor] PythonCard error checking

2007-12-24 Thread Michael Langford
eturn to > that point of program execution? > > Any help from the PythonCard gurus would be appreciated. Happy holidays! > > _______ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Regular Expression

2007-12-21 Thread Michael Langford
gt; 200~02023546~05090 > 200~02025427~05090 > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] XML data reading

2007-12-20 Thread Michael Langford
asses and arrays until the > entire file has been read, then remove the file from memory. I first tried > to use the basic Python XML libraries, and then my friend recommended SAX - > but so far as I can tell, either method requires numerous lines of code to > support one new tag. Is

Re: [Tutor] Bound To Be A Typo

2007-12-17 Thread Michael Langford
File "C:/Python25/attributecrit.py", line 15, in > crit1 = Critter("Poochie") > TypeError: default __new__ takes no parameters > > > > Looking for last minute shopping deals? Find them fast with Yahoo! Search. > > > ___

Re: [Tutor] python links

2007-12-16 Thread Michael Langford
academic project to boot. If you are going to go with a processor on which you can embed Linux, there is a python in the buildroot tree, however buildroot can be quite the crap shoot, depending on processor and mix of applications (It didn't work on the last board I was using

Re: [Tutor] Python Versions

2007-12-12 Thread Michael Langford
gt; x=0 > >>> for n in range(5): > x = n+x > <--Extra line > here! > >>> print x > 10 > >>> > > Is that the kind of thing you are seeing? > > > > > > Never miss a thing. Make Yahoo your homepage. > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] python and interface duplex checks

2007-12-12 Thread Michael Langford
be done with python. Or you can just parse the ifconfig output. --Michael On 12/12/07, Robert Recchia <[EMAIL PROTECTED]> wrote: > > > On Dec 12, 2007 11:01 PM, Michael Langford <[EMAIL PROTECTED]> > wrote: > > Most easily: If your card supports ethtool, you

[Tutor] python and interface duplex checks

2007-12-12 Thread Michael Langford
k card on a Linux os. > > -- > Robert Recchia > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___

Re: [Tutor] python and interface duplex checks

2007-12-12 Thread Michael Langford
k card on a Linux os. > > -- > Robert Recchia > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___

Re: [Tutor] How is "tuple" pronounced?

2007-12-10 Thread Michael Langford
te www.earlylightpublishing.com > > > Never miss a thing. Make Yahoo your homepage. > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford P

Re: [Tutor] List processing question - consolidating duplicate entries

2007-11-27 Thread Michael Langford
n what's happening. --Michael -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] pipeline - what is it and how do I use it?

2007-11-25 Thread Michael Langford
but should work) while not os.path.isfile("/var/jobs"): datafile = file("/var/jobs") map(myFileProcessingFunc,datafile.readlines()) datafile.close() os.remove("/var/jobs") -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com __

Re: [Tutor] network - send one line of text

2007-11-23 Thread Michael Langford
your problem. If you're on a unix-like OS, use netcat: http://netcat.sourceforge.net/ --Michael -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Web programming

2007-11-17 Thread Michael Langford
t; > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Sorting specific files by modification date

2007-11-05 Thread Michael Langford
r example > 'Second Worksheet' also, but I was just trying to get the 'first_files' > working first. Instead of opening them each time, should I construct some > type of data that stores the file, it's worksheets, and its modification > times for each file fo

Re: [Tutor] I need an 'atomic read/ write action'

2007-11-04 Thread Michael Langford
room for > mischief in between. > > Another problem is that the task may fail and need redoing, but I think I > can solve that given a solution to the above. > > Do let me know if my question isn't clear. > Thanks in advance! > Tom > > _

Re: [Tutor] List comp question

2007-11-03 Thread Michael Langford
func_once_cleanup(print_and_return_big_list) print_and_return_big_list( On 11/2/07, Michael Langford <[EMAIL PROTECTED]> wrote: > > Decorate level2 with a decorator that caches: > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/425445 > > --Michael > >

Re: [Tutor] List comp question

2007-11-02 Thread Michael Langford
epeat > it. Is there any way to do this or am I stuck with the (IMO ugly) loop > form? > > Kent > > who actually does have a question occasionally :-) > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailm

Re: [Tutor] Automating operations... os module, mysql operations, more...

2007-11-01 Thread Michael Langford
, Jul 3 2007, 22:58:17) [GCC 4.1.1 20070105 (Red Hat > 4.1.1-51)], > PIL 1.1.6 > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.TierOneDesign.com/ ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Build exe on Vista, have it run on XP?

2007-10-31 Thread Michael Langford
That's not really a working solution. My available development platform is a Vista machine. I don't have an available XP platform. XP built exes run fine on Vista, just not vice versa. --Michael On 10/31/07, O.R.Senthil Kumaran <[EMAIL PROTECTED]> wrote: > &

[Tutor] Build exe on Vista, have it run on XP?

2007-10-29 Thread Michael Langford
mpile down to an exeis it a valid alternative? Should my CPython utility be compatible with ipy? I only use the random,time,sys, and serial modules. I really know nothing about ipy. --Michael -- Michael Langford Phone: 404-386-0495 Consulting: http://www.TierOneDesign.com/ __

Re: [Tutor] populating an array or using a dictionary

2007-10-21 Thread Michael Langford
or > > Check\eDoseCheck.py", line 44, in > d, fs1, fs2, fs3, fs4, fs5, fs6, fs7, fs8, fs9, fs10, > NameError: name 'd' is not defined > > ___ > Tutor maillist - Tutor@python.org > http://mail.pytho

Re: [Tutor] "standard output: Broken pipe"

2007-10-21 Thread Michael Langford
rid of the error > (or hide it) so that it's not visible to the person running the > script (it's not the prettiest thing to see scroll by your screen :)). > > Thoughts / ideas? > > Thanks! > .james > ___ > Tutor maillist - Tutor@python.org > http://ma

[Tutor] python help

2007-10-21 Thread Michael Langford
_ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.TierOneDesign.com/ -- Michael Langford Phone: 404-386-0495 Consulting: http://www.TierOneDesign.com/

Re: [Tutor] Decimal Conversion

2007-10-15 Thread Michael Langford
into the python area of my brain. Python does not support that operation for + --Michael -- Michael Langford Phone: 404-386-0495 Consulting: http://www.TierOneDesign.com/ On 10/15/07, Alan Gauld <[EMAIL PROTECTED]> wrote: > > <[EMAIL PROTECTED]> wro

Re: [Tutor] Decimal Conversion

2007-10-15 Thread Michael Langford
comma operator. b+="," + r Was not doing exactly what I said. What it's doing is creating a new string from the one named by b, the string literal "," , and the one named by r. After creating the string it assigns the name b to the new string. --michael -- Michae

  1   2   >