Re: sys.stderr.write and sys.exit

2006-11-23 Thread GinTon
Thanks Ben Finney. So it's understood very well. Ben Finney ha escrito: > "GinTon" <[EMAIL PROTECTED]> writes: > > > Is the same use >>>>> sys.stderr.write('error message'); sys.exit(1) > > than >>>>>

Re: Access to variable from external imported module

2006-11-23 Thread GinTon
Thanks Robert, the best solution is get all local variables, else is impossible access to them. robert ha escrito: > GinTon wrote: > > I would to access to values that are created locally in that method > > after the method has executed? usually the return value? > or you wan

Re: Access to variable from external imported module

2006-11-23 Thread GinTon
Sorry, I mean access to local variable from a method import module method(value) I would to access to values that are created locally in that method Fredrik Lundh ha escrito: > GinTon wrote: > > > How to access to a variable (that value is not returned) from a module > > imp

Access to variable from external imported module

2006-11-23 Thread GinTon
How to access to a variable (that value is not returned) from a module imported? And the variable is set at the module-level. That module is external to my program, it's from another project so I wann't modifying it. -- http://mail.python.org/mailman/listinfo/python-list

sys.stderr.write and sys.exit

2006-11-23 Thread GinTon
Is the same use _sys.stderr.write('error message'); sys.exit(1)_ than _sys.exit('error message')_ ? Note: help(sys.exit) If the status is omitted or None, it defaults to zero (i.e., success). If the status is numeric, it will be used as the system exit status. If it is another kind of object, it

Re: Integration of globalization data in Python web frameworks

2006-10-20 Thread GinTon
The project web is activated http://webda.python-hosting.com/ GinTon wrote: > I have created several tables in CSV format with globalization data > (G11n). There are tables for countries, areas, languages, countries & > languages, time zones, phones. And they are licensed und

Integration of globalization data in Python web frameworks

2006-10-19 Thread GinTon
I have created several tables in CSV format with globalization data (G11n). There are tables for countries, areas, languages, countries & languages, time zones, phones. And they are licensed under a Creative Commons license. http://svn.webda.python-hosting.com/trunk/G11n_data/ I created a new dis

Re: EyeDB Object Database (ODBMS) - Python wrapper

2006-09-17 Thread GinTon
I received the following answer of Eric Viara, EyeDB.org: "We planned to introduce soon a plugin mechanism to facilitate the way to write language bindings such as PHP5, Python, PERL and so on. But we do not know yet if the Python binding will be written by the core staff. We do not plan to suppo

EyeDB Object Database (ODBMS) - Python wrapper

2006-09-09 Thread GinTon
EyeDB is a free ODBMS based on the ODMG 3 specification with programming interfaces for C++ and Java. It is very powerfull, mature, safe and stable. In fact, it was developed in 1992 for the Genome View project althought rewritten in 1994, and has been used in a lot of bioinformatics projects http

Re: BeautifulSoup to get string inner 'p' and 'a' tags

2006-07-24 Thread GinTon
Marc 'BlackJack' Rintsch wrote: > In [53]: print tree.first('p').contents[0] > FOO > Thanks! I was going to crazy with this. -- http://mail.python.org/mailman/listinfo/python-list

BeautifulSoup to get string inner 'p' and 'a' tags

2006-07-24 Thread GinTon
I'm trying to get the 'FOO' string but the problem is that inner 'P' tag there is another tag, 'a'. So: > from BeautifulSoup import BeautifulSoup > s = ' FOO name="f"> ' > tree = BeautifulSoup(s) > print tree.first('p') FOO So if I run 'print tree.first('p').string' to get the 'FOO' string it

Re: CSV with comments

2006-07-20 Thread GinTon
and which method is the best, Daniel's generator or the subclass? -- http://mail.python.org/mailman/listinfo/python-list

Re: CSV with comments

2006-07-18 Thread GinTon
GinTon wrote: > In csv.reader, is there any way of skip lines that start whith '#' or > empty lines > I would add comments at my CSV file For skip comment I get a dirty trick: reader = csv.reader(open(csv_file)) for csv_line in reader: if csv_line[0].startswith('#&

CSV with comments

2006-07-18 Thread GinTon
In csv.reader, is there any way of skip lines that start whith '#' or empty lines I would add comments at my CSV file -- http://mail.python.org/mailman/listinfo/python-list