Re: Django Vs Rails

2005-09-15 Thread Jorge Godoy
well... Ah! Of course one should not forget of mapping views as well. :-) Having some way to create logic to update the view is nice if the selected database doesn't support it (e.g. with rules when using PostgreSQL). But then, I'm far out of Python with this message :-)

Re: IDE, widget library

2005-09-15 Thread Jorge Godoy
gave me some trouble since they didn't had the driver I was using (QPSQL7) and ODBC was crashing here... :-) But it worked like a charm. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE, widget library

2005-09-15 Thread Jorge Godoy
I have here. But Eclipse is really interesting. Specially if you use its structure while developing the application (but then, you fall out of Python -- I dunno how compatible with it Jython is). -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE, widget library

2005-09-15 Thread Jorge Godoy
th Trolltech's license. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: p2exe using wine/cxoffice

2005-09-15 Thread Jorge Godoy
James Stroud <[EMAIL PROTECTED]> writes: > "better". The only reason I want this functionality is to make my software > available to windoze users--despite their unfortunate ignorance, they are > people too. That's what I always say. +1 QOTW... -- Jorg

Re: Postgres PL/Python

2005-09-15 Thread Jorge Godoy
ake system less prone to errors when you have multiple interfaces (besides making it easier to fix / add database logic). Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Open PDF

2005-09-22 Thread Jorge Ramirez
Hello,   I would like to know how to open a PDF document from a python script, any suggestions are appreciated.   Thanks,   JR -- http://mail.python.org/mailman/listinfo/python-list

Simultaneous Adobe Reader

2005-09-22 Thread Jorge Ramirez
Hello,   From windows, using a python script how can I open Adobe Reader without displaying a PDF document?  Furthermore, using a script is it possible to run two Adobe Reader sessions simulatneously.  Thanks in advance.   Kind Regards, JR -- http://mail.python.org/mailman/listinfo/python-

Re: closing tabs in wxpython

2005-02-28 Thread Jorge Godoy
"Raghul" <[EMAIL PROTECTED]> writes: > Can anybody help in closing tabs in wxpython.Pls give me a sample > program for explaining this.Thanx in advance Check the demo. It is there along with several other faciliies. Be seeing you, Godoy. -- http://mail.python.org/mailman/listinfo/python-lis

Re: None in string formatting

2005-03-08 Thread Jorge Godoy
[EMAIL PROTECTED] writes: > Was doing some string formatting, noticed the following: > > >>> x = None > >>> "%s" % x > 'None' > > Is there a reason it maps to 'None'? I had expected ''. How would know, then, if there was no value at all or if it was an empty string? -- Godoy. <[EMAIL PR

Re: Regular Expression Problem...

2004-12-01 Thread Jorge Godoy
[EMAIL PROTECTED] writes: > #CODE BEGIN > import re > > mystring = "This Is An \$EXAMPLE\String;" > regex = re.compile("[\$]+\S*",re.IGNORECASE) > keys = regex.findall(mystring) > > #CODE END regex = re.compile("[\$]+\w*",re.IGNORECASE) >>> import re >>> >>> mystring = "This Is An \$EXAMPLE\Stri

Re: How do I parse this ? regexp ?

2005-04-27 Thread Jorge Godoy
e split string method. It will split on spaces by default. If you want to keep the values inside "[]" together, remove the spaces before splitting or split on the "[" char first and then split the first item using spaces as a separator. Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Python site-packages and import

2005-04-29 Thread Jorge Godoy
med id3.ID3 > >>> It is missing a file named "__init__.py" at /usr/lib/python2.3/site-packages/id3 Without it Python won't consider "import id3" as valid (and consequently won't import submodules as well). Just 'touch' the file and try again.

read 4D binary data

2015-11-26 Thread jorge . conrado
Hi, I'm startig in Python and I have a 4D binary data. The dimension of my data is: 67 > longitude points 41 > latitude points 10 > pressure levels points 33 > time points How can I read this data and what can I do to get a 2D array (longitude,latitude) for a specific press

