On Sat, 10 Jun 2006, Erik Max Francis wrote:
> Mike Schilling wrote:
>
> > If I were to write, say, that Tony Blair's tax policy will lead to higher
> > deficits, I could be convicted of libel? Even if that's true, it's not a
> > priori provable.
>
> I think what he was getting at is that, unl
Hello
Suse10.1 64 new install
if I try to import anything into python2.4.2
like : python - c "import kinterbasdb"
I get this : wrong ELF class: ELFCLASS32
Before doing anything wrong , what would be the right thing
to do to get rid of this error ?
Thanks.
--
http://mail.python
I have two directories, lib1 and lib2, that both contain the package
foo, one with the submodule mod1
and the other with the submodule mod2:
$ ls lib*/foo/
lib1/foo/:
__init__.py __init__.pyc mod1.py mod1.pyc
lib2/foo/:
__init__.py __init__.pyc mod2.py mod2.pyc
$
Now this script:
im
EJP wrote:
> Many states have criminal as well as civil libel.
> http://en.wikipedia.org/wiki/Slander_and_libel
The idea of using Wikipedia to back up a legal point is rather amusing
... but still, none of the relevant parties involved live in countries
which have any form of criminal libel.
Philippa Cowderoy wrote:
> It is. However, the onus is on the defendant to show that it's true,
> rather than on the claimant to show that it's false.
That also depends on the jurisdiction.
> I assume the "he"
> refers to Brandon?
No, I was referring to the person who he was replying to, i.e.
On Sun, 11 Jun 2006, Erik Max Francis wrote:
> Philippa Cowderoy wrote:
>
> > It is. However, the onus is on the defendant to show that it's true, rather
> > than on the claimant to show that it's false.
>
> That also depends on the jurisdiction.
>
Hrmm, does that one differ in Scotland?
> >
TheSaint wrote:
> A part of this, how python catch variables, the longer the slower, isn't it?
nope.
--
http://mail.python.org/mailman/listinfo/python-list
James Stroud wrote:
> See the actual question:
>
> >How would you construct a generator to acheive this?
if you don't think the context provided by the subject line and the
sentence before the question is important, how come you're so sure what
"this" refers to ?
--
http://mail.python.org
Philippa Cowderoy wrote:
> Hrmm, does that one differ in Scotland?
I don't believe so.
> Wrong pronoun, then.
Well, your comment was challenged, and I offered a reasonable
interpretation of what you might have meant (which indicated a more
general point in any case, namely that libel law is n
On Sun, 11 Jun 2006, Erik Max Francis wrote:
> Philippa Cowderoy wrote:
>
> > Hrmm, does that one differ in Scotland?
>
> I don't believe so.
>
My statement was intended in the context of UK law - I have to admit to
not knowing too much about what's different north of the border beyond the
i
Philippa Cowderoy wrote:
> I'd still appreciate being referred to as "she" rather than "he" though.
Oops, my bad. Never occurred to me after all these years, which is kind
of embarrassing, actually :-).
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA
Hi,
If you switched from java to python the best point to start is
http://dirtsimple.org/2004/12/python-is-not-java.html.
Greets,
-Justin
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> After several years developing in Java, I've begun to switch to Python
> for several of my new projects as I have found the language quite
> interesting. I've read several tutorials and implemented a few sample
> programs and I've found that Python enables one to progra
bayerj wrote:
> Hi,
>
> If you switched from java to python the best point to start is
> http://dirtsimple.org/2004/12/python-is-not-java.html.
>
> Greets,
> -Justin
yup, you could spend weeks reading the Language Wars:
http://www.google.com/search?hl=en&q=site%3Aartima.com+java+python&btnG=Goog
Erik Max Francis wrote:
> EJP wrote:
>
>> Many states have criminal as well as civil libel.
>> http://en.wikipedia.org/wiki/Slander_and_libel
>
> The idea of using Wikipedia to back up a legal point is rather amusing
> ... but still, none of the relevant parties involved live in countries
> wh
Sybren Stuvel wrote:
> file /path/to
I installed the package on other 64 machines running
suse9.2 64 and 9.3 64 without trouble
That's the way :
python setup.py build
result: successfull
python setup.py install
result: successfull
then tried to import and I get the elfclass32 error
and that'
Sybren Stuvel wrote:
> Simplicity and explicitness. You have two packages 'foo', and it
> simply loads the first one it finds.
Yes, here you are right. It is indeed simple.
Boris
--
http://mail.python.org/mailman/listinfo/python-list
DarkBlue wrote:
> and that's all I did. The suse10.1 installation is pristine
> only auto updated with the latest patches of the day.
if you're using a SuSE-provided python interpreter, you should make to
use the right development files (python-dev, or whatever that's called
over in SuSE land).
[EMAIL PROTECTED] wrote:
> Hello there!
>
> I'm trying to make a simple Contact Manager using python (console
> only), however i'm having trouble implementing a division by "Groups"
> or "Labels" just like in Gmail. I don't have any real code to post
> because all i got now is a raw TXT file holdin
On 9 Jun 2006 17:44:42 -0700, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> actually, i am doing an application that allows user to delete files by
> entering an input pattern.
If you are looking to match filenames, you might want to have a look
at the fnmatch and glob modules. The patterns that
> yup, you could spend weeks reading the Language Wars:
Actually, that link is not about language wars. It's about making the
switch from java to python. Nothing more, nothing less.
--
http://mail.python.org/mailman/listinfo/python-list
I'm a newbie in python, and I'm fighting against nested blocks in psp.
Thats a little example with a funny behaviour:
[code]
<%
for i in range(50, 350, 50):
if 'List' in form and int(form['List'])==i:
sel="selected"
else:
sel="pippo"
%> ><%=i%>
<%
%>
[/code]
In my intention, the f
The clnum package adds rational numbers and arbitrary precision floating
point numbers in real and complex form to Python. Also provides
arbitrary precision floating point replacements for the functions in the
math and cmath standard library modules.
Home page: http://calcrpnpy.sourceforge.net/cln
Fredrik Lundh wrote:
> if you do, it's a SuSE problem (this wouldn't be the first time SuSE
> ships broken Python software)
Thanks for the input .
Following your message I reinstalled python2.4 and the modules
I want to use and now everything is fine.
--
http://mail.python.org/mailman/list
boris ha scritto:
> I have two directories, lib1 and lib2, that both contain the package
> foo, one with the submodule mod1
> and the other with the submodule mod2:
> [...]
> Now this script:
>
> import sys
> sys.path.append("lib1")
> sys.path.append("lib2")
> import foo.mod1
>
> will find the mo
imho wrote:
>
> You just have to put in "__init__.py" in "lib2" (the package directory
> you are "extending"), the following lines:
>
> from pkgutil import extend_path
> __path__ = extend_path(__path__, __name__)
>
> "__path__", in each __init__ module, is a list initialized with the
> module's pa
Thanks to you all.
I'll start trying the buzhug solution, which seems more pythonic. But I
feel like I gotta learn how to use databases... once I studied SQL a
litle bit, but don't remember much.
I'll play around with Python and then I show what I got.
Bye
Rodolfo
P.S: Is there a way to do a "
H J van Rooyen wrote:
> Serge Orloff wrote:
>
> | H J van Rooyen wrote:
> | > Traceback (most recent call last):
> | > File "portofile.py", line 232, in ?
> | > ret_val = main_routine(port, pollstruct, pfifo)
> | > File "portofile.py", line 108, in main_routine
> | > send_nak(port, time
boris ha scritto:
>
> COOL! You just saved me an awful lot of work.
>
> Thanks, Diego!
>
> Boris
>
;-)
Bye
--
http://mail.python.org/mailman/listinfo/python-list
I would try looking at Django or Turbogears.
http://www.djangoproject.com/
http://www.turbogears.org/
Also have a look at:
How to write a browser-based desktop app using CherryPy 2.0:
http://www.cherrypy.org/wiki/SingleClickAndRun
How to write a a browser-based desktop app using CherryPy 2.1:
http
TheSaint wrote:
> Maric Michaud wrote:
>
> > Le Samedi 10 Juin 2006 17:44, TheSaint a écrit :
>
> >>
> > begin using more explicit variable names.
>
> Frankly it's a very rooted way of programming, since C64 basic :-)
If by 'rooted' you mean old enough, so is 'goto'... Except perhaps for
iteratio
[EMAIL PROTECTED] schrieb:
> Can anybody tell me why am I getting this error message while trying to
> print a part of a string. Is there a better approach for this...
Because you don't use a string? The error message is pretty clear:
TypeError: unsubscriptable object
So - what are Function[:10]
Hi - Is it possible to override the import process so that if in my program
I do
import foo.bar
Python will look for bar in a directory which isn't called foo?
I want my module/program to be able to be run without being installed in
site-packages, so by doing "import foo.bar", it should start lo
K.S.Sreeram wrote:
> Fredrik Lundh wrote:
> > both ElementTree and cElementTree support "sax-style" event generation
> > (through XMLTreeBuilder/XMLParser) and incremental parsing (through
> > iterparse). the cElementTree versions of these are even faster than
> > pyexpat.
> >
> > the iterparse in
"Erik Max Francis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Mike Schilling wrote:
>
>> If I were to write, say, that Tony Blair's tax policy will lead to higher
>> deficits, I could be convicted of libel? Even if that's true, it's not a
>> priori provable.
>
> I think what
Maric Michaud wrote:
> Le Samedi 10 Juin 2006 17:44, TheSaint a écrit :
> devices = [ e for e in devices if e.split('/')[-1] in partitions ]
This is _not_ the expected result :)
is missing a not as :
devices = [ e for e in devices if e.split('/')[-1] *not* in partitions ]
>> if len(c) != 1:
>>
Jeremy Sanders wrote:
> Hi - Is it possible to override the import process so that if in my program
> I do
(...)
>
> Any ideas?
Why not handle the foo.bar/version string separately and just append
the resulting path to sys.path?
--
http://mail.python.org/mailman/listinfo/python-list
Jeremy Sanders <[EMAIL PROTECTED]> wrote:
> Hi - Is it possible to override the import process so that if in my program
> I do
>
> import foo.bar
>
> Python will look for bar in a directory which isn't called foo?
>
> I want my module/program to be able to be run without being installed in
> si
Riverbank Computing is pleased to announce the release of PyQt v4.0 available
from http://www.riverbankcomputing.co.uk/pyqt/.
The main change from v4.0beta1 is the inclusion of comprehensive HTML
documentation based on the Qt documentation.
PyQt is a comprehensive set of Qt bindings for the Pyt
George Sakkis wrote:
>
> If by 'rooted' you mean old enough, so is 'goto'...
I was meaning a sort of (very) old style of programming. In fact I wrote
some few hundreds lines on my own, but probably memory was much better
the :)
> will
> thank yourself for doing so if you have to go back at th
In article <[EMAIL PROTECTED]>,
Jiba wrote:
>
>Cerealizer is now available under the Python license (and was
>previously GPL'ed).
Nothing except for Python itself should be released under the Python
license. See
http://wiki.python.org/moin/PythonSoftwareFoundationLicenseFaq
--
Aahz ([EMAIL PRO
What's the difference between initializing class variables within the
class definition directly versus initializing them within the class's
__init__ method? Is there a reason, perhaps in certain situations, to
choose one over the other?
Thank you.
--
http://mail.python.org/mailman/listinfo/pytho
[EMAIL PROTECTED] schrieb:
> What's the difference between initializing class variables within the
> class definition directly versus initializing them within the class's
> __init__ method? Is there a reason, perhaps in certain situations, to
> choose one over the other?
You are confusing class va
Hello,
It is a pleasure to announce in this mailing list the newly released
Dao. This is the first release after the Dao interpreter being
re-designed and re-implemented as a virtual register machine since the
beginning of this year. There have been many great improvements on both
the language and
Ah, you've brought me much clarity Diez, thank you. That would explain
some "bugs" I've been having...
Diez B. Roggisch wrote:
> [EMAIL PROTECTED] schrieb:
> > What's the difference between initializing class variables within the
> > class definition directly versus initializing them within the c
Alex Martelli wrote:
> Jeremy Sanders <[EMAIL PROTECTED]> wrote:
>
>> Hi - Is it possible to override the import process so that if in my program
>> I do
>>
>> import foo.bar
>>
>> Python will look for bar in a directory which isn't called foo?
>>
>> I want my module/program to be able to be ru
Wait a minute! It doesn't explain my bugs. I've got "class variables"
acting like instance variables. What's weirder is that this behavior
occurs on my computer (in both of my installed WinXP copies) but not on
my laptop (WinXP Pro).
See the following test:
class Boo:
jerk = "yes"
def ki
import math
math.pow(34564323, 456356)
will give math range error.
how can i force python to process huge integers without math range
error? Any modules i can use possibly?
--
http://mail.python.org/mailman/listinfo/python-list
Em Dom, 2006-06-11 às 11:19 -0700, fl1p-fl0p escreveu:
> import math
> math.pow(34564323, 456356)
>
> will give math range error.
>
> how can i force python to process huge integers without math range
> error? Any modules i can use possibly?
34564323**456356 ?
--
Felipe.
--
http://mail.pytho
fl1p-fl0p wrote:
> import math
> math.pow(34564323, 456356)
>
> will give math range error.
>
> how can i force python to process huge integers without math range
> error? Any modules i can use possibly?
You have to use operator **, i.e. 34564323**456356
--
http://mail.python.org/mailman/listinfo
[EMAIL PROTECTED] wrote:
> At first, I thought that self.jerk was resolving to the class attribute
> instead of creating a new variable (w/ a differing scope).
When you access an instance attribute, Python first looks in the
instance object, and then in the class object.
When you assign to an i
Wojciech Muła wrote:
> fl1p-fl0p wrote:
>
>> import math
>> math.pow(34564323, 456356)
>>
>> will give math range error.
>>
>> how can i force python to process huge integers without math range
>> error? Any modules i can use possibly?
>>
>
> You have to use operator **, i.e. 34564323**4563
Felipe Almeida Lessa wrote:
> Em Dom, 2006-06-11 às 11:19 -0700, fl1p-fl0p escreveu:
>> import math
>> math.pow(34564323, 456356)
>>
>> will give math range error.
>>
>> how can i force python to process huge integers without math range
>> error? Any modules i can use possibly?
>
> 34564323**45635
Raymond L. Buvel wrote:
> I just tried this and it is taking an extremely long time even on a fast
> machine with 4 Gb of RAM. Killed it after a couple of minutes.
Thats odd.
34564323**456356 completed on my laptop in 28 seconds.
[Python 2.4.3, Celeron-M 1.3GHz, WinXP], and max memory consumption
Hello, everyone.
I am a writing an application that I want to make a stripped-down
framework of Leo for Cornell note-taking. I have one TreeCtrl, a menu,
and a status bar. There are two classes currently - the Application
class and the Frame class. The Frame class contains all of the event
handl
Raymond L. Buvel wrote:
> I just tried this and it is taking an extremely long time even on a fast
> machine with 4 Gb of RAM. Killed it after a couple of minutes.
You probably tried printing the value.
a = 34564323**456356 (takes just 28 seconds)
whereas
b = str(a) takes forever!
Regards
Sreer
[Wojciech Muła]
>> You have to use operator **, i.e. 34564323**456356
Or the builtin pow() instead of math.pow().
[Gary Herron]
> That's not very practical. That computation will produce a value with
> more than 3.4 million digits.
Yes.
> (That is, log10(34564323)*456356 = 3440298.) Python will
Can anyone tell me how to get the length of a number. I
know len(string) will get the length of a string, but it
doesn't like len(int). I seem to remember something like %s
string. I tried to set a variable = to %s int, but that
doesn't work. Is there a function I've forgotten about to
con
I posted it on activestate already ... sorry. I would like for the
geniuses here to use it and improve upon it so here is the activestate
post URL:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496790
Enjoy.
Ken
BartlebyScrivener wrote:
> >> SW air script
>
> Post it here, first, and
Stan Cook wrote:
> Is there a function I've forgotten about to convert an
> integer to a string?
str(value)
--
http://mail.python.org/mailman/listinfo/python-list
Stan Cook wrote:
> Can anyone tell me how to get the length of a number. I
> know len(string) will get the length of a string, but it
> doesn't like len(int). I seem to remember something like %s
> string. I tried to set a variable = to %s int, but that
> doesn't work. Is there a function I've
Em Dom, 2006-06-11 às 20:10 +, Stan Cook escreveu:
> Can anyone tell me how to get the length of a number. I
> know len(string) will get the length of a string, but it
> doesn't like len(int). I seem to remember something like %s
> string. I tried to set a variable = to %s int, but that
Saketh wrote:
> Stan Cook wrote:
>> Can anyone tell me how to get the length of a number. I
>> know len(string) will get the length of a string, but it
>> doesn't like len(int). I seem to remember something like %s
>> string. I tried to set a variable = to %s int, but that
>> doesn't work. Is t
Em Dom, 2006-06-11 às 13:17 -0700, Saketh escreveu:
> Stan Cook wrote:
> > Can anyone tell me how to get the length of a number. I
> > know len(string) will get the length of a string, but it
> > doesn't like len(int). I seem to remember something like %s
> > string. I tried to set a variable =
Fredrik Lundh wrote:
> [EMAIL PROTECTED] wrote:
>
> >> it cannot be done in a portable way, so that's not very likely.
>
> > def __run(self):
> > """Hacked run function, which installs the trace."""
> > sys.settrace(self.globaltrace)
> > self.__run_backup()
> > self.run = self.__r
Em Dom, 2006-06-11 às 22:33 +0200, Sybren Stuvel escreveu:
> Felipe Almeida Lessa enlightened us with:
> > To see how many decimal digits it has:
> >
> > import math
> > math.ceil(math.log(i, 10))
>
> That doesn't work properly.
>
> >>> import math
> >>> math.ceil(math.log(1, 10))
> 4
MacDonald wrote:
>> I'm not sure using a non-portable API to run the code under a "custom
>> debugger" qualifies as a "portable implementation", though...
>
> Everything used is a part of the standard library, which is portable,
> AFAICT. Could you say specifically what is non-portable?
from the
Stan Cook wrote:
> Can anyone tell me how to get the length of a number. I know
> len(string) will get the length of a string, but it doesn't like
> len(int). I seem to remember something like %s string. I tried to set
> a variable = to %s int, but that doesn't work. Is there a function I've
Felipe Almeida Lessa wrote:
> Hmmm, you're right.
>
> math.floor(math.log(x, 10)) + 1
x = 0
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
> James Stroud wrote:
>
>> See the actual question:
>>
>> >How would you construct a generator to acheive this?
>
>
> if you don't think the context provided by the subject line and the
> sentence before the question is important, how come you're so sure what
> "this" ref
[EMAIL PROTECTED] wrote:
> After several years developing in Java, I've begun to switch to Python
> for several of my new projects as I have found the language quite
> interesting. I've read several tutorials and implemented a few sample
> programs and I've found that Python enables one to program
Fredrik Lundh wrote:
> [EMAIL PROTECTED] wrote:
>
> > At first, I thought that self.jerk was resolving to the class attribute
> > instead of creating a new variable (w/ a differing scope).
>
> When you access an instance attribute, Python first looks in the
> instance object, and then in the class
K.S.Sreeram wrote:
> Raymond L. Buvel wrote:
>> I just tried this and it is taking an extremely long time even on a fast
>> machine with 4 Gb of RAM. Killed it after a couple of minutes.
>
> Thats odd.
> 34564323**456356 completed on my laptop in 28 seconds.
> [Python 2.4.3, Celeron-M 1.3GHz, Win
I have found that the more elegant the code is, the harder it is for me
to understand what it is trying to accomplish. It is my opinion that
"Keep It Simple" wins over elegance. When I have had the urge to get
elegant, I make sure I comment the elegance so my less elegant
co-workers can figure out
Thank you Dennis, this makes the behavior so much clearer to me. I see
now that when self.jerk = self.jerk + 1 is executed that even though
the names are identical, at this point I'm referring to two different
values (one which is being created in part from the other).
As for my laptop, I'm not r
[EMAIL PROTECTED] wrote:
> Any clue what's behind this behavior?
a missing plus sign.
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
> a missing plus sign.
or a misplaced one... (=+ 1 is not the same thing as += 1)
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
> [EMAIL PROTECTED] wrote:
>
> > Any clue what's behind this behavior?
>
> a missing plus sign.
>
>
Thanks for the guess but not possible given the following:
class Boo:
jerk = 10
def killjerk(self):
counter = 3
while counter !=0:
counte
> No need to be obnoxious. I do appreciate your efforts to help, but you
> must admit, your last statement is a bit snide and certainly not
> useful.
> I'm telling you that the code runs differently on my laptop.
It certainly doesn't. There is absolutely no imaginable way how this
behavior could
[EMAIL PROTECTED] wrote:
> Output from laptop comp.:
>
> 1
> 10
> 2
> 10
> 3
> 10
so how are you entering and running the code on your laptop ?
what happens if you set the class attribute to 100 instead of 10 ?
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 11 Jun 2006 06:05:22 GMT, "Mike Schilling"
<[EMAIL PROTECTED]> wrote:
>
>"Philippa Cowderoy" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]
>> On Sun, 11 Jun 2006, Mike Schilling wrote:
>>
>>> I'm not aware of any definition of libel that includes "making statements
>>> that
KenAggie wrote:
> I posted it on activestate already ... sorry. I would like for the
> geniuses here to use it and improve upon it so here is the activestate
> post URL:
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496790
Whoa. Check out BeautifulSoup -- you will never write HTMLPa
K.S.Sreeram wrote:
> Raymond L. Buvel wrote:
> > I just tried this and it is taking an extremely long time even on a fast
> > machine with 4 Gb of RAM. Killed it after a couple of minutes.
>
> You probably tried printing the value.
>
> a = 34564323**456356 (takes just 28 seconds)
> whereas
> b =
Hi,
I am new to Python, here I'd like to have a question: I noticed a
special way to call a function in a program:
@function_name
No argv is passed, even though the function_name asks for one. Any idea
what this @something syntax is trying to achieve. I haven't been able
to find any answer o
Erik Max Francis wrote:
> Mallor wrote:
>
> > I know I'm coming late to the barbeque. In passing, I ask: do you have
> > an objective, impartial perspective on the subject of committing
> > crimes? Because libel is a crime.
>
> No, it is a tort.
>
Can I have whipped cream and strawberries on th
[EMAIL PROTECTED] wrote:
> Hi,
>
> I am new to Python, here I'd like to have a question: I noticed a
> special way to call a function in a program:
>
> @function_name
>
> No argv is passed, even though the function_name asks for one. Any idea
> what this @something syntax is trying to achieve.
Title: Z39.50 and tyrannioware website seems to be down
sorry to disturb you but from here :
http://lists.indexdata.dk/pipermail/zoom/2005-October/000806.html
if yes i cannot take this three files :
asn1.py
z3950_2001.py
zdefs.py
the website seems to be down :
http://cvs.sourceforge.net/v
this is decorator, this is how it's may be implented
>>> def returns(t):
... def dec(f):
... def wrapped(*args, **kwargs):
... ret = f(*args, **kwargs)
... assert type(ret) is t
... return ret
... return wrapp
In article <[EMAIL PROTECTED]>,
Gabriele Farina <[EMAIL PROTECTED]> wrote:
>
>I'm tring to implement a Singleton object that should be specific for
>every thread who create it, not global.
>I tried a solution that seems to work, but I have a very poor knowledge
>of concurrent programming, so I'd
Phil Thompson wrote:
> Riverbank Computing is pleased to announce the release of PyQt v4.0
> available from http://www.riverbankcomputing.co.uk/pyqt/.
>
> The main change from v4.0beta1 is the inclusion of comprehensive HTML
> documentation based on the Qt documentation.
>
> PyQt is a comprehens
Hello,
I'm very new to python and still familiarizing myself with the
language, sorry if the post seems moronic or simple.
For a side project I'm working on I need to be able to scrape a modern
computer desktop. Is there any basic material already available to do
this? I'd rather not need to writ
Hi all,
Not exactly new to Python, just have not programmed a time dependent
function using it before.
I imagine that many of you may also program some JavaScript and may be
familiar with JavaScript's SetTimeout( expression, after time interval
in milliseconds) function. Does Python have an equi
Oh wow, I wasn't expecting so much help. I really appreciate it. My
problem, however, has been solved. I uninstalled my ActiveState Python
distro on my laptop and installed the distro from python.org along with
Stan's Python Editor. I ran the same code I'd run before and guess
what? The behavior no
Fredrik Lundh wrote:
> [EMAIL PROTECTED] wrote:
>
> > Output from laptop comp.:
> >
> > 1
> > 10
> > 2
> > 10
> > 3
> > 10
>
> so how are you entering and running the code on your laptop ?
>
> what happens if you set the class attribute to 100 instead of 10 ?
>
>
You can see my other post which
Diez B. Roggisch wrote:
> > No need to be obnoxious. I do appreciate your efforts to help, but you
> > must admit, your last statement is a bit snide and certainly not
> > useful.
> > I'm telling you that the code runs differently on my laptop.
>
> It certainly doesn't. There is absolutely no ima
Okay, so too bad I didn't know about this before I wrote the 75 lines
of code based on HTMLParser. That said, it still wasn't that hard and
most of all it is done and it works so I won't be rewriting it. I did
check it out and it seems quite powerful. I'll add it to my library of
tools to use for t
I just learned about a python library called BeautifulSoup in a thread
responding to my Southwest Airlines script that I wrote and posted on
the Python cookbook web site. I wrote my script using the provided
HTMLParser class. BeautifulSoup could have saved me some time perhaps.
Take a look. Feel fr
Yea -- the "sched" class is exactly what you need. Just import sched
and then use it to schedule a function call in the future, either using
relative time or an absolute time. The python help file tells you how
in detail.
- Ken
[EMAIL PROTECTED] wrote:
> Hi all,
>
> Not exactly new to Python, ju
In article <[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]> wrote:
.
.
.
>For a side project I'm working on I need to be able to scrape a modern
>computer desktop. Is there any basic material already available to do
>this? I'd rather
In article <[EMAIL PROTECTED]>,
Felipe Almeida Lessa <[EMAIL PROTECTED]> wrote:
.
.
.
>math.floor(math.log(x, 10)) + 1
>
>--
>Felipe.
>
... and you're restricting to the positive integers, I take it?
I still have rounding pr
1 - 100 of 116 matches
Mail list logo