Earn 25 US$ in just 5 minutes . . .

2008-06-21 Thread Sushmeeta
Earn 25 US$ in just 5 minutes . . . You can earn 25 US$ in just 5mins from now, please follow the simple steps: It's absolutely free to join. Step 01 CLICK HERE (both, one by one) http://www.awsurveys.com/HomeMain.cfm?RefID=sonub1001 http://www.AWSurveys.com/HomeMain.cfm?RefID=hello.sucho A pag

you can see lots of beautiful girls here, also you can see......

2008-06-21 Thread nokia
http://www.flixya.com/photo/360355/beautiful_ -- http://mail.python.org/mailman/listinfo/python-list

you can see lots of beautiful girl here, also you can see......

2008-06-21 Thread nokia
http://www.flixya.com/photo/360355/beautiful_ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to convert a ">" into a >

2008-06-21 Thread Tim Roberts
dominique <[EMAIL PROTECTED]> wrote: >On Jun 21, 1:37 pm, John Machin <[EMAIL PROTECTED]> wrote: >> >> Look at the operator module. In your above example: >> >> return { >>'>': operator.gt, >>'=': operator.eq, >>'<': operator.lt, >>}[variable] > >Thanks a lot John >Dominique Yes,

Re: Ryhm�n sfnet.tietoliikenne.yhteydentarjoajat virallinen kuvaus

2008-06-21 Thread Atrophier Bigarr�s
MTV 3. 07.06.2008. "Norjassa tuulivoima myötätuulessa. Norjan energiatarpeista PUOLET voidaan kattaa tuulivoimalla, kun nykysuunnitelmat toteutetaan! Kaiken kaikkiaan 130 tuulivoimalapuistohanketta on haettu rakennuslupaa Norjan energiavirastolta. Jos kaikille halukkaille myönnetään lupa energ

Re: Re: Connecting a Desktop App to a Web App

2008-06-21 Thread Daniel Fetchinson
> Okay, well I wouldn't be creating the app, so, any hints on how to > figure out the API of a web app I don't know super well? Is it something like google, youtube, facebook, etc? These have publicly available API specifications. If it's just a random website without a well maintained public API

Re: Buffer size when receiving data through a socket?

2008-06-21 Thread John Salerno
Dennis Lee Bieber wrote: On Wed, 18 Jun 2008 09:56:29 -0400, "John Salerno" <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: Interesting point. I'm not sure if it works that way though. I *think* I tried sending an empty string from the server back to the client, and as expecte

Re: Re: Connecting a Desktop App to a Web App

2008-06-21 Thread Alex Bryan
Okay, well I wouldn't be creating the app, so, any hints on how to figure out the API of a web app I don't know super well? -- http://mail.python.org/mailman/listinfo/python-list

Re: Learning Python: Code critique please

2008-06-21 Thread macoovacany
http://macoovacany.wordpress.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Connecting a Desktop App to a Web App

2008-06-21 Thread Daniel Fetchinson
> Okay, this is my first post to this mailing list, so first off if I > shouldn't be sending something here, PLEASE correct me. Okay, so I > want to create an app that has a GUI (most likely Tkinter) and will > prompt the user to choose files and such and then will upload those > files, either regu

Connecting a Desktop App to a Web App

2008-06-21 Thread Alex Bryan
Okay, this is my first post to this mailing list, so first off if I shouldn't be sending something here, PLEASE correct me. Okay, so I want to create an app that has a GUI (most likely Tkinter) and will prompt the user to choose files and such and then will upload those files, either regula

Re: Unbuffered stdout/auto-flush

2008-06-21 Thread s0suk3
On Jun 21, 12:29 pm, Yang Zhang <[EMAIL PROTECTED]> wrote: > Hi, is there any way to get unbuffered stdout/stderr without relying on > the -u flag to python or calling .flush() on each print (including > indirect hacks like replacing sys.stdout with a wrapper that succeeds > each write() with a flu

flock seems very unsafe, python fcntl bug?

2008-06-21 Thread xucs007
I ran following 2 programs (lock1, lock2) at almost same time, to write either "123456", or "222" to file "aaa" at the same time. But I often just got "222456" in "aaa" . Is this a bug of python fcntl module ? See 2 programs I ran: #!/usr/bin/env python import fcntl, time file = open('aaa', "w"

Re: My n00bie brain hurts after "Python setup.py install".

2008-06-21 Thread John Machin
On Jun 22, 9:05 am, [EMAIL PROTECTED] wrote: > I downloaded Mark Pilgrims's feedparser.py in a zipfile to my Windows > machine, unzipped it and tried to install it to no avail. > > Here is the result => > > C:\>python c:\scripts\feedparser-4.1\setup.py install The convention is to run setup.py fro

Python doc problem example: gzip module (reprise)

2008-06-21 Thread Byron Rios
>>> fileToCompress = open('finalcallejon.mb') >>> fileToStr = fileToCompress.read() >>> import gzip >>> fileZipped = gzip.GzipFile('finalcallejon.mb.gz', 'wb', 9) >>> fileZipped.write(fileToStr) >>> fileZipped.close() this may help you in http://mail.python.org/pipermail/python-list/2005-November

Re: Fast and easy GUI prototyping with Python

2008-06-21 Thread Michael Torrie
[EMAIL PROTECTED] wrote: > 2) The Qt vs. .NET API. I have no experience with Qt's API and a > rudimentary experience with the .NET API (seems powerfull but also big > and complex). Qt's API is very very good. Easy to use and extremely powerful. Note that in Python a number of Qt's APIs are not u