4D arrays

2015-12-01 Thread jorge . conrado
Hi, I use the IDL but now I'm change to PYTHON. I have a 4D array (time, level,lon,lat). I would like to get a 2D array for a specific time (time1) and level (level1). In IDL I use: 2Darray = 4Darray(time1,level1,*,*). How can I get the 2D array in Python Conrado -- https://mail.python.or

python message

2015-12-02 Thread jorge . conrado
Hi, I'm a new user of Pyhton and I run my code lenetcdf1.py and I plot the figure but I had this message: /usr/lib64/python2.7/site-packages/matplotlib/collections.py:590: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise c

define the area plot

2015-12-07 Thread jorge . conrado
Hi, I'm changing from the IDL to PYTHON. I would like know how can I define the size of the window plot in Python. On IDL I define the size of area plot by: window,1,xsize=1000,ysize=1000 It is possible define the size of the window before my data is plotted. Conrado -- https://mail.pyt

netcdf 4 time

2015-12-15 Thread jorge . conrado
Hi, I'm reading ndetcdf 4 data from NCEP Reanalyisis project. I use to read the data: air_2010_2014_850hPa_d.nc is four year daily data. mport matplotlib.pylab as plt from netCDF4 import Dataset, num2date, date2index, date2num import pandas as pd from mpl_toolkits.basemap import Basemap im

geostationary satellite data

2015-12-16 Thread jorge . conrado
Hi, I dowmloaded some data from the Mirador NASA site: http://mirador.gsfc.nasa.gov/cgi-bin/mirador/presentNavigation.pl?tree=project&dataset=Global-merged%20IR%20Brightness%20Temperature%20Data&project=TRMM&dataGroup=Ancillary&version=001&CGISESSID=97f4b9244878c87819b2a1144d31e270 Each da

netcdf read

2015-09-01 Thread jorge . conrado
Hi, I'm starting in the Python scripts. I run this script: import numpy as np import netCDF4 f = netCDF4.Dataset('uwnd.mon.ltm.nc','r') f.variables and I had the message: netcdf4.py Traceback (most recent call last): File "", line 1, in NameError: name 'netcdf4' is not defined Wh

error

2015-09-02 Thread jorge . conrado
Hi, I have a Python version: Python 2.7.8 I'm runing it on: Fedora release 21 Yesterday I a sent a question: I'm starting in the Python scripts. I run this script: import numpy as np import netCDF4 f = netCDF4.Dataset('uwnd.mon.ltm.nc','r') f.variables and I had the message: netcd

Re: Which Python web framework is most like Ruby on Rails?

2005-12-13 Thread Jorge Godoy
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Are there other Rails clones in Python land I don't know about? > > Which one has largest community/buzz about it? http://www.turbogears.com ;-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get the local mac address?

2005-12-15 Thread Jorge Godoy
addresses can be cloned, changed, etc. But this is one use case for knowing the MAC address and not using it with networking. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: reading files

2005-12-19 Thread Jorge Godoy
t; vsftpd.close() Close the file. > When I run the script I get the following: > > python reading_file.py > > > Does anyone have any advice on this issue at all. What issue? You did nothing with what you read, just with the object itself. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Run Oracle stored procedure without ODBC

2005-12-22 Thread Jorge Godoy
l the stored procedure. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I determine an HTTPMessage ?

2006-01-11 Thread Jorge Godoy
d a thousand, and I forgot it. Could > someone please remind me what it was? 3.14159265352 -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualquer coisa dita em latim soa profundo. - Anything said in Latin sounds smart. -- http://mail.python.org/mailman/listinfo/python-list

Re: return values of os.system() on win32

