Re: multiprocessing and Locks

2009-04-12 Thread gvv
On Apr 13, 3:30 am, Piet van Oostrum wrote: > > gvv (G) wrote: > >G> Hi All, > >G> I am trying to understand multiprocessing, but I am getting a Runtime > >G> error on the > >G> code below. What am I missing or doing wrong? > >G> Error is: > >G> RuntimeError: Lock objects should only be share

download robot

2009-04-12 Thread larryzhang
Hi, Being a newbie for Python, I am trying to write a code that can act as a downloading robot. The website provides information for companies. Manually, I can search by company name and then click the “download” button to get the data in excel or word format, before saving the file in a local dir

Re: Definition of Pythonic?

2009-04-12 Thread Gabriel Genellina
En Sun, 12 Apr 2009 08:16:19 -0300, Lawrence D'Oliveiro escribió: Pythonic--an acid, capable of reacting with bases to form pythanates? Would it be an organic or inorganic acid? Deprive it of a bit of oxygen, and it becomes pythonous, reacting to form pythonites. What do you mean, the fume

HTML Conversion in python

2009-04-12 Thread venutaurus...@gmail.com
Hello All, Is there any library defined in Python which can convert a given text file into a html page. Basically, I require functions for creating tables or filling background colours for the html pages etc instead of writing each and every tag in my script.. Thank you, Venu Madhav. -

Re: a newbie question

2009-04-12 Thread larryzhang
On Apr 12, 11:01 pm, Peter Otten <__pete...@web.de> wrote: > zhangle2...@gmail.com wrote: > > I am just learning Python and get a problem when trying this example: > > > from urllib import urlopen > > doc=urlopen("http://www.python.org";).read() > > print(doc) > > > when i run this, i was tould tha

Re: GUI Programming

2009-04-12 Thread Gabriel Genellina
En Sun, 12 Apr 2009 19:28:18 -0300, Python escribió: On 12 apr 2009, at 15:07, Gabriel wrote: I'm python newbie and i need to write gui for my school work in python. I need to write it really quick, because i haven't much time .) I chose wxpython because of it's excellent crossplatform comp

Re: OverflowError while sending large file via socket

2009-04-12 Thread Gabriel Genellina
En Sun, 12 Apr 2009 19:28:43 -0300, > escribió: Ryniek90 writes: When i wanted to send an .iso file of 4GB length, i had traceback: "OverflowError: requested number of bytes is more than a Python string can hold" You're not supposed to put the 4GB all in one string. Open the socket and sen

Re: choosing background color in tkfiledialog.askopenfile()

2009-04-12 Thread Gabriel Genellina
En Sun, 12 Apr 2009 22:05:21 -0300, Soumen banerjee escribió: I want to know how i can choose a background color in tkfiledialog.askopenfilename()? Due to a certain theme i am using, i cant see any text and changing the theme settings dont seem to affect the file dialog Looks like a bug in

Re: Regular Expression Help

2009-04-12 Thread Graham Breed
Jean-Claude Neveu wrote: Hello, I was wondering if someone could tell me where I'm going wrong with my regular expression. I'm trying to write a regexp that identifies whether a string contains a correctly-formatted currency amount. I want to support dollars, UK pounds and Euros, but the exam

Re: HTML Conversion in python

2009-04-12 Thread Gabriel Genellina
En Mon, 13 Apr 2009 02:47:30 -0300, venutaurus...@gmail.com escribió: Is there any library defined in Python which can convert a given text file into a html page. Basically, I require functions for creating tables or filling background colours for the html pages etc instead of wri

Re: Generators/iterators, Pythonicity, and primes

2009-04-12 Thread Arnaud Delobelle
Duncan Booth writes: > Duncan Booth wrote: > >> John Posner wrote: >> >>> Do know what in the itertools implementation causes adding a 'if p <= >>> sqrt(n)' clause to *decrease* performance, while adding a >>> 'takewhile()' clause *increases* performance? >> >> I haven't timed it, but I woul

<    1   2