OT: Hierarchies [was Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.]

2013-11-01 Thread Steven D'Aprano
On Tue, 29 Oct 2013 17:22:03 +1100, Chris Angelico wrote: > On Tue, Oct 29, 2013 at 3:03 PM, wrote: >> Regarding esr's "smart-questions", although I acknowledge it has useful >> advice, I have always found it elitist and abrasive. I wish someone >> would rewrite it without the "we are gods" att

Re: Python wart

2013-11-01 Thread Peter Cacioppi
Mark said : "Do I have to raise a PEP to get this stupid language changed so that it dynamically recognises what I want it to do and acts accordingly?" The printf syntax in C isn't any wonderful thing, and there is no obligation to provide some Python version of it. I have to say, there were

Re: trying to strip out non ascii.. or rather convert non ascii

2013-11-01 Thread Steven D'Aprano
On Thu, 31 Oct 2013 03:33:15 -0700, wxjmfauth wrote: > Le jeudi 31 octobre 2013 08:10:18 UTC+1, Steven D'Aprano a écrit : >> I'm glad that you know so much better than Google, Bing, Yahoo, and >> other >> search engines. When I search for "mispealled" Google gives me: [...] > As far as I know, I

Re: Python wart

2013-11-01 Thread Chris Angelico
On Fri, Nov 1, 2013 at 6:11 PM, Peter Cacioppi wrote: > The printf syntax in C isn't any wonderful thing, and there is no obligation > to provide some Python version of it. Maybe, but it's supported by so many languages that it is of value. Though Python's use of the % operator does lead to edge

Re: OT: Hierarchies [was Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.]

2013-11-01 Thread Chris Angelico
On Fri, Nov 1, 2013 at 6:00 PM, Steven D'Aprano wrote: > On Tue, 29 Oct 2013 17:22:03 +1100, Chris Angelico wrote: > >> On Tue, Oct 29, 2013 at 3:03 PM, wrote: >>> Regarding esr's "smart-questions", although I acknowledge it has useful >>> advice, I have always found it elitist and abrasive. I

Re: Error Testing

