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? Never mind, I think

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 usenet- [EMAIL PROTECTED] wrote: Mark Dufour wrote: Shed Skin allows for translation of pure (unmodified), implicitly statically typed Python programs into optimized C++, and hence, ^

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 usenet- [EMAIL PROTECTED] 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 clear that even

Re: PyPy 1.0: JIT compilers for free and more

2007-03-27 Thread Luis M. González
Carl Friedrich Bolz wrote: == PyPy 1.0: JIT compilers for free and more == Welcome to the PyPy 1.0 release - a milestone integrating the results of four years of research, engineering, management and sprinting

Re: PythonCard thoughts

2007-03-19 Thread Luis M. González
On Mar 19, 11:44 am, king kikapu [EMAIL PROTECTED] wrote: I don't know much about PythonCard or wxGlade, but I use wxPython (which wxGlade uses, right?) and you now have the option to separate your GUI and code using an XRC file (xml file that describes layout). So perhaps this is

Passing arguments to a command line from a python script

2007-03-19 Thread Luis M. González
Please forgive me if what I'm asking is non sense... I created a little program to authomate the creation of the setup.py script for py2exe. It simply prompts for the main executable script name and then creates setup.py, as follows: # this is makesetup.py nombre = raw_input('File name?: ') f

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 execute the script is from a command line and typing

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: En Mon, 19 Mar 2007 20:46:56 -0300, Luis M. González [EMAIL PROTECTED] escribió: What I want now

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. It works! Thank you, this is just what I wanted. You'll get better

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 compared to equivalent code in c#. I wonder if there is any way to emulate

Re: class declaration shortcut

2007-03-01 Thread Luis M. González
On Mar 1, 3:03 pm, Arnaud Delobelle [EMAIL PROTECTED] wrote: On Mar 1, 4:01 pm, Steven Bethard [EMAIL PROTECTED] wrote: Arnaud Delobelle wrote: [...] This does pretty much the same thing as the recipe I posted: Not at all. My new_struct create returns a new class which is similar to a C

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=entab=wbq=pyconbtnG=Search+Blogs -- http://mail.python.org/mailman/listinfo/python-list

class declaration shortcut

2007-02-28 Thread Luis M. González
I've come across a code snippet in www.rubyclr.com where they show how easy it is to declare a class compared to equivalent code in c#. I wonder if there is any way to emulate this in Python. The code is as follows: Person = struct.new( :name, :birthday, :children) I tried something like this,

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 any way to emulate this in Python. The code

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

2007-01-10 Thread Luis M. González
Emin wrote: Dear Experts, When writing large classes, I sometimes find myself needing to copy a lot of parameters from the argument of __init__ into self. Instead of having twenty lines that all basically say something like self.x = x, I often use __dict__ via something like: class

Re: Python - C# interoperability

2007-01-09 Thread Luis M. González
mc wrote: Is there an easy way to compile a Python class (or set of classes) into a .DLL that a C# program can call? Or otherwise to use an existing library of Python classes from a C# program as seamlessly as possible? I'm affraid this is not possible. Ironpython (the .NET python

Re: How to detect what type a variable is?

2006-11-29 Thread Luis M. González
Leandro Ardissone wrote: great, thanks And how I can compare this type 'str' output ? I want to decide what to do if the var is an string and what to do if not.. Tried with: if type(artistList) == type 'list': and if type(artistList) == list: but nothing.. You shouldn't enclose

Re: Python v PHP: fair comparison?

2006-11-16 Thread Luis M. González
Cameron Laird ha escrito: In article [EMAIL PROTECTED], Luis M. González [EMAIL PROTECTED] wrote: . . . Then look no further. Learn python and go kick php developers asses in the market place. There are thousands of php

Re: Python v PHP: fair comparison?

2006-11-16 Thread Luis M. González
Fredrik Lundh ha escrito: Luis M. González wrote: But as a web development language, it's olnly when people started to look for the rails killer and many python alternatives started to come up (although Django has been in development for a long time before all this hype). nah, people

Re: Python v PHP: fair comparison?

2006-11-16 Thread Luis M. González
[EMAIL PROTECTED] ha escrito: Luis M. González wrote: Cameron Laird ha escrito: Perhaps it's timely to clarify the newer above: Guido made Python public in '89-90, and Rasmus showed PHP to others in '94-95. OK. But since when has python been considered a viable alternative