2006-01-13 Thread Jorge Godoy
rbt <[EMAIL PROTECTED]> writes: > Is it safe to say that any value returned by os.system() other than 0 is an > error? I believe not. That depends on the return/error code of the specific program you ran. -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine di

Re: OT: excellent book on information theory

2006-01-19 Thread Jorge Godoy
Terry Hancock <[EMAIL PROTECTED]> writes: > I don't remember where this is posted. The trick was in > overloading the <, >, or | to interact specially with > "operator" objects. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/384122 -- Jorge Godoy

Re: Why optparse wont import?

2006-01-20 Thread Jorge Godoy
t everything works fine. What's the > problem? Rename your file to something other than optparse.py... -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualquer coisa dita em latim soa profundo. - Anything said in Latin sounds smart. -- http://mail.python.org/mailman/listinfo/python-list

Re: Coding style

2006-07-18 Thread Jorge Godoy
her hand, having this behavior makes it so simple to deal with some algorithms because on doesn't need to know if the given object does or does not support len()... Having to test if something is of certain type then choosing what kind of test to apply is not something I'd like to h

Re: Automatic email checking - best procedures/suggestions

2006-07-27 Thread Jorge Godoy
other hand, if you need the message processed as soon as it arrives you can make your program a filter -- or have a filter to call it somehow -- to process the message. Also consider the startup time of your code for each processed message, concurrency issues, etc. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

how to solve TypeError: list objects are unhashable?

2006-07-28 Thread Jorge Vargas
Hello listI'm not a newbie on python but I'm not an expert either and just found out that code like this gives the above exception.    self.db={}    self.db["foo"]=[1,2]    self.db ["bar"]=[2,3]I now undestand why this is giving me a problem and I think i'm using the wrong approachfirst

Re: easy question about join method

2006-08-06 Thread Jorge Godoy
','a','list'] > > how can i make it print as a single string? or make a single string out > of it ? print ' '.join(x) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Beautiful Soup

2006-08-18 Thread Jorge Godoy
know that I use an "include" statement, but do I first need > to make a copy of BeautifulSoup.pyc or BeautifulSoup.py into the Python > directory? Thanks in advanced for any and all help that you may > provide. Many thanks. Read the tutorial: http://docs.python.org/tut/tut.html S

Re: How to catch these kind of bugs in Python?

2006-08-19 Thread Jorge Godoy
. These types of bugs would easily be caught in languages that > have a specific keyword or syntax for declaring variables before use. > I'm still fairly new to using Python on a more than casual basis, so I > don't know if Python has anyway to help me out here. Unit

Re: install patch on windows

2006-08-19 Thread Jorge Godoy
You can get patch (and quite a lot besides) for win32 from >> the UnxUtils project: >> >> http://sourceforge.net/projects/unxutils >> >> TJG > > Thanks, but that project seems to be dead The files there didn't work? -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Permission Denied

2006-08-20 Thread Jorge Godoy
Yes. This is the best. > Choose the one you're most comfortable with. :-) ;-) And think about security as well. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Rich text processor component

2006-10-06 Thread Jorge Vilela
Hello, do anyone know if exists anything about rich text processor in python, as a component or good tutorial about it?Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Dive Into Java?

2006-10-08 Thread Jorge Vargas
Sun's Java tutorial, and went your confortable with it. Thinking in Java Bruce Eckel On 8 Oct 2006 15:30:15 -0700, erikcw <[EMAIL PROTECTED]> wrote: > DiveIntoPython.org was the first book I read on python, and I really > got a lot out of it. I need to start learning Java (to maintain a > projec

Re: People's names

2006-10-10 Thread Jorge Godoy
hould be sorted under "Silva", "de Souza" under "Souza", "de Melo" under "Melo" and so on) and it is even stripped in some cases. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: People's names

2006-10-10 Thread Jorge Godoy
(Remember about people with the same name! There are a lot of "John Smith" or "José da Silva" around :-)) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE that uses an external editor?