Re: trying to find a substring in a string

2008-06-21 Thread Terry Reedy
[EMAIL PROTECTED] wrote: I'm trying to write what should be a simple script in Python, which I've never ever used before. Essentially, I have a text file that has a list of full path file names to other files, separated by carriage returns. Contents of first file: c:\blah.txt c:\blah1.txt c:\b

My n00bie brain hurts after "Python setup.py install".

2008-06-21 Thread bsagert
I downloaded Mark Pilgrims's feedparser.py in a zipfile to my Windows machine, unzipped it and tried to install it to no avail. Here is the result => C:\>python c:\scripts\feedparser-4.1\setup.py install running install running build running build_py file feedparser.py (for module feedparser) not

trying to find a substring in a string

2008-06-21 Thread barnacle . steve
I'm trying to write what should be a simple script in Python, which I've never ever used before. Essentially, I have a text file that has a list of full path file names to other files, separated by carriage returns. Contents of first file: c:\blah.txt c:\blah1.txt c:\blah2.txt The goal is for the

Re: Way to unblock sys.stdin.readline() call

2008-06-21 Thread Terry Reedy
joamag wrote: Is there any possible way to unblock the sys.stdin.readline() call from a different thread. If you want the thread to do something 'else' when no input is available, would this work? Put readline in a thread that puts lines in a q=queue.Quese(). Then try: l=q.ge_nowait

Re: Sqlite3 textfactory and user-defined function

2008-06-21 Thread Gerhard Häring
[EMAIL PROTECTED] wrote: > I've run into a problem with text encoding in the Sqlite3 module. I > think it may be a bug. By default sqlite3 converts strings in the > database from UTF-8 to unicode. This conversion can be controlled by > changing the connection's text_factory. > > I have a databa

Re: Way to unblock sys.stdin.readline() call

2008-06-21 Thread Jean-Paul Calderone
On Sat, 21 Jun 2008 12:35:02 -0700 (PDT), joamag <[EMAIL PROTECTED]> wrote: On Jun 21, 4:46 pm, Cédric Lucantis <[EMAIL PROTECTED]> wrote: Le Saturday 21 June 2008 15:26:53 joamag, vous avez écrit : > HI, > Is there any possible way to unblock the sys.stdin.readline() call > from a different t

Re: Fast and easy GUI prototyping with Python

2008-06-21 Thread Fuzzyman
On Jun 21, 6:15 pm, [EMAIL PROTECTED] wrote: > Thanks for your input. The prototype will be running on Windows only. > Portability  and being able to develop on other platforms would be a > bonus, but is not a requirement. I guess the choice is going to be > between Visual Studio and Qt. Of importa

Re: Getting column names from a cursor using ODBC module?

2008-06-21 Thread Chris
On Jun 21, 3:58 pm, [EMAIL PROTECTED] wrote: > Is there any way to retrieve column names from a cursor using the ODBC > module? Or must I, in advance, create a dictionary of column position > and column names for a particular table before I can access column > values by column names? I'd prefer sti

Re: String Concatenation O(n^2) (was: Re: Explaining Implementing a Binary Search Tree.)

2008-06-21 Thread Bart Kastermans
On Jun 17, 1:01 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 16 Jun 2008 07:34:06 -0300, Bart Kastermans <[EMAIL PROTECTED]> > escribió: > > > Summary: can't verify big O claim, how to properly time this? > > > This is interesting.  I had never attempted to verify a big O > > state

Re: Welho luopunut TF-boxin markkinoinnista.