Re: Python v PHP: fair comparison?

2006-11-15 Thread Luis M. González
walterbyrd ha escrito: Luis M. González wrote: the new crop of web frameworks (Django, Turbo Gears, etc...). - Newer versions of mod_python require Apache 2.0, which few hosters have You can also get alder versions of mod_python. What's the problem? The problem

Re: Python v PHP: fair comparison?

2006-11-14 Thread Luis M. González
- Python is more readable, and more general purpose Yes, php is only for web. On the other hand, Python is a general purpose language and it can be used for nearly anything you may want to do. - PHP has awful backward compatibility Yes. And it's also an ugly language to work with. - PHP

Re: Python v PHP: fair comparison?

2006-11-14 Thread Luis M. González
Yes, php is only for web. Absolutely false. Most of my standalone, command-line scripts for manipulating my unix users in LDAP are written in PHP, although we're rewriting them in python. Although I can't think of a single app written in php that's not web- based (other than standalone

Re: Learning Python

2006-11-06 Thread Luis M. González
kaushal wrote: Hi How do i start Learning Python,is there any reference material which I can refer since I dont have any programming experience Thanks and Regards Kaushal If you have no programming experience at all, I highly recomend Non Programmers Tutorial for Python by Josh

Re: SQL reports like in MS Access

2006-09-24 Thread Luis M. González
This isn't probably the answer you are looking for, but a good solution that worked for me is Cheetah. Cheetah is a template engine, which is mainly used for web applications, but that can be used for generating all kinds of text documents. For example, I use it for creating invoices in html

Re: IronPython 1.0 released today!

2006-09-07 Thread Luis M. González
Chris wrote: Diez B. Roggisch wrote: Chris wrote: Jim Hugunin wrote: I'm extremely happy to announce that we have released IronPython 1.0 today! http://www.codeplex.com/IronPython snip I'm no code guru but it sounds interesting. So can I import numpy, scipy, matplotlib,

Re: python web framework for straight sql (no ORM)?

2006-09-04 Thread Luis M. González
falcon wrote: Can someone please recommend a python web app framework which doesn't abstract away sql in favor of python objects? As far as I can tell, frameworks such as django, turbo gears, etc. allow one to drop down the the sql layer, however that is not the most effecient use of the

Re: Python web service ...

2006-08-26 Thread Luis M. González
[EMAIL PROTECTED] wrote: My question is how difficult is to set up a web server that can run python easy ? should I try ZOPE or there is something better in mind ? I also second the suggestion of using Karrigell. It comes with its own built-in server, and the task would be as simle as writing

Re: How to get database metadata information (i.e. existing tables and columns in tables)

2006-08-22 Thread Luis M. González
If you want to know the names of the fields on a recordset, you can use cursor.description. For example, lets say you have a connection to a MySQL database: con = MySQLdb.connect('localhost','root','','mydb') cur = con.cursor() cur.execute('select * from customers') result = cur.fetchall()

Re: programming with Python 3000 in mind

2006-08-15 Thread Luis M. González
[EMAIL PROTECTED] ha escrito: At http://www-03.ibm.com/developerworks/blogs/page/davidmertz David Mertz writes Presumably with 2.7 (and later 2.x versions), there will be a means of warning developers of constructs that are likely to cause porting issues [to Python 3000]. In the simplest

Re: looking for a simple way to load a program from another python program..

2006-08-13 Thread Luis M. González
Try this: import os os.startfile('cabel.py') This should work with any program or file, not only python ones. Hope this helps, Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread Luis M. González
BartlebyScrivener wrote: [EMAIL PROTECTED] wrote: The Ruby crowd says you guys are no where near as friendly as them! Slander! Defamation! The time to crush our enemies has come. This is the Jihad! Death to the infidels -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python for my web site

2006-08-01 Thread Luis M. González
Cliff Wells wrote: On Mon, 2006-07-31 at 22:25 -0700, Luis M. González wrote: I don't have experience with Django or any other python framework, but I have used bare-bones mod_python and it rocks. I wouldn't use PSP though... It is not very polished, and they way it handles

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread Luis M. González
Delaney, Timothy (Tim) wrote: Edmond Dantes wrote: Of course, it's all what you really mean by clever. To me, being clever partly means writing code without bugs in the first place, so there is nothing that needs debugging Clever in this context generally means using a

