> You elided the paragraph where I pointed out the third alternative:
> provide a better experience for the 95%, and an ok experience for the
> 5%. WWW technologies are designed to degrade gracefully - it's easy to
> take advantage of that.
What I'm suggesting is taking the effort you'd put to the
)?
Thank u very much !
sincerely mark
Code:
==
import urllib2
theurl='https://brokerjet.ecetra.com/at/'
#
username = 'username'
password = 'password'
passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
passman.add_password(None, theurl, username, password)
authhand
elp me with this?
I've also managed to connect to my access database, and just print out a
field in a table, but I cant find anywhere on the web that will help me to
import data? Any help would be great?!
By the way I'm running on windows, and have installed the windows add on
Once i have this working i was planing to kept all the txt files as logs,
i'd have to give them a real name and stuff.
But thanks for you help so far
Mark
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Mark Line" <[EMAIL PROT
... WHY?
r =
opener.open("https://brokerjet.ecetra.com/at/trading/wt.phtml?isin=NL24&exid=ETR";)
#
h = r.readlines()
g = open("test.html","w")
g.writelines(h)
g.close()
os.system("test.html")
Thans realy for all ideas!
sincerely
mark
> ---
essing). If you do
truly only need VB DoEvents style processing (which is not MFC aware),
win32gui.Pump(Waiting)Messages should be fine though.
Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of James Hu
Sent: Thursday, 27 October 2005 4:10 AM
To: Python
tandard library
- Better error messages for things SS doesn't handle (Finally?!)
Shed Skin can be downloaded here: http://shedskin.sourceforge.net. I
also maintain a blog about the project: http://shed-skin.blogspot.com.
Thanks!!
Mark.
--
http://mail.python.org/mailman/listinfo/python-list
Hi folks,
I've been trying to write a PLY parser and have run into a bit of
bother.
At the moment, I have a RESERVEDWORD token which matches all reserved
words and then alters the token type to match the reserved word that
was detected. I also have an IDENTIFIER token which matches
identifiers t
y
> else:
> x -= 1
> y += 1
> add(x, y)
>
> print add(2, 4)
>
> result:
> 6
> None
Perhaps this hint will help:
>>> print add(0,6)
6
6
--
Mark Jackson - http://www.alumni.caltech.edu/~mjackson
Of course a weed-puller isn&
I was musing recently about how one could, for example, set up a really
simple mailing subscription list. It occurred to me that a really simple
way to implement it would be to use xmlrpc.
So there could be a function
subscribe(emailAddress),
which would send an email for confirmation, and anothe
bruno at modulix wrote:
> Mark Carter wrote:
> Congratulations, you've just rediscovered REST !-)
Huzzah!
> Turbogears is probably what you're looking for (if not quite what you
> describe).
Thanks. It looks quite interesting.
--
http://mail.python.org/mailman/listinfo/python-list
only
> user. But are those 10 modules the same 10 modules that other folks
> need? I don't know...
>
> Of course, the only way to find out is to try...
Or you can just look up the module you need to write a 'bot to
constantly look up the
7;m comprehensible.
>
Python isn't C++ and there is no need to return multiple values by modifying
function parameters:
>>> def funct(a,b):
... return a+1,b+1
...
>>> foo,bar=1,2
>>> print foo,bar
2 3
>>> foo,bar=funct(foo,bar)
>>> print foo,bar
3 4
>>>
-Mark
--
http://mail.python.org/mailman/listinfo/python-list
I currently use python to automatically summarise a certain newsgroup
daily, and post the findings that it makes. Someone has suggested that
they would like a to see a blog of the posts. I wondered if there was a
python tool/library that could automate the blog postings. Any ideas?
Some details
Premshree Pillai wrote:
You can use the Blogger API to post to your Blogger account. There's a
Python interface to the API -- PyBlogger -- available here:
http://beetle.cbtlsl.com/archives/category/pyblogger
Hey, it Just Works! I got the whole basic thing working in a few
minutes. It was exactly w
drife wrote:
Hello,
Making the transition from Perl to Python, and have a
question about constructing a loop that uses an iterator
of type float. How does one do this in Python?
Use a generator:
>>> def iterfloat(start, stop, inc):
... f = start
... while f <= stop:
... yield
you make a full-screen game with it? Yes, most certainly--providing
you have the skill/knowledge to program a full-screen game. But then again
that is rarely a matter of having the right programming language, but
rather a matter of having the right libraries.
--
~Mark Nenadov
On Sat, 01 Jan 2005 21:5
then just
hit down+enter to reenter the rest of the code.
Thanks,
Mark
--
http://mail.python.org/mailman/listinfo/python-list
> It might be nice if it was widely understood (in IT) that Python was
a language any competent
> programmer could pick up in an afternoon
I am a programmer who works for a firm of engineers, where they program
in VBA, badly. I've often mentioned Python, whereupon I'm usually
dismissed as a cra
Cameron Laird wrote:
> In article <[EMAIL PROTECTED]>,
> Mark Carter <[EMAIL PROTECTED]> wrote:
>.
>[tale of *very*
>typical experience
>with non-software
>engineers]
>.
>
Ron Garret wrote:
But this topic does bring up a legitimate question: I have a bunch of
code that generates HTML using PRINT statements. I need to convert
all this code to return strings rather than actually printing them (so
I can use the results to populate templates). In Lisp I could do thi
Sean wrote:
Was wondering if there was any difference between these two functions.
None, as shown here:
D:\Python23>python
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> file == open
> Cameron Laird wrote:
>
>> I've seen the infatuation for Excel (and so on) for years,
True story: when I began working for my current employer, there was a
guy there doing some work with a spreadsheet. He was given two weeks to
perform the task. It was a loss-leader to get some real work from th
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, first visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
Cameron Laird wrote:
> Well *that* certainly made my morning unpleasant.
Then let's see if I can spoil
Mark Carter wrote:
I'm thinking that the I-Ching is a vast untapped resource for
programming wisdom, plus it makes it funny.
Well, carrying on in the same frivilous and some might say off-topic
mood, I did a bit of a Google, and found that you can generate your very
own I-Ching reading:
Roy Smith wrote:
You've got a list of words (actually, they're found by searching a
data structure on the fly, but for now let's assume you've got them as
a list). You need to create a comma-delimited list of these words.
There might be duplicates in the original list, which you want to
eliminate
Philippe C. Martin wrote:
Hi,
All of the methods from my program return None on error (i.e; I do not
want to assert and have the program exit).
Is it possible to print the current source file name/line number ?
ex: in C/C++ I would use the macros __FILE__ and __LINE__.
Consider something like this:
Supposing I decide to write a server-side application using something
like corba or pyro.
What's the chance that in big corporations, the client's ports (in both
senses of the word: fee-paying, and application) will be blocked,
thereby immediately scuppering whatever I have written? Has this p
Paul Rubin wrote:
Mark Carter <[EMAIL PROTECTED]> writes:
Supposing I decide to write a server-side application using something
like corba or pyro.
Usually you wouldn't run a public corba or pyro service over the
internet. You'd use something like XMLRPC over HTTP port 80 partly
[EMAIL PROTECTED] wrote:
I am writing a script that acts as an AIM bot [using twisted.IM's base
scripts] and I want to add a logging feature. I got it to log who sends
what to whom, but what I want to add is the date and time that the
message was sent (or recieved by the bot), I tried to look at da
Mark Carter wrote:
Paul Rubin wrote:
Usually you wouldn't run a public corba or pyro service over the
internet. You'd use something like XMLRPC over HTTP port 80 partly
for the precise purpose of not getting blocked by firewalls.
I'm not sure if we're talking at cross-pu
Ed Leafe wrote:
On Jan 10, 2005, at 8:00 PM, Steve Holden wrote:
There isn't, IMHO, anything with the polish of (say) Microsoft Access,
or even Microsoft SQL Server's less brilliant interfaces. Some things
Microsoft *can* do well, it's a shame they didn't just stick to the
knitting.
Though
PE_1611:5812:10
Item_3TAPE_1712:1512:45Defect in analog tape sound.
Item_3TAPE_1812:5824:20Defect in analog tape sound.
This is all a single sound file and these separate times mark where
there was a break, defect, or edit in the individual item
Peter A.Schott wrote:
Using ftplib.FTP object for a project we have here to upload/download files. I
know that I can wrap everything in try/except blocks, but I'm having trouble
getting the exact error messages out of the Exceptions.
Consider using the traceback a la:
try:
[... whatever ...]
It's me wrote:
Okay, I give up.
What's the best way to count number of items in a list [that may contain lists]?
a = [[1,2,4],4,5,[2,3]]
def iterall(seq):
for item in seq:
try:
for subitem in iterall(item):
yield subitem
except TypeError:
yie
;ll find the information needed at:
http://cnswww.cns.cwru.edu/php/chet/readline/rluserman.html#SEC10
Yours,
Mark
--
http://mail.python.org/mailman/listinfo/python-list
who could help me, please?
FYI: the library used is Intel's OpenCV / HighGui, OS is debian/Sarge,
python2.3
Thanks in advance,
Mark
--
Dipl.-Ing. Mark Asbach Tel +49 (0)241 80-27677
Institute of Communications Engineering
RWTH Aachen University, Germany
Uwe Mayer wrote:
Hi,
is it possible to delete a file from a tar-archive using the tarfile module?
Thanks
Uwe
It doesn't appear so. A workaround, of course, is to create a new file
with the subset of files from the old file:
#!/usr/bin/env python
import tarfile
import os
def removeFile(filena
Uwe Mayer wrote:
Hi,
I need to access class variables of a class I'd like to make private:
Use single underscores instead of double underscores--you won't have to
workaround the name mangling. Besides, nothing's really private anyway.
// m
--
http://mail.python.org/mailman/listinfo/python-lis
bwobbones wrote:
Hi all,
I'm a java programmer struggling to come to terms with python - bear
with me!
Welcome!
I'm trying to subclass a class, and I want to be able to see it's
attributes also. Here are my classes:
[snip]
class two(one):
def __init__(self):
print "two"
The problem i
Frans Englich wrote:
Hello,
I am having trouble with throwing class instances around. Perhaps I'm
approaching my goals with the wrong solution, but here's nevertheless a
stripped down example which demonstrates my scenario:
[snip]
The basic problem seems to be that you're trying to avoid creat
Peter A.Schott wrote:
Is there any way to retry sending files with some delay up to a set
number on
failure? Sometimes we encounter a locked file on our server or the
destination
server and we want to retry that file in X seconds.
In general, what's wrong with this:
import time
retryCount = 1
Timothy Fitz wrote:
While I agree that the Zen of Python is an amazingly concise list of
truisms, I do not see any meaning in:
Flat is better than nested.
I strive for balance between flat and nested. Does anyone have a good
example of where this is applied? (specifically to python, or in
general)
Bob Smith wrote:
Hi,
I have a Python list. I can't figure out how to find an element's
numeric value (0,1,2,3...) in the list. Here's an example of what I'm
doing:
Use enumerate() (new in Python 2.3, IIRC). Otherwise:
for i in range(len(sequence)):
item = sequence[i]
...
for bar in bars:
I'd like to write a Tkinter app which, given a class, pops up a
window(s) with fields for each "attribute" of that class. The user could
enter values for the attributes and on closing the window would be
returned an instance of the class. The actual application I'm interested
in writing would eithe
neutrino wrote:
Greetings to the Python gurus,
I have a binary file and wish to see the "raw" content of it. So I open
it in binary mode, and read one byte at a time to a variable, which
will be of the string type. Now the problem is how to print the binary
format of that charater to the standard o
> From: "Mark English" <[EMAIL PROTECTED]>
>
> I'd like to write a Tkinter app which, given a class, pops up a
> window(s) with fields for each "attribute" of that class. The
> user could enter values for the attributes and on closing the
> windo
Diez B. Roggisch wrote:
> According to this
> http://www-106.ibm.com/developerworks/library/l-pyint.html
>
> not really - and there are no special moduls neccessary, as
> everything is at your hands using __dict__ and so on.
Thanks for the link. I'd read that article but found it was too
introd
In perl, I might do (made up example just to illustrate the point):
if(/add (\d+) (\d+)/) {
do_add($1, $2);
} elsif (/mult (\d+) (\d+)/) {
do_mult($1,$2);
} elsif(/help (\w+)/) {
show_help($1);
}
or even
do_add($1,$2) if /add (\d+) (\d+)/;
do_mult($1,$2) if /mult (\d+) (\d+)/;
show_help($1
Thanks for the pointers to traits, BasicProperty, and harold
fellermann's sample code...
---
The information contained in this e-mail is confidential and solely
for the intended addressee(s). Unauthorised reproduction, disclosur
Gabriel Cooper wrote:
In one of my python programs has a data file I need to load. My
solution was to say:
if os.path.exists(os.path.join(os.getcwd(), "config.xml")):
self.cfgfile = os.path.join(os.getcwd(), "config.xml")
Which works fine... as long as you're *in* the script's h
This is the kind of thing I meant. I think I have to get used to writing
small, light-weight classes. You inspired this variation which is a little
more verbose in the class definition, but less so in the use:
class Matcher:
def search(self, r,s):
self.value = re.search(r,s)
return
uot;, line 222, in wait
delay = min(delay * 2, remaining, .05)
OverflowError: long int too large to convert to int
Delay: 0.016 Remaining: 8.0789619
Delay: 0.032 Remaining: 8.0163242
Delay: 0.05 Remaining: 7.9539619
Done
Message response handler got message
---
I wrote. It could certainly be one
of them (although which one could be an interesting challenge to find
out). It may even have something to do with moving to the VC7.1
compiler.
Thank you very much for your suggestion. Without it I would never have
thou
The OP wrote:
> Is there an easy way to exclude binary files (I'm working on Windows
XP) from the file list returned by os.walk()?
Sure, piece of cake:
#!/usr/bin/env python
import os
def textfiles(path):
include = ('.txt', '.csv',)
for root, dirs, files in os.walk(path):
for name in
tricky matter, due to the lack of standards for C++ ABI's covering
name mangling and vtable layout etc. See the thread starting at
<http://mail.python.org/pipermail/python-list/2004-November/
249513.html> for more information.
Regards,
Mark Rowe
<http://bdash.net.nz/>
--
http://mail.python.org/mailman/listinfo/python-list
tried your function in my environment (Python 2.3.3 on Linux) and it
returned the home directory properly
- -
Mark Nenadov
Python Byte Solutions
http://www.pythonbyte.com/
--
http://mail.python.org/mailman/listinfo/python-list
de() ;-)
>
> --Irmen
The inspect API documentation says that code objects have "co_code", which
is a string of raw compiled bytecode.
Hope that helps!
- -
Mark Nenadov
Python Byte Solutions
http://www.pythonbyte.com/
--
http://mail.python.org/mailman/listinfo/python-list
7;ll just have to put
> up with the ambiguities. Or perhaps, given my (lack of) typing skill, I
> should just start signing myself "Stvev"?
What's this doing *here*? I thought the discussion of the pitfalls of
name rebinding was taking place in the "variable declaration&q
accent,
so start with one in Welsh or Gaelic, once they've mastered this then
try English.
Kindest Regards.
Mark Lawrence.
p.s. this is why I love c.l.py.
--
http://mail.python.org/mailman/listinfo/python-list
Any recommendations for Oracle bindings for the
DB-API 2.0 specification? This is for Oracle 10g
if that makes any difference.
Also, any other Oracle related goodies that might
be useful?
Many TIA!
Mark
--
Mark Harrison
Pixar Animation Studios
--
http://mail.python.org/mailman/listinfo
turn a new dict with string keys and lists containing the
> previous keys for repeated values.
>
> NewDict = {'This is repeated':['rt','sr'],'This is not':['gf']}
NewDict = {}
for x in Dict.keys():
try:
NewDict[Dic
I would be interested in an alternative approach which does not
generate a ton of intermediate pdfs.
--
Mark Jackson - http://www.alumni.caltech.edu/~mjackson
It is difficult for men in high office to avoid
the malady of self-delusion.- Calvin Coolidge
--
http://mail.python.org/mailman/listinfo/python-list
gt; import distutils.sysconfig
>>> distutils.sysconfig.get_config_var('CONFIG_ARGS')
"'--prefix=/opt/local' '--enable-shared' '--mandir=/opt/local/share/
man' '--bindir=/opt/local/bin' '--with-readline' '--enable-framework'
'--enable-
http://tktable.sourceforge.net/tile/index.html
I think the message is, Tk has been moving forward in a coherent and
focused way (finally) in terms of look and feel, which will certainly be
of great benefit to Tkinter.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
g curve increase substantially. This is
because you end up needing to do a lot more fiddling, looking at or
using any of a large number of add-on packages, etc.).
Mark
--
http://mail.python.org/mailman/listinfo/python-list
flawed in comparison.
Switch "wxPython" and "Tk" around in the above argument and I think the
statements equally hold of course.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
According to <http://www.python.org/doc/2.4.1/lib/module-time.html>
it is in seconds.
--
Mark
On Aug 16, 2005, at 9:35 AM, Peter Hansen wrote:
> Erik Max Francis wrote:
>
>> time.timezone gives you the timezone offset in minutes.
>>
>
> Dang, that mea
elow, with some trepidation, since it's not a
work of art and wasn't really intended to be seen by other human
beings. It's necessarily quite long: any attempt to shorten it
significantly seems to cancel the speed gain. Any clues as to what
might be going on would be greatly apprecia
e speed itself, but I'd dearly like to
understand what's at work here.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
whole thing properly instead of using the
cheap trick I did.
Thanks again for clearing up this confusion.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
different `random'
choice in the min, and choosing to eunumerate all 3 possibilities for position
5,7
instead of the 3 possibilities for position 2, 1 (say) makes a huge diffference
to the running time. I'm still surprised by the magnitude of the differences,
though.
I've learnt my lesson :) Thank you for your help, and apologies
for wasting other people's time with this as well as my own!
Mark
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 30 Aug 2005 11:30:19 GMT, in comp.lang.c ,
[EMAIL PROTECTED] wrote:
>Why do I think of a Dutch expression 'mieren neuker' with regards to
>Balmer's posts?
Its a complete mystery. Just as is the reason why you are x-posting
complete garbage to comp.lang.c...
--
On 30 Aug 2005 18:06:48 GMT, in comp.lang.c , John Bokma
<[EMAIL PROTECTED]> wrote:
>Mark McIntyre <[EMAIL PROTECTED]> wrote:
>
>>Its a complete mystery. Just as is the reason why you are x-posting
>>complete garbage to comp.lang.c...
>
>A similar mystery as i
dows/linux machines.
mark
--
http://mail.python.org/mailman/listinfo/python-list
After nine months of hard work, I am proud to introduce my baby to the
world: an experimental Python-to-C++ compiler. It can convert many
Python programs into optimized C++ code, without any user intervention
such as adding type declarations. It uses rather advanced static type
inference techniques
any programs of the type I usually write (algorithms, compilers..),
so it's also a case of scratching my own itch.
thanks!
mark.
--
http://mail.python.org/mailman/listinfo/python-list
>Obviously, neither the 0 nor the message following should have been
>displayed. It's a pity that this assumption was made, but given the short
>time the project's been going I can understand it, hopefully Mark will
>continue towards greater python compliance :)
The latter i
start of my
path)
>
>6. Run ./ss test.py
>
>7. Compile the resulting cpp file with: g++ -L. test.cpp -lss -lgc
>
>8. Run ./a.out and watch in awe.
thanks!
mark.
--
http://mail.python.org/mailman/listinfo/python-list
On 9/12/05, Brian Quinlan <[EMAIL PROTECTED]> wrote:
> Mark Dufour wrote:
> > The latter is certainly my goal. I just haven't looked into supporting
> > exceptions yet, because I personally never use them. I feel they
> > should only occur in very bad situ
like code), I really
don't need the full flexibility of Python. It's just great to be able
to leave out type declarations, and to use the beautiful Python
syntax.
>;-)
>All the best,
thanks!
mark.
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
>
> thanks!
> mark.
--
http://mail.python.org/mailman/listinfo/python-list
es, and therein lies the problem. It would be
nice if somebody would come up with a complete package, because I have
no access to Windows nor would I know how to approach that..
thanks!
mark.
--
http://mail.python.org/mailman/listinfo/python-list
system (there are
still some problems with the unit tests..)
http://mail.python.org/pipermail/python-list/2005-September/298697.html
http://www.blogger.com/comment.g?blogID=14063458&postID=112636132130703717
thanks!
mark.
Mark.
--
http://mail.python.org/mailman/listinfo/python-list
any case, exceptions are not really dynamic (I think..) so,
yeah, they should be supported..
>How easy is it going to be to call your c++ code from Python (and vice
>versa) ?
I haven't really thought deeply about this, but I guess it shouldn't
be too hard to use existing C++/Pyt
C source, you'll notice that probably 50% of
> the code is devoted to error handling (that was a guess).
That's a lot of error handling..
thanks!
mark.
--
http://mail.python.org/mailman/listinfo/python-list
f programs
I usually write, I'm still not sure if they will ever be very useful.
I guess I have just naturally ignored them.. :-)
Thank you for stressing the importance of exceptions in Python in
general. I'm always happy to learn more about the language and its
philosophy..
thanks!
ma
t and follow some simple
steps in the README file. I would really like to know about anything
that doesn't work, or is unclear!
BTW, I also fixed all OSX problems, but I'm waiting for a friend to
give it a final test.
What kind of program would you like to compile?
thanks!
mark.
--
http:
could look into this.. :)
Have you tried compiling any code of your own yet..?
thanks!
mark.
--
http://mail.python.org/mailman/listinfo/python-list
cases, that
the compiler has problems with.
Thanks to everyone who has helped me out, especially Khalid, Leonardo
and Luis here on python-list, and Denis de Leeuw Duarte right here in
the street :-)
http://shedskin.sourceforge.net
http://shed-skin.blogspot.com
thanks!
mark.
--
http
-skin.blogspot.com
thanks!
mark.
--
http://mail.python.org/mailman/listinfo/python-list
Q: What multiple of 7 did I add to the critical expression in the Zeller
algorithm so it would remain nonnegative for the next few centuries?
--
Mark Jackson - http://www.alumni.caltech.edu/~mjackson
People who write obscurely are either unskilled in writing
or up to mischie
[EMAIL PROTECTED] (John Machin) writes:
> [EMAIL PROTECTED] (Mark Jackson) wrote in message news:<[EMAIL PROTECTED]>...
> >
> > A: 42
> >
> > Q: What multiple of 7 did I add to the critical expression in the Zeller
> > algorithm so it would remain
Not sure if anyone's mentioned this yet, but just in case they haven't:
Start bit o' Python
>>> import operator
>>> operator.isNumberType(1)
True
>>> operator.isNumberType(1.01)
True
>>> operator.isNumberType('a')
False
>>> operator.isNumberType('1')
False
End bit o' Python
Have
int 'Got friend list update:', friend_list.lists
msn = msnp.Session(MsnListener())
msn.login('[EMAIL PROTECTED]', 'xxx')
msn.sync_friend_list()
while True:
msn.process()
time.sleep(1)
Any info would be great.
Thanks.
Hope this helps,
Mark Rowe
<http://
at with msnp as it always
changes your state after sign-in, and it fails to group the buddy list
state into a single transaction so that you can tell when the entire
list has been retrieved... It should be relatively simple to adapt the
code to fix the problem.
Regards,
Mark Rowe
<http://b
ut that, forgot to engage brain before doing cut and paste.
At least I can learn, unlike some well known people.:)
Regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
Dan Eloff wrote:
How can you determine that func2 will only accept
bar and zoo, but not foo and call the function with
bar as an argument?
Let Python answer the question for you:
>>> def func2(bar='a', zoo='b'):
... pass
...
>>> for name in dir(func2):
... print '%s: %s' % (name, getattr(func2, na
qwweeeit wrote:
For a python code I am writing I need to remove all strings
definitions from source and substitute them with a place-holder.
To make clearer:
line 45 sVar="this is the string assigned to sVar"
must be converted in:
line 45 sVar=s1
Such substitution is recorded in a file under:
"
extension.
A better method would be something along the lines of:
plugin = __import__(pluginName)
plugin.someMethod()
This avoids the potential security problem that `exec' poses as well as
the need to parse + interpret the string.
Regards,
Mark Rowe
<http://bdash.net.nz/>
--
http://mail.python.org/mailman/listinfo/python-list
I have a string variable say “8023 “ and
I want to get rid of the beginning
And ending quotes.
I’ve tried different things
But haven’t had any success.
I’m definitely a python hacker and
Not an expert. Thanks.
Mark
--
http
1001 - 1100 of 5532 matches
Mail list logo