On Jul 24, 1:13 am, Fredrik Lundh [EMAIL PROTECTED] wrote:
ജഗന്നാഥ് wrote:
I am a Perl programmer new to Python. I have a small doubt.
I suspect you mean question, not doubt. It's not quite the same thing.
How to convert the perl notation
$a = ; expression in Python ?
Thank you for all
On Jul 23, 1:03 pm, [EMAIL PROTECTED] (c d saunter)
wrote:
How much of VHDL are you looking to parse? Are you just looking at files
intended for synthesis, or at simulation/testbench files as well?
As a start I want to parse VHDL which is going to be synthesised, and
I am limiting myself to
On Jul 24, 1:41 pm, Jordan [EMAIL PROTECTED] wrote:
Hi everyone,
I'm a big Python fan who used to be involved semi regularly in
comp.lang.python (lots of lurking, occasional posting) but kind of
trailed off a bit. I just wrote a frustration inspired rant on my
blog, and I thought it was
John Gordon wrote:
I'm developing a web application that needs a semi-persistent way to
store information.
I've looked at some options such as writing entries to a database table
or creating small textfiles, but I'm not thrilled with anything I've come
up with so far.
What's the problem?
Hello,
Does any one have a sample piece of code to search for a keyword in
Excel sheet? if so plz post it..
Thanks,
Girish..
--
http://mail.python.org/mailman/listinfo/python-list
Danny Shevitz wrote:
Howdy,
In my app I need to exec user text that defines a function. I want this
function to unpickle an object. Pickle breaks because it is looking for
the object definition that isn't in the calling namespace.
I have mocked up a simple example that shows the problem.
Is there is a better way to create parameterized classes than defining and
returning a class in a closure? I ask because I want to create arbitrary
BaseRequestHandler subclasses that delegate line handling to a given line
handler, as in this example:
from SocketServer import *
class
Jordan wrote:
Except when it comes to Classes. I added some classes to code that had
previously just been functions, and you know what I did - or rather,
forgot to do? Put in the 'self'. In front of some of the variable
accesses, but more noticably, at the start of *every single method
argument
John Tantalo wrote:
I really wish I could create a class whose instances were classes that
subclassed BaseRequestHandler. Is this possible, or is there a better
way than my approach here? Or am I crazy?
no you so much as your code. unfortunately, it fails the decipher in
allocated time
On Jul 23, 4:39 pm, Thomas Heller [EMAIL PROTECTED] wrote:
waldek schrieb:
Hi,
I have module A.py and B.dll which exports C functions by cdecl_
In A.py I pass callback (py callable) to dll. Next, thread inside dll
simply calls my callback (in a loop). After few secs I got crash of
Anthony wrote:
Hi, I'm a FoxPro programmer, but I want to learn python before it's
too late. I do a lot of statistical programming, so I import SPSS
into python. In my opinion, the best features of Visual FoxPro 9.0
were:
a) Intellisense (tells you what classes/methods are available and
On Jul 24, 5:15 pm, Girish [EMAIL PROTECTED] wrote in
comp.lang.python:
Hello,
Does any one have a sample piece of code to search for a keyword in
Excel sheet? if so plz post it..
8--- xlkwsearch.py
import xlrd, sys, glob
def xlkwsearch(fname, query):
book = xlrd.open_workbook(fname)
John Tantalo wrote:
Is there is a better way to create parameterized classes than defining
and returning a class in a closure? I ask because I want to create
arbitrary BaseRequestHandler subclasses that delegate line handling to a
given line handler, as in this example:
Oh, now I get it.
Of course not.
I just think Explicit is better than Implicit is taken seriously by a
large segment the Python community as a guiding principle, and overall
its influence does more harm than good.
Clearly self being in every argument list was a decision arrived at
long before the Zen was ever
John Tantalo wrote:
I really wish I could create a class whose instances were classes that
subclassed BaseRequestHandler. Is this possible, or is there a better
way than my approach here? Or am I crazy?
You may use type:
type('MuSubclass', (Base, ), dict(a1=1, a2=2, ...))
--
I am facing a problem where I am really confused about it.
I am trying to compare to instances using:
if inst1 == inst2
These instances have a overridden method __str__ which returns same
string. The condition result is true although they are different
instances.
If I use:
if id(inst1) ==
B wrote:
Now it works, but it runs quite slow (compared to the c++ app). I
changed gwl from strait recursion to use a generator and that helped,
but it still takes 0.5-1.0 seconds to populate the tree. What I'm
wondering is am I doing it in a really inefficient way, or is it just
python?
On Wed, Jul 23, 2008 at 5:28 PM, Anthony [EMAIL PROTECTED] wrote:
Hi, I'm a FoxPro programmer, but I want to learn python before it's
too late. I do a lot of statistical programming, so I import SPSS
into python. In my opinion, the best features of Visual FoxPro 9.0
were:
a) Intellisense
On Wed, Jul 23, 2008 at 5:28 PM, Anthony [EMAIL PROTECTED] wrote:
Hi, I'm a FoxPro programmer, but I want to learn python before it's
too late. I do a lot of statistical programming, so I import SPSS
into python. In my opinion, the best features of Visual FoxPro 9.0
were:
a) Intellisense
On Jul 24, 6:50 pm, King [EMAIL PROTECTED] wrote:
I am facing a problem where I am really confused about it.
I am trying to compare to instances using:
if inst1 == inst2
These instances have a overridden method __str__ which returns same
string. The condition result is true although they
Hi,
I am new to python . I am face few problems related with
python and iam trying to resolve it.
The below is the error that i get when i invoke my application by
giving
the necessary input file.
[EMAIL PROTECTED] hello]# Analyzer hello_input
Loading debug info: hello_input
Traceback (most
karthikbalaguru wrote:
I am new to python . I am face few problems related with
python and iam trying to resolve it.
The below is the error that i get when i invoke my application by
giving
the necessary input file.
[EMAIL PROTECTED] hello]# Analyzer hello_input
Loading debug info:
King wrote:
Is this mean when you have overridden __str__ method then it comapre
with results of __str__ or else it will comapre whether they are the
same instances?
Comparisons uses __cmp__ or the rich comparison set; see
http://docs.python.org/ref/customization.html
for details.
Sets
Jordan a écrit :
(snip rant about self and __eq__ / __ne__)
1/ about the __eq__ / __ne__ stuff:
Please get your facts, the behaviour *is* actually fully documented:
There are no implied relationships among the comparison operators. The
truth of x==y does not imply that x!=y is false.
karthikbalaguru wrote:
[EMAIL PROTECTED] hello]# Analyzer hello_input
^^
This is often a bad idea. Anyhow, that has nothing to do with Python.
Loading debug info: hello_input
Traceback (most recent call last):
File /usr/local/SDK/host/bin/Analyzer, line 694, in ?
On Jul 24, 2:20 pm, Fredrik Lundh [EMAIL PROTECTED] wrote:
karthikbalaguru wrote:
I am new to python . I am face few problems related with
python and iam trying to resolve it.
The below is the error that i get when i invoke my application by
giving
the necessary input file.
[EMAIL
Hallöchen!
Bruno Desthuilliers writes:
[...]
How would you handle this case with an implicit 'self' :
class Foo(object):
pass
def bar(self):
print self
Foo.bar = bar
Just like this. However, the compiler could add self to
non-decorated methods which are defined within class.
karthikbalaguru wrote:
The requirements state that it needs Python 2.2, But i wonder
how that program has been implemented using Python 2.3 features.
Anyhow, this has to be resolved and i need your help.
No, you need the help of the original author. He/she might have
forgotten to update the
Hello group,
take a look at the code snippet below. What I want to do is initialize
two separate Channel objects and put some data in them. However,
although two different objects are in fact created (as can be seen
from the different names they spit out with the diag() method), the
data in the
On Jul 24, 7:33 pm, karthikbalaguru [EMAIL PROTECTED]
wrote:
Kindly let me know a trick to make to resolve
the 'in' operator related problem by using Python 2.2.
You seem to be making life -very- difficult for yourself.
Your distro is running Python 2.4, you've gone out of your way to get
Thx for that info. I understand.
The requirements state that it needs Python 2.2, But i wonder
how that program has been implemented using Python 2.3 features.
Anyhow, this has to be resolved and i need your help.
Kindly let me know a trick to make to resolve
the 'in' operator related
The only methods I do have in class is __init__ and __str__.
How ever inst1 and inst2 is coming from a dictionary where I stored
them with a unique id.
inst1 = stored[id]
inst2 = stored[id]
Is this makes a difference? I will rip down the piece of code giving
me problem and post.
--
In message
[EMAIL PROTECTED],
Matimus wrote:
That isn't the standard. With that setup tabs will show up as 4
spaces, and still confuse you.
Why should that be confusing? The most common tab-stop setting is 4 columns.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
take a look at the code snippet below. What I want to do is initialize
two separate Channel objects and put some data in them. However,
although two different objects are in fact created (as can be seen
from the different names they spit out with the diag() method), the
In message [EMAIL PROTECTED], AMD wrote:
Actually it is quite common, it is used for processing of files not for
reading parameters. You can use it whenever you need to read a simple
csv file or fixed format file which contains many lines with several
fields per line.
I do that all the time,
On Jul 24, 7:40 pm, Torsten Bronger [EMAIL PROTECTED]
wrote:
Hallöchen!
Bruno Desthuilliers writes:
[...]
How would you handle this case with an implicit 'self' :
class Foo(object):
pass
def bar(self):
print self
Foo.bar = bar
Just like this. However, the compiler
In message
[EMAIL PROTECTED], Jordan
wrote:
Except when it comes to Classes. I added some classes to code that had
previously just been functions, and you know what I did - or rather,
forgot to do? Put in the 'self'. In front of some of the variable
accesses, but more noticably, at the start
On Jul 24, 7:45 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
class Channel:
name = ''
sample = []
def __init__(self, name):
self.name = name
def append(self, time, value):
self.sample.append((time, value))
self.diag()
def diag(self):
off the top of my head (untested):
def equal(a, b):
... if a.tag != b.tag or a.attrib != b.attrib:
... return False
... if a.text != b.text or a.tail != b.tail:
... return False
... if len(a) != len(b):
... return False
... if any(not equal(a, b)
In message
[EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
class Channel:
name = ''
sample = []
These are class variables, not instance variables. Take them out, and ...
def __init__(self, name):
self.name = name
... add this line to the above function
In message [EMAIL PROTECTED], norseman
wrote:
The OOo examples do not work.
I have done OOo scripting in Python. What exactly does not work?
--
http://mail.python.org/mailman/listinfo/python-list
King wrote:
The only methods I do have in class is __init__ and __str__.
How ever inst1 and inst2 is coming from a dictionary where I stored
them with a unique id.
inst1 = stored[id]
inst2 = stored[id]
Is this makes a difference?
unlikely (well, if that's the literal code, both variables
On Jul 24, 11:59 am, Fredrik Lundh [EMAIL PROTECTED] wrote:
tip: if you're not 100% sure why you would want to put an attribute
on the class level, don't do it.
The reason I did it was sort of C++ish (that's where I come from): I
somehow wanted a list of attributes on the class level. More for
OK, it seems my original reply to Bruno got lost in the Aether
(apologies therefore if a paraphrased quantum duplicate of this
message is eventually forthcoming.)
Torsten has adequately responded to his second point, so I need only
replicated what I said for the first.
Please get your facts,
This is just plain wrong for at least C# and C++. C# wants you to
explicitly overload !=, if you have overloaded ==,
While this is as inconvenient as Python at least it doesn't catch you
unawares. C# 1 (or maybe 0.5), Python 0.
C++ complains
about != not being defined for class A.
See
FoxPro is data-oriented, which means that at any time you have any
number of data sets open in the workspace and browse them immediately
by running one line of code in the command window. It's a really
important feature in terms of efficiency; I don't want to have to move
back and forth between
On Jul 24, 8:01 pm, Lawrence D'Oliveiro [EMAIL PROTECTED]
central.gen.new_zealand wrote:
In message
[EMAIL PROTECTED], Jordan
wrote:
Except when it comes to Classes. I added some classes to code that had
previously just been functions, and you know what I did - or rather,
forgot to do?
Jordan [EMAIL PROTECTED]:
# Blog code, not tested
class A():
def __eq__(self, obj):
return True
a = A()
b = []
assert a == b
assert not (a != b)
The second assertion fails. Why? Because coding __eq__, the most
obvious way to make a class have equality based comparisons, buys
On 24 Jul., 11:40, Torsten Bronger [EMAIL PROTECTED]
wrote:
Hallöchen!
Bruno Desthuilliers writes:
[...]
How would you handle this case with an implicit 'self' :
class Foo(object):
pass
def bar(self):
print self
Foo.bar = bar
Just like this. However, the compiler
Hallöchen!
Kay Schluehr writes:
On 24 Jul., 11:40, Torsten Bronger [EMAIL PROTECTED]
wrote:
Bruno Desthuilliers writes:
[...]
How would you handle this case with an implicit 'self' :
class Foo(object):
pass
def bar(self):
print self
Foo.bar = bar
Just like this. However,
I'm a bit of a python newbie and I need to wrap a C library.
I can initialise the library using CDLL('mcclient.so')
and I can call functions correctly inside the library but I need to
invoke one function which has this function definition:
char ** CAPAPI McSearch(HMCLINK Handle,
On Jul 24, 4:10 am, Aspersieman [EMAIL PROTECTED] wrote:
Anthony wrote:
Hi, I'm a FoxPro programmer, but I want to learn python before it's
too late. I do a lot of statistical programming, so I import SPSS
into python. In my opinion, the best features of Visual FoxPro 9.0
were:
On Jul 24, 7:23 pm, Ulrich Eckhardt [EMAIL PROTECTED] wrote:
karthikbalaguru wrote:
[EMAIL PROTECTED] hello]# Analyzer hello_input
^^
This is often a bad idea. Anyhow, that has nothing to do with Python.
Loading debug info: hello_input
Traceback (most recent call last):
Dear all:
The mouse cannot be responded in the windows of python(command
line) and cut and paste cannot be done. ctrl c and ctrl v do not work.
But they do work in IDLE.
please teach me about the python(command line).
--
http://mail.python.org/mailman/listinfo/python-list
fang wrote:
The mouse cannot be responded in the windows of python(command
line) and cut and paste cannot be done. ctrl c and ctrl v do not work.
But they do work in IDLE.
that has absolutely nothing to do with Python, and everything to do with
what console or terminal program you're
On Jul 24, 8:17 am, fang [EMAIL PROTECTED] wrote:
Dear all:
The mouse cannot be responded in the windows of python(command
line) and cut and paste cannot be done. ctrl c and ctrl v do not work.
But they do work in IDLE.
please teach me about the python(command line).
What
John Machin wrote:
You don't need a crystal ball; you just need to have been reading this
group/list for the last day or so --- the OP is trying to use Python
2.2 on some *.py that are obviously written for a later version,
refuses to contemplate upgrading, and starts a new thread every time
he
-On [20080724 13:50], Fredrik Lundh ([EMAIL PROTECTED]) wrote:
if you want better console support, consider installing the ipython
shell:
Unless you work with non-ASCII. Ipython mangles non-ASCII unfortunately.
[Full UTF-8 environment]
In [1]: a = u'愛'
In [2]: a
Out[2]: u'\xe6\x84\x9b'
Normal
B wrote:
# pass in window handle and parent node
def gwl(node, hwnd):
if hwnd:
yield node, hwnd
for nd, wnd in Wnd.gwl(node.children[-1], GetWindow(hwnd,
GW_CHILD)):
yield nd, wnd
for nd, wnd in Wnd.gwl(node, GetWindow(hwnd,
Dear:
Thank you very much! I can do it! It's very nice!
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 24, 8:21 pm, Jordan [EMAIL PROTECTED] wrote:
If the attitude
in the community in response to feedback/criticism has gone from
maybe you've got a point to your a lunatic, we'll never change,
well, only Python will suffer in the long term.
Personally, I think it has more to do with
Jordan [EMAIL PROTECTED]:
Fortunately, Python isn't designed according to your ideas, and won't
change, so consider your posting a waste of time. If feeling like
bringing such old issues up again next time, spend your time learning
another programming language, as you would obviously not get
King a écrit :
The only methods I do have in class is __init__ and __str__.
Is your class subclassing another one ?
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
ജഗന്നാഥ് wrote:
I am a Perl programmer new to Python. I have a small doubt.
I suspect you mean question, not doubt. It's not quite the same
thing.
It seems to be an Indian/Asian thing. By now, I tuned myself to read doubt
as question/problem...
Diez
--
After many years happily coding Perl, I'm looking to expand my
horizons. [no flames please, I'm pretty aware of Perl's strengths and
weaknesses and I'm just here to learn more, not to enter religious
debates].
I've gone through some of the online tutorials and I'll be browsing
the reference
Can someone help with a PAMIE issue? I'm new to Python / PAMIE and
they seem like great tools but to be honest I'm finding that no
responses to questions can be found (Experts Exchange, etc.) I'm
hoping this will be the place.
I tried to duplicate the authors ie.writeScript function shown at
Personally, I think it has more to do with statements like there are
plenty of smart Python programmers who will
justify all kinds of idiocy in the name of their holy crusade than
with your position. You don't begin a discussion by discrediting
anyone who might disagree with you as some kind
Jordan [EMAIL PROTECTED] writes:
I just think Explicit is better than Implicit is taken seriously by
a large segment the Python community as a guiding principle
Indeed it is. However, it has to compete with all the other principles
in the Zen of Python, which have equal status.
and overall
Jordan [EMAIL PROTECTED] writes:
If the attitude in the community in response to feedback/criticism
has gone from maybe you've got a point to your a lunatic, we'll
never change, well, only Python will suffer in the long term.
You're not a lunatic.
We, and Python itself, change quite readily.
All,
Can anyone answer my question about the licensing for SocketServer.py?
I would appreciate it.
Kent
-Original Message-
From: Tobias Ivarsson [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2008 2:13 AM
To: Pinegar, Kent T
Subject: Re: [Jython-users] Jython Licensing Question
No
I don't really mind, what you think about my response. Python will suffer
from it as little as it will suffer from your complaints: These things
will not change, whatever any of us says about them. So this discussion
unlikely to produce any new insight, especially because this as been
Has anybody wrapped std::set using boost::python? I'm trying to find the
best way to do this. Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm using C dll with py module and wanna read value (buffer of bytes)
returned in py callback as parameter passed to dll function.
--
def mycallback(data, size):
# how to read data buffer here ?
return 0
cbfunc = CFUNCTYPE(c_int,
Hi all,
I need to adjust the dimming property of my video card. There is
currently a written application called nvclock but it is not
supporting my card right now. So i need to implement the requiered
register jobs on the card. This is already done to a degree in C. But
i don't want to dive in to
Jordan a écrit :
OK, it seems my original reply to Bruno got lost in the Aether
(apologies therefore if a paraphrased quantum duplicate of this
message is eventually forthcoming.)
Torsten has adequately responded to his second point,
Not MHO, by far.
so I need only
replicated what I said
Torsten Bronger a écrit :
Hallöchen!
Bruno Desthuilliers writes:
[...]
How would you handle this case with an implicit 'self' :
class Foo(object):
pass
def bar(self):
print self
Foo.bar = bar
Just like this. However, the compiler could add self to
non-decorated methods which are
frankrentef wrote:
Can someone help with a PAMIE issue? I'm new to Python / PAMIE and
they seem like great tools but to be honest I'm finding that no
responses to questions can be found (Experts Exchange, etc.) I'm
hoping this will be the place.
I tried to duplicate the authors ie.writeScript
Please understand that I'm not arguing about this particular design
choice (and FWIW, I'd mostly agree on the point that having a != b
different from not (a == b) is actually a wart). I'm just correcting
your statement about the behaviour of __eq__ / __ne__ not being
documented, which is
waldek schrieb:
Hi,
I'm using C dll with py module and wanna read value (buffer of bytes)
returned in py callback as parameter passed to dll function.
The callback receives a pointer instance. You can dereference the pointer
to read individual bytes in this way:
print data[0], data[5],
Philluminati schrieb:
I'm a bit of a python newbie and I need to wrap a C library.
I can initialise the library using CDLL('mcclient.so')
and I can call functions correctly inside the library but I need to
invoke one function which has this function definition:
char ** CAPAPI
Then why do you write, let me quote:
(snip) coding __eq__ (snip) buys you
nothing from the != operator. != isn't (by default) a synonym for the
negation of == (unlike in, say, every other language ever); not only
will Python let you make them mean different things, without
documenting
On Jul 24, 3:53 pm, Brett Ritter [EMAIL PROTECTED] wrote:
After many years happily coding Perl, I'm looking to expand my
horizons. [no flames please, I'm pretty aware of Perl's strengths and
weaknesses and I'm just here to learn more, not to enter religious
debates].
I've gone through some
frankrentef wrote:
Can someone help with a PAMIE issue? I'm new to Python / PAMIE and
they seem like great tools but to be honest I'm finding that no
responses to questions can be found (Experts Exchange, etc.) I'm
hoping this will be the place.
I tried to duplicate the authors ie.writeScript
Torsten Bronger a écrit :
Hallöchen!
Kay Schluehr writes:
On 24 Jul., 11:40, Torsten Bronger [EMAIL PROTECTED]
wrote:
Bruno Desthuilliers writes:
[...]
How would you handle this case with an implicit 'self' :
class Foo(object):
pass
def bar(self):
print self
Foo.bar = bar
Just
My words aren't as clear as they should be. I mean that Python lets
*you* do something without documenting, or rather stating to use a
better term, that your intention is the non-obvious one. I'm not
saying that Python itself lacks documentation for its own behaviour;
I'm saying it should
Jordan [EMAIL PROTECTED] writes:
Explicit is actually kinda annoying a lot of the time
Yes. It is also very helpful for those who will later try to
understand, interface with, debug, modify, or otherwise work with the
code (including, in a great many cases, the original author of that
code).
In article [EMAIL PROTECTED],
Fredrik Lundh [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
I've been saving data in a file with one line per field.
Now some of the fields may become multi-line strings...
I was about to start escaping and unescaping linefeeds
by hand, when I
On Jul 24, 10:07 am, Tim Golden [EMAIL PROTECTED] wrote:
frankrentef wrote:
Can someone help with a PAMIE issue? I'm new to Python / PAMIE and
they seem like great tools but to be honest I'm finding that no
responses to questions can be found (Experts Exchange, etc.) I'm
hoping this
Lawrence D'Oliveiro a écrit :
In message
[EMAIL PROTECTED], Jordan
wrote:
Except when it comes to Classes. I added some classes to code that had
previously just been functions, and you know what I did - or rather,
forgot to do? Put in the 'self'. In front of some of the variable
accesses, but
You're not a lunatic.
We, and Python itself, change quite readily.
Neither of those mean your ideas in this instance have merit.
You're right, these premises don't lead to this conclusion. Neither do
they lead to its negation, of course.
As it happens, you're wrong on both counts. I do in
Hiya,
I found this code snippet(reference http://www.goldb.org) and wish to do more
with it than just send out a Http Get request.I would like to introduce more
traffic -say by downloading files,crawling through all the links,logging in etc
etc,and wish to see how the web server reacts.I'm
Just wondered whether the OP's Subject was a
deliberate play on flog a dead horse or
merely an ironic one :)
TJG
--
http://mail.python.org/mailman/listinfo/python-list
In [EMAIL PROTECTED] =?ISO-8859-1?Q?Michael_Str=F6der?= [EMAIL PROTECTED]
writes:
John Gordon wrote:
I'm developing a web application that needs a semi-persistent way to
store information.
I've looked at some options such as writing entries to a database table
or creating small
David C. Ullrich wrote:
In article [EMAIL PROTECTED],
Fredrik Lundh [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
I've been saving data in a file with one line per field.
Now some of the fields may become multi-line strings...
I was about to start escaping and unescaping
Peter Otten wrote:
You could also use a csv file with a single row.
Err, I meant column, but a row would also work. Your choice.
Peter
--
http://mail.python.org/mailman/listinfo/python-list
Hello All,
I wanted to know what encoding should I use to open the files with
Devanagari characters. I was thinking of UTF-8 but was not sure, any
leads on this? Anyone used it earlier?
Thanks in Advance.
Regards,
Atul.
--
http://mail.python.org/mailman/listinfo/python-list
David C. Ullrich skrev:
just keep in mind that using eval() on untrusted data isn't a very good
idea.
Right. This data comes from me, gets put into a file and then
read by me. Someone _could_ corrupt that file, but someone who
could do that could more easily just throw the machine out
the
Hallöchen!
Bruno Desthuilliers writes:
Torsten Bronger a écrit :
Kay Schluehr writes:
On 24 Jul., 11:40, Torsten Bronger [EMAIL PROTECTED]
wrote:
[...] Just like this. However, the compiler could add self
to non-decorated methods which are defined within class.
And $self2, $self3,
Hallöchen!
Bruno Desthuilliers writes:
Torsten Bronger a écrit :
Bruno Desthuilliers writes:
[...]
How would you handle this case with an implicit 'self' :
class Foo(object):
pass
def bar(self):
print self
Foo.bar = bar
Just like this. However, the compiler could add self
frankrentef wrote:
THNX for your response. Based on the authors code it's very simple.
from cPAMIE import PAMIE
ie=PAMIE ()
#ie.navigate (google.com)
#ie.linkClick
#ie.textBoxSet
#ie.writeScript
ie.navigate ('https://login.yahoo.com/config/mail?.intl=us')
#ie.scriptWrite ()
1 - 100 of 259 matches
Mail list logo