2006-10-15 Thread Jorge Godoy
give it a try, but not at the > expense of giving up Emacs. Eclipse: just a GUI over a subset of Emacs today. One day, when it evolves, it will be something interesting... I won't give up on Emacs loading fast and allowing me to work remotely for something that makes the machine crawl

Re: IDE that uses an external editor?

2006-10-16 Thread Jorge Godoy
ntation matters, I find Emacs much more productive and this only feature is a major problem to "migrate" from Emacs to Eclipse. But, who knows when Eclipse gets better it will have the power needed to implement the same set of indentation rules... -- Jorge Godoy <[EMAIL PRO

implementation of "in" that returns the object.

2006-10-22 Thread Jorge Vargas
Hi I need to check if an object is in a list AND keep a reference to the object I have done it this way but is there a better one? >>> def inplusplus(value,listObj): ... for i in listObj: ... if i is value: ... return value ... return False ... >>> l = [1,2

Re: WSDL?

2006-11-04 Thread Jorge Vargas
On 11/3/06, tobiah <[EMAIL PROTECTED]> wrote: > Is WSDL the right answer for in house communication > between programs written in different languages, or > is it more for publishing interfaces for use by parties > outside your own company? > at work we use webservices (which is a better name) a lot

[OT] how to write code into a blog post?

2006-11-04 Thread Jorge Vargas
Hi I know many people here blog so sorry for the OT. Currently I have a wordpress install and went I wanted to post some code I notice how painfull it is. I'm still in shock that programmers forgot about posting code on their own engine, but oohh well they are php :D anyway I'll like to know your

Re: Forum written in Python?

2006-11-04 Thread Jorge Vargas
On 11/2/06, Karlo Lozovina <[EMAIL PROTECTED]> wrote: > Are there any forum or bulletin board systems written entirely in Python? > I got sick of PhpBB, mostly because I can't tweak and fiddle with the > code, since I really don't like PHP and don't know it that well. > > I thought of writting my o

Re: WSDL?

2006-11-04 Thread Jorge Vargas
On 11/4/06, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, Jorge Vargas > wrote: > > > and please please don't go to corba we need to kill that. > > Have you real reasons or is this a religious thing? As I see it Corb

Re: WSDL?

2006-11-04 Thread Jorge Vargas
On 11/4/06, Steve Holden <[EMAIL PROTECTED]> wrote: > Jorge Vargas wrote: > > On 11/4/06, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > > >>In <[EMAIL PROTECTED]>, Jorge Vargas > >>wrote: > >> > >> > &

Re: how to write code into a blog post?

2006-11-05 Thread Jorge Vargas
On 4 Nov 2006 14:40:19 -0800, thebjorn <[EMAIL PROTECTED]> wrote: > Jorge Vargas wrote: > > Hi I know many people here blog so sorry for the OT. > > > > Currently I have a wordpress install and went I wanted to post some > > code I notice how painfull it is. > &

Re: Learning Python

2006-11-06 Thread Jorge Vargas
On 6 Nov 2006 01:33:36 -0800, ArdPy <[EMAIL PROTECTED]> wrote: > > 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 > > Hi kaushal, > > Look

Re: Python Distilled

2006-11-06 Thread Jorge Godoy
On the other hand... >>> import exceptions >>> class E(exceptions.Exception): ... pass ... >>> raise E Traceback (most recent call last): File "", line 1, in ? __main__.E >>> This also has the advantage to let it explicit in the code that E is an exception. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Python memory usage

2006-11-07 Thread Jorge Vargas
On 7 Nov 2006 21:42:31 -0800, placid <[EMAIL PROTECTED]> wrote: > Hi All, > > Just wondering when i run the following code; > > for i in range(100): > print i > the problem of that is that all the memory is used by the list returned by range which wont be freed until the for loop exits tr

Re: profanity on comp.lang.python (was Re: Pyro stability)

2006-11-08 Thread Jorge Godoy
Cliff Wells <[EMAIL PROTECTED]> writes: > I think this sums up my point of view as well (although I would have > used around 3215 more words to say it). H... Putting this on the discussion of the week: you'd have used range(3215) or xrange(3215) more words? ;-)

Re: how to create a multicolor "font-string" in pygame??

2006-11-09 Thread Jorge Godoy
[EMAIL PROTECTED] writes: > Hi! I need to manipulate multicolor strings, i.e. strings with a color > associated with each letter. > Any suggestions? If you're on Unix / Linux the curses module might help. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.

Re: how is python not the same as java?

2006-11-09 Thread Jorge Vargas
On 9 Nov 2006 16:44:40 -0800, gavino <[EMAIL PROTECTED]> wrote: > both are interpreted oo langauges.. > that is not correct java is compiled and the VM interprets the code from the programmers point of view java is a compiled languaje. python is dynamic typed java is static python allows func

Re: how is python not the same as java?

2006-11-10 Thread Jorge Vargas
On 9 Nov 2006 18:09:37 -0800, John Machin <[EMAIL PROTECTED]> wrote: > > Jorge Vargas wrote: > > On 9 Nov 2006 16:44:40 -0800, gavino <[EMAIL PROTECTED]> wrote: > > > both are interpreted oo langauges.. > > > > > that is not correct java is com

Re: manual eggs downloads?

2006-11-10 Thread Jorge Vargas
On 11/10/06, Harry George <[EMAIL PROTECTED]> wrote: > "eggs" are wonderful for no-hassle get-all-the-dependencies. However, > they can trigger hands-off downloads from various sites. This is Bad > News for corporate environments in which every download is carefully > pre-approved. > > A tarball

Re: how is python not the same as java?

2006-11-10 Thread Jorge Godoy
"Jorge Vargas" <[EMAIL PROTECTED]> writes: > code. In python noone runs the pyc files, the interpreter takes care > of this for you. This is not true. It is one way to avoid having your source lying around. The same can be done with .pyo... -- Jorge Godoy <[E

Re: Random image text generation?

2006-11-12 Thread Jorge Godoy
uple weeks we've begun to get lots of spam submission crap. http://captchas.net/sample/python/ http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440588 There are specific implementations for Zope, TurboGears and other frameworks. -- Jorge Godoy <[EMAIL PROTECTED]> -- http:/

Re: logging

2006-11-13 Thread Jorge Vargas
On 12 Nov 2006 23:50:40 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi all ! > How to remove a logger ? > There si no logging.removeLogger(name) method. > I've a lot of objects that create loging. why you need a logger per object? IMO 1 per package is more then enough. > When objects are

Re: how is python not the same as java?

2006-11-13 Thread Jorge Vargas
ok then they are the same lets all go back to write java -- http://mail.python.org/mailman/listinfo/python-list

module docstring, documentation, anything? please note is the module type/object NOT some module

2006-06-23 Thread Jorge Vargas
Hi everyone I have wasted 2 hours trying to figure out how to get a reference to the module object. that is the one returned by __import__ or when you call a module for name like >>> import sys>>> sys the reason I want this is that I want to introspec my module so I need some way to indentify what

Re: module docstring, documentation, anything? please note is the module type/object NOT some module

2006-06-23 Thread Jorge Vargas
On 6/23/06, Jorge Vargas <[EMAIL PROTECTED]> wrote: Hi everyone I have wasted 2 hours trying to figure out how to get a reference to the module object. that is the one returned by __import__ or when you call a module for name like >>> import sys >>> sys the reason I wan

Re: how to varify if a URL is valid in python?

2006-08-28 Thread Jorge Vargas
http://docs.python.org/lib/module-urllib.html On 28 Aug 2006 14:38:13 -0700, fegge <[EMAIL PROTECTED]> wrote: > what module should i import? > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list

Re: Coding style and else statements

2006-08-28 Thread Jorge Vargas
On 8/28/06, tobiah <[EMAIL PROTECTED]> wrote: > def foo(thing): > > if thing: > return thing + 1 > else: > return -1 > > def foo(thing): > > if thing: > return thing + 1 > return -1 > > Obviously both do the same thing.

Re: Python web service ...

2006-08-28 Thread Jorge Vargas
On 26 Aug 2006 04:07:35 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi folks, I have accomplished to make a python program that make some > image manipulation to bmp files. > I now want to provide this program as a web service. A user can visit a > site and through a web interface he shou

Re: Max OSX and Excel

2006-08-28 Thread Jorge Vargas
On 8/28/06, Johanna Pfalz <[EMAIL PROTECTED]> wrote: > Hi there, > > Does anyone have details on how to drive excel using python 2.4 on OSX? > I've searched the web and have not found anything specific to excel. drive? > > Thanks in advance, > > > Johanna Pfalz > Smithers, BC > > > > -- > http://m

Re: class problem

2006-08-28 Thread Jorge Vargas
On 8/28/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Duncan Booth wrote: > > > Yes, the first one is a syntax error because you aren't allowed empty > > parentheses in a class statement > > however, > > $ python > Python 2.5c1 /.../ > >>> class foo(): > ... pass > ... > >>> foo > > >>> >

Re: class problem

2006-08-28 Thread Jorge Vargas
On 8/28/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Jorge Vargas wrote: > > > seems like a feature/bug of 2.5, why your learning a language with a > > beta version? > > learning? I'm sorry I though you where the original poster. > > (btw, the "c&

Re: Max OSX and Excel

2006-08-28 Thread Jorge Vargas
x27;ll love to read some feedback from you on it :) > > > On 8/28/06 3:00 PM, "Jorge Vargas" <[EMAIL PROTECTED]> wrote: > > > On 8/28/06, Johanna Pfalz <[EMAIL PROTECTED]> wrote: > >> Hi there, > >> > >> Does anyone have details on ho

Re: How ahead are you guys in the (Python) real world?

2006-08-28 Thread Jorge Vargas
On 28 Aug 2006 20:13:54 -0700, Ray <[EMAIL PROTECTED]> wrote: > Since I haven't used Python at work, I am using Python 2.5 right now. > However I wonder, how fast are you guys moving from version to version > at work? As an illustration my ex-company just moved to Java 5, which > was released aroun

Re: Pros/Cons of Turbogears/Rails?

2006-08-28 Thread Jorge Vargas
On 8/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > First, I don't intend this to be a flame war, please. Python > and Ruby are the only two languages I'd willingly work in > (at least amongst common languages), and TurboGears and > Rails seem roughly equivalent. > > I'm much more knowledgab

Re: Max OSX and Excel

2006-08-29 Thread Jorge Vargas
On 28 Aug 2006 15:50:57 -0700, John Machin <[EMAIL PROTECTED]> wrote: > Jorge Vargas wrote: > > On 8/28/06, Johanna Pfalz <[EMAIL PROTECTED]> wrote: > > > To be more specific, I'm interested in reading in certain rows and columns > > > from an excel

Re: How ahead are you guys in the (Python) real world?

2006-08-30 Thread Jorge Godoy
lain-sailing. But if it's not... Even with tests... They can show you that what you test is not broken, but they can't make you 100% sure that everything will work. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Truly platform-independent DB access in Python?

2006-08-30 Thread Jorge Vargas
On 28 Aug 2006 00:01:06 -0700, bobrik <[EMAIL PROTECTED]> wrote: > Hello, > > I am using the Python DB API for access to MySQL. But it is not > platform-independent - I need a module not included in Python by > default - python-mysql, and it uses a compiled binary _mysql.so. So it > is not platform

Re: Pros/Cons of Turbogears/Rails?

2006-08-31 Thread Jorge Godoy
e controller... Which one is better isn't of my concern. I've already tested then and decided what I want to use. The best thing is try them and see what works. You don't have to choose only one -- but you have to use one per project to make it less messy ;-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Pros/Cons of Turbogears/Rails?

2006-08-31 Thread Jorge Vargas
On 31 Aug 2006 08:24:29 -0700, Adam Jones <[EMAIL PROTECTED]> wrote: > > Jaroslaw Zabiello wrote: > > [EMAIL PROTECTED] wrote: > > > > > + SqlObject allows working with the DB tables without > > > using SQL itself. > > > > Rails has ActiveRecord ORM, which IMO has nicer and simpler > > syntax than

Re: SQLObject or SQLAlchemy?

2006-08-31 Thread Jorge Godoy
nt better than it was by the time of the post :-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLObject or SQLAlchemy?

2006-08-31 Thread Jorge Vargas
On 8/31/06, John Salerno <[EMAIL PROTECTED]> wrote: > Are there any major differences between these two? It seems they can > both be used with TurboGears, and SQLAlchemy with Django. I'm just > wondering what everyone's preference is, and why, and if there are even > more choices for ORM. > they us

Re: Pros/Cons of Turbogears/Rails?

2006-08-31 Thread Jorge Vargas
On 8/31/06, BJörn Lindqvist <[EMAIL PROTECTED]> wrote: > On 8/31/06, Jorge Vargas <[EMAIL PROTECTED]> wrote: > > On 31 Aug 2006 08:24:29 -0700, Adam Jones <[EMAIL PROTECTED]> wrote: > > > > I believe that is the most important part of TG, taking the best of

Re: SQLObject or SQLAlchemy?

2006-08-31 Thread Jorge Godoy
"Jorge Vargas" <[EMAIL PROTECTED]> writes: > for example SA wins at using an existing db > but SO wins at not worring about the db structure That's not entirely true. Some things are impossible with SQL Object alone. You have to, at least, make use of sqlbuilder. A

Re: "filtered view" upon lists?

2006-09-12 Thread Jorge Godoy
st_list = range(10) >>> filter = lambda x: not x%2 >>> def myCallable(list, filter): ... filtered_list = [(item) for item in list if filter(item)] ... return filtered_list ... >>> myCallable(test_list, filter) [0, 2, 4, 6, 8] >>> for item in myCallable(test_list, filter): .

Re: Looking for the Perfect Editor

2006-09-14 Thread Jorge Godoy
n -- > but then it's saved in the file as one long line. In other words, an > editor that separates how the text is DISPLAYED from how it's SAVED. WYSINWYG -> What You See Is Not What You Get... It doesn't make much sense to me, though. With Emacs I get the wrapping t

Re: There's another Timbot on the loose!

2006-09-29 Thread Jorge Godoy
Paul Rubin <http://[EMAIL PROTECTED]> writes: > http://web.cecs.pdx.edu/~mpj/timbot/index.html Should we tell them that we have the original and have a patent on him? :-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: builtin regular expressions?

2006-09-30 Thread Jorge Godoy
line) Expected output: Your track is "My favorite track" It's a title of "My favorite song" It was played by &q

Re: builtin regular expressions?

2006-09-30 Thread Jorge Godoy
bstr like this and would write code similar to the one the OP posted (i.e., /^track=(.*)/). > OK, I do Perl and Python side by side and didn't reach > that point so far, maybe beause I read the Friedel-Book > ( http://www.oreilly.com/catalog/regex2/reviews.html ) > sometimes and actually *like* the concept of regular expressions. I like them as well. I just don't see the need to use them everywhere. :-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: builtin regular expressions?

2006-09-30 Thread Jorge Godoy
correspondence from Perl to Python. Dictionaries (and hashes in Perl) are very powerful and solve very interesting problems (specially when one is looking for something like a "case" implementation in Python). -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: builtin regular expressions?

2006-09-30 Thread Jorge Godoy
= $line = "track='My favorite track'"; if ($line =~ /^track=(.*)/) { print "My track is $1\n"}; === has the same output. ;-) All this running perl 5.8.8. Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: builtin regular expressions?

