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?
The
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 pr
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 Th
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 slo
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
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(fnam
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. Ma
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 coin
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, ...))
--
http://mail.pyt
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) == id(
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?
W
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) Intellise
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) Intellise
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 althou
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 rece
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: hello_input
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. Acco
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 ?
> app.d
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
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 wit
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 r
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
P
> 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 relate
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.
--
http://mail.p
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), th
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
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. H
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 s
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 dia
> 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
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
sel
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 wil
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
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.
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 SP
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,
> > fo
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 comparis
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. Ho
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
>>>
>>>
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
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 c
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 usi
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]
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, GetWind
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 w
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 obviou
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 before
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
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 overa
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
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, POINT
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 f
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 i
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
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 McS
> 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
> docum
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
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 shou
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 han
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
> > hopin
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 d
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 tryin
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 creati
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 escapin
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 wind
leo davis skrev:
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
re
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 "cla
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 t
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 ()
ie.scriptWrite
On 24 Jul, 12:02, "Sebastian \"lunar\" Wiesner"
<[EMAIL PROTECTED]> wrote:
>
> Fortunately, Python isn't designed according to your ideas, and won't
> change, so consider your posting a waste of time.
This is the kind of petty response that serves only to shut down
discussion that might actually l
Atul. skrev:
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?
Are we talking about existing files? If you don't know what encoding
the files use, you could always try
1 - 100 of 201 matches
Mail list logo