Re: number of python users

2005-09-28 Thread Jorge Godoy
t; 3. suse 9.3 - python 2.4 3.1. OpenSuSE 10 will be coming out with Python 2.4.1 as well. Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: converting Word to MediaWiki

2005-09-29 Thread Jorge Godoy
Peter Hansen <[EMAIL PROTECTED]> writes: > Are the two necessarily in conflict? Perl can save your butt and _still_ > suck! If it pays the bill... :-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Jorge Godoy
sts from him, where people here tried showing him some mistakes or made suggestions to enhance his contribution and he simply ignored everything. It looks like he thinks he's omniscient and always righ. Almost (?) a deity. :-) By the way, the doctor said it is dangerous to contradict him... ;-)

Parser suggestion

2005-09-29 Thread Jorge Godoy
Hi! I'm needing a parser to retrieve some information from source code -- including parts of code -- from Fortran, to use in a project with a documentation system. Any recommendations on a Python app or parser that I could use for that? Thanks, -- Jorge Godoy <[EMAIL P

Re: Parser suggestion

2005-09-29 Thread Jorge Godoy
lly simpler than a programming language and can be retrieved with different approaches. Thank you very much for your suggestions. Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Parser suggestion

2005-09-29 Thread Jorge Godoy
Steven Bethard <[EMAIL PROTECTED]> writes: > Jorge Godoy wrote: > > From Google I found almost all of those. But do you have any suggestion on > > which one would be better to parse Fortran code? Or more productive to use > > for this task? > [snip

Re: Parser suggestion

2005-09-29 Thread Jorge Godoy
François Pinard <[EMAIL PROTECTED]> writes: > [Jorge Godoy] > > > > SPARK (Scanning Parsing And Rewriting Kit) > > > http://pages.cpsc.ucalgary.ca/~aycock/spark/ > > > It looks like it stopped being developed circa 2002... From 2002 to > > now Py

Re: Python vs Ruby

2005-10-24 Thread Jorge Godoy
"Don't Repeat Yourself"). Scan your code > ceaselessly mercilessly looking for duplications and refactor just as > mercilessly when you find them, "abstracting the up" into functions, > base classes, etc... And I'd second that. Code can be drastically reduced

Re: more than 100 capturing groups in a regex

2005-10-25 Thread Jorge Godoy
In Python I almost never use them. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: more than 100 capturing groups in a regex

2005-10-25 Thread Jorge Godoy
orry about those groups. And what is the problem with something like getopt, optparse, etc.? And 10K groups on a single input line? -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Scanning a file

2005-10-28 Thread Jorge Godoy
ck_for_desired_string line1 = line2 With that you always have two lines in the buffer and you can check all of them for your desired string, no matter what the size of the file is. Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: tachometer diagram

2005-10-31 Thread Jorge Godoy
ange your mind, I believe there's such a thing in Qt3. Using pyQt you could use that. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: tachometer diagram

2005-10-31 Thread Jorge Godoy
;d have to Google for it, though, since I don't have the URL for it anymore. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: data hiding/namespace pollution

2005-10-31 Thread Jorge Godoy
thread where that was raised again (yep, you're not the first, nor the second, nor the third...). You should write unittests, use tools like pychecker, pylint, etc. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: data hiding/namespace pollution

2005-10-31 Thread Jorge Godoy
27;s name anymore. You'll probably find more than one thread with that. :-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: How to print random strings

2005-11-02 Thread Jorge Godoy
hat will > randomly pick one of those to print? > > I think he may have forgot to cover something? How about using the integer as an index to access the elements of a list? ;-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Class Variable Access and Assignment

2005-11-03 Thread Jorge Godoy
t class. Any response would be greatly appreciated. It was discussed before here and there's something about that at the docs: http://docs.python.org/tut/node11.html -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: when and how do you use Self?

2005-11-03 Thread Jorge Godoy
bruno at modulix <[EMAIL PROTECTED]> writes: > >>Don't use self. Use other. > > > > > > Are you serious? > > Are you seriously wondering if I am serious ? Hmmm... I hope there's no deadlock in this loop... -- Jorge Godoy <[

Re: Getting Python Accepted in my Organisation

2005-11-04 Thread Jorge Godoy
re is a need for specific response in context. I'm more of the type that wouldn't read on if I have no context to what I'm reading... Specially if there's a mix of top posts with bottom posts... -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: how to present Python's OO feature in design?

2005-11-07 Thread Jorge Godoy
ably have to draw your diagrams on it, though... -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: PyFLTK - an underrated gem for GUI projects

2005-11-07 Thread Jorge Godoy
lready there, installing FLTK starts being a waste of resources, disk space, CPU cycles, memory (it won't be shared with other apps...), etc. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: web interface

2005-11-07 Thread Jorge Godoy
rom time to time to the user. One thing is: detach all what is possible from user interface and give feedback from time to time to avoid browser timeout and the user thinking the app hanged. Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: help-I am new to python, I have some query could sombody help me out.

2005-11-07 Thread Jorge Godoy
can write a python script to do all these operation . You can... Creating directories, processing file contents and moving files is not hard with Python (if the "processing" part is simple, then it all becomes easy). :-) Take a look at the tutorial and the documentation on the website.

Re: Python and PL/SQL

2005-11-07 Thread Jorge Godoy
inable server-side database code. And if Python is the requirement, but not Oracle, one can write "stored procedures" (functions is the name) in Python with PostgreSQL. ;-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Map of email origins to Python list

2005-11-07 Thread Jorge Godoy
roup=668 > > This represents emails sent to the group since October 27. > > Would like to hear what you think of it. H... I don't see mine listed there: I'm in South America, Brasil. More specifically in Curitiba, Paraná, Brasil. :-) -- Jorge Godoy &

Re: Map of email origins to Python list

2005-11-07 Thread Jorge Godoy
"George Sakkis" <[EMAIL PROTECTED]> writes: > "Jorge Godoy" <[EMAIL PROTECTED]>: > > > H... I don't see mine listed there: I'm in South America, Brasil. More > > specifically in Curitiba, Paraná, Brasil. :-) > > T