2008-06-21 Thread Aleksi Krause
01.05.2008 Jää historian kirjoihin erityispäivämääränä josta alkaa ydinalan vaikeudet kasautumaan aivan erityisesti myös Suomessa. Jo siitä asti kun puollisentoista vuotta sitten Krister Fuuglesangin NASA:n avaruusionisaatioraportin tiedot maapalloa kohtaavasta vääjäämättömästä ydinvoimapäästöjen m

Re: Way to unblock sys.stdin.readline() call

2008-06-21 Thread joamag
On Jun 21, 4:46 pm, Cédric Lucantis <[EMAIL PROTECTED]> wrote: > Le Saturday 21 June 2008 15:26:53 joamag, vous avez écrit : > > > HI, > > > Is there any possible way to unblock the sys.stdin.readline() call > > from a different thread. > > Something like sys.stdin.write() but that would actually w

passing control to other window

2008-06-21 Thread varun chadha
i am trying to develop a application using Tkinter in which a new window pops out on a particular button press.though i can pass control automatically to that window using .force_focus() method and disabling all my widgets in previous window but the technique is not so clean. for eg. when u click '

SSL

2008-06-21 Thread Ricardo Tiago
Hi, Is it possible to access a https site using a certificate and keeping the session alive like it happens in the browsers? I'm doing a command line app that needs to access a https site to retrieve information but using the httplib, each time i make a request it asks for the pem pass phrase. T

Unbuffered stdout/auto-flush

2008-06-21 Thread Yang Zhang
Hi, is there any way to get unbuffered stdout/stderr without relying on the -u flag to python or calling .flush() on each print (including indirect hacks like replacing sys.stdout with a wrapper that succeeds each write() with a flush())? Thanks in advance! -- Yang Zhang http://www.mit.edu/~y_

install py2exe in vista

2008-06-21 Thread Herman
I want to install it in vista, but i get this message in the process: could not create... py2exe-py2.5 I press 'OK', then.. could not set key value python 2.5 py2exe-0.6.8 I press 'OK' again, then... could not set key value c:\Python25\Removepy2e

Re: Fast and easy GUI prototyping with Python

2008-06-21 Thread erokar
Thanks for your input. The prototype will be running on Windows only. Portability and being able to develop on other platforms would be a bonus, but is not a requirement. I guess the choice is going to be between Visual Studio and Qt. Of importance is: 1) Being able to develop and change (dummy)

Re: Strange re problem

2008-06-21 Thread TYR
On Jun 20, 3:35 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Jun 20, 6:01 am, TYR <[EMAIL PROTECTED]> wrote: Thank you very much. This pyparsing module looks damned useful. -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib (54, 'Connection reset by peer') error