2013-11-01 Thread Grant Edwards
On 2013-11-01, William Ray Wing wrote: > Actually, FORTRAN is probably responsible for more CPU cycles being > executed even today than most other languages. If you think about > the fact that most large scientific simulation codes (weather > forecasting, combustion modeling, finite-element mode

Re: trying to strip out non ascii.. or rather convert non ascii

2013-11-01 Thread wxjmfauth
Le vendredi 1 novembre 2013 08:16:36 UTC+1, Steven D'Aprano a écrit : > On Thu, 31 Oct 2013 03:33:15 -0700, wxjmfauth wrote: > > > > > Le jeudi 31 octobre 2013 08:10:18 UTC+1, Steven D'Aprano a écrit : > > > > >> I'm glad that you know so much better than Google, Bing, Yahoo, and > > >> othe

Re: Python wart

2013-11-01 Thread Mark Lawrence
On 01/11/2013 07:11, Peter Cacioppi wrote: Mark said : "Do I have to raise a PEP to get this stupid language changed so that it dynamically recognises what I want it to do and acts accordingly?" The printf syntax in C isn't any wonderful thing, and there is no obligation to provide some Python

Re: Python wart

2013-11-01 Thread Chris Angelico
On Fri, Nov 1, 2013 at 8:08 PM, Mark Lawrence wrote: > I'm heading into town in maybe an hour. I'll stop here > http://www.toolbankexpress.com/shop/castle/ so I can get an extremely large > pair of pliers with which I can extract my tongue from my cheek :) I think you may have a bit of trouble.

Re: trying to strip out non ascii.. or rather convert non ascii

2013-11-01 Thread Mark Lawrence
On 01/11/2013 09:00, wxjmfa...@gmail.com wrote: I'll ask again, would you please read, digest and action this https://wiki.python.org/moin/GoogleGroupsPython -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence -

Re: Python wart

2013-11-01 Thread Mark Lawrence
On 01/11/2013 09:17, Chris Angelico wrote: On Fri, Nov 1, 2013 at 8:08 PM, Mark Lawrence wrote: I'm heading into town in maybe an hour. I'll stop here http://www.toolbankexpress.com/shop/castle/ so I can get an extremely large pair of pliers with which I can extract my tongue from my cheek :)

Re: Error Testing

2013-11-01 Thread Mark Lawrence
On 01/11/2013 03:50, rusi wrote: On Friday, November 1, 2013 4:29:35 AM UTC+5:30, Denis McMahon wrote: My mistake, that was what Albert said, you were simply standing up for him. Please s/you/he/ in the lines of my previous post quoted above, and accept my apologies for my mistake. Heh! Ch

Re: Python wart

2013-11-01 Thread Chris Angelico
On Fri, Nov 1, 2013 at 8:32 PM, Mark Lawrence wrote: > I wondered if the idea of deprecating printf style formatting might also > come up again. It was discussed in some depth here > https://mail.python.org/pipermail/python-dev/2012-February/116789.html I don't see any reason for it to go. Anyon

Re: "Backward"-Iterator - Beginners question

2013-11-01 Thread Ulrich Goebel
Hi Am 31.10.2013 23:35, schrieb Terry Reedy: On 10/31/2013 5:29 PM, Ulrich Goebel wrote: I'm locking for an "iterator" type with not only the .next() method, but with a .previous(), .first() and .last() method, so that I can through it from the beginning or from the end, and in both directions

Re: Testing python command line apps -- Running from within the projects w/o installing

2013-11-01 Thread Wolfgang Maier
Thanks Ben and Tim for these great contributions! Shouldn't suggestions like these be added to the argparse documentation in a recipes section? Best, Wolfgang -- https://mail.python.org/mailman/listinfo/python-list

Re: First day beginner to python, add to counter after nested loop

2013-11-01 Thread Alister
On Thu, 31 Oct 2013 04:07:14 -0700, rusi wrote: > > Also others (Alister?) were double-space-reply-posting as well. When > you mean to point out a behavior without getting personal, it helps to > point out all instances of that behavior. Otherwise it looks like you > are going for someone, when

Re: how to extract page-URL using BeautifulSoup

2013-11-01 Thread Alister
On Thu, 31 Oct 2013 08:59:00 -0700, bhaktanishant wrote: > I want to extract the page-url. for example: > if i have this code > > import urllib2 from bs4 import BeautifulSoup link = > "http://www.google.com"; > page = urllib2.urlopen(link).read() > soup = BeautifulSoup(page) > > then i can extra

Re: "Backward"-Iterator - Beginners question

2013-11-01 Thread Chris Angelico
On Fri, Nov 1, 2013 at 9:18 PM, Ulrich Goebel wrote: > That gives me the solution. What I have, is an iterator object comming as a > SQLite database cursor object. So I could minimize the underliying SELECT > and build index = list(cursor). Then with Your hints I get what I want. Looks good! If y

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-11-01 Thread Antoon Pardon
Op 01-11-13 05:41, ru...@yahoo.com schreef: > On 10/31/2013 02:41 AM, Steven D'Aprano wrote: > >> I don't know whether you are deliberately lying, or whether you're just >> such a careless reader that you have attributed words actually written by >> Skybuck to me, but either way I expect an apol

Help Python 3.3

2013-11-01 Thread radu . bortoi
Hi all, error: Setup script exited with error: Unable to find vcvarsall.bat Visual C++ Express installed. the key HKEY_LOCAL_MACHINE\Software\Microsoft\VCExpress\9.0\Setup\VC\ProductDir is present and point to the vcvarsall.bat location. PC restarted(just for fun). what is wrong?? -- https://

Re: Help Python 3.3

2013-11-01 Thread radu . bortoi
I am using easy_install -- https://mail.python.org/mailman/listinfo/python-list

Re: Help Python 3.3

2013-11-01 Thread Zachary Ware
On Fri, Nov 1, 2013 at 8:20 AM, wrote: > > Hi all, > > error: Setup script exited with error: Unable to find vcvarsall.bat > > Visual C++ Express installed. Which version? Python 3.3 requires Visual C++ 2010 (10.0). > the key > HKEY_LOCAL_MACHINE\Software\Microsoft\VCExpress\9.0\Setup\VC\Prod

Re: Help Python 3.3

2013-11-01 Thread radu . bortoi
On Friday, November 1, 2013 3:33:24 PM UTC+2, Zachary Ware wrote: > On Fri, Nov 1, 2013 at 8:20 AM, wrote: > > > > > > Hi all, > > > > > > error: Setup script exited with error: Unable to find vcvarsall.bat > > > > > > Visual C++ Express installed. > > > > Which version? Python 3.3 requ

Re: Help Python 3.3

2013-11-01 Thread radu . bortoi
Thanks a lot Zach. This fix the problem -- https://mail.python.org/mailman/listinfo/python-list

Re: Help Python 3.3

2013-11-01 Thread Mark Lawrence
On 01/11/2013 13:49, radu.bor...@gmail.com wrote: I'm not sure what you meant to say, but whatever it was, would you please be kind enough to read, digest and action this https://wiki.python.org/moin/GoogleGroupsPython TIA. -- Python is the second best programming language in the world. But

Re: Help Python 3.3

2013-11-01 Thread radu . bortoi
Thanks Zach. -- https://mail.python.org/mailman/listinfo/python-list

Re: Help Python 3.3

2013-11-01 Thread Mark Lawrence
On 01/11/2013 13:59, radu.bor...@gmail.com wrote: Thanks Zach. Would you please quote some context in your replies. Who is Zach? Which message are you replying to? What were you talking about? -- Python is the second best programming language in the world. But the best has yet to be inven

Re: how to extract page-URL using BeautifulSoup

2013-11-01 Thread Joel Goldstick
This is nearly the same question you asked under another name yesterday. Its not clear what you really want to do. You are asking what the url is of the page you retrieve by providing the same url. On Fri, Nov 1, 2013 at 7:33 AM, Alister wrote: > On Thu, 31 Oct 2013 08:59:00 -0700, bhaktanishan

telnet problem

2013-11-01 Thread 神父
hello every expert, When I use telnetlib to send a command, I meet some troubles, I have read some documents about telnetlib and modify many times, but the script doesn't work all the time. I want to know why. My script is following: #!/usr/bin/python # import telnetlib t = telnetlib.Telnet() t.op

Re: telnet problem

2013-11-01 Thread Neil Cerutti
On 2013-11-01, wrote: > hello every expert, > When I use telnetlib to send a command, I meet some troubles, I > have read some documents about telnetlib and modify many times, > but the script doesn't work all the time. What goes wrong? -- Neil Cerutti -- https://mail.python.org/mailman/l

ANN: Leo 4.11b1 released

2013-11-01 Thread edreamleo
Leo 4.11 b1 is now available at: https://sourceforge.net/projects/leo/files/Leo/4.11-b1/ Leo 4.11 contains over a year's work on Leo. Leo is a PIM, an IDE and an outliner for programmers, authors and web designers. Leo's unique features organize data in a revolutionary way. See http://leoeditor.co

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Nick the Gr33k
Στις 1/11/2013 12:24 πμ, ο/η Nick the Gr33k έγραψε: Στις 31/10/2013 9:22 μμ, ο/η ru...@yahoo.com έγραψε: You set the value of 'downloads' to a list: downloads = [] if data: for torrent in data: downloads.append( torrent ) and when you use 'downloads', use have:

Re: Error Testing

2013-11-01 Thread Mark Lawrence
On 01/11/2013 14:51, Dennis Lee Bieber wrote: On Fri, 01 Nov 2013 03:25:03 +, Mark Lawrence declaimed the following: On 01/11/2013 02:27, William Ray Wing wrote: supper computers Somebody must have tough teeth, though thinking about it I recall people eating bicycles :) Was