2006-09-30 Thread Jorge Godoy
or "endswith" compared to "$/". I just mentioned this because in the argument of "less code to write leads to less bugs" doesn't mean that we have typed all what is written :-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: windev vs python SOS

2006-10-01 Thread Jorge Godoy
true. I really wish I knew how to explain these things politically. If you find it out don't forget sharing with us. :-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Rich view for python?

2006-10-02 Thread Jorge Vilela
Hello, this is my first post and hope can help in next posts :)i have a question, and think that many peoples have same question.Do exists any component to rich editing text?I has seen the Rich View for Delphi, it looks like an embeded world in app, so i though that could exist something as it for

Python components

2006-10-03 Thread Jorge Vilela
Hello group!We know that Python have many components not too knowledge.I think that I'm looking for one of them.I need embed a good document editor ( as Word or Writer ) in my small python application, for document editing. It's to lawyers make important documents and control them using the applica

Re: Fuzzy string comparison

2006-12-27 Thread Jorge Godoy
trings based on a trigram comparison. You can see how it works on the README (http://www.sai.msu.su/~megera/postgres/gist/pg_trgm/README.pg_trgm) and maybe port it for your needs. But it probably won't be a one operation only search, you'll have to post process results to decide what to do on multiple m

PDF rendering toolkit?

2007-01-05 Thread Jorge Vargas
Hi I'm looking for a tool to take an actual .pdf file and display it in a window (I'm using wxwidgets at the moment) I have found several project but none seem to do what I need. http://sourceforge.net/projects/pdfplayground seems like a nice toolkit to edit pdf files with python code, but nothi

