is a file open ?

2005-07-20 Thread luis
for root, dirs, files in os.walk(path): for file in files: # ¿ is opened ? Best regards Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: is a file open ?

2005-07-21 Thread luis
John Machin wrote: > Daniel Dittmar wrote: > >> luis wrote: >> >>> for root, dirs, files in os.walk(path): >>>for file in files: >>> # ¿ is opened ? >> >> >> >> On Linux and some other Unixes, you can probably rea

Re: is a file open ?

2005-07-21 Thread luis
John Machin wrote: > Daniel Dittmar wrote: > >> luis wrote: >> >>> for root, dirs, files in os.walk(path): >>>for file in files: >>> # ¿ is opened ? >> >> >> >> On Linux and some other Unixes, you can probably rea

dislin titlin and string decode

2007-05-19 Thread luis
Hello! I have an unespectedn result with dislin titlin dislin.metafl ('WMF') dislin.disini () a="Andrés or Ramón" dislin.titlin (a.encode("Latin-1"), 1) # not error raised, is ok dislin.disfin () In the output file all is ok but the title is Andr s or Ram n Thanks in advance! --

Re: dislin titlin and string decode

2007-05-19 Thread luis
the code is: #!/usr/bin/env python def try_dislin(): ...import dislin ...dislin.metafl ('WMF') ...dislin.errdev ('FILE') ...dislin.disini () ...dislin.errmod('PROTOCOL','ON') ...dislin.hwfont () ...dislin.pagera () ...dislin.pagfll (255) ...dislin.color('BLACK') ...dislin.axspos (500, 1600) ...d

Re: dislin titlin and string decode

2007-05-19 Thread luis
On 19 mayo, 12:56, luis <[EMAIL PROTECTED]> wrote: > Hello! > > I have an unespectedn result with dislin titlin > > dislin.metafl ('WMF') > dislin.disini () > > > a="Andrés or Ramón" > dislin.titlin (a.encode("Latin-1"), 1)

ctypes: error passing a list of str to a fortran dll

2007-06-04 Thread luis
I'm using ctypes to call a fortran dll from python. I have no problems passing integer and double arryas, but I have an error with str arrys. For example: StringVector = c_char_p * len(id) # id is a list of strings Id_dat=StringVector() for i in range(len(Id)): ...Id_dat[i]=id[i] n=c_int(le

conecting with a MsAcces DB by dao

2006-06-29 Thread luis
rks fine and return a no empty recordset, but with others mdb files, the recordsets are void (opening the tables or recorsets with Ms Access are not void). Some help is welcome, Thanks in advance Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: conecting with a MsAcces DB by dao

2006-06-30 Thread luis
Iain King ha escrito: > luis wrote: > > Hi > > I'm using activestate python 2.4 on win xp 2 ed. and Ms Access 2002 > > (reading first http://starship.python.net/crew/bwilk/access.html) > > I have writed the following code > > > > def append_fro

Re: conecting with a MsAcces DB by dao

2006-06-30 Thread luis
Iain King ha escrito: > luis wrote: > > Iain King ha escrito: > > > > > luis wrote: > > > > while not rs.EOF: > > > > id=rs.Fields(colName.Value) #colName, valid column name > > > > ... > > > &g

Re: conecting with a MsAcces DB by dao

2006-07-03 Thread luis
Iain King ha escrito: > luis wrote: > > Iain King ha escrito: > > > > > luis wrote: > > > > Iain King ha escrito: > > > > > > > > > luis wrote: > > > > > > while not rs.

Re: logging as root using python script

2005-04-07 Thread Luis Bruno
sudo(8) to not prompt for any password, BTW. Cheers! -- Luis Bruno -- http://mail.python.org/mailman/listinfo/python-list

Re: logging as root using python script

2005-04-07 Thread Luis Bruno
Martin Franklin wrote: > another alternative would be setuid I also thought about making the script setuid root, but I'm under the impression that Linux (at least) won't honor the suid bit on a script. That's from memory though. Cheers! -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get function names from the file

2006-02-15 Thread luis . armendariz
Try the following: def printFoo(): print "Foo" def printFOO(): print "FOO" functions = ("printFoo", "printFOO")# list or tuple of strings from file, or wherever for function in functions: call = function + "()" eval(call) -- http://mail.python.org/mailman/listinfo/python-li

