Re: IDE on the level of Eclipse or DEVc++?

2008-06-25 Thread Jorge Godoy
ion, including keyboard shortcuts. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE on the level of Eclipse or DEVc++?

2008-06-25 Thread Jorge Godoy
to Emacs all the time. Eclipse is too heavy, NetBeans has a poor support, Eric is too "mousy"... -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Apache2 + Python WITHOUT mod_pytho

2008-06-25 Thread Jorge Godoy
around for your distribution. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Organizing a Python project

2008-05-19 Thread Jorge Godoy
>> __init__.py, and the parent of 'myproject' didn't contain such a >> file). Evidently this is not the case, but it seems like it could be a >> useful feature in these situations. Eggs would solve that as well. They would behave like any other installed "lib

Re: about bsddb module

2008-05-04 Thread Jorge Godoy
cocobear wrote: > On 5月3日, 下午7时17分, cocobear <[EMAIL PROTECTED]> wrote: >> How to deal with multiple databases in an file. I want to get the >> content of several databases. (...) > Anybody can help me? I believe you can only have one database per file with the Python abstraction... But you c

Re: design choice: multi-threaded / asynchronous wxpython client?

2008-04-27 Thread Jorge Godoy
bullockbefriending bard wrote: > Tempting thought, but one of the problems with this kind of horse > racing tote data is that a lot of it is for combinations of runners > rather than single runners. Whilst there might be (say) 14 horses in a > race, there are 91 quinella price combinations (1-2 th

Re: design choice: multi-threaded / asynchronous wxpython client?

2008-04-27 Thread Jorge Godoy
bullockbefriending bard wrote: > 3) I need to dump this data (for all races, not just current about to > start race) to text files, store it as BLOBs in a DB *and* update real > time display in a wxpython windowed client. Why in a BLOB? Why not into specific data types and normalized tables? Yo

Re: design choice: multi-threaded / asynchronous wxpython client?

2008-04-27 Thread Jorge Godoy
bullockbefriending bard wrote: > A further complication is that at a later point, I will want to do > real-time time series prediction on all this data (viz. predicting > actual starting prices at post time x minutes in the future). Assuming > I can quickly (enough) retrieve the relevant last n to

Re: Problem with the strip string method

2008-03-02 Thread Jorge Godoy
Colin J. Williams wrote: > Return a copy of the string with the > leading and trailing characters removed. > Only the last two examples below behave > as expected. They all looks OK to me. > [Dbg]>>> 'ab$%\n\rcd'.strip('%') > 'ab$%\n\rcd' No "%" at the beginning or end o

Re: float / rounding question

2008-02-25 Thread Jorge Godoy
sabatier wrote: > On Feb 25, 10:44 am, [EMAIL PROTECTED] wrote: >> Hi I'm very much a beginner with Python. >> I want to write a function to convert celcius to fahrenheit like this >> one: >> >> def celciusToFahrenheit(tc): >> tf = (9/5)*tc+32 >> return tf >> >> I want the answer correct t

Re: How about adding rational fraction to Python?

2008-02-25 Thread Jorge Godoy
Paul Rubin wrote: > Carl Banks <[EMAIL PROTECTED]> writes: >> Try doing numerical integration sometime with rationals, and tell me >> how that works out. Try calculating compound interest and storing >> results for 1000 customers every month, and compare the size of your >> database before and af

Re: Double underscores -- ugly?

2008-02-20 Thread Jorge Godoy
Ivan Illarionov wrote: > I would like to see something like %init or &init to be converted to > __init__ behind the scenes. And $something to be converted to > self.something. But, unfortunately, most Python people would consider > this ugly just because Perl uses too much syntactic sugar and anyt

RE: Why not a Python compiler?

2008-02-06 Thread Jorge Godoy
Reedick, Andrew wrote: >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:python- >> [EMAIL PROTECTED] On Behalf Of Grant Edwards >> >> Nothing can travel faster than the speed of light >> _in_a_vacuum_. There are situtaitons where things can (and >> regularly do) travel faster tha

Re: GUI definition for web and desktop

2008-02-03 Thread Jorge Godoy
Daniel Fetchinson wrote: > It's clear to me that the logic behind a web interface and a desktop > interface are two totally different things. I don't want a magic > method to convert an html/javascript based web app to a desktop app as > this is clearly impossible. But it is not impossible to emb

Re: Python GUI toolkit

