SimpleXMLRPCServer interruptable?

2007-12-05 Thread Bret
ot; Through watching logs and such I can see that the shutdown() method is getting called, but the loop isn't getting broken. I've done something like this before in a previous job (so I don't have my source in front of me, more's the pity) and am hoping someone can chime in wi

Re: SimpleXMLRPCServer interruptable?

2007-12-05 Thread Bret
(): break This works, but only if I follow the shutdown() rpc call a few seconds later with ... something else to cause handle_request() to complete again. Obviously, not quite the right approach On Dec 5, 2:00 pm, Bret <[EMAIL PROTECTED]> wrote: > I'm coming back to Python after

Re: SimpleXMLRPCServer interruptable?

2007-12-06 Thread Bret
On Dec 5, 10:00 pm, Edward Kozlowski <[EMAIL PROTECTED]> wrote: > On Dec 5, 10:19 pm, Edward Kozlowski <[EMAIL PROTECTED]> wrote: > > > > > On Dec 5, 6:22 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > > > En Wed, 05 Dec 2007 18:2

Re: SimpleXMLRPCServer interruptable?

2007-12-06 Thread Bret
On Dec 6, 7:04 am, Bret <[EMAIL PROTECTED]> wrote: > On Dec 5, 10:00 pm, Edward Kozlowski <[EMAIL PROTECTED]> wrote: > > > > > On Dec 5, 10:19 pm, Edward Kozlowski <[EMAIL PROTECTED]> wrote: > > > > On Dec 5, 6:22 pm, "Gabriel Genellina" &

Re: SimpleXMLRPCServer interruptable?

2007-12-06 Thread Bret
On Dec 6, 7:04 am, Bret <[EMAIL PROTECTED]> wrote: > On Dec 5, 10:00 pm, Edward Kozlowski <[EMAIL PROTECTED]> wrote: > > > > > On Dec 5, 10:19 pm, Edward Kozlowski <[EMAIL PROTECTED]> wrote: > > > > On Dec 5, 6:22 pm, "Gabriel Genellina" &

Re: SimpleXMLRPCServer interruptable?

2007-12-10 Thread Bret
On Dec 6, 7:43 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 06 Dec 2007 13:11:09 -0300, Bret <[EMAIL PROTECTED]> escribió: > > > > > For completeness, what I ended up doing is this: > > > server = SimpleXMLRPCServer((

Source formatting fixer?

2007-12-10 Thread Bret
ipts or something to add spaces back in but I'm hoping someone out there has already done something like this. Thanks! Bret Wortman -- http://mail.python.org/mailman/listinfo/python-list

Re: Source formatting fixer?

2007-12-14 Thread Bret
t;Class %s created"%c.__name__ None of the above is wrong, it's just painfully ugly and given Python's natural beauty, it seems really wrong all the same Bret On Dec 11, 3:26 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > Python already comes with a rei

A global or module-level variable?

2008-01-22 Thread Bret
this long enough that my eyes are blurring. Any ideas? BTW, the driving force here is that I'm going to need to wrap this in some thread synchronization. For now, though, I'm just trying to get the basics working. Thanks! Bret -- http://mail.python.org/mailman/listinfo/python-list

Re: A global or module-level variable?

2008-01-23 Thread Bret
On Jan 22, 1:00 pm, Paul Rubin wrote: > If you have to do it that way, use: Is there a better way? A more Pythonic way? -- http://mail.python.org/mailman/listinfo/python-list

Re: A global or module-level variable?

2008-01-24 Thread Bret
On Jan 23, 2:27 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 23 Jan 2008 11:58:05 -0200, Bret <[EMAIL PROTECTED]> escribió: > > > On Jan 22, 1:00 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > > >> If you have to do it

ActiveState/O'Reilly Launch New and Improved Code Share Site (Python)

2010-02-19 Thread Bret
ActiveState launched today the new code.activestate.com with code recipes for dynamic languages such as Python, Perl and Tcl and web development. This site is great recipe sharing site for all Python, Perl and Tcl developers. O'Reilly will be use recipes from the site for its next Python cook book

csv.reader has trouble with comma inside quotes inside brackets

2009-06-09 Thread Bret
i have a csv file like so: row1,field1,[field2][text in field2 "quote, quote"],field3,field row2,field1,[field2]text in field2 "quote, quote",field3,field using csv.reader to read the file, the first row is broken into two fields: [field2][text in field2 "quote and quote" while the second row is

Re: csv.reader has trouble with comma inside quotes inside brackets

2009-06-09 Thread Bret
Thanks John, I didn't realize that the quotes were supposed to surround the entire field. I ended up making a quick script to replace comma's outside quotes with tabs. I was just trying to clean this crazy "csv" file to import into msyql. thanks again, bret -- http://mai

Re: pysqlite smart search

2009-02-23 Thread Bret Fledderjohn
FROM photos WHERE Tag LIKE ?',[keyword]): >cursor.execute('SELECT * FROM photos WHERE Date LIKE ?', [keyword]) * indicates all fields in the selected records, so you need to change the * to the field that contains the name of the photo. For example: if cursor.execu

Re: Queries

2009-02-26 Thread Bret Fledderjohn
ck with it. > > > > It is, however I was able to get the first 8 done, I am struggling with > > these 3 particular ones. I have to make an SQL file based off of it, > so this > > seems to be a blockage in my works. > > > Good luck with the homework. R

Re: Run a python script as an exe and run a new process from it

2009-02-26 Thread Bret Fledderjohn
function os.system(" python > > script2.py") from the main one. > > > > Thank you, > > venu > > Adding to the above.. I've to do it in Windows platform and what I can > see from the illustration (/dev/null) etc. they are for Unix > Environment. For making a script executable try this link http://www.python.org/doc/faq/windows/#how-do-i-make-python-scripts-executable -- - Bret -- http://mail.python.org/mailman/listinfo/python-list

Re: What do you think of ShowMeDo

2009-04-29 Thread Bret Fledderjohn
so having done no real GUI programming in Python, I am going to try out Kyran's wxPython tutorial. -- - Bret -- http://mail.python.org/mailman/listinfo/python-list

Re: tough-to-explain Python

2009-07-07 Thread Bret Fledderjohn
I really enjoyed your boxes analogy, from a guy with a trucking background, it makes a lot of sense! -Bret > ... The more I delve into OOP the more I liken an 'object' to a box. A box > with a shipping manifest. > > There are big boxes, > little boxes, > squat bo

Create on Win and run on Win or Mac

2015-06-01 Thread Bret Edwards via Python-list
either Win or Mac. I understand that will mean separate intstallation packages due to the different environments. Is this possible? I do not think that it is, but asking just to be sure. If so, what tools do I use to do the packaging? Do I use py2app for the Mac? Thanks, Bret -- https

Create Web app on Win and run on Win or Mac

2015-06-01 Thread Bret Edwards via Python-list
till use Tkinter for a web app? Do I need to do (use) anything to create cross platform executables or would running in a browser make that step not required? Sorry for the newbie question, but I am obviously looking for a light switch. Thanks,Bret -- https://mail.python.org/mailman/listinfo/python-list