Re: multiple inheritance

2006-02-15 Thread luis . armendariz
Hi Thomas, When an object is created, the __init__ function will be called. Since you didn't define it in Foobar, the search path finds the __init__ function in Foo, so that's the one that is called. The second __init__ in Bar is masked since it comes second in the inheritance list.. If you want

Re: Attached images by plain email.

2006-02-15 Thread luis . armendariz
Hi Gaz, Perhaps this will help? http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52243 -- http://mail.python.org/mailman/listinfo/python-list

Re: how to clear up a List in python?

2006-05-26 Thread Luis Armendariz
ve skipped the consequent statement when reading his response. Why get so upset about something that didn't even apply to you? :-) -Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: hide python window

2006-05-26 Thread Luis Armendariz
exe instead of python.exe). -Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: ping

2006-04-14 Thread Luis Armendariz
C4650> > http://www.espn.com/> > ', mode 'r' at 0x009C4650> > http://www.redsox.com/> > ', mode 'r' at 0x009C4650> > > instead of giving me the ping stats "pinging etc etc, packets sent 4 > recienved 4 etc) > > Any idea aro

Re: How to depress the output of an external module ?

2006-12-26 Thread Luis Armendariz
try: > result = function(*args, **kwargs) > finally: > # don't forget to restore stdout, or you > # really will regret it... > sys.stdout = savestdout > return result > There's no need for savestdout. There's a backup copy

Re: A problem from a Vim user

2006-08-07 Thread Luis Armendariz
when reading a line. Is there a way to use > that command within vim without raising errors? > > Thanks a lot. > You should read :help python-input On my version (Vim 7.0.17), it says that input() and raw_input() are not yet supported. So, submit a patch to the vim folks! -Luis -

rare error with python at execution