2008-02-03 Thread Jorge Godoy
[EMAIL PROTECTED] wrote: > what i meant was, i tried gtk, didnt like it, the main reason was that it > had a very bad gui appeal for me, i did try my hand at wx , and i would > have stuck with it, but then i saw the qt4 screenshot and couple of > examples of its code and i liked it, so i was wonde

Re: Python GUI toolkit

2008-02-03 Thread Jorge Godoy
Grant Edwards wrote: > On 2008-02-03, Dotan Cohen <[EMAIL PROTECTED]> wrote: > >> I would recommend Qt, as it is cross-platform and can look native on >> all systems. > > Qt doesn't look native on my system. I run XFCE, and "native" > is GTK. > >> Opera, KDE, GoogleEarth, Acrobat, and lots of o

Re: Is it explicitly specified?

2008-02-03 Thread Jorge Godoy
mario ruggier wrote: > Is there any way to tell between whether a keyword arg has been explicitly > specified (to the same value as the default for it) or not... For example: > > def func(key=None): > do something with key > > But the following two usages give same results: > > func() > fun

Re: Will Python on day replace MATLAB?????????????????????????????????????????????????????

2008-01-31 Thread Jorge Godoy
Danyelle Gragsone wrote: > Could you please use less question marks. This is not part of his Masters... :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: python docs in contrib?

2007-12-16 Thread Jorge Godoy
Tshepang Lekhonkhobe wrote: > On Dec 16, 2007 4:33 PM, Jorge Godoy <[EMAIL PROTECTED]> wrote: >> Tshepang Lekhonkhobe wrote: >> >> > Hi, >> > I was surprised to find python2.{4,5}-doc in contrib and wondered why? >> >> What contrib? > > c

Re: python docs in contrib?

2007-12-16 Thread Jorge Godoy
Tshepang Lekhonkhobe wrote: > Hi, > I was surprised to find python2.{4,5}-doc in contrib and wondered why? What contrib? -- http://mail.python.org/mailman/listinfo/python-list

Re: Is a "real" C-Python possible?

2007-12-09 Thread Jorge Godoy
Jack wrote: > I wonder if it's possible to have a Python that's completely (or at > least for the most part) implemented in C, just like PHP - I think > this is where PHP gets its performance advantage. Or maybe I'm wrong PHP is slower than Python. -- http://mail.python.org/mailman/listinfo/pyt

Re: Arrays

2007-11-13 Thread Jorge Godoy
Steven D'Aprano wrote: > "The only intuitive interface is the nipple. After that, it's all > learned." -- Bruce Ediger on user interfaces. And after we learn its other "uses", not even the nipple is so easy... Who haven't heard (or said, if you're a woman) "Don't bite it like that, it hurts!"?

Re: how to know if folder contents have changed

2007-11-12 Thread Jorge Godoy
[EMAIL PROTECTED] wrote: > can someone suggest a better way? i know it is a general programming > problem..but i wish to know if a python solution exists Use pyfam. I believe all docs are in fam but it integrates with that. -- http://mail.python.org/mailman/listinfo/python-list

Re: Putting a line from a text file into a variable, then moving to next line

2007-10-07 Thread Jorge Godoy
Vernon Wenberg III wrote: > I'm not really sure how readline() works. Is there a way to iterate > through a file with multiple lines and then putting each line in a > variable in a loop? To know how something works you can always check the docs about this specific functionality: >>> a = open('a'

Re: Segmentation fault..

2007-10-06 Thread Jorge Godoy
Bruno Desthuilliers wrote: > Jorge Godoy a écrit : >> Without seeing any code, it is hard to say anything. But the answer to >> the ultimate question is "42". > > Indeed. Err, what was the question, exactly ?-) As soon as calculations are finished, you'll

Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Jorge Godoy
Lawrence Oluyede wrote: > Thomas Wittek <[EMAIL PROTECTED]> wrote: >> At least, you missed Turbo Gears :) >> http://turbogears.org/ >> For me, it feels more integrated than Pylons. > > Yeah, so integrated that the next version will be based upon Pylons ;-) ? What is good, since a lot of good thi

Re: Yet another comparison of Python Web Frameworks

2007-10-06 Thread Jorge Godoy
Tim Chase wrote: > Any respectable comparison of Python web frameworks should > include evaluation of at least Django and TG. Or at least give > good reason why the comparison excludes them. When he said that he didn't want anything complex neither anything that used a templating system, I thou

Re: Segmentation fault..

