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: sqlite newbie questions

2007-06-21 Thread Luis M . González
d to learn sql if you want to deal with databases. Don't worry, it's very easy, and here is a very good resource to get you up and running in a few minutes: http://www.sqlcourse.com Good luck! Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: visual gui ides for python/jythpn

2007-06-21 Thread Luis M . González
On Jun 20, 3:16 pm, kromakey <[EMAIL PROTECTED]> wrote: > Hi, > > Are there any free visual GUI IDE's available for python/jython, which > have a drag and drop form designer similar to Visual Studio or > Delphi ? > > Cheers > kromakey PythonCard is an extremely easy to use alternative. It's like a

Re: visual gui ides for python/jythpn

2007-06-24 Thread Luis M . González
On 24 jun, 04:23, "Ethan Kennerly" <[EMAIL PROTECTED]> wrote: > Luis M. Gonzalez wrote: > > PythonCard is an extremely easy to use alternative. > > It's like a simplified Visual Basic or Delphi IDE. > > Check IT out:www.pythoncard.org > > I second

Re: ANN: PyDAO - Python Hibernate-like Object-Relational Mapper

2007-06-27 Thread Luis M . González
On Jun 27, 4:08 pm, [EMAIL PROTECTED] wrote: > PyDAO is very thin object-relational mapper similar to Hibernate (but > much simpler). It's created to speed-up application development. It's > very simple, but powerful, based on POPO (Plain Old Python Objects). > > http://aplikacja.info/PyDAO.html >

Re: Shed Skin Python-to-C++ Compiler 0.0.21, Help needed

2007-06-30 Thread Luis M . González
ap allocation into stack- > > and static preallocation, where possible, to bring performance even > > closer to manual C++. Please let me know if you are interested in > > helping out, and/or join the Shed Skin mailing list. > > > Thanks! > > Mark Dufour. > > -- > > "One of my most productive days was throwing away 1000 lines of code" > > - Ken Thompson > > Mark Dufour. > -- > "One of my most productive days was throwing away 1000 lines of code" > - Ken Thompson I love it! This is absolutely fantastic!!! I can't belive I can write extension modules that easily... Keep up the good work and thank you!!! Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: When are immutable tuples *essential*? Why can't you just use lists *everywhere* instead?

2007-04-20 Thread Luis M . González
7;t remember exactly where I read about it, but Guido said once that tuples are being kept mainly for historical reasons. This is what Python uses internally from the beginning and it's just an implementation detail that makes sense in some contexts. Although I guess you can ignore them and use o

Re: When are immutable tuples *essential*? Why can't you just use lists *everywhere* instead?

2007-04-20 Thread Luis M . González
On Apr 20, 3:28 pm, Bjoern Schliessmann wrote: > Luis M. González wrote: > > I don't remember exactly where I read about it, but Guido said > > once that tuples are being kept mainly for historical reasons. > > Weren't tuples added when lists already existed? >

Re: Microsoft's Dynamic Languages Runtime (DLR)

2007-05-04 Thread Luis M . González
t takes to be considered on-topic. Frankly, this on-topic/off-topic fascism I see in this list is pissing me off a little bit. I suggest reading this paragraph right from http://www.python.org/community/lists/: "Pretty much anything Python-related is fair game for discussion, and the group is even fairly tolerant of off-topic digressions; there have been entertaining discussions of topics such as floating point, good software design, and other programming languages such as Lisp and Forth." Luis -- http://mail.python.org/mailman/listinfo/python-list

psycopg2 error

2007-05-08 Thread Luis P. Mendes
lib is in ld.so.conf and ldconfig has been run: # cat /etc/ld.so.conf /usr/local/lib /usr/X11R6/lib /usr/i486-slackware-linux/lib /opt/kde/lib /usr/lib/qt/lib /usr/local/pgsql/lib What is wrong? Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: psycopg2 error