2006-07-06 Thread Luis Morales
I was trying the win32api to gather some system information.   But now I get this error everytime I run a script and I have no idea. It can be a simple print ‘hello’ that it wont work   This is the error I get   'import site' failed; use -v for traceback Traceback (most recent call l

wx mouse states

2006-07-17 Thread Luis Morales
Hello i using GetMouseState() to get the position in X and Y of the mouse pointer over time with the use of ScreenToCliente to get local windows coordinates in windows in work like a charm no problem the app is fast and works how it should. But on macos I get this damn error msg   ms = wx

IMAP4 search with special characters

2006-07-21 Thread Luis Corrales
# here I get the error "can't decode byte 0xf6 in position 10" conn.search('ISO-8859-1', '(BODY Lemböckgasse)'.encode('ISO-8859-1')) And so on. Does anybody have the remotest idea what I'm doing wrong and how I could find my e-mail? Thanks in advance, Luis Corrales -- http://mail.python.org/mailman/listinfo/python-list

Python 2.3.5 ?

2004-12-07 Thread Luis M. Gonzalez
I'm confussed... Python 2.4 (final) hs been released a few days ago, but now I see that Python 2.3.5 is being worked on. Why? What does it mean? -- http://mail.python.org/mailman/listinfo/python-list

Python 2.3.5 ?

2004-12-07 Thread Luis M. Gonzalez
I'm confussed... Python 2.4 (final) hs been released a few days ago, but now I see that Python 2.3.5 is being worked on. Why? What does it mean? -- http://mail.python.org/mailman/listinfo/python-list

Re: from vb6 to Python

2004-12-11 Thread Luis M. Gonzalez
MarcoL wrote: > Hello, > I am a VB6 programmer and I would like to learn a new high level > language (instead of restarting from scratch with .NET... I'd like to add that by going with Python, you'll also be able to develop for .NET. Check this out: www.ironpython.com . Since the developmen

Re: from vb6 to Python

2004-12-12 Thread Luis M. Gonzalez
Martijn Faassen wrote: > Unfortunately this is currently not near production use, and whether > Microsoft is funding IronPython development is up in the air: It's true that he Ironpython's mailing list is a little bit innactive, but this is just because there's only one person in charge of Ironpy

Re: Python mascot proposal

2004-12-12 Thread Luis M. Gonzalez
Hey Dimitri, I completely agree with you in that Python needs once for all a cool logo. I like your design very much, but I have a few thoughts about it: 1) I think that Python's logo should reflect its power. If we use a mascot as its image, we would be giving the wrong idea: that Python is a "t

Re: do you master list comprehensions?

2004-12-13 Thread Luis M. Gonzalez
I guess the simplest way to do it is like this: >>> data = [['foo','bar','baz'],['my','your'],['holy','grail']] >>> result=[w for d in data for w in d] >>> result ['foo', 'bar', 'baz', 'my', 'your', 'holy', 'grail'] >>> -- http://mail.python.org/mailman/listinfo/python-list

Re: do you master list comprehensions?

2004-12-13 Thread Luis M. Gonzalez
I guess the simplest to do it is like this: >>> data = [['foo','bar','baz'],['my','your'],['holy','grail']] >>> result=[w for d in data for w in d] >>> result ['foo', 'bar', 'baz', 'my', 'your', 'holy', 'grail'] >>> -- http://mail.python.org/mailman/listinfo/python-list

Re: Python mascot proposal

2004-12-16 Thread Luis M. Gonzalez
> > But before pushing forward any particular design, maybe it will make > > sense to make some sort of official logo contest on Python's main > > website and post it on /. ? > I was waiting for someone to propose that :-) I'm new to this list and Python in general, but I think that this sort of t

Re: Best book on Python?

2004-12-16 Thread Luis M. Gonzalez
This is a very good introduction online: www.g2swaroop.net/byte-of-python I also suggest: - Learning Python 2nd Ed. - Core Python You can also try these online resources: - Dive into Python - Thinking in Python -- http://mail.python.org/mailman/listinfo/python-list

Re: Python mascot proposal

2004-12-16 Thread Luis M. Gonzalez
Stephan, Since you're one of the directors of the Python Software Foundation, could you let them know about this discussion in order to get their approval? If they agree, maybe you can tell us where and how to held the contest. Just one thought: I think that it would be good to not determine a de

Re: Boo who? (was Re: newbie question)

2004-12-19 Thread Luis M. Gonzalez
> Why? If it's virtually identical, why would anyone bother even > visiting that site? ;-) > > But I suspect you mean that the syntax of the language is virtually > identical, while probably there are some significant differences. > Maybe in the richness of its standard library? Or the size of

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Luis M. Gonzalez
Peter Hansen wrote: > And given that Boo is *not* virtually identical to Python*, > pointing it out to a self-proclaimed newbie with a question > about enums seems like nothing more than an ill-chosen > moment to do a little proselytizing. Why not just start > a thread about Boo and point it out

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Luis M. Gonzalez
ace, but I think it's time to point out some limits to those who act as self-entitled moderators. Being a moderator is ok, but not being a bouncer. Regards, Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Luis M. Gonzalez
ded someone, please accept my most sincere apologies. Regards, Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Luis M. Gonzalez
ith a python-like syntax. As for the first ones, there's no reason to bash this project gratuitelly. It is as important and "python related" as other projects such as PyPy, Stackless, Prothon, etc... I encourage everyone to give it a try, and if still you're not convinced,

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Luis M. Gonzalez
Terry Reedy wrote: > > [gratuitously] I agree with this... > well, my english is bad. I know! > > but I think this is silly. PyPy is an alternate implementation of Python, > not a different language. Stackless is a compiled extension, like many > others, that works with the standard implementat

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Luis M. Gonzalez
I agree with you, and I don't understand why so many people insist in "banning" the word "Boo" in this list. What's the problem guys? Is this a taboo or something? Isn't this list open for discussion of all things related to Python? Isn't Boo related to Python? And if you think it is not "related e

Re: newbie question

2004-12-21 Thread Luis M. Gonzalez
Fredrik Lundh wrote: > it's the new Boo marketing motto: "have you harrassed a Pythoneer today?" Fredrik, I think you're being a little bit injust. As far as I could see, everythime the word "boo" is typed, some sort of censorship or plain bashing comes up, and I think this is not fair. In my ca

Re: newbie question

2004-12-21 Thread Luis M. Gonzalez
to use this list to talk about Boo, because I think that the best place to do it is comp.lang.boo. However, since I think it is definetely python related (I know you disagree, but others don't) I see no harm in mentioning it here occasionally. regards, Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Boo who? (was Re: newbie question)

2004-12-21 Thread Luis M. Gonzalez
Don't worry.. Now we'll make a big group hug therapy and friends again! Cheers, Luis Philippe C. Martin wrote: > Sorry but I really feel this incredible waste of energy is polluting an, > otherwise, excellent and helpful mailing list. > > > Best regards

Guido & Optional Static Typing

2004-12-23 Thread Luis M. Gonzalez
Hi folks, This is an interesting new article (published today Dec. 23). Guido discusses the possibility of adding optional static typing to Python: http://www.artima.com/weblogs/viewpost.jsp?thread=85551 -- http://mail.python.org/mailman/listinfo/python-list

Re: Guido & Optional Static Typing

2004-12-23 Thread Luis M. Gonzalez
Sorry... I just realized that somebody else already had started a thread on this... -- http://mail.python.org/mailman/listinfo/python-list

Re: Optional Static Typing

2004-12-24 Thread Luis M. Gonzalez
I don't understand why this discussion on optional static typing came up right at this moment. As far as I know, it has been discussed many times in the past, and there even was a SIG that simply died... but it seems that it never was something of much interest to python developers (that's my impre

Re: Optional Static Typing

2004-12-25 Thread Luis M. Gonzalez
> > I don't understand why this discussion on optional static typing came > > up right at this moment. > > Because Guido made some notes on it. > > http://www.artima.com/weblogs/viewpost.jsp?thread=85551 > > merry christmas. > Stephen. Yes, I know Guido did it. But I wonder why at this moment, jus

Re: Optional Static Typing

2004-12-26 Thread Luis M. Gonzalez
Robert Kern wrote: > Automatic type inferencing is great, but sometimes the inference is > "object". Being able to supply more information about types helps > Starkiller keep the inferences tight and specific. Hmm... I'm not an expert in this subject at all, but I think that when the inference is

Re: Optional Static Typing

2004-12-27 Thread Luis M. Gonzalez
Robert Kern wrote: > Starkiller, at least, can deal with cases where a variable might be one > of a set of types and generates code for each of this set. Explicit type > declarations can help keep these sets small and reduces the number of > times that Starkiller needs to fall back to PyObject_*

Re: is python more popular than coldfusion?

2005-01-05 Thread Luis M. Gonzalez
worzel wrote: > Wth respect to coldfusion, is there much doubt about the fact that Python is > a more prominent and important technology? > > How is colfusion percieved by the Python community? Many people belive > coldfusion is becomeing irrelavant and is on its death bed - do Python folk > gener

Re: is python more popular than coldfusion?

2005-01-05 Thread Luis M. Gonzalez
> by the way, does anybody want to buy any coldfusion books :) I have Sam's Teach Yourself Coldfusion by Charles Mohnike, which I bought in 2001. By this time I used to think that I was learning rocket science the easy way, and thinking about learning php or asp was really scary... these codes loo

Re: Getting rid of "self."

2005-01-07 Thread Luis M. Gonzalez
You can do it easier now without any black magic: class c: def __init__(s): s.x = 1 s.y = 2 s.hi = "Hi there!" The word "self" is not mandatory. You can type anything you want instead of self, as long as you supply a keyword in its place (it can be "self", "s" or whatever you want). -- http://m

else condition in list comprehension

2005-01-09 Thread Luis M. Gonzalez
Hi there, I'd like to know if there is a way to add and else condition into a list comprehension. I'm sure that I read somewhere an easy way to do it, but I forgot it and now I can't find it... for example: z=[i+2 for i in range(10) if i%2==0] what if I want i to be "i-2" if i%2 is not equal to 0

Re: else condition in list comprehension

2005-01-09 Thread Luis M. Gonzalez
Thank you guys! -- http://mail.python.org/mailman/listinfo/python-list

Re: else condition in list comprehension

2005-01-10 Thread Luis M. Gonzalez
It's me wrote: > > z = [i + (2, -2)[i % 2] for i in range(10)] > > But then why would you want to use such feature? Wouldn't that make the > code much harder to understand then simply: > > z=[] > for i in range(10): > if i%2: > z.append(i-2) > else: > z.append(i+2) > > Or

Re: Python.org, Website of Satan

2005-01-11 Thread Luis M. Gonzalez
[EMAIL PROTECTED] wrote: > python.org = 194.109.137.226 > > 194 + 109 + 137 + 226 = 666 > > What is this website with such a demonic name and IP address? What > evils are the programmers who use this language up to? You dared to unveil our secret. Now we'll have to kill you... -- http://mail.pyt

xml parsing escape characters

2005-01-19 Thread Luis P. Mendes
#x27;t know) how to convert it back to xml object. How can I solve this? Please, explain it having in mind that I'm just beggining with Xml and I'm not very experienced in Python, too. Luis -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbir

Re: xml parsing escape characters

2005-01-20 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 this is the xml document: http://www..";> ~ ~ 439 (... others ...) ~ When I do: print xmldoc.toxml() it prints: http://www...";> ~ ~439

Re: xml parsing escape characters

2005-01-20 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I would like to thank everyone for your answers, but I'm not seeing the light yet! When I access the url via the Firefox browser and look into the source code, I also get: ~ ~439 ~ should

Re: xml parsing escape characters

2005-01-21 Thread Luis P. Mendes
tags? I'd like to thank everyone for taking the time to answer me. Luis -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB8UIOHn4UHCY8rB8RAgK4AKCiHjPdkCKnirX4gEIawT9hBp3HmQCdGoFK 3IEMLLXwMZKvNoqA4tISVnI

Re: xml parsing escape characters

2005-01-21 Thread Luis P. Mendes
tags? I'd like to thank everyone for taking the time to answer me. Luis -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB8UIOHn4UHCY8rB8RAgK4AKCiHjPdkCKnirX4gEIawT9hBp3HmQCdGoFK 3IEMLLXwMZKvNoqA4tISVnI

Re: The next Xah-lee post contest

2005-02-01 Thread Luis M. Gonzalez
Peter Hansen wrote: > Arthur wrote: > > Steve Holden <[EMAIL PROTECTED]> wrote: > >>Would there, I wonder, be any enthusiasm for a "Best Xah Lee impression" > >>prize at PyCon? > > > > And the rules of the game, if he shows? > > Arthur, if Xah Lee shows up at Pycon, he most definitely will > not b

Re: The next Xah-lee post contest

2005-02-02 Thread Luis M. Gonzalez
alex23 wrote: > Luis M. Gonzalez wrote: > > I kind of like this guy... it's like he has a few bugs in his brain, > > but other parts are surprisingly interesting. > > Which bits especially impress you, the rampant misogyny or the > unwarranted intellectual arrog

Re: Is there a market for python developers?

2005-02-03 Thread Luis M. Gonzalez
Peter Hansen wrote: > Yes. Man of few words... -- http://mail.python.org/mailman/listinfo/python-list

Re: An Ode To My Two Loves

2005-02-05 Thread Luis M. Gonzalez
Jamey, Really, you should try to steer clear from your computer from time to time... Your mental health is more important than python or ruby, don't lose it! -- http://mail.python.org/mailman/listinfo/python-list

Re: WYSIWYG wxPython "IDE"....?

2005-02-06 Thread Luis M. Gonzalez
Try PythonCard. Very simple, very easy and based on wxPython. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pypy - Which C modules still need converting to py?

2005-02-08 Thread Luis M. Gonzalez
Also you can browse the Pypy-Dev archives here: http://codespeak.net/pipermail/pypy-dev/ and post messages here: pypy-dev@codespeak.net regards, Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Learning Python - resources and ideas

2005-02-08 Thread Luis M. Gonzalez
rogrammers (google this). I learned the basics with it. Then you can try any of the other resources listed in www.python.org. If you're willing to buy a book, try "Learning Python 2nd.Ed" by Mark Lutz or "Core Python" by Wesley Chun. Regards, Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: creating .NET clients with python

2005-03-03 Thread Luis M. Gonzalez
At this time, Ironpython is in pre-alpha state, not suitable for production work. However, we will have news about it in the next Pycon 2005, which will be held by the end of March. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using reverse iteration to clean up a list

2005-03-12 Thread Luis M. Gonzalez
Well, I'm not sure if this is what you want, but you could use a dictionary: >>> d={} >>> for i,e in L: if d.has_key(i): d[i] += e else: d[i] = e >>> d {'A': 500, 'B': 200} >>> -- http://mail.python.org/mailman/listinfo/python-lis

Re: Is Python like VB?

2005-03-17 Thread Luis M. Gonzalez
Mike, I've got a very good news for you which, to my surprise, nobody mentioned in this thread: Right now, Micrsoft is developing a .NET version of Python ( http://www.ironpython.com ). It has been started as an open source project by Jim Hugunin, which was later hired by Microsoft to keep on wor

Re: IronPython 0.7 released!

2005-03-23 Thread Luis M. Gonzalez
James wrote: > http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742 This is what I get when I follow this link: "Operational Troubleshooting in Progress" I've been visiting ironpython's site all day long searching for news but nothing... Has anyone managed t

Re: dictionary: sorting the values preserving the order

2005-04-01 Thread Luis M. Gonzalez
Another alternative: d1 = {'a':4,'b':5,'c':1,'d':2,'e':3­} il=[(v,k) for k,v in d1.items()] il.sort() -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's use in RAD

2005-04-16 Thread Luis M. Gonzalez
Check this out: http://pythoncard.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Whats the best Python Book for me

2005-05-01 Thread Luis M. Gonzalez
For someone expereinced like you, I recommend "Dive into Python". It is available online. There's also a very good tutorial which is aimed to both, beginners and experienced programmers, that can give you a very complete and high level overview of the python language: "A byte of Python". Also avail

Dive into Python java equivalent

2005-05-13 Thread Luis P. Mendes
Hi, do you know if is there any 'Dive into Python' equivalent for the java language? DiP is the best I've seen and I would need to learn some basics of Java and also ways to interact between the two languages. (I'm already aware of Jpype and Jython) Luis -- http://mai