2007-10-06 Thread Jorge Godoy
Abandoned wrote: > Hi.. > I run a my script and 3-4 minutes later give me an error "segmentation > fault". > What is the reason of this error ? > > I use in my script: > Threading > Psycopg2 > open & write to txt > urlopen > > My platform is ubuntu linux. > > I'm sorry my bad english. > King re

Re: status of Programming by Contract (PEP 316)?

2007-09-01 Thread Jorge Godoy
Carl Banks wrote: > This is starting to sound silly, people. Critical is a relative term, > and one project's critical may be anothers mundane. Sure a flaw in your > flagship product is a critical problem *for your company*, but are you > really trying to say that the criticalness of a bad web s

Re: status of Programming by Contract (PEP 316)?

2007-08-31 Thread Jorge Godoy
Russ wrote: > Alex, I think you are missing the point. Yes, I'm sure that web > searches are critical to > Google's mission and commercial success. But the point is that a few > subtle bugs cannot > destroy Google. If your search engines and associated systems have > bugs, you fix them > (or simpl

Re: Web based Reporting tool for Python

2007-08-12 Thread Jorge Godoy
Jon Rosebaugh wrote: > Sure, but again, these aren't reporting engines; they're just template > engines. And I don't think any of the web template engines have PDF > output. I generate my PDFs with Genshi / Kid and ReportLab. For the markup processing I use z3c.rml. Works flawlessly. -- http://

Re: custom plugin architecture: how to see parent namespace?

2007-07-22 Thread Jorge Godoy
escalation746 wrote: > I have updated documentation for this on my blog, diagrammes modernes. > Surf: > http://diagrammes-modernes.blogspot.com/ Your motivation looks a lot like what is solved by setuptools, eggs and entry points. http://peak.telecommunity.com/DevCenter/PkgResources http://docs.

Re: Advice on sending images to clients over network

2007-07-22 Thread Jorge Godoy
Paul McNett wrote: > Paul Rubin wrote: >> Frank Millman <[EMAIL PROTECTED]> writes: >>> Any suggestions will be much appreciated. >> >> Why on earth don't you write the whole thing as a web app instead of >> a special protocol? Then just use normal html tags to put images >> into the relevant pa

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

2007-05-18 Thread Jorge Godoy
;. I've never had any problem installing any library or module for Python. Even the ones that require huge libraries or compiling something. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: No module named urllib

2007-05-07 Thread Jorge Godoy
? > File "C:\maxq\lib\Lib\urllib.py", line 1148 > _hextochr = dict(('%02x' % i, chr(i)) for i in range(256)) > ^ > SyntaxError: invalid syntax >>> dict(1, 1) Traceback (most recent call last): File "

Re: No module named urllib

2007-05-07 Thread Jorge Godoy
HMS Surprise <[EMAIL PROTECTED]> writes: > Perhaps I should have put qoutes in my sentence. Or I should have read it slowly. ;-) > I get the "no module message named urllib". Can you please import sys print sys.path and put the answer here on the newsgroup? -- Jo

Re: No module named urllib

2007-05-07 Thread Jorge Godoy
tory. > > Any suggestions? No messages is good! :-) If you got any error messages then you'd have a problem. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Decorating class member functions

2007-05-03 Thread Jorge Godoy
.com.br/search?q=python+decorator+memoize -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLObject 0.8.3

2007-05-03 Thread Jorge Godoy
think: is it possible to call a function in a schema other than public in PostgreSQL? For example if I had myschema.myfunction and wanted to use it I can't do "func.myschema.myfunction"... Is there something like a "dbName" for func? :-) -- Jorge Godoy <[EMAIL PR

Re: Suggestion: str.itersplit()

2007-04-21 Thread Jorge Godoy
gh (and that's not from lack of trying). You can try WinZip. Last time I had to use a Windows machine it was able to untar + gunzip some files perfectly fine (as we are able to unzip and unrar on *nix...). -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Do other Python GUI toolkits require this?

2007-04-20 Thread Jorge Godoy
> 999? You remind me of my grandpa: if all soldiers but one are marching with the "wrong" foot ahead, who's wrong? -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Python editor/IDE on Linux?

2007-04-14 Thread Jorge Godoy
-) > > "Emacs makes a good OS, but a lousy editor." Yep. Emacs comes with a lot of those funny phrases. It is so good that it even helps people using other editors to have some fun. ;-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: About Trolltech QT OpenSource license.