2008-06-21 Thread John Nagle
Tim Golden wrote: [EMAIL PROTECTED] wrote: Thanks for the help. The error handling worked to a certain extent but after a while the server does seem to stop responding to my requests. I have a list of about 7,000 links to pages I want to parse the HTML of (it's basically a web crawler) but aft

Re: Fast and easy GUI prototyping with Python

2008-06-21 Thread Fuzzyman
On Jun 21, 1:36 pm, [EMAIL PROTECTED] wrote: > Which tools would you use? I want the interface design to be as easy > and fast as possible, all ideology aside. I'm considering > eitherIronPython+Visual Studio or Python+Qt -- but I'm open for other > suggestions. > > Visual Studio seems to offer th

Re: Python "is" behavior

2008-06-21 Thread Martin v. Löwis
> For some reason, stacking multiple statements reuses the same object. Each code object has a co_consts tuple referring to all constants used in the code. The compiler interns duplicate constants for a single compiler run, resulting in the same object being used when the code is put into a single

Re: Way to unblock sys.stdin.readline() call

2008-06-21 Thread Cédric Lucantis
Le Saturday 21 June 2008 15:26:53 joamag, vous avez écrit : > HI, > > Is there any possible way to unblock the sys.stdin.readline() call > from a different thread. > Something like sys.stdin.write() but that would actually work ... > something to put characters in the stdin... > Do you mean settin

mod_wsgi vs mod_python interfaces

2008-06-21 Thread Pau Freixes
Hi list, I remember red into this list that mod_wsgi is more faster than mod_python. Why ? WSIG it's only a true specification for deploy and performance Python applications running into web servers, mod python it's like mod wsgi but it's only a not official specification between Apache and Pytho

Re: optparse functionality missing

2008-06-21 Thread Mark Wooding
Jeff Keasler <[EMAIL PROTECTED]> wrote: > In a scripting environment, I often want to strip some of the command > line options off the argument list, and then pass the remaining > options to another module that is deeper in the tool chain. The difficulty is that you can't do an accurate parse wit

Re: advanced listcomprehenions?

2008-06-21 Thread Mark Wooding
Terry Reedy <[EMAIL PROTECTED]> wrote: > The lookup table is a constant. If made a tuple, it will be compiled as > a constant (as least in 2.6, maybe 2.5). Force of habit. I tend to work on lists by indexing and/or iterating, and on tuples by destructuring, and choose types based on the kind

Re: An idiom for code generation with exec

2008-06-21 Thread George Sakkis
On Jun 21, 9:40 am, eliben <[EMAIL PROTECTED]> wrote: > > > I see. In my case I only evaluate function definitions with 'exec', so > > > I only need to de-indent the first line, and the others can be > > > indented because they're in a new scope anyway. What you suggest works > > > for arbitrary c

Re: Fast and easy GUI prototyping with Python

2008-06-21 Thread Val-Amart
On 21 июн, 15:36, [EMAIL PROTECTED] wrote: > Which tools would you use? I want the interface design to be as easy > and fast as possible, all ideology aside. I'm considering either > IronPython+Visual Studio or Python+Qt -- but I'm open for other > suggestions. > > Visual Studio seems to offer the

Re: Getting column names from a cursor using ODBC module?

2008-06-21 Thread John Machin
On Jun 22, 12:19 am, John Machin <[EMAIL PROTECTED]> wrote: > On Jun 21, 11:58 pm, [EMAIL PROTECTED] wrote: > > > Is there any way to retrieve column names from a cursor using the ODBC > > module? Or must I, in advance, create a dictionary of column position > > and column names for a particular ta

Re: Getting column names from a cursor using ODBC module?

2008-06-21 Thread John Machin
On Jun 21, 11:58 pm, [EMAIL PROTECTED] wrote: > Is there any way to retrieve column names from a cursor using the ODBC > module? Or must I, in advance, create a dictionary of column position > and column names for a particular table before I can access column > values by column names? I'd prefer st

Re: Getting column names from a cursor using ODBC module?

2008-06-21 Thread John Machin
On Jun 21, 11:58 pm, [EMAIL PROTECTED] wrote: > Is there any way to retrieve column names from a cursor using the ODBC > module? Or must I, in advance, create a dictionary of column position > and column names for a particular table before I can access column > values by column names? I'd prefer st

sys.settrace 'call' event behavior

2008-06-21 Thread Michal Kwiatkowski
I'm building a tool to trace all function calls using sys.settrace function from the standard library. One of the awkward behaviors of this facility is that the class definitions are reported as 'call' events.[1] Since I don't want to catch class definitions, only function calls, I'm looking for a

Getting column names from a cursor using ODBC module?

2008-06-21 Thread dananrg
Is there any way to retrieve column names from a cursor using the ODBC module? Or must I, in advance, create a dictionary of column position and column names for a particular table before I can access column values by column names? I'd prefer sticking with the ODBC module for now because it comes s

Re: Fast and easy GUI prototyping with Python

2008-06-21 Thread eliben
On Jun 21, 3:36 pm, [EMAIL PROTECTED] wrote: > Which tools would you use? I want the interface design to be as easy > and fast as possible, all ideology aside. I'm considering either > IronPython+Visual Studio or Python+Qt -- but I'm open for other > suggestions. > > Visual Studio seems to offer th

Re: An idiom for code generation with exec

2008-06-21 Thread eliben
> > I see. In my case I only evaluate function definitions with 'exec', so > > I only need to de-indent the first line, and the others can be > > indented because they're in a new scope anyway. What you suggest works > > for arbitrary code and not only function definitions. It's a nice > > trick wi

Way to unblock sys.stdin.readline() call

2008-06-21 Thread joamag
HI, Is there any possible way to unblock the sys.stdin.readline() call from a different thread. Something like sys.stdin.write() but that would actually work ... something to put characters in the stdin... Thanks in advance, João -- http://mail.python.org/mailman/listinfo/python-list

Re: How to convert a ">" into a >

2008-06-21 Thread dominique
On Jun 21, 1:37 pm, John Machin <[EMAIL PROTECTED]> wrote: > > Look at the operator module. In your above example: > > return { >'>': operator.gt, >'=': operator.eq, >'<': operator.lt, >}[variable] > > Cheers, > John Thanks a lot John Dominique -- http://mail.python.org/mailman/lis

Re: Fast and easy GUI prototyping with Python

2008-06-21 Thread Sebastian "lunar" Wiesner
[EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Which tools would you use? I want the interface design to be as easy > and fast as possible, all ideology aside. I'm considering either > IronPython+Visual Studio or Python+Qt -- but I'm open for other > suggestions. I'm using the latter, and am perfectly

Re: An idiom for code generation with exec

2008-06-21 Thread Lie
On Jun 21, 2:02 pm, eliben <[EMAIL PROTECTED]> wrote: > On Jun 21, 8:52 am, Peter Otten <[EMAIL PROTECTED]> wrote: > > > > > eliben wrote: > > > On Jun 20, 2:44 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > > >> eliben wrote: > > >> > Additionally, I've found indentation to be a problem in such > >

Fast and easy GUI prototyping with Python

2008-06-21 Thread erokar
Which tools would you use? I want the interface design to be as easy and fast as possible, all ideology aside. I'm considering either IronPython+Visual Studio or Python+Qt -- but I'm open for other suggestions. Visual Studio seems to offer the easiest solution, but is IronPython stable enough? How

some jordan shoes and something for wholesale

2008-06-21 Thread tom
would you want to buy cheap something?welcome to www.wholenikee.cn -- http://mail.python.org/mailman/listinfo/python-list

some jordan shoes and something for wholesale

2008-06-21 Thread jim
would you want to buy cheap something?welcome to www.wholenikee.cn -- http://mail.python.org/mailman/listinfo/python-list

Re: Rytk�sen l�ht�oletukset kaatuneet fotonien energiaan liittyvien rtistiriitaisuuksien vuoksi?

2008-06-21 Thread Santeri Friman
Oli taas härski vedätys ydinalaltamme. Eli ei antanut Kalli julkisuuteen edes sitä laajasti tunnettua faktaa, että hänen mm. 60v juhlat järjesti, kas kummaa TVO! Olisi toimittajilta kyllä ollut minimi vaatia edes näin räikeää faktaa esille. Mutta kuten olemme saaneet tottua ydinhallinno

Re: How to convert a ">" into a >

2008-06-21 Thread John Machin
On Jun 21, 9:17 pm, dominique <[EMAIL PROTECTED]> wrote: > Hello All, > > In a wx GUI, I would like to let the user choose between >, < or =. > So, I created a combobox and when the user chooses ">" for instance, I > wanted to return > (the objective is to send the operator into another > complex

How to convert a ">" into a >

2008-06-21 Thread dominique
Hello All, In a wx GUI, I would like to let the user choose between >, < or =. So, I created a combobox and when the user chooses ">" for instance, I wanted to return > (the objective is to send the operator into another complex method): Example: if variable == ">": return > But this is invalid

exec with custom dict

2008-06-21 Thread Anand
Hi, I am trying to use exec with custom dict. I am trying to print the value of variable x in 2 places. It is printing it at the first place and failing at the second place. class Env(dict): def __getitem__(self, key): return self.get(key, key) code = """ print x def f(): return x "

earn money from Blogs

2008-06-21 Thread Katreena
Hello friends.., Welcome to the world of Information Technology,Enjoy the fragrance of Modern Life style&Make ur Living more comfortable than everbefore! Earn Millions of Dollars legal Income With Little Efforts In ur Spare time! Success usually comes to those who are too busy to be looking for

Re: Python "is" behavior

2008-06-21 Thread Lie
On Jun 21, 2:14 am, Gary Herron <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Jun 20, 9:38 am, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > > >> On Fri, 20 Jun 2008 09:31:57 -0700 (PDT), [EMAIL PROTECTED] wrote: > > >>> I am not certain why this is the case, but... > > >> a =

Re: Weird local variables behaviors

2008-06-21 Thread Sebastjan Trepca
I see, intuitively one would think it would try to get it from global context as it's not yet bound in the local. Thanks for the explanation. Sebastjan On Sat, Jun 21, 2008 at 5:48 AM, Dan Bishop <[EMAIL PROTECTED]> wrote: > On Jun 20, 7:32 pm, Matt Nordhoff <[EMAIL PROTECTED]> wrote: >> Sebast

Re: An idiom for code generation with exec

2008-06-21 Thread eliben
On Jun 21, 8:52 am, Peter Otten <[EMAIL PROTECTED]> wrote: > eliben wrote: > > On Jun 20, 2:44 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > >> eliben wrote: > >> > Additionally, I've found indentation to be a problem in such > >> > constructs. Is there a workable way to indent the code at the level

Re: An idiom for code generation with exec

2008-06-21 Thread Peter Otten
eliben wrote: > On Jun 20, 2:44 pm, Peter Otten <[EMAIL PROTECTED]> wrote: >> eliben wrote: >> > Additionally, I've found indentation to be a problem in such >> > constructs. Is there a workable way to indent the code at the level of >> > build_func, and not on column 0 ? >> >> exec"if 1:" + code.