how to load test a web app?

2013-11-01 Thread Albert-Jan Roskam
Hi, I am looking at three Github-like programs (Stash, Gitbucket and Trac) to see if they could be used in our company. I would like to test the reliability and stability of at least one of them (I won't do any tests if some required functionality is missing). I am curious whether the program

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Nick the Gr33k
Στις 31/10/2013 9:22 μμ, ο/η ru...@yahoo.com έγραψε: On 10/31/2013 03:24 AM, Nick the Gr33k wrote: [...] # find out if visitor has downloaded torrents in the past cur.execute('''SELECT torrent FROM files WHERE host = %s''', host ) data = cur.fetchall() downloads = []

Re: Basic Python Questions - Oct. 31, 2013

2013-11-01 Thread William Ray Wing
On Oct 31, 2013, at 5:31 AM, "E.D.G." wrote: > Posted by E.D.G. on October 31, 2013 > > The following are several relatively basic questions regarding Python's > capabilities. I am not presently using it myself. At the moment a number of > people including myself are comparing it with o

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Nick the Gr33k
Στις 1/11/2013 5:04 μμ, ο/η Nick the Gr33k έγραψε: Στις 1/11/2013 12:24 πμ, ο/η Nick the Gr33k έγραψε: Στις 31/10/2013 9:22 μμ, ο/η ru...@yahoo.com έγραψε: You set the value of 'downloads' to a list: downloads = [] if data: for torrent in data: downloads.append( to

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Joel Goldstick
On Fri, Nov 1, 2013 at 11:25 AM, Nick the Gr33k wrote: > Στις 31/10/2013 9:22 μμ, ο/η ru...@yahoo.com έγραψε: >> >> On 10/31/2013 03:24 AM, Nick the Gr33k wrote: >> >>> [...] >>> # find out if visitor has downloaded torrents in the past >>> cur.execute('''SELECT torrent FROM files WHERE ho

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Nick the Gr33k
Στις 1/11/2013 5:56 μμ, ο/η Joel Goldstick έγραψε: On Fri, Nov 1, 2013 at 11:25 AM, Nick the Gr33k wrote: Στις 31/10/2013 9:22 μμ, ο/η ru...@yahoo.com έγραψε: On 10/31/2013 03:24 AM, Nick the Gr33k wrote: [...] # find out if visitor has downloaded torrents in the past cur.execute('

Re: First day beginner to python, add to counter after nested loop

2013-11-01 Thread rusi
On Friday, November 1, 2013 4:47:40 PM UTC+5:30, Alister wrote: > On Thu, 31 Oct 2013 04:07:14 -0700, rusi wrote: > > Also others (Alister?) were double-space-reply-posting as well. When > > you mean to point out a behavior without getting personal, it helps to > > point out all instances of that

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Paul Simon
"Joel Goldstick" wrote in message news:mailman.1935.1383321401.18130.python-l...@python.org... On Fri, Nov 1, 2013 at 11:25 AM, Nick the Gr33k wrote: > 31/10/2013 9:22 ??, ?/? ru...@yahoo.com ??: >> >> On 10/31/2013 03:24 AM, Nick the Gr33k wrote: >> >>> [...] >>> # find out if visitor

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Nick the Gr33k
Στις 1/11/2013 7:07 μμ, ο/η Paul Simon έγραψε: If you have a list of values of the same type, but different values, you need a new table with a foreign key to the table it relates to. This is a relational database question. You can read more here: http://en.wikipedia.org/wiki/Database_normaliz

Re: Basic Python Questions - Oct. 31, 2013

2013-11-01 Thread Ethan Furman
On 11/01/2013 08:42 AM, William Ray Wing wrote: Granted, this performance is based on pulling in libraries. It imports numpy, mathplotlib, and wx to handle the fast array calculations, the plotting, and the GUI respectively, but those are exactly the sorts of "batteries included" libraries t

Re: getpeername() on stdin?

2013-11-01 Thread random832
On Thu, Oct 31, 2013, at 21:12, Nobody wrote: > On Thu, 31 Oct 2013 12:16:23 -0400, Roy Smith wrote: > > > I want to do getpeername() on stdin. I know I can do this by wrapping a > > socket object around stdin, with > > > > s = socket.fromfd(sys.stdin.fileno(), family, type) > > > > but that re

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Denis McMahon
On Thu, 31 Oct 2013 11:32:29 +0200, Nick the Gr33k wrote: > The error seen form error log is: > [Thu Oct 31 09:29:35 2013] [error] [client 46.198.103.93] > pymysql.err.InternalError: (1241, 'Operand should contain 1 column(s)') > (cID, refs, host, city, useros, browser, visits, downloads) ) I s

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Paul Simon
"Nick the Gr33k" wrote in message news:l50oo5$k05$1...@dont-email.me... > 1/11/2013 7:07 ??, ?/? Paul Simon ??: > >> If you have a list of values of the same type, but different values, >> you need a new table with a foreign key to the table it relates to. >> This is a relational databa

Re: "Backward"-Iterator - Beginners question

2013-11-01 Thread patrick vrijlandt
Chris Angelico wrote: > On Fri, Nov 1, 2013 at 9:18 PM, Ulrich Goebel wrote: >> That gives me the solution. What I have, is an iterator object comming as a >> SQLite database cursor object. So I could minimize the underliying SELECT >> and build index = list(cursor). Then with Your hints I get wh

Re: Basic Python Questions - Oct. 31, 2013

2013-11-01 Thread William Ray Wing
On Nov 1, 2013, at 2:08 PM, Ethan Furman wrote: > On 11/01/2013 08:42 AM, William Ray Wing wrote: >> >> Granted, this performance is based on pulling in libraries. It imports >> numpy, mathplotlib, and wx to handle the fast array calculations, the >> plotting, and the GUI respectively, but th

Re: Help Python 3.3

2013-11-01 Thread Mark Lawrence
On 01/11/2013 13:33, Zachary Ware wrote: On Fri, Nov 1, 2013 at 8:20 AM, wrote: error: Setup script exited with error: Unable to find vcvarsall.bat I would have to guess that you've got the wrong version of Visual C++. You can install both 2008 and 2010 in parallel, if you need 2008 for

New to using re. Search for a number before a string.

2013-11-01 Thread Captain Dunsel
I have a text file that has lines with numbers occasionally appearing right before a person's name. For example: COLLEGE:ENROLLMENT:COMPLETED EVALUATIONS:624309FUDD, ELMER where I want to search for the name "ELMER FUDD" and extract the number right in front of it "608309" when such a number a

Re: New to using re. Search for a number before a string.

2013-11-01 Thread MRAB
On 01/11/2013 21:33, Captain Dunsel wrote: I have a text file that has lines with numbers occasionally appearing right before a person's name. For example: COLLEGE:ENROLLMENT:COMPLETED EVALUATIONS:624309FUDD, ELMER where I want to search for the name "ELMER FUDD" and extract the number right

Re: Python wart

2013-11-01 Thread Peter Cacioppi
Mark said : "so I can get an extremely large pair of pliers with which I can extract my tongue from my cheek :) " OK fair enough, and my post was in the same spirit. Chris said : "Maybe, but it's supported by so many languages that it is of value. " Sure, I suppose someone should make a modul

Re: Help Python 3.3

2013-11-01 Thread Terry Reedy
On 11/1/2013 4:49 PM, Mark Lawrence wrote: On 01/11/2013 13:33, Zachary Ware wrote: On Fri, Nov 1, 2013 at 8:20 AM, wrote: error: Setup script exited with error: Unable to find vcvarsall.bat I would have to guess that you've got the wrong version of Visual C++. You can install both 2008

Re: Help Python 3.3

2013-11-01 Thread Mark Lawrence
On 01/11/2013 21:50, Terry Reedy wrote: On 11/1/2013 4:49 PM, Mark Lawrence wrote: On 01/11/2013 13:33, Zachary Ware wrote: On Fri, Nov 1, 2013 at 8:20 AM, wrote: error: Setup script exited with error: Unable to find vcvarsall.bat I would have to guess that you've got the wrong version o

Re: Python Front-end to GCC

2013-11-01 Thread Albert van der Horst
In article , Chris Kaynor wrote: >-=-=-=-=-=- >Global: > >int arr[10]; >int main() >{ > int i; > for (i = 0; i < 10; i++) { >printf("arr[%d] = %d\n", i, arr[i]); >} >printf("\n"); >return 0; >} > >As for a reference: >http://stackoverflow.com/questions/1831290/static-variable-i

Re: Python wart

2013-11-01 Thread Chris Angelico
On Sat, Nov 2, 2013 at 8:47 AM, Peter Cacioppi wrote: > I always thought printf was sort of crappy. > > I thought the C++ << business even worse. Oh, you'll get no argument from me about the std::*stream types! When I write C++ code, I almost exclusively use C-style formatted strings, even someti

ANN: 'tsshbatch' Server Automation Tool Version 1.171 Released

2013-11-01 Thread Tim Daneliuk
'tsshbatch' Version 1.171 is now released and available for download at: http://www.tundraware.com/Software/tsshbatch The last public release was 1.137. - What Is 'tsshbatch'? 'tsshbatch' is a ser

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread Nick the Gr33k
Στις 1/11/2013 9:12 μμ, ο/η Denis McMahon έγραψε: On Thu, 31 Oct 2013 11:32:29 +0200, Nick the Gr33k wrote: The error seen form error log is: [Thu Oct 31 09:29:35 2013] [error] [client 46.198.103.93] pymysql.err.InternalError: (1241, 'Operand should contain 1 column(s)') (cID, refs, host,

Re: getpeername() on stdin?

2013-11-01 Thread Roy Smith
In article , random...@fastmail.us wrote: > On Thu, Oct 31, 2013, at 21:12, Nobody wrote: > > On Thu, 31 Oct 2013 12:16:23 -0400, Roy Smith wrote: > > > > > I want to do getpeername() on stdin. I know I can do this by wrapping a > > > socket object around stdin, with > > > > > > s = socket.fro

XML python to database

2013-11-01 Thread flebber
Can anyone help me overcome a terminology and jargon barrier I am having in fully defining what tools to use to fulfil a process. I want to create a database 6 Related tables. Update information 1 or twice a week with data from an XML file that I will download, this data would update rows in 5

Re: Testing python command line apps -- Running from within the projects w/o installing

2013-11-01 Thread Ben Finney
Göktuğ Kayaalp writes: > On Fri, Nov 01, 2013 at 10:42:23AM +1100, Ben Finney wrote: > > Keep the body of “if __name__ == '__main__':” to an absolute > > minimum. Put all of the set-up and process-end functionality into > > discrete functions with discrete purposes, clear return values, and > > e

Re: Python wart

2013-11-01 Thread Peter Cacioppi
Chris said : " I almost exclusively use C-style formatted strings, even sometimes going to the extent of using fopen() just so I can use fprintf() rather than fstream. Also, I often create a class something like this: " Ditto all that, to include the special class I cooked up to handle printf

Re: Python wart

2013-11-01 Thread Chris Angelico
On Sat, Nov 2, 2013 at 12:11 PM, Peter Cacioppi wrote: > In general, I liked all the C++ additions a lot. I really liked the STL. But > I don't know what Bjarne was thinking with the streams. It does look cool on paper. You can "see" the flow of data. Everything's type-safe - unlike C's scanf fa

Re: Python wart

2013-11-01 Thread Peter Cacioppi
Chris said : "It does look cool on paper. " Sure, I'll buy that Bjarne designed something intellectually pretty that just doesn't flow very well in practice. Most of his C++ worked very well both in theory and practice, so I can forgive him one nerdy overreach, if that's what it was. Python i

Re: XML python to database

2013-11-01 Thread rusi
On Saturday, November 2, 2013 6:01:12 AM UTC+5:30, flebber wrote: > What I know and have learnt. > - Use lxml to open view and find info from nodes of an XML file > My main roadblock is the XML process, I am finding it unclear to understand > what tools and how to manage this process. > Most e

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-11-01 Thread rurpy
On 10/31/2013 11:41 PM, Steven D'Aprano wrote: > On Thu, 31 Oct 2013 21:41:32 -0700, rurpy wrote: >[...] >> Yes, on rereading you are correct, you did not say his proposition made >> no sense, you disagreed with him that "putting this exit condition on >> the top makes no sense" and claimed he had

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-11-01 Thread rurpy
On 11/01/2013 06:50 AM, Antoon Pardon wrote: > Op 01-11-13 05:41, ru...@yahoo.com schreef: >> On 10/31/2013 02:41 AM, Steven D'Aprano wrote: >> >>> I don't know whether you are deliberately lying, or whether you're just >>> such a careless reader that you have attributed words actually written by

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread rurpy
On Friday, November 1, 2013 9:04:08 AM UTC-6, Ferrous Cranus wrote: > Rurpy can you help me please solve this? > is enum or set column types what needed here as proper columns to store > 'download' list? I'd help if I could but I don't use MySql and don't know anything about its column types. Al

Re: XML python to database

2013-11-01 Thread flebber
Yes I have done the lxml search and learnt how to open view and query the file. But what is the next step in the process? To get it so that I can reliably push XML files to my database repeatedly. Looking for a basic structure or example to use to guide me for first time. Sayth -- https://mail

multiprocessing: child process race to answer

2013-11-01 Thread smhall05
I am using a basic multiprocessing snippet I found: #- from multiprocessing import Pool def f(x): return x*x if __name__ == '__main__': pool = Pool(processes=4) # start 4 worker processes result = pool.apply_async(f, [

Re: multiprocessing: child process race to answer

2013-11-01 Thread MRAB
On 02/11/2013 02:35, smhall05 wrote: I am using a basic multiprocessing snippet I found: #- from multiprocessing import Pool def f(x): return x*x if __name__ == '__main__': pool = Pool(processes=4) # start 4 worker pro

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-11-01 Thread Steven D'Aprano
On Fri, 01 Nov 2013 18:50:02 -0700, rurpy wrote: > Instead of endlessly repeating your misrepresentation charges along with > exaggerations like "nothing of the sort", why don't you for once > actually say how my paraphrase differs materially in meaning from what > was said? I have directly addre

Re: XML python to database

2013-11-01 Thread rusi
On Saturday, November 2, 2013 7:31:20 AM UTC+5:30, flebber wrote: > Yes I have done the lxml search and learnt how to open view and query the > file. > But what is the next step in the process? To get it so that I can reliably > push XML files to my database repeatedly. > Looking for a basic stru

Re: multiprocessing: child process race to answer

2013-11-01 Thread smhall05
On Friday, November 1, 2013 10:52:40 PM UTC-4, MRAB wrote: > On 02/11/2013 02:35, smhall05 wrote: > > > I am using a basic multiprocessing snippet I found: > > > > > > #- > > > from multiprocessing import Pool > > > > > > def f(x): > > >