2007-04-11 Thread Jorge Godoy
ing of their license. He's selling you his product and stating how you can / can't use it. I believe that this has some value in case they say you can't do one thing that they told you could when you were acquiring their services. I'd save those emails exchanged very car

Re: How to find to HTML strings and 'save' them?

2007-03-25 Thread Jorge Godoy
tried allsorts but I've been learning Python for 1 week and just > don't know enough to mod example scripts it seems. don't even get me > started on python docs.. ayaa ;] Please feel free to teach me to suck > eggs because it's all new to me :) > > T

Re: organizing collections of small modules

2007-03-25 Thread Jorge Godoy
collect them somewhere to use easy_install ;-) It also supplies means to determine the minimum / maximum / exact version that is required, so this also helps with how up-to-date your library has to be to be used with some application. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Using remote source code

2007-03-25 Thread Jorge Godoy
[EMAIL PROTECTED] writes: > Is there any possible way that I can place a .py file on the internet, > and use that source code in an .py file on my computer? Besides Alex suggestion, you can also check Pyro. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mail

Re: SQLObject 0.8.1

2007-03-19 Thread Jorge Godoy
Larry Bates <[EMAIL PROTECTED]> writes: > WOW! Went from 0.7.4 to 0.8.1 in the span of only 23 minutes! There are two branches: 0.7 and 0.8. So, there were two releases. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: cheese shop: tagging and dating

2007-03-18 Thread Jorge Godoy
an alternate tag interface would be interesting, though. But not making it the main interface or the only one. Tags are cool when they are few. They are a nightmare when there are hundreds or thousands of them to search for something. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: encoding - arabic(IBM 864) to UNICODE

2007-03-18 Thread Jorge Godoy
option is checking if Python has those encodings available (are they standard or platform specific?) and using its own conversion method, as explained in the docs. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Automagically log changes in table

2007-03-18 Thread Jorge Godoy
that can be bound so they can act is triggers on your database, but client side. Of course they don't have all the context as a real trigger does, but those might be enough to avoid duplicating lots of code through the app to set some variable. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: To count number of quadruplets with sum = 0

2007-03-18 Thread Jorge Godoy
"n00m" <[EMAIL PROTECTED]> writes: > my dial-up line's too slow for downloading 4mb of shedskin-0.0.20.exe Don't worry! We can email it to you. :-D -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: MIME Magic

2007-03-17 Thread Jorge Godoy
ry/file_sigs.html And here's an example of an authoritative source for that table: http://www.libpng.org/pub/png/spec/1.2/PNG-Structure.html -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2007-03-14 Thread Jorge Godoy
ous from context... Maybe FastCGI should help, then. It can run "forever" after a request has finished so it is suitable for long running processes. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: string formatting: engineering notation

2007-03-14 Thread Jorge Godoy
notation in future releases? >> > How close is this: > > >>> "%.3e" % 3.14159 > '3.142e+00' >>> "%.3e" % 314159 '3.142e+05' >>> Not close when you have the exponent. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: How to modify the source of a python file inside a python egg file?

2007-03-12 Thread Jorge Godoy
ce, make your changes and rebuild the egg. Unzipping, changing and zipping it back also works. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: setuptools and code.google.com

2007-03-12 Thread Jorge Godoy
pporting other OSs). > Me neither, knowing near to nothing about setuptools (I'm not even a > user of it...). Let's hope some expert does speak up -- I can't just > freely experiment with uploads and the like... Lets wait. ;-) Thanks again, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

setuptools and code.google.com (was Re: Signed zeros: is this a bug?)

2007-03-11 Thread Jorge Godoy
r. Another alternative is a link at the first page. And, of course, the last alternative is teaching setuptools how to work with code.google.com -- if it doesn't already know -- as it learnt how to work with SourceForge and its "random" mirrors. I don't know how to write that code, th

Re: Signed zeros: is this a bug?

2007-03-11 Thread Jorge Godoy
ady to find packages on code.google.com yet... ;-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Database module & multithreading

2007-03-10 Thread Jorge Godoy
access the files. You talk to the RDBMS server. Is it running? Is it accepting connections from your host? -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Database module & multithreading

2007-03-10 Thread Jorge Godoy
simple > n efficient, in any case multi threading capabilities are # 1 > requirement. For which database server? -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Project organization and import

2007-03-06 Thread Jorge Godoy
doing ever less work yourself and > pushing ever more work down to your computer. I won't write a script to write two commands and rerun them often. But I would for some more -- lets say starting from 5 commands I might start thinking about having this somewhere where I can at least Cut'n'Past to the interactive interpreter (even with readline's help). -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Project organization and import