Re: Using Python for my web site

2006-07-31 Thread Luis M. González
I don't have experience with Django or any other python framework, but I have used bare-bones mod_python and it rocks. I wouldn't use PSP though... It is not very polished, and they way it handles the indentation problem in python is a little bit confussing. IMHO the best way of using mod_python

Re: free python hosting !

2006-07-11 Thread Luis M. González
John Salerno wrote: Luis M. González wrote: I'm curious, why it didn't work? I sent them an email recently, asking about mod_python support, and they replied afirmatively, and very quickly. They also said that they can install other scripts on demand. But I never tried them though

Re: free python hosting !

2006-07-11 Thread Luis M. González
John Salerno wrote: Luis M. González wrote: John Salerno wrote: Luis M. González wrote: I'm curious, why it didn't work? I sent them an email recently, asking about mod_python support, and they replied afirmatively, and very quickly. They also said that they can install other

Re: free python hosting !

2006-07-10 Thread Luis M. González
John Salerno wrote: John Salerno wrote: Bayazee wrote: i want a free hosting for python . so i can make my scripts and upload to server . i want to use mod_python ... good luck with that... p.s. you might look into http://dollar-hosting.org/ it's very cheap and supposedly

Re: mod_python fails to load under wamp

2006-07-10 Thread Luis M. González
Gaurav Agarwal wrote: Hi, Am using WAMP5 and python 2.4.3. I tried to install mod_python 3.2.5 for python2.4. When i tried starting wamp, Firstly there was no error message in the apache error log. I saw error message in windows event viewer : The Apache service named Apache.exe reported

Re: I thought I'd 'got' globals but...

2006-07-07 Thread Luis M. González
Bruno Desthuilliers wrote: def doIt(name=None): global gname if name is None: name = gname else: gname = name Sorry for this very basic question, but I don't understand why I should add the global into the function body before using it. This function works even if I don't

Re: I thought I'd 'got' globals but...

2006-07-07 Thread Luis M. González
nate wrote: try this: gname = 'nate' def test(): gname = 'amy' print gname test() print gname outputs: 'amy' 'nate' whereas this: gname = 'nate' def test(): global gname gname = 'amy' print gname test() print gname outputs: 'amy' 'amy' OK, so I should

Re: I thought I'd 'got' globals but...

2006-07-07 Thread Luis M. González
Markus Wankus wrote: On Fri, 07 Jul 2006 19:41:36 -0400, Luis M. González [EMAIL PROTECTED] wrote: . . OK, so I should include the global only if I plan to modify it. Otherwise, I don't need to include it. Am I right? Correct. Globals are always available to read from. You need

Re: For a fast implementation of Python

2006-07-04 Thread Luis M. González
Pypy aims to become (probably sometime next year) a strong candidate to replace cpython as the main python implementation. Its goals are very ambicious and one of them is making it fast. Some of its developers even think it can get as fast as C, although I think that if it can get as fast as java,

Re: For a fast implementation of Python

2006-07-03 Thread Luis M. González
. wrote: What is the fast way for a fast implementation of Python? -- JavaScript implementation of Python http://groups.google.it/group/JSython/ Check this out: http://codespeak.net/pypy/dist/pypy/doc/news.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Reddit broke - should have remained on Lisp?

2006-06-30 Thread Luis M. González
Alok wrote: Luis M. González wrote: Alok wrote: I was merely describing my experience and inviting others' response about theirs. That's exactly what I'm doing. You misinterpret, I was talking about my experience with the site and inviting response from other people about

Re: Reddit broke - should have remained on Lisp?

2006-06-29 Thread Luis M. González
Alok wrote: While posting a comment on http://www.reddit.com I got an error page with the following curious statement on it. reddit broke (sorry) looks like we shouldn't have stopped using lisp... See screenshot at http://photos1.blogger.com/blogger/1773/1980/1600/reddit-broke.jpg

Re: Reddit broke - should have remained on Lisp?

2006-06-29 Thread Luis M. González
Alok wrote: I was merely describing my experience and inviting others' response about theirs. That's exactly what I'm doing. Please don't misconstrue that as a blame on any language. I think it can be interpreted in many ways. Now if you're not ready to read other people's oppinions, don't

Re: Reddit broke - should have remained on Lisp?