2007-05-09 Thread Luis P. Mendes
local/pg* -d drwxr-x--- 10 postgres postgres 712 2007-05-08 20:43 /usr/local/pgsql Once corrected to: $ ll /usr/local/pg* -d drwxr-xr-x 10 postgres postgres 712 2007-05-08 20:43 /usr/local/pgsql I can import psycopg2 fine. Thank you for your help! Best regards, Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Web Programming - looking for examples of solid high-traffic sites

2007-05-16 Thread Luis M . González
th WEBPY and it receives millions of visits every day. There are also many sites built with Django (check their website) with a lot of traffic and very good performance And I'm sure other frameworks can show other success stories... just check their websites. Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Web Programming - looking for examples of solid high-traffic sites

2007-05-16 Thread Luis M . González
th WEBPY and it receives millions of visits every day. There are also many sites built with Django (check their website) with a lot of traffic and very good performance And I'm sure other frameworks can show other success stories... just check their websites. Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Web Programming - looking for examples of solid high-traffic sites

2007-05-16 Thread Luis M . González
internal web-sites, and > performance is far from perfect their. YouTube is an interesting > example - anybody knows more details about that? > > Your suggestions and comments are highly welcome! > > Best Regards, > Victor. Reddit.com was built with webpy, and it's amongst the top 1000 websites in volume of traffic. So if you liked it, go with it... I believe one of the authors of reddit is also webpy's developer. Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: PHP5 programmer learning Python

2007-05-27 Thread Luis M . González
he so called "full stack frameworks" (such as Django or TurboGears) that give you everything you need to build complex web sites and even more (templates, dispatching mechanisms, object-relational mappers, etc, etc) to minimalist solutions such as webpy. But this is something to evaluate after you have a good grasp of the language itself. Be warned: Python is highly addictive and it can make you a hopeless junkie... Good luck! Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: python + XUL

2007-08-12 Thread Luis M . González
On Aug 12, 3:21 am, Stefan Behnel <[EMAIL PROTECTED]> wrote: > Madhu Alagu wrote: > > Hi > > > Python + XUL Success Stories > > > Thanks > > > Madhu Alagu > > Any chance you forgot to ask a question? > > Stefan My telepatic powers tell me that this means: "I don't really feel like googling, so j

Re: ActiveRecord for Python/MySQL

2007-08-26 Thread Luis M . González
On Aug 26, 5:52 am, Devraj <[EMAIL PROTECTED]> wrote: > Thanks > > On Aug 26, 5:26 pm, EuGeNe Van den Bulke > > <[EMAIL PROTECTED]> wrote: > > Devraj wrote: > > > My application uses MySQL as a backend and am using the MySQL/Python > > > bindings. Are there any libraries that provide a database abs

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-02 Thread Luis M . González
On Sep 2, 11:16 pm, llothar <[EMAIL PROTECTED]> wrote: > On 3 Sep., 07:38, "Eduardo O. Padoan" <[EMAIL PROTECTED]> > wrote: > > > > No.http://www.artima.com/weblogs/viewpost.jsp?thread=211430 > > > Ops, I > > meant:http://www.artima.com/forums/threaded.jsp?forum=106&thread=211200 > > Thanks. I whi

Re: class declaration shortcut

2007-03-02 Thread Luis M. González
On Mar 2, 8:29 pm, "MonkeeSage" <[EMAIL PROTECTED]> wrote: > On Feb 28, 1:26 pm, "Luis M. González" <[EMAIL PROTECTED]> wrote: > > > I've come across a code snippet inwww.rubyclr.comwhere they show how > > easy it is to declare a class comp

Re: PythonCard thoughts

2007-03-19 Thread Luis M. González
time to time, and I find it very easy to use and practical, even considering the small shortcomings you mentioned above, but I have no idea of this feature you're talking about.. Regards, Luis -- http://mail.python.org/mailman/listinfo/python-list

Passing arguments to a command line from a python script