2007-03-06 Thread Jorge Godoy
between all clients, etc. It isn't a monolithic take all or nothing. And even like that it works. There are customizations on some features that only exists at one client's branch, there are customizations that might be selected "on the fly" by choosing something on a preferences sc

Re: Project organization and import

2007-03-06 Thread Jorge Godoy
to say that it is necessary or inevitable is 1960s > mainframe thinking. How can you reload C code that would affect already running code -- ie. existing data, pointers, etc. -- without reloading the full program? Even changing and reloading a dynamic library wouldn't do that to already existing code, so you'd have to "reboot" your application as well. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Project organization and import

2007-03-06 Thread Jorge Godoy
re might be some feature of the system related to that investigation, but there might be not. For example: "what are the methods provided by this object?" or "which approach is faster for this loop?" I won't write a test case to test loop speed. But I'd

Re: Project organization and import

2007-03-04 Thread Jorge Godoy
deal with it... My bigger "project" has several modules now each with its own namespace and package. The API is very documented and took the most work to get done. Using setuptools, entrypoints, etc. helps a lot as well. The thing is that for big projects your design is

Re: How use XML parsing tools on this one specific URL?

2007-03-04 Thread Jorge Godoy
act the data from this > page? It all depends on what data you want. Probably a non-validating parser would be able to extract some things. Another option is pass the page through some validator that can fix the page, like tidy... -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: SAMBA-PYTHON ???

2007-03-04 Thread Jorge Godoy
o the group... (BTW, I've used the samba-python package that comes with opensuse.) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 incompatible with Fedora Core 6 - packaging problems again

2007-03-04 Thread Jorge Godoy
ay, if following the install after an error is true then some developer should take a look at it. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Does Python have equivalent to MATLAB "varargin", "varargout", "nargin", "nargout"?

2007-02-18 Thread Jorge Godoy
[EMAIL PROTECTED] writes: > Thank you in advance for your response. And those do ... ? -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: uml and python

2007-02-08 Thread Jorge Godoy
> gpl or freeware (widows) prefered I like Umbrello (several OSs supported, including MacOS, Linux, *BSD and you probably can get it running in Windows though it might be somewhat hard...). -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Python does not play well with others

2007-02-04 Thread Jorge Godoy
oftware being managed in the hosting environment. And why eggs wouldn't satisfy them? Eggs can be installed globally as well, making the package available to every client of this hosting server (if they mount their libs from a unique NFS server then it would automatically be available for al

Re: Python does not play well with others

2007-02-03 Thread Jorge Godoy
es as possible is > also a big win. So we should get a better egg support. Then it would all be just a matter of easy_install . As it is that easy for thousands of modules on CPAN for Perl. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: OT Annoying Habits

2007-01-20 Thread Jorge Godoy
For those there is always http://www.goldmark.org/jeff/stupid-disclaimers/ :-) Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: OT Annoying Habits

2007-01-19 Thread Jorge Godoy
helps everyone. But do not include the entire original. I've added the "^" to mark the part where it says what should be on the top of the message. You can check it: http://www.dtcc.edu/cs/rfc1855.html Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- htt

Re: sqlobject 0.8.0b1 and python 2.5

2007-01-13 Thread Jorge Godoy
ttp://www.sqlobject.org/2/ Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: template engine

2007-01-13 Thread Jorge Godoy
ea > > that would be nice if engine could work with non HTML documents. > > thanks in advance for your help, and sorry for my English :) Take a look at Kid (http://www.kid-templating.org/) and Genshi (http://genshi.edgewall.org/). -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Barcode recognition in Python

2007-01-13 Thread Jorge Godoy
decodes the barcode and sends the decoded output. If it is one plugged in a keyboard port, for example, reading the barcode or typing the "message" is exactly the same thing. Or are you willing some kind of OCR to process the barcodes without a barcode reader (why having

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

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

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

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

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: 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
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
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
line) Expected output: Your track is "My favorite track" It's a title of "My favorite song" It was played by &q

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: 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: "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: SQLObject or SQLAlchemy?

2006-08-31 Thread Jorge Godoy
SO is going uphill. It isn't too hard to use SA for simple things. I dare to say that with ActiveMapper it is just a bit more verbose than SQL Object, but not too much. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

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

  1   2   3   >