Re: Newbie Alert: Help me store constants pythonically

2005-11-07 Thread Jorge Godoy
w > places to search Google (configparser, python config files), so I'll > look around for better ideas. Take a look at pickle (specially cPickle) module for pickling and unpickling data directly from / to Python types. What you want can be mapped to dictionaries of lists of dictionaries.

Re: Zope vs Php

2005-11-17 Thread Jorge Godoy
e and can be used as he wants and in a cleaner way as well. ;-) It suits both worlds. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Zope vs Php

2005-11-17 Thread Jorge Godoy
Mike Meyer <[EMAIL PROTECTED]> writes: > Jorge Godoy <[EMAIL PROTECTED]> writes: > > Mike Meyer <[EMAIL PROTECTED]> writes: > >> That said, I have to confess that lately I've been using Cheetah > >> templates, because the syntax for inserting val

Re: Zope vs Php

2005-11-18 Thread Jorge Godoy
t of CSS and JavaScript. But, as you can see with TurboGears, it's possible to do even more with it. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython Licence vs GPL

2005-11-24 Thread Jorge Godoy
e people laughing about SCO's mistakes and wrong information / facts... -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Hello World-ish

2005-11-26 Thread Jorge Godoy
bing of data structures (is it your 'getId' method or the module's that is being used? ;-)). Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse best/good or bad IDE for Python?

2005-12-01 Thread Jorge Godoy
me and I use Emacs for something like 7 years now... ;-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Scientific Notation

2005-12-03 Thread Jorge Godoy
"Dustan" <[EMAIL PROTECTED]> writes: > No, I mean given a big number, such as > 1000, convert it into > scientific notation. It's the same. >>> print "%e" % 100000

Re: Ten Essential Development Practices

2005-07-29 Thread Jorge Godoy
7;ll use consistent name options and design a good interface? I think he's point is much broader than parsing input from the command line. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Wheel-reinvention with Python (was: Ten Essential Development Practices)

2005-07-29 Thread Jorge Godoy
Jeremy Moles wrote: > Four? > > 1. wx > 2. PyGTK > 3. Tk (Are you including this one even?) > 4. ??? PyQt / PyKDE. > Of the few I can think of, only one would qualify as great. :) The fourth one? ;-) -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.

Re: Ten Essential Development Practices

2005-07-29 Thread Jorge Godoy
r had to write anything to parse command line input by hand. I suggest you take a look at Getopt::Long, at CPAN. http://search.cpan.org/~jv/Getopt-Long-2.34/ http://search.cpan.org/src/JV/Getopt-Long-2.34/README Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: PyDev 0.9.7 released

2005-07-29 Thread Jorge Godoy
tes: Java 1.5.0. ;-) Installing it made everything work perfectly. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Ten Essential Development Practices