2007-03-19 Thread Luis M. González
) ''' %(nombre, nombre, nombre)) f.close() # end of script What I want now is execute the script I just created. As far as I know, the only way to execute the script is from a command line and typing "setup.py py2exe". Can I do this authomatically right from my program? If so, how? Any hint would be highly appreciated... regards, Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Passing arguments to a command line from a python script

2007-03-19 Thread Luis M. González
On Mar 19, 9:25 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 19 Mar 2007 20:46:56 -0300, Luis M. González <[EMAIL PROTECTED]> > escribió: > > > What I want now is execute the script I just created. > > As far as I know, the only way to ex

Re: Passing arguments to a command line from a python script

2007-03-19 Thread Luis M. González
On Mar 19, 10:49 pm, "zacherates" <[EMAIL PROTECTED]> wrote: > On Mar 19, 9:42 pm, "Luis M. González" <[EMAIL PROTECTED]> wrote: > > > > > On Mar 19, 9:25 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > > wrote: > &

Re: Passing arguments to a command line from a python script

2007-03-19 Thread Luis M. González
On Mar 19, 11:52 pm, Steven Bethard <[EMAIL PROTECTED]> wrote: > Luis M. González wrote: > > On Mar 19, 10:49 pm, "zacherates" <[EMAIL PROTECTED]> wrote: > >> This implies that `os.system("setuppy py2exe")` should do what you > >> want

Re: PyPy 1.0: JIT compilers for free and more

2007-03-27 Thread Luis M. González
roject and > with the support of a consortium partially funded by a 28 month > European Union IST research grant for the period from December 2004 to > March 2007. The full partners of that consortium are: > > Heinrich-Heine University (Germany), Open End (Sweden) > merlinux GmbH (Germany), tismerysoft GmbH (Germany) > Logilab Paris (France), DFKI GmbH (Germany) > ChangeMaker (Sweden), Impara (Germany) Congratulations! I just have a couple of questions: Attempting to execute pypy-c.exe (precompiled binary for Windows), raise an error message indicating that it cannot find gc_pypy.dll. Have you missed something or I'm doing something wrong? Regarding the jit integration, do you have any rough idea of when will it speed up arbitrary code, other than integer aritmethic? Thanks and regards, Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Shed Skin Python-to-C++ Compiler 0.0.21, Help needed

2007-03-31 Thread Luis M. González
On Mar 31, 8:38 am, Bjoern Schliessmann wrote: > Mark Dufour wrote: > > Shed Skin allows for translation of pure (unmodified), implicitly > > statically typed Python programs into optimized C++, and hence, > >^> highly > optimized ma

Re: Shed Skin Python-to-C++ Compiler 0.0.21, Help needed

2007-03-31 Thread Luis M. González
On Mar 31, 10:31 pm, Bjoern Schliessmann wrote: > Luis M. González wrote: > > I think he should be taken very seriously. > > Agreed. > > Okay, it seems focusing a discussion on one single point is > difficult for many people. Next time I'll be mind-bogglingly c

Re: BaseHTTPServer and Apache

2007-04-13 Thread Luis M. González
On Apr 13, 8:44 pm, Ron Garret <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Ron Garret <[EMAIL PROTECTED]> wrote: > > > Does > > anyone know of a straightforward way to get Apache to "forward" requests > > to a given path to another HTTP server running on a different port? > > Ne

Re: TRying to import files from my folder not pythons lib folder

2007-09-23 Thread Luis M . González
- > Steve Holden+1 571 484 6266 +1 800 494 3119 > Holden Web LLC/Ltd http://www.holdenweb.com > Skype: holdenweb http://del.icio.us/steve.holden > > Sorry, the dog ate my .sigline This is exactly what I did, but I have a new problem now: After seting PYTHONPATH I'm no longer able to start IDLE from the start menu. It seems the system cannot find the file. But if I eliminate PYTHONPATH, everything works as it used to. I set PYTHONPATH because I wanted to import any existing file in my desktop without having to use sys.path.append... It works when using the command line but strangely, something get messed up with IDLE. Any hint? Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: TRying to import files from my folder not pythons lib folder

2007-09-24 Thread Luis M . González
On Sep 24, 5:00 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sun, 23 Sep 2007 22:01:39 -0300, Luis M. González <[EMAIL PROTECTED]> > escribi?: > > > This is exactly what I did, but I have a new problem now: > > After setingPYTHONPATHI'm

Re: TRying to import files from my folder not pythons lib folder

2007-09-24 Thread Luis M . González
On Sep 24, 5:00 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sun, 23 Sep 2007 22:01:39 -0300, Luis M. González <[EMAIL PROTECTED]> > escribi?: > > > This is exactly what I did, but I have a new problem now: > > After setingPYTHONPATHI'm

Re: Python - C# interoperability

2007-01-09 Thread Luis M. González
ocated). Then you simply import them as you would with any other python module. Make sure to add also the boo assembly. If you are using c# instead, you don't have to add anything else. Hope this helps, Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: what is the idiom for copy lots of params into self?

2007-01-10 Thread Luis M. González
#x27;,'n']: > self.__dict__[name] = locals()[name] > > This saves a lot of code and makes it easier to see what is going on, > but it seems like there should be a better idiom for this task. Any > suggestions? > > Thanks, > -Emin How about using vari

Re: PyCon blogs?

2007-02-28 Thread Luis M. González
On Feb 27, 9:36 pm, [EMAIL PROTECTED] wrote: > Was anybody blogging about PyCon (talks and/or sprints)? Got any pointers? > > Thanks, > > Skip http://blogsearch.google.com/blogsearch?hl=en&tab=wb&q=pycon&btnG=Search+Blogs -- http://mail.python.org/mailman/listinfo/python-list

class declaration shortcut

2007-02-28 Thread Luis M. González
ode inside this function, but I don't know if this is possible. Also, I wonder if there is a way to use the variable name in order to create a class with the same name (as in "Person"above). Well, if anyone has an idea, I'd like to know... Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: class declaration shortcut

2007-02-28 Thread Luis M. González
On Feb 28, 6:21 pm, Steven Bethard <[EMAIL PROTECTED]> wrote: > Luis M. González wrote: > > I've come across a code snippet inwww.rubyclr.comwhere they show how > > easy it is to declare a class compared to equivalent code in c#. > > I wonder if there is a

Re: class declaration shortcut

2007-03-01 Thread Luis M. González
re was a way to enter attributes without quotes, it would be almost identical. Anyway, I wonder if the code comparison in www.rubuclr.com between the c# and ruby code is fair... As far as I know, classes and structs are not the same thing. In the case of that ruby example, can someone add methods later? Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: achieving performance using C/C++

2007-11-05 Thread Luis M . González
ies. On the other hand, with shedskin you just code in python (getting rid of its most dynamic features), and this code gets automatically compiled to a c++ extension module, directly usable from cpython. Check it out: http://mark.dufour.googlepages.com/ Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Recommended IDE for creating GUI?

2006-04-23 Thread Luis M. González
Check PythonCard: http://pythoncard.sourceforge.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Coming from delphi - looking for an IDE - willing to spend money

2006-04-24 Thread Luis M. González
I suggest checking out PythonCard. It's a GUI builder based on wxPython and it's very easy to use. It offers the basic functionality of Delphi or VB, letting you drag & drop widgets on a form. This visual way of dealing with widgets authomatically creates a file with the form and its controls descr

ascii to latin1

2006-05-08 Thread Luis P. Mendes
guese) is successful. So, instead of only one search, there will be several used. Is there anything already coded, or will I have to try to do it all by myself? Luis P. Mendes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linu

Re: ascii to latin1

2006-05-09 Thread Luis P. Mendes
ve to do a search and substitute using regular expressions for these cases. Or is there a better way to do it? Luis P. Mendes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEYINaHn4UHCY8rB8RAqLKAJ0cN7yRlzJS

Re: ascii to latin1

2006-05-09 Thread Luis P. Mendes
"latin1_to_ascii.py", line 22, in converter print linha_ascii.encode("ascii") UnicodeEncodeError: 'ascii' codec can't encode character u'\xba' in position 11: ordinal not in range(128) The script converted the ÇÃ from the first line, but not the º

Re: Is PythonCard dead?

2006-05-09 Thread Luis M. González
18 months? Wow!.. time flies... Anyway, PythonCard is a fine product, and it's very good just the way it is. It would be great if a new release comes up though... -- http://mail.python.org/mailman/listinfo/python-list

Re: ascii to latin1

2006-05-10 Thread Luis P. Mendes
on't want such > a fuzzy matching, keep it. > Thank you all for your help. That was what I did. That symbol 'º' is not needded for the field. It's working fine, now. Luis P. Mendes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/L

Re: combining a C# GUI with Python code?

2006-05-19 Thread Luis M. González
First of all, you should be thinking about ironpython instead of cpython. This way you can forget about c# and do it all in (iron)python. I don't know its current state, but Microsoft is working in a Visual Studio - Ironpython integration. For more info: http://lists.ironpython.com/htdig.cgi/users

Re: combining a C# GUI with Python code?

2006-05-19 Thread Luis M. González
Now that I think about it, I'm not sure if Visual Studio can create GUIs with ironpython already. I guess that at this moment, its integration is as a text editor only (I may be wrong though). I almost forgot it, but someone was working in a little tool that converts C# forms into python classes (

Re: combining a C# GUI with Python code?

2006-05-20 Thread Luis M. González
PythonCard is based on wxpython and it's free: http://pythoncard.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python - Web Display Technology

2006-05-21 Thread Luis M. González
IMHO, there's nothing more annoying that a website showing me a progression bar, indicating how much time it will get to provide the information I'm looking for... And when the progression bar ends, I have to wait until the flashy graphics and stupid presentation shows me the "go to html site"...

IronPython 1.0 Beta 7 Released

2006-05-24 Thread Luis M. González
Check it out: http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742 -- http://mail.python.org/mailman/listinfo/python-list

Re: IronPython 1.0 Beta 7 Released

2006-05-24 Thread Luis M. González
Well, basically, ironpython is to .NET what jython is to JAVA. It is a faithful implementation of the python language, written in c#, created to run on and take full advantage of the .NET framework. That means that you have access to all the available libraries of the .NET framework and you can us

Re: IronPython 1.0 Beta 7 Released

2006-05-25 Thread Luis M. González
Ravi Teja wrote: > Also, IronPython cannot access CPython libraries. So it cannot be used > as a drop-in replacement for CPython in most non-trivial apps. Python > for .NET however allows you to both use both CPython and .NET > libraries. It will be able to access the standard libraries, as long a

Re: IronPython 1.0 Beta 7 Released

2006-05-25 Thread Luis M. González
Ravi Teja wrote: > Also, IronPython cannot access CPython libraries. So it cannot be used > as a drop-in replacement for CPython in most non-trivial apps. Python > for .NET however allows you to both use both CPython and .NET > libraries. It will be able to access the standard libraries, as long a

Re: Python Programming Books?

2006-05-25 Thread Luis M. González
on that was a real eye opener to me. Good luck, LUIS -- http://mail.python.org/mailman/listinfo/python-list

Re: Client side GUI-like web framework ?

2008-02-05 Thread Luis M. González
On Feb 4, 2:45 pm, USCode <[EMAIL PROTECTED]> wrote: > Wouldn't it be handy if there was a web framework that allowed you to > create pages and control the interface like you would using a > client-side GUI framework such as Tkinter? > > The framework would need a small, fast web server that would

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Luis M. González
On 5 feb, 14:31, dmitrey <[EMAIL PROTECTED]> wrote: > Hi all, > the urlhttp://torquedev.blogspot.com/2008/02/changes-in-air.html > (blog of a game developers) > says IronPython is faster than CPython in 1.6 times. > Is it really true? > If yes, what are IronPython drawbacks vs CPython? > And is it

Re: Why not a Python compiler?

2008-02-05 Thread Luis M. González
and alone executables. It also can compile extension modules for cpython. It works by translating python to c++ and then to machine code. The python code must be done in a static way (getting rid of dynamic features like, for example, not asigning different types to the same variable). Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not a Python compiler?

2008-02-06 Thread Luis M. Gonzalez
Hi Carl, Well, lets suppose that being faster than C is the real goal... Are you confident that it will be reached? How far is it at this moment? I've been following the project but the scarcity of news is getting me anxious... Cheers, Luis On Feb 6, 2008 2:14 PM, Carl Friedrich Bolz &l

Re: Is there a way to use .NET DLL from Python

2008-02-06 Thread Luis M. González
I could simply import them as I would with any other python module. But since I started using Ironpython 2.0 Alpha* this doesn't work anymore... Any hint? Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to use .NET DLL from Python

2008-02-06 Thread Luis M. González
On 6 feb, 21:17, Fuzzyman <[EMAIL PROTECTED]> wrote: > On Feb 6, 9:59 pm, "Luis M. González" <[EMAIL PROTECTED]> wrote: > > > On Feb 6, 6:27 pm, Huayang Xia <[EMAIL PROTECTED]> wrote: > > > > Hello All, > > > > I have several .NET DL

Re: Is there a way to use .NET DLL from Python

2008-02-07 Thread Luis M. González
On 7 feb, 05:52, Fuzzyman <[EMAIL PROTECTED]> wrote: > Luis M. González wrote: > > On 6 feb, 21:17, Fuzzyman <[EMAIL PROTECTED]> wrote: > > > On Feb 6, 9:59 pm, "Luis M. Gonz�lez" <[EMAIL PROTECTED]> wrote: > > > > > On Feb 6, 6:27 pm,

Re: Why not a Python compiler?

2008-02-08 Thread Luis M. González
On 8 feb, 22:15, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Fri, 08 Feb 2008 17:45:36 +, Grant Edwards wrote: > > On 2008-02-08, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > > >> Please get back on topic. This discussion is about parsecs and > >> wookies now. > > > What's a "woo

Re: Is there a way to use .NET DLL from Python

2008-02-13 Thread Luis M. González
On 13 feb, 00:26, Dino Viehland <[EMAIL PROTECTED]> wrote: > >> Oh, I know what you mean. > >> But that was exactly the reason for having a .DLLs folder, isn't it? > >> When you place an assembly into this folder, you avoid having to write > >> this boilerplate code, and simply import the assembly

Re: Is there a way to use .NET DLL from Python

2008-02-15 Thread Luis M. González
On Feb 14, 6:26 pm, Fuzzyman <[EMAIL PROTECTED]> wrote: > On Feb 13, 6:58 pm, "Luis M. González" <[EMAIL PROTECTED]> wrote: > > > > > On 13 feb, 00:26, Dino Viehland <[EMAIL PROTECTED]> wrote: > > > > >> Oh, I know what you mean. &g

Re: RELEASED Python 2.5.2, release candidate 1

2008-02-15 Thread Luis M. González
aker either and I understood perfectly the meaning of your post. Luis -- http://mail.python.org/mailman/listinfo/python-list

Seeing "locals()" from imported function

2008-02-23 Thread Luis M. González
n __main__.locals().items(): # these "locals" are the ones of the main script if isinstance(v,type) and k != 'index': urls.append('/%s' %k) urls.append(k) return tuple(urls) Of course this doesn't work...

Re: Seeing "locals()" from imported function

2008-02-24 Thread Luis M. González
This is one of these times when I feel so dumb and ashamed that I wished I never dared to ask... Well, that did the trick. Thanks! luis On Feb 24, 3:41 am, 7stud <[EMAIL PROTECTED]> wrote: > Yes, define your functions so that they get all the input they need > from the arguments tha

Re: Converting a string to the most probable type

2008-03-06 Thread Luis M . González
On 6 mar, 11:27, Pierre Quentel <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to know if there is a module that converts a string to a > value of the "most probable type" ; for instance : > - if the string is "abcd" the value is the same string "abcd" > - string "123" : value = the integer 123

Re: what's the point of rpython?

2009-01-16 Thread Luis M . González
tten in rpython and then translated automatically to c. The pypy team intends to achieve greater speed and performance by adding a JIT compiler to this interpreter. So pypy-c + JIT = faster python. I hope this helps... Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: optimizing large dictionaries

2009-01-16 Thread Luis M . González
On Jan 15, 6:39 pm, Per Freem wrote: > hello > > i have an optimization questions about python. i am iterating through > a file and counting the number of repeated elements. the file has on > the order > of tens of millions elements... > > i create a dictionary that maps elements of the file that

Re: *Advanced* Python book?

2009-01-17 Thread Luis M . González
books, for example in ActiveState's site. I found particularly interesting one that shows how to implement an ORM under 100 lines ( http://code.activestate.com/recipes/496905/ ). This script goes deep into black magic and it's clear enough to grasp. Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: what's the point of rpython?

2009-01-18 Thread Luis M . González
re useful features, not all of them related to speed but to flexibility. I have no doubt the project will be succesful. The question is how long we will have to wait... Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: is python Object oriented??

2009-01-29 Thread Luis M . González
On Jan 29, 7:21 am, Gary Herron wrote: > Python *is* object-oriented, but it is not (as your definition suggests) > object-fascist.   I'm a python-nazi. No python for you! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for kids?

2008-12-07 Thread Luis M . González
aving explained them what exactly these skills are good for. Luis On Dec 7, 5:37 pm, [EMAIL PROTECTED] wrote: > On Dec 7, 9:13 pm, "Russ P." <[EMAIL PROTECTED]> wrote: > > > I have a 12-year-old son who spends too much time playing Xbox live > > and watching silly YouTube

Re: Python is slow

2008-12-10 Thread Luis M . González
You are WRONG, WRONG, WRONG!! And when I say Wrong, I mean WRONG!!! And I am not saying that you are confussed. I say that you are WRONG! And when someone says so many times that you are wrong, it is because you are WRONG! And don't say that you are not wrong, because you are wrong! You are Wron

Re: Python is slow

2008-12-11 Thread Luis M . González
Plone is even slower. > > Python is slow. Very slow. Now seriously, just to finish your idiotic rant, check the Pypy project: http://codespeak.net/pypy http://morepypy.blogspot.com And if you still think this is not enough, why don't you help these guys to make it faster? Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is slow

2008-12-12 Thread Luis M . González
On Dec 12, 10:43 am, sturlamolden wrote: > On Dec 12, 2:29 pm, sturlamolden wrote: > > > Creating a fast implementation of a dynamic language is almost rocket > > science. But it has been done. There is Stronghold, > > I meant of course Strongtalk... Blah, blah, blah... Why don't you guys google

Re: Python is slow

2008-12-12 Thread Luis M . González
On Dec 12, 11:17 am, sturlamolden wrote: > On Dec 12, 3:04 pm, Luis M. González wrote: > > > Why don't you guys google a little bit to know what's being done to > > address python's "slowness"?? > > Nothing is being done, and woth Py3k it go

Re: Python is slow

2008-12-15 Thread Luis M . González
On Dec 15, 1:38 am, cm_gui wrote: > hahaha, do you know how much money they are spending on hardware to > make > youtube.com fast??? > > > By the way... I know of a very slow Python site called YouTube.com. In > > fact, it is so slow that nobody ever uses it. > > Buddy, just stop whining and go w

Re: Namespaces, multiple assignments, and exec()

2008-12-20 Thread Luis M . González
o this kind of thing? > > Thanks, > > John Why don't you just use a dictionary? d = {} for name in name_string_list: d[name] = func(name, args) Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is slow

2008-12-21 Thread Luis M . González
is is unless you are hacking a kernel, writing device drivers or 3D image processing. For anything else, python is fast enough if you know how to optimize your code. Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's popularity

2008-12-22 Thread Luis M . González
On Dec 22, 12:11 pm, walterbyrd wrote: > I have read that python is the world's 3rd most popular language, and > that python has surpassed perl in popularity, but I am not seeing it. > > From what I have seen: > > - in unix/linux sysadmin, perl is far more popular than python, > windows sysadmins

Re: Python's popularity

2008-12-22 Thread Luis M . González
to use pypy to create a fast ruby implementation? Pypy is being developed by python developers and they will be happy to see a ruby, perl, logo or whatever language implemented with pypy. We are talking about tools, not religions. Those who use them to create useful, real life applications know it. Soon, we will be able to use python libraries from ruby and the other way around. the differences will be just a matter of taste, different syntax to achieve the same tasks. Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is slow

2008-12-22 Thread Luis M . González
On Dec 22, 3:42 pm, cm_gui wrote: > Python is slow. Haven't you said that already? Well, you did it so many times that you convinced me... I'll tell the Google folks that they are a bunch of ignorant fools for choosing python. That's why their business is doing that bad. They will surely go to h

Re: New Python 3.0 string formatting - really necessary?

2008-12-29 Thread Luis M . González
comment saying how much he liked the string formating, which is identical to the new one in python. I still can't get used to add the parenthesis to "print", and this is the only thing I don't like, but I'm sure there's a good reason for this change... Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python 3.0 string formatting - really necessary?

2008-12-29 Thread Luis M . González
On Dec 29, 9:44 pm, Steven D'Aprano wrote: > How do you lose backward compatibility by *adding* new functionality? The > old functionality will continue to work as normal. > > -- > Steven AFAIK it still works the old way, but it will be deprecated soon. -- http://mail.python.org/mailman/listinfo/

Re: How to import from a file which is not in the current directory?

2008-10-22 Thread Luis M . González
gt; from foo import blah So you add your desktop to "sys.path" and then import the function as though it is in the same directory. Hope this helps... Luis On 22 oct, 18:38, Kurda Yon <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to import a function from a file whic

Re: How to import from a file which is not in the current directory?

2008-10-22 Thread Luis M . González
> from foo import bar So you add your desktop to "sys.path" and then import the function as though it is in the same directory. Hope this helps... Luis On 22 oct, 18:38, Kurda Yon <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to import a function from a file which is

Unladen-Swallow: A faster python

2009-03-27 Thread Luis M . González
This is a new project started by two Google engineers to speed up python: http://code.google.com/p/unladen-swallow/ -- http://mail.python.org/mailman/listinfo/python-list

unladen swallow: python and llvm

2009-06-04 Thread Luis M . González
Well, these are a lot of questions and they only show my confussion... I would highly appreciate if someone knowledgeable sheds some light on this for me... Thanks in advance! Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Written in C?

2008-07-21 Thread Luis M . González
anything else, boy, don't lose your time. Use Python, get the job done with the least delay and have fun. My two cents... Luis On 20 jul, 19:50, [EMAIL PROTECTED] wrote: > I'm just learning about Python now and it sounds interesting. But I > just read (on the Wiki page) that mai

Re: Hobbyist - Python vs. other languages

2008-08-01 Thread Luis M . González
On 31 jul, 15:32, fprintf <[EMAIL PROTECTED]> wrote: > I have been playing with computers since I first learned to program > moving shapes on an Atari 800XL in BASIC. After many years of dabbling > in programming languages as a hobbyist (I am not a computer scientist > or other IT professional), I

<    1   2   3   4   5   6   >