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
>>>>>
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
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
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
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
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
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
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 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
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
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
and which method is the best, Daniel's generator or the subclass?
--
http://mail.python.org/mailman/listinfo/python-list
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('#&
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
14 matches
Mail list logo