2005-07-29 Thread Jorge Godoy
Michael Hoffman wrote: > In that case, I think he just wasted a lot of time in the article, and > would have been better off saying "use Getopt::Long." This is why I think he was more concerned with design than implementation. -- Jorge Godoy <[EMAIL PR

Re: The state of OO wrappers on top of wxPython (was Re: Wheel-reinvention with Python)

2005-07-30 Thread Jorge Godoy
need, we'll be glad to add it. If it is added, let us know. I can't think of a better way to visualize database reports in an easy and fast way. Specially for BI. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: The state of OO wrappers on top of wxPython (was Re: Wheel-reinvention with Python)

2005-07-30 Thread Jorge Godoy
Ed Leafe wrote: > On Saturday 30 July 2005 16:06, Jorge Godoy wrote: > >> If it is added, let us know.  I can't think of a better way to visualize >> database reports in an easy and fast way.  Specially for BI. > > What specifically are you looking for? We are wor

Re: The state of OO wrappers on top of wxPython (was Re: Wheel-reinvention with Python)

2005-07-30 Thread Jorge Godoy
7;s one implementation that is compatible with Matlab and is also compatible with wxPython. Take a look at matplotlib: http://matplotlib.sourceforge.net/ -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Wheel-reinvention with Python

2005-07-31 Thread Jorge Godoy
gets documented and adopted? In an international project I see othe problems as well -- cost, logistics, S&H, customs, etc. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Wheel-reinvention with Python

2005-07-31 Thread Jorge Godoy
e a completely different problem while sharing the very same problem you, on the post prior to mine, was trying to solve: what is the standard GUI on a Linux distribution? QVWM? WindowMaker? Gnome? KDE? FVWM? -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Wheel-reinvention with Python

2005-07-31 Thread Jorge Godoy
it great to have this freedom to choose specially because not everybody share the same aesthetics idea. What some people find beautiful I don't like and vice-versa. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Wheel-reinvention with Python

2005-07-31 Thread Jorge Godoy
ate packages for TKinter. I believe there are more. Unless, of course, you're first installing a personalized Python -- and loosing this "advantage". -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Dabo in 30 seconds?

2005-08-01 Thread Jorge Godoy
nd up checking the whole system at each and every run -- because I might have added / removed packages since I installed Dabo -- what would give a big performance penalty. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Dabo in 30 seconds?

2005-08-01 Thread Jorge Godoy
external dependencies means also > installing and *supporting* it on a possible large set of configurations. I see no problem with that. Specially since there are lots of ways to share directories on a network installation. You install it once and it's done. -- Jorge Godoy

Re: Dabo in 30 seconds?

2005-08-01 Thread Jorge Godoy
and this "new GTK" is certified for the company's apps. For laptops to work on the road there are two options: VPNs and installing it locally. How many "laptops to work on the road" there will be compared to "fixed workstations"? We can find several p

Re: Dabo in 30 seconds?

2005-08-01 Thread Jorge Godoy
Cliff Wells wrote: > On Mon, 2005-08-01 at 13:28 -0300, Jorge Godoy wrote: >> >> We can find several problems, almost all of them can be solved with the >> admin's creativity. > >>>> import creativity > Traceback (most recent call last): > File

Re: Dabo in 30 seconds?

2005-08-01 Thread Jorge Godoy
Daniel Dittmar wrote: > Jorge Godoy wrote: >> We can find several problems, almost all of them can be solved with the >> admin's creativity. > > You must distinguish between solving technical problems once a course > has ben set and choosing such a course in the fir

Re: Wheel-reinvention with Python

2005-08-01 Thread Jorge Godoy
wer to your rhetorical question about GUI's for Linux, the > answer is plwm. :-) And does it integrate well with common business apps, such as a mail client, note taking apps, addressbooks (with personal and shared entries), calendar with ability to share appointments, etc.? Be seeing you, --

Re: Dabo in 30 seconds?

2005-08-02 Thread Jorge Godoy
things that are considered, independently of the toolkit. None gets a "100% OK" grade, and some things have a higher weight to me or to the client. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

PyQt: Problem finding and showing a record in a QDataBrowser

2005-08-08 Thread Jorge Godoy
). I was reading Qt3 docs trying to find out some other mean to recover the record I need without messing with the filter because if I use the filter, then I can't paginate through all records anymore. Any hints on an alternative approach that would allow me to use both controls? * Python 2.4

Re: Oreilly CodeZoo

2005-08-08 Thread Jorge Godoy
s as a constructive feedback from someone that has just screened the pages, getting to know it. Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Recommendations for CVS systems

2005-08-09 Thread Jorge Godoy
very significative depending on the type of file that you'll be working with. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt: Problem finding and showing a record in a QDataBrowser

2005-08-09 Thread Jorge Godoy
Jorge Godoy wrote: > I have created an interface where I have a QDataBrowser and all of its > editing and navigating controls and one of the displayed controls is in a > QSpinBox. > > I have the navigation from current to next and previous records working > fine if I only us

Re: Oreilly CodeZoo

2005-08-09 Thread Jorge Godoy
-package. I was thinking about one per topic / classification, not per package. It would be overkill to subscribe to 600+ feeds. Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Moinmoin config

2005-08-17 Thread Jorge Godoy
che2-mod_php4-4.3.10-14.6 apache2-mod_python-3.1.3-42 apache2-mod_ruby-1.2.4-3 apache2-prefork-2.0.53-9.2 I hope it helps. Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: RE Question

2005-08-18 Thread Jorge Godoy
n't understand how it works. Can someone please direct me to a place > which will explain it? I didn't get your second question. When you use "|" the first match is used. It is a short-circuited version of "or". I mean, it tries the first regexp, if it matches, the second expression is ignored. The same is true for "and", except that the comparisons end on the first false result. Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie - instanciating classes from other files

2005-09-14 Thread Jorge Godoy
or from file import ClassName thisFile = ClassName() This is in the docs. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Django Vs Rails

2005-09-15 Thread Jorge Godoy
them to fetch their structure from the database it is better than having to "recreate" all of them). With regards to failures, this is one of the reasons for unit tests :-) They can help finding out where is the problem and they should never fail silently. -- Jorge Godoy <[

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

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.

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

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

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

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