Re: installing mod_python with python 2.4 on Windows xp

2005-05-15 Thread Luis M. Gonzalez
try again though to see what happens... Thanks! Luis -- http://mail.python.org/mailman/listinfo/python-list

speeding up Python

2005-05-17 Thread Luis P. Mendes
speed? I tried to find some tool that converts Python to C automatically but couldn't. As I don't know C, I think that weave and PyInline for example are out of the solution. I'm using Linux. Luis -- http://mail.python.org/mailman/listinfo/python-list

speeding up Python script

2005-05-17 Thread Luis P. Mendes
not good enough. How can I dramatically improve speed? I tried to find some tool that converts Python to C automatically but couldn't. As I don't know C, I think that weave and PyInline for example are out of the solution. I'm using Linux. Luis -BEGIN PGP SIGNATURE- Ve

Re: speeding up Python script

2005-05-18 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The reason why I'm using six nested for loops is because I need to find the best output using those six variables as input. Here's the simplified code: for per in range(): ~for s in range(): ~for t in range(): for v in range()

Re: speeding up Python script

2005-05-18 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I appreciate everyone's help! I got some ideas that I'll try to put into practice. Regards, Luis -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.

Pyrex: TypeError: unsubscriptable object

2005-05-24 Thread Luis P. Mendes
g 'int' for two variables in the def argument of the function. I also tried to declare cdef float h1, but I get the same error. What can be wrong? Thanks, Luis -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - h