Re: MySQLdb windows binaries for Python 2.5?? Yes, but from a World of Warcraft guild.

2007-01-05 Thread Jorge Vargas
On 14 Dec 2006 16:59:15 -0800, Fuzzyman <[EMAIL PROTECTED]> wrote: > > johnf wrote: > > >> > > >> If you search the Help Forum of the MySQLdb project on SourceForge, you > > >> will find a couple of people who have successfully built MySQLdb on > > >> Windows for 2.5, and are willing to share their

Re: MySQLdb windows binaries for Python 2.5?? Yes, but from a World of Warcraft guild.

2007-01-05 Thread Jorge Vargas
On 1/5/07, Chris Mellon <[EMAIL PROTECTED]> wrote: > I guess this is your opportunity, as someone who thinks that MySQL > support for Python is important, to assist in maintaining and updating > those wrappers, right? believe me I have tried and in this particular case it's very complicated the ma

Re: (newbie) Is there a way to prevent "name redundancy" in OOP ?

2007-01-05 Thread Jorge Vargas
On 1/5/07, Stef Mientki <[EMAIL PROTECTED]> wrote: if I undestand correctly this is what you want >>> class pin3: ... def __init__(self,name): ... self.Name = name ... def __str__(self): ... return self.Name ... >>> pin3() Traceback (most recent call last): File

Re: Python re expr from Perl to Python

2007-01-06 Thread Jorge Godoy
7;).replace(']', '').strip() >>> na_out 'Abc ghi jkl gugu' >>> Another form: >>> na_out = ' '.join(na.split(' | ')).replace('[', '').replace(']', >>> '').replace(' de

Re: strange for loop construct

2007-01-07 Thread Jorge Godoy
I took "I have to read them online" to mean that you needed to read > them online because (perhaps) you don't have a source distribution on your > computer. My 2.5 source (Subversion sandbox) has 2.0 through 2.5 What's New > source in Doc/whatsnew. My SuSE instal

<    1   2   3   4   5   >