2006-06-29 Thread Luis M. González
K.S.Sreeram wrote: Have people lost all sense of humor?? Its just reddit's attempt at humor! I've rarely seen any server errors on reddit, but even when I do see one.. its funny! Here's another one: http://www.flickr.com/photos/pvera/sets/72057594050280833/ Check out their testimonials,

Re: web Develop question

2006-06-28 Thread Luis M. González
[EMAIL PROTECTED] wrote: hi guys , I' m new to python ...and I would like to ask you , wich is the best template for developing dinamic generated pages using python ? I would like to use something easy to install and develop like php ? ? tags and with a lots of features . thanks in

Re: compiling python (or ironpython) to .exe or .dll for or not for .NET

2006-06-28 Thread Luis M. González
per9000 wrote: Hi python people, I am working with .NET (in C++/CLI and C#) but since I really love python I'd like to do things for .NET (or whatever) from python. Has anyone tried it? What (costless) compilers are good? Are there any (costless) editors like MS Visual Express you have

Re: web Develop question

2006-06-28 Thread Luis M. González
[EMAIL PROTECTED] wrote: Dear Luis , Thanks for your kindly answer , so you say that installing mod_python and a template like chetaah or dyango I can do like as I do with php and Apache ? Do not get confussed: Django is a complete web development framework, and Cheetah is just a template

Re: web Develop question

2006-06-28 Thread Luis M. González
Just to give you an idea of what it is, you can check this article: http://www.onlamp.com/pub/a/python/2004/02/26/python_server_pages.html... This explains the whole thing much better than I did with my poor english... Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Iterating a list in reverse ?

2006-06-21 Thread Luis M. González
Andy Dingley [EMAIL PROTECTED] wrote: Python newbie: I've got this simple task working (in about ten different ways), but I'm looking for the favoured and most Python like way. Forwards I can do this for t in listOfThings: print t Now how do I do it in reverse? In particular, how

Re: wxPython GUI designer

2006-06-19 Thread Luis M. González
[EMAIL PROTECTED] wrote: I am newbie learning wxPython. I tried using GUI designer called wxGlade. When it generated code I couldnt get the same level of flexibility as writing the code by oneself. Any view on what you think about using GUI designer tools. Every help is appreciated. Try

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Luis M. González
Thomas Guettler wrote: There are some things in Python I don't know very well: Decorators and generators. But somehow I don't think that I really need them. I think that I learn best when I have a problem and I'm trying to solve it. There are features that you don't know what they're for, and

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Luis M. González
BartlebyScrivener wrote: I'd like something a bit like a module, but I'd like to make several of them, and not have them interfere with each other. Thank you. I sense what you are saying, but at this point I'd be thinking, Why not just make several modules? :) I'll get to it. I've got

Re: Very nice python IDE (windows only)

2006-06-13 Thread Luis M. González
Jan Bijsterbosch wrote: Hello Luis, Luis M. González [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I happen to have delphi, so if someone wants me to make small changes, just let me know, I'll try to help Hmm... now that you offer, would

Re: Combining The Best Of Python, Ruby, Java??????

2006-06-13 Thread Luis M. González
Diez B. Roggisch wrote: But semantically it is a proper functional language. The features may not attract Python users who might prefer Boo/Jython/IronPython. But it does offer something to disillusioned Groovy users. Are they disillusioned? Just wondering. Diez Whay talking about

Re: Combining The Best Of Python, Ruby, Java??????

2006-06-12 Thread Luis M. González
[EMAIL PROTECTED] wrote: Scala seems terse and fast enough, few examples: http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=alllang=psycolang2=scala Bye, bearophile Static typing, type inference, sequence comprehensions... Looks that there's a new crop of programming languages

Re: Very nice python IDE (windows only)

2006-06-12 Thread Luis M. González
[EMAIL PROTECTED] wrote: I happen to have delphi, so if someone wants me to make small changes, just let me know, I'll try to help Hmm... now that you offer, would it be possible to have the colors of text just like in IDLE? I tried configuring the colors, but some of them don't exist as

Re: Very nice python IDE (windows only)

2006-06-12 Thread Luis M. González
Jonathan Ellis wrote: ago wrote: I have just discovered Python Scripter by Kiriakos Vlahos and it was a pleasant surprise. I thought that it deserved to be signalled. It is slim and fairly fast, with embedded graphical debugger, class browser, file browser... If you are into graphical

Re: C# equivalent to range()

2006-06-05 Thread Luis M. González
Fuzzyman wrote: FWIW I agree. If anyone didn't want to answer the question they didn't need to. Why be rude to someone asking a polite question. It's not as if there isn't much more *worse* noise on this group. I also agree. Although the question may have appeared out of place, it wasn't

Re: DB-API: how can I find the column names in a cursor?

2006-06-01 Thread Luis M. González
I don't know if it works this way with Oracle, but the python dbpai has the cursor.description method that can help. For example: cur.execute( your query here ) columns = [i[0] for i in cur.description] cur.description gives a lot of data about your recordset, and the first field is the column

Re: C# equivalent to range()

2006-06-01 Thread Luis M. González
Erik Max Francis wrote: Yeah, what jerks. They actually wanted to talk about Python, not some random other language that you're trying to learn that has nothing to do with it ... There are thousands of threads to choose from in this forum. If they didn't like this question, they could have

Re: Are there something like Effective Python?

2006-06-01 Thread Luis M. González
Mike Meng wrote: Hi all, I just finished reading Learning Python 3rd ed, and am doing my first Python application, which retrieves and process text and XML documents from Web. Python helped me to write the application in a few hours, I'm very happy with its productivity. But the

Re: Very good Python Book. Free download : Beginning Python: From Novice to Professional

2006-05-29 Thread Luis M. González
I didn't know it wasn't a free ebook. I realized it once I downloaded it. But it's such a good book that I decided to buy a hard copy. This way I will support its author, while getting a very good book on Python. Luis -- http://mail.python.org/mailman/listinfo/python-list

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 as

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 as

Re: Python Programming Books?

2006-05-25 Thread Luis M. González
Free online resources for learning Python: To get started, I strongly suggest Josh Cogliati's Non-Programmers Tutorial for Python ( http://honors.montana.edu/~jjc/easytut/easytut/ ). I learned programming with this little tutorial, which is a very good introduction. After that, you could check

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

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... I

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: 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:

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: 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: 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

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: Should I learn Python instead?

2006-04-14 Thread Luis M. González
First of all, let me tell you that you can now write apps for .NET with Python. There's a python implementation for the .NET framework called Ironpython (in beta 5 now). Regarding XML, I can't tell you much but in general, python is much easier, cleaner, concise and intuitive than all the other

Re: New Karrigel page in Wikipedia

2006-04-13 Thread Luis M. González
When you talk about the Karrigell folks it looks like there's a bunch of guys out there ploting to rule the world. It's nothing like that. I just read Pierre's comments about this article, and decided to post a message in comp.lang.python to let everybody know about it. Perhaps my post looked

New Karrigel page in Wikipedia

2006-04-12 Thread Luis M. González
For those interested in the simplest, easiest and most pythonic web framework out there, there's a new page in Wikipedia: http://en.wikipedia.org/wiki/Karrigell -- http://mail.python.org/mailman/listinfo/python-list

Re: Python2CPP ?

2006-04-12 Thread Luis M. González
You should check Shed Skin (Python-to-C++ Compiler): http://shed-skin.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

PyPy is now able to compile efficient extension modules!

2006-03-26 Thread Luis M. González
PyPy is now able to compile efficient extension modules!. This was recently announced by Christian Tismer on Pypy's mailing list. To learn more: http://codespeak.net/pipermail/pypy-dev/2006q1/002911.html -- http://mail.python.org/mailman/listinfo/python-list

Re: New-style Python icons

2006-03-21 Thread Luis M. González
This is strange... I've been trying to access this site since yesterday, but I couldn't (Firefox can't stabilish connection with server www.doxdesk.com). However, I seem to be the only one with this problem... -- http://mail.python.org/mailman/listinfo/python-list

Re: New python.org site

2006-03-11 Thread Luis M. González
I wouldn't want to sound like I'm criticizing other people's work. To those who offered their time to create this site, which is quite an improvement over the old one, thank you! However, I like the idea of a contest. Both for the site and for the logo. Perhaps something cool could come up from

Re: Is Python a Zen language?

2006-02-25 Thread Luis M. González
I don't know if python is Zend. It's quite minimalistic and it flows very well, so I guess it is a... Feng-shui language? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python vs. Lisp -- please explain

2006-02-22 Thread Luis M. González
Carl Friedrich Bolz wrote: Paul Rubin wrote: Well. ... the PyPy team works on ... is definitively much too strong. It is more like ... the PyPy team is thinking about It is very unclear whether it will work on a technical level and whether the EU will allow us to allocate resources

Re: Python vs. Lisp -- please explain

2006-02-19 Thread Luis M. González
IMO, it's the lack of competing implementations. I beg to differ in this point. There are other implementations, but they are not called python and they are not a 100% python in syntax and features. For example, Boo is 95% python syntax wise, but statically typed. This fundamental difference

Re: how to get function names from the file

2006-02-17 Thread Luis M. González
eval is not necessary in this case. If you have a tuple with function names such as this: x=(printFoo, printFOO) you can execute them this way: for f in x: f() -- http://mail.python.org/mailman/listinfo/python-list

Re: Python / Apache / MySQL

2006-02-14 Thread Luis M. González
Just a few comments... Database: As with anything else, try to keep it simple until you need to make it complex. Sqlite is the simplier alternative, and it's also the fastest for the intended use (small number of users, simple selects, etc). MySQL is also a very good alternative and much more

Re: Learning Python

2006-02-05 Thread Luis M. González
Use input to enter numbers, and raw_input to enter strings. For example: x = input('Enter your age: ') y = raw_input('Enter your name: ') -- http://mail.python.org/mailman/listinfo/python-list

Re: VB to Python migration

2006-01-28 Thread Luis M. González
I second the suggestion of using Boo for this case. Why use Delphi or VB when you have a more pythonic first class .NET language? You already have a very good IDE for creating your project (SharpDevelop), which is free, open source and already has the Boo bindings included (download here the

Re: Microsoft IronPython?

2006-01-06 Thread Luis M. González
I think that this posted message in Jim Hugunin's weblog clearly shows what are Microsoft intentions regarding Python and other dynamic languages: http://blogs.msdn.com/hugunin/archive/2006/01/05/509812.aspx We're hiring full-time and summer interns! We're looking for a few exceptionally

Re: Quickest way to make py script Web accessible

2006-01-05 Thread Luis M. González
Karrigell lets you run pure python scripts, although not directly in Apache. It uses its own server running behind apache. You can code in 4 styles: -pure python scripts -python in html (like in PHP) -html in python -karrigell services (mapping functions to urls) http://karrigell.sf.net Hope

Re: Microsoft IronPython?

2006-01-05 Thread Luis M. González
Ray wrote: But then again, once you start using .NET class you're tied to .NET anyway so this is not a big problem, I think--although the more perfectionist among us might like to isolate parts of Python code that are .NET/IP specific to make porting easier if it ever comes to that... That's

Re: Microsoft IronPython?

2006-01-05 Thread Luis M. González
EP wrote: - create a more prevalent version of Python that is less Pythonic or undermines some of the principles of the language, basically usurping Python as we conceive it in the process... I understand all the concerns, the evil empire and all that.. But I think nothing of this will

Re: Microsoft IronPython?

2006-01-04 Thread Luis M. González
Oh, yeah, that's undoubtedly true. What I was referring to were things such as using [] for generic, that doesn't exist in current CPython does it? I'm not en expert on the subject, but I guess that any language implementation running on .Net should be able to at least understand generics or

Re: Microsoft IronPython?

2006-01-03 Thread Luis M. González
Ironpython has been in development from awhile, and now it's in beta version 1.0. Is it good to have Python running on every existing platform out there? Of course it is. Is it good to have Python running on Java and .NET? Sure, why not? One of the good things about Python is that it runs

Re: Microsoft IronPython?

2006-01-03 Thread Luis M. González
IronPython as it is now is already slightly different from CPython isn't it? Because it has to capture features of CLR languages that are not in Python (such as using generic containers). Hmm... I'm not sure what you mean by capture features of CLR. I think Ironpython is a faithful

Re: Sort dictionary

2006-01-02 Thread Luis M. González
This function return a tuple of value-key pairs, sorted by value: x = {'a':3, 'b':2, 'c':4} def sortByValue(myDict): return sorted( [(v,k) for k,v in myDict.items()] ) If you want to get the first two value-key pairs: sortByValue(x)[:2] [(2, 'b'), (3, 'a')] Hope this helps... Luis

<    1   2   3   >