Pyrex: step in for loop

2005-05-26 Thread Luis P. Mendes
te through 80000 to 14 with step 1? Luis -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFClkGTHn4UHCY8rB8RAgZXAJ0XPg9IH0OU329FVX3o14QjNFXuXgCgm+UR O0GpXmDpQr7Y7TgMsmVvZ6s= =zZnm -END PGP SIGNATURE-

Re: Pyrex: step in for loop

2005-05-26 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 | so it's | | for i in range(8, 14, 1): ... | | http://enigmail.mozdev.org iD8DBQFClkmlHn4UHCY8rB8RAlUqAKCxSEkEKVIcoshTwmL7GQNK6d/j0wCgoC67 jOhuXQpnDt23SEAM9huKTQA= =8XO0 -END PGP SIGNATURE- -- http://mail.python.org/mailman/

Re: mod_python config problem

2005-06-03 Thread Luis M. Gonzalez
Getting mod_python to work is hard because there are many things to get into account. Your Apache version should match the proper mod_python version, as well as the python version amd so on... If you are having many problems, I suggest installing Apache2Triad, which is a package that will install e

Re: New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!

2005-10-04 Thread Luis M. Gonzalez
> Boa Constructor, Iron Python etc... it seems all these projects get started, > but never finished. I don't know Boa (never liked it, never used it), but you could try PythonCard: much higher level, easier and more productive. As for Ironpython seems to be moving full steam towards a stable relea

