Re: Python Card alternatives?

2011-06-11 Thread Luis M . González
As you said, desktop apps are losing appeal. I suggest looking for a web based solution. Perhaps python + silverlight? (I haven't tried it though). Unfortunately, the client-side (browser) is the domain of javascript. What I'm doing is polishing my html/css skills coupled with jquery. I have lost

Re: Anyone here can do a comparation between Djang and RoR

2011-08-16 Thread Luis M . González
On Aug 16, 2:11 pm, Seebs wrote: > On 2011-08-16, smith jack wrote: > > > what is the advantage of Django over RoR:) > > This question is pretty much... I mean, you're not gonna get useful > answers.  They're based on such different languages that I think any > comparison past that is likely goin

Re: pairwise combination of two lists

2011-08-17 Thread Luis M . González
This is the easiest and most pythonic way (IMHO): l3 = [i+e for i in li1 for e in li2] l3 ['a1', 'a2', 'b1', 'b2'] Regards, Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Please enlighten me about PyPy

2005-12-21 Thread Luis M. González
Hmmm... I know it's complicated, and all these questions can make your head explode. I'll tell you what I understand about Pypy and, at the same time, I'll leave the door open for further explanations or corrections. As you know, python is a dynamic language. It means, amongst other things, that t

Re: Please enlighten me about PyPy

2005-12-22 Thread Luis M. González
Well, first and foremost, when I said that I leave the door open for further explanations, I meant explanations by other people more knowlegeable than me :-) > Now I'm confused again--psyco translates Python into machine code--so > how does this tie in with the fact that the interpreter written in

Re: Guido at Google

2005-12-22 Thread Luis M. González
> Java => Sun > .Net => Microsoft > C# => Microsoft > Linux => too many big name IT companies to mention > Python => ? I know at least one company responsible for a linux distro (Cannonical - Ubuntu), which encourages and even pays programmers for developing applications in Python. His fo

Re: Please enlighten me about PyPy

2005-12-22 Thread Luis M. González
Thanks Carl for your explanation! I just have one doubt regarding the way Pypy is supposed to work when its finished: We know that for translating the rpython interpreter to C, the pypy team developed a tool that relies heavily on static type inference. My question is: Will this type inference al

Re: Please enlighten me about PyPy

2005-12-22 Thread Luis M. González
Carl Friedrich Bolz wrote: > The static type inference is just a means. It will not be used for the > speeding up of running programs. The problem with the current type > inference is that it is really very static and most python programs are > not static enough for it. > > Therefore we will rather

Re: Please enlighten me about PyPy

2005-12-22 Thread Luis M. González
> Anyway, I guess it's just a matter of time untill we can use this > translation tool to translate other programs, provided they are written > in restricted python, right? > So we will have two choices: > 1) running normal python programs on Pypy. > 2) translating rpython programs to C and compil

Re: Please enlighten me about PyPy

2005-12-22 Thread Luis M. González
Carl Friedrich Bolz wrote: > Actually, one of our current rather wild ideas (which might not be > followed) is to be able to even use RPython to write extension modules > for CPython. I don't think this is a wild idea. In fact, it is absolutely reasonable. I'm sure that creating this translation

Re: Please enlighten me about PyPy

2005-12-22 Thread Luis M. González
> Thanks for clearing up some of my confusion with PyPy, Luis! Hey, I'm glad you brought up this topic! This thread really helped me to understand some dark corners of this exciting project. I also want to thank Carl and all the other Pypy developers for their outstanding work! I've been quietly

Re: Guido at Google

2005-12-22 Thread Luis M. González
[EMAIL PROTECTED] wrote: > JB wrote: > > > long life to Guido & Goole ! many things to come ;) > > Google is merely the new Microsoft and surely just as unethical > at its core. > > And your spelling Goole is probably closer to the mark, > since it is merely the next ghoulish big company, > come to

Re: Guido at Google

2005-12-23 Thread Luis M. González
rbt wrote: > Go right ahead. Perhaps we should do one for Perl too: > > It's like having King Kong as your very own personal body guard ;) Good analogy: You know, they call Perl the "eight-hundred-pound gorilla" of scripting languages. Although most of the time, it would be a a very unsuitable bo

Re: Please enlighten me about PyPy

2005-12-25 Thread Luis M. González
Christian Tismer wrote: > Christian Tismer wrote: > > > This is not trying to split apart from PyPy, or to short-cut its > > goals. I'm completely with PyPy's goals, and it will do much > > more than RPython translation ever will, this is out of question. Hi Christian, I'd like to know, in your

Re: some suggestions about GUI toolkits?

2005-12-28 Thread Luis M. González
This question comes up in this mailing list every two or three days... I suggest taking some time to read previous threads (use Google Groups for en easier experience) and you'll find thousands of opinions and suggestions. My advice: check PythonCard http://pythoncard.sourceforge.net/ Good luck!

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-28 Thread Luis M. González
Anton Vredegoor wrote: > Google's not a nice company (yeah, I know I'm posting from a google > account). If you look at their job requirements it's clear they will > only hire people with long backstabbing histories. There seems to be no > room left for world improving undamaged souls in that comp

Guido working on Pypy?