Re: New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!

2005-10-04 Thread Luis M. Gonzalez
If you read again my comment, I said "almost" an static version of Python for .NET. That means that it's not a Python implementation, but another language. It takes a lot from python though, and it is aknowledeged by its creator in the first paragraph of its homepage. And if you still feel the nee

Re: New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!

2005-10-04 Thread Luis M. Gonzalez
> that Boo isn't enough like Python to > be a kind of Python - not necessarily a criticism, though, but an > observation. This is correct. I completely agree with you and I'm not saying that boo is python. Again, I just said that it could be considered "almost" a static python implementation for .

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-07 Thread Luis M. Gonzalez
Grant Edwards ha escrito: > While we're off this topic again topic, I was watching a BBC > series "Space Race" the other night. The British actors did a > passable job with the American accents in the scenes at Fort > Bliss in Texas, but the writers wrote British English lines for > them to speak

Re: Python for .NET and IronPython

2005-11-03 Thread Luis M. Gonzalez
: http://lists.ironpython.com/pipermail/users-ironpython.com/ By the way, the current version is 0.9.3 and it's advancing at a pretty fast pace towards version 1.0. Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: which feature of python do you like most?

2005-11-08 Thread Luis M. Gonzalez
I've never used Perl, but I know other c-like laguages, and I can tell you what I like about python: - It is concise, clear and to the point. - No useless characters like curly braces and semicolons cluttering it syntax,. - Very readable and elegant. - One obvious way to do each task, not thousand

Re: Is Python worth it??

2005-11-15 Thread Luis M. Gonzalez
real eye opener for me. Of course, It won't hurt if you check regularly the official tutorial by Guido Van Rossum, but I wouldn't use it as a step to step introduction, because it seems more like an overview of the language. More indicated for someone who's looking for somethi

Re: HTML generation vs PSP vs Templating Engines

2005-11-17 Thread Luis M. Gonzalez
With Karrigell (http://karrigell.sf.net/), all you need to know is Python and HTML. No templates, no python-like or special languages, only pure and simple python. You can embedd python into html or, if it better suits your programming tyle, you can embed html into python. Why don't you give it a

Re: HTML generation vs PSP vs Templating Engines

2005-11-19 Thread Luis M. Gonzalez
I meant that it is not strictly necessary to use templates in Karrigell, although you can use Cheetah if you want. I'm not used to templates mainly because I'm familiar with the way PHP works and, for simple dynamic sites like those I work on, this is the simpliest approach. Another reason is that

Re: the PHP ternary operator equivalent on Python

2005-11-23 Thread Luis M. Gonzalez
This could be done easier this way: L = [('odd','even')[n%2] for i in range(8)] -- http://mail.python.org/mailman/listinfo/python-list

Re: the PHP ternary operator equivalent on Python

2005-11-23 Thread Luis M. Gonzalez
This could be done easier this way: L = [('even','odd')[n%2] for n in range(8)] -- http://mail.python.org/mailman/listinfo/python-list

Re: Python book for a non-programmer

2005-11-25 Thread Luis M. Gonzalez
Read my reply here from another thread: http://groups.google.com/group/comp.lang.python/browse_thread/thread/25aada3c22ce6e66/cc69fd0c78384e5b?q=luis+cogliati's&rnum=1#cc69fd0c78384e5b -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get started in GUI Programming?

2005-11-25 Thread Luis M. Gonzalez
/ Another alternative, also based in wxWindows, is Boa Constructor, but I wouldn't recomend it over Pythoncard. Good luck! Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get started in GUI Programming?

2005-11-26 Thread Luis M. Gonzalez
Try PythonCard (http://pythoncard.sf.net). Like VB or Delphi (drag and drop widgets), but much simpler, easy and fun. It's based on wxWidgets, and it gives your apps a native look, no matter your platform (much nicer than Tkinter, which looks uglier and dated). -- http://mail.python.org/mailman/l

  1   2   3   >