2005-12-29 Thread Luis M. González
This article is in Dutch: http://www.computable.nl/nieuws.htm?id=1039941&WT.mc_id=rss According to this blog entry, it says that Guido has been hired by Google to work on Pypy: http://zephyrfalcon.org/weblog2/arch_e10_00870.html Is there anyone who can confirm this information? Luis -- http://m

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

Re: Sort dictionary

2006-01-02 Thread Luis M. González
This function returns 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..

Re: Sort dictionary

2006-01-02 Thread Luis M. González
You can't get a dictionary ordered by values, but you can get a list of key-value pairs ordered by value: def sortByValue(myDict): x = sorted( [(v,k) for k,v in myDict.items()] ) return [(k,v) for v,k in x] For getting only the first two pairs: sortByValue(x)[:2] Hope this helps

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 everywhe

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 impleme

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

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 th

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

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 hap

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 talented

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

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

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

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 us

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

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

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() fields

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 Jos

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 stand

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 mo

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

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 f

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

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

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'

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=all&lang=psyco&lang2=scala > > Bye, > bearophile Static typing, type inference, "sequence comprehensions"... Looks that there's a new crop of programming

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 grap

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

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 a

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 i

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.

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 pa

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

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

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 templ

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: Correr Programas Externos

2006-06-28 Thread Luis M. González
Gabriel wrote: > Hola a todos: > > Necesitaría correr otros programas desde python. Es decir Cuando > aprieto un boton que se abra el block de notas (por ejemplo) ¿Alguien > sabe como hacerlo? > Gracias > > -- > Gabriel Se hace así: import os os.startfile("notepad.exe") Esto te sirve para abrir

Re: Correr Programas Externos

2006-06-28 Thread Luis M. González
La lista en español esta acá: http://listas.aditel.org/listinfo/python-es Saludos, Luis -- http://mail.python.org/mailman/listinfo/python-list

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.

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'

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 testimon

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

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

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

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? > > > > Corr

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

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 re

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

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 > >> > >> > >> I'm no code guru but it sounds interesting. So can I import numpy, >

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 form

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 "" 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) == "": > > and > if type(artistList) == "list": > > but nothing.. You shouldn't enclose "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 late

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: Is python very slow compared to C

2006-02-12 Thread Luis M. González
Steven D'Aprano wrote: > What is slow? Slow compared to what? Would you prefer to spend three days > writing a program that will run in twenty milliseconds, or three hours > writing the same program which runs in eighty milliseconds? Is the > computer's execution time more important than your deve

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 powe

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

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 resourc

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

2007-06-21 Thread Luis M . González
On Jun 21, 4:24 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > > I have a sqlite database table which has a table named "Transmittal". > Before inserting a new record into the database, i'd like to perform > some checking. How do i select all records with certain value (say > "Smith"

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 that! PythonCard is a rapid way to prototype an ug

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
On Jun 29, 7:48 am, "Mark Dufour" <[EMAIL PROTECTED]> wrote: > Hi all, > > I have just released version 0.0.22 of Shed Skin, an experimental > Python-to-C++ compiler. Among other things, it has the exciting new > feature of being able to generate (simple, for now) extension modules, > so it's much

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, 2:06 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Please help me think of an example where immutable tuples are > essential. > > It seems that everywhere a tuple is used one could just as easily use > a list instead. > > chris I don't remember exactly where I read about it, but

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
On May 4, 6:12 pm, Fuzzyman <[EMAIL PROTECTED]> wrote: > On May 4, 5:27 pm, Kaz Kylheku <[EMAIL PROTECTED]> wrote: > > > > > On May 2, 5:19 pm, sturlamolden <[EMAIL PROTECTED]> wrote: > > > > On May 3, 2:15 am, Kaz Kylheku <[EMAIL PROTECTED]> wrote: > > > > > Kindly refrain from creating any more o

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

2007-05-16 Thread Luis M . González
On May 16, 6:04 pm, Victor Kryukov <[EMAIL PROTECTED]> wrote: > Hello list, > > our team is going to rewrite our existing web-site, which has a lot of > dynamic content and was quickly prototyped some time ago. > > Today, as we get better idea of what we need, we're going to re-write > everything f

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

2007-05-16 Thread Luis M . González
On May 16, 6:04 pm, Victor Kryukov <[EMAIL PROTECTED]> wrote: > Hello list, > > our team is going to rewrite our existing web-site, which has a lot of > dynamic content and was quickly prototyped some time ago. > > Today, as we get better idea of what we need, we're going to re-write > everything f

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

2007-05-16 Thread Luis M . González
On May 16, 6:04 pm, Victor Kryukov <[EMAIL PROTECTED]> wrote: > Hello list, > > our team is going to rewrite our existing web-site, which has a lot of > dynamic content and was quickly prototyped some time ago. > > Today, as we get better idea of what we need, we're going to re-write > everything f

Re: PHP5 programmer learning Python

2007-05-27 Thread Luis M . González
On May 27, 12:41 pm, romiro <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm a PHP5 developer looking to "broaden my horizons" so to speak by > learning a new language. I emphasize the 5 in PHP since I have fully > engrossed myself in the full OOP of version 5 with my own ground-up > projects as well a

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

  1   2   3   >