I have A LOT of batch applications to monitor, on linux machines, mostly
written in python.
I have to know:
- which are active, at a given moment?
- when did the last run occur? How long did it last?
- for some daemons: are they stuck? generally, waiting for i/o, or lost
in some C call.
I coul
Thanks a lot. Your suggestions lead me to pypi, (I knew it but didnt
remember the exact spelling, and no obvious link from www.python.org),
and from there to supervisord, that answers pretty well my problem.
Thanks again.
Tim Roberts wrote:
Imbaud Pierre wrote:
I have A LOT of batch
What is the easiest way to draw to a window? I'd like to draw something
like sine waves from a mathematical equation.
Newbie to python.
--
http://mail.python.org/mailman/listinfo/python-list
from Tkinter import *
win = Tk()
If I type those two lines at the command prompt (in WindowsXP) I get a
new window on my screen. Yet if I copy those lines in a file called
test.py and then run "python test.py" at the command prompt I am
returned to the command prompt and nothing shows up on t
Take a look at Karrigell (http://www.karrigell.com), it has a built-in
forum application
Regards,
Pierre
--
http://mail.python.org/mailman/listinfo/python-list
I added an entry in Wikipedia for information, just like other Python
web frameworks have already done. If the style doesn't fit Wikipedia's
I'm sorry and willing to learn how to improve it ; the reason I read
was "Obvious, if elaborate, link spam. Really should be speedied, but I
can't find a CSD
Ok, thanks for the information. I have rewritten the page in a more
neutral way and removed the tutorial-like part, I'll put in in wikibooks
--
http://mail.python.org/mailman/listinfo/python-list
modify a script
with a text editor, you see the result of the change the next time you
reload the page
Pierre
--
http://mail.python.org/mailman/listinfo/python-list
ecify the script
you want : http://foo.example.com/app1/default.py. Same thing for app2
of course. Absolutely no need to start two instances of the server on
different ports
Pierre
--
http://mail.python.org/mailman/listinfo/python-list
"Run selection or current line" option by "Run
selection or current block" (without selection, this feature is similar
to MATLAB's cell mode)
* ...and a lot of minor bugfixes.
- Pierre
--
http://mail.python.org/mailman/listinfo/python-list
der in col_headers]))
for result in data_list:
table <= TR(Sum([TD(value) for value in result]))
print table
The operator <= means "add child" in the DOM tree structure, it avoids
having to nest tags with brackets
- Pierre
--
http://mail.python.org/mailman/listinfo/python-list
eractive/external
console
* integrated file/directories explorer
* MATLAB-like path management
...and more!
Spyder is part of spyderlib, a Python module based on PyQt4 and
QScintilla2 which provides powerful console-related PyQt4 widgets.
- Pierre
--
http://mail.python.org/mailman/listinfo/python-list
d.php
- Pierre
--
http://mail.python.org/mailman/listinfo/python-list
, a Python module based on PyQt4 and
QScintilla2 which provides powerful console-related PyQt4 widgets.
I would like to thanks here all the Spyder users and especially the beta
testers and contributors: without them, Spyder wouldn't be as stable,
easy-to-use and full-featured as it is.
-
flexible url
resolution
- bug fix for default host configuration and for cookie expiry date
Home page : http://karrigell.sourceforge.net
Download : http://sourceforge.net/project/showfiles.php?group_id=67940
Google Group : http://groups.google.com/group/karrigell
Cheers,
Pierre
--
http
On 27 fév, 08:57, Pierre Quentel wrote:
> Hi,
>
> A new version of the web framework Karrigell is on line
>
> The main changes are :
> - more robust session management in multi-threaded and multi-process
> environments
> - Unicode management in the HTMLTags module (HTM
unless.
>
> --
> John Bokma j3b
>
> Hacking & Hiking in Mexico - http://johnbokma.com/http://castleamber.com/-
> Perl & Python Development
I'm surprised nobody proposed a solution with itertools ;-)
- Pierre
--
http://mail.python.org/mailman/listinfo/python-list
s
suggested by the fact that your first script "runs", i.e. probably
prints "Hello World"). In this case the "not found" error in the
second script would mean that the framework requires a function in the
script
- Pierre
--
http://mail.python.org/mailman/listinfo/python-list
E' in os.environ:
cookie = Cookie.SimpleCookie(os.environ['HTTP_COOKIE'])
if cookie.has_key('SESSIONID'):
# web client has been here before : increment number of
visits
set_cookie['SESSIONID'] = int(cookie['SESSIONID'].value)
+1
code = "You have been here %s times." %
cookie['SESSIONID'].value
else:
code = "I Have a cookie, but SESSIONID does not exist"
print "Content-Type: text/html"
print set_cookie.output() # send cookie to web client
print
print HTML_template % code
- Pierre
--
http://mail.python.org/mailman/listinfo/python-list
cussions, and even an unintuitive
way of entering links...
I'm not saying that pythonforum.org is the best solution but it
certainly looks more attractive than c.l.p. to the new generation of
Python users
- Pierre
--
http://mail.python.org/mailman/listinfo/python-list
On 4 juin, 07:11, Steven D'Aprano wrote:
> On Thu, 03 Jun 2010 03:16:03 -0700, Pierre Quentel wrote:
> > So the OP's initiative should be an incentive to think on the format of
> > the interaction between all the range of Python users, from newbees to
> > gurus. We
Hi all,
This is my first post on the list. I'm mainly a sysadmin and no expert
in programming languages, so this may be a stupid question but it
puzzles me.
I was pondering on the documentation of the function product(*args,
**kwds) in the itertools module. It is said that:
This function is equi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 06/18/2010 11:48 PM, Terry Reedy wrote:
> On 6/18/2010 3:57 PM, Pierre Reinbold wrote:
>
>> def genexp_product(*args):
>> pools = map(tuple, args)
>> result = [[]]
>> for pool in pools:
>>
I am building from the source and installing Python on my machine.
I added these tests failed:
test_doctest
test_httpservers
test_logging
But I moved the Python installation folder on another directory and
the failed tests vanished when I tried again. The difference? The new
directory does not h
On 6 juil, 17:37, Thomas Jollans wrote:
> Before filing a bug, best test it with Python 2.7 (just released), 3.1,
> and, if possible, py3k trunk.
>
> I just tried to reproduce this with a current py3k checkout, where it
> worked. Probably not an issue in Python 3.x due to the changed unicode
> han
All,
I have been finding python.org site very slow for the last year and
probably before. Is there any known reason why the site is slow? I
tried accessing it from several locations and I always get to wait
several seconds for a page to load (in any browser/OS).
Thanks
-- Pierre
--
http
gards
>
> Antoine.
Merci Antoine!
I did disable IPv6 on my computer at home and it did speed it up. I'll
check the other computers where I experienced the same slowness.
Thanks again!
-- Pierre
--
http://mail.python.org/mailman/listinfo/python-list
terface I am using.
Access to www.python.org went slow for Firefox and Safari running
directly under OS/X. However, access for Firefox running inside
VMWare-based Linux Ubuntu 9.04 was fine! I tried pages from Ubuntu
first, got them right away, then tried the same page under OS/X and
was waiting for
On Wed, Jun 17, 2009 at 04:14, Steven D'Aprano wrote:
> What's np.arange?
import numpy as np
--
Pierre "delroth" Bourdon
Étudiant à l'EPITA / Student at EPITA
--
http://mail.python.org/mailman/listinfo/python-list
Sybase or MySQL.
If you just need something which does not depend on any external
libraries (that's what I understand in "just needs python"), you
should also consider sqlite3 as it is a built-in module in Python 2.5
and newer. You do not need modules like pysqlite to use it.
-
peed comparisons with Gadfly, KirbyBase (another pure-
Python DB, not maintained anymore) and SQLite. You can find the
results on the buzhug home page : http://buzhug.sourceforge.net
The conclusion is that buzhug is much faster than the other pure-
Python db engines, and (only) 3 times slower than SQLite
- Pierre
--
http://mail.python.org/mailman/listinfo/python-list
his case ...)
Using re here is probably not the best way. It may happen that a
sequence appearing in a column also appears in another one ; and when
the tests become more complex the regular expression itself might
become complex, or even impossible (imagine the OP wants to test that
the numeric values are below a certain threshold)
- Pierre
--
http://mail.python.org/mailman/listinfo/python-list
For reasons I won't go into I ended up defining classes inside of
a class body. That's not in the manual, but I see no reason it would
fail.
But then, I accidentally decorated the inner classes with
@staticmethod! It didn't break anything, but it had an interesting
side effect: help() and pydoc on
Ethan Carter wrote:
> def __init__(self, d, ls):
> self.head = d
> self.tail = ls
Why not
def __init__(self, d, ls=None):
and avoid the need for a List.Empty ?
--
pa at panix dot com
--
https://mail.python.org/mailman3//lists/python-list.python.org
Hi all,
I'm working on a tool which enable support of tab completion using the
readline modul.
And I have a problem with set_completion_display_matches_hook function
I've created a display hook function and registered it. It is called
and it prints the desire messages. But once it has completed,
Thanks,
I will try rl.
Have a nice day
J-P
Le 7 nov. 2012 à 14:14, Stefan H. Holek a écrit :
> On 07.11.2012, at 11:36, Jean-Pierre Miceli wrote:
>
>> Hi all,
>>
>> I'm working on a tool which enable support of tab completion using the
>> readline
I created a simple program which writes in a unicode files some french text
with accents!
*# -*- coding: cp1252 -*-*
*#!/usr/bin/python*
*'''*
*Created on 27 déc. 2010*
*
*
*@author: jpmena*
*'''*
*from datetime import datetime*
*import locale*
*import codecs*
*import os,sys*
*
*
*class Log(object)
blicActuel.cmd
*
*Page de codes active : 1252*
*encodage systeme:ascii*
*ascii*
*encodage systeme:ascii*
*ascii*
And the Generated Log file showsnow the expected result:
*11/04/11-10:53:44 : premier message de Log à accents *
*11/04/11-10:53:44 : second message de Log*
Thanks.
If you have other li
I want to enter Comments of a picture in a JPeg file.
Is there a library in Python which allow me to do that without having to
reinvent the wheel?
The target is to read those comments in my private webSite using the php
exif_read_data function (http://php.net/manual/fr/book.exif.php)
--
ht
ve the page, extract data,
extract last river level and mean the 24h last levels.
<https://www.dropbox.com/sh/k5974t374zmcoj6/AACes_Xo5DrxCbE1RjSaeKXYa?dl=0>
Note : it was probably not beautiful python code, but it works for the
purpose it was written.
--
Pierre-Alain Dorange
uested but that only a
hack and should not be used in real world.
--
Pierre-Alain Dorange Moof <http://clarus.chez-alice.fr/>
Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons.org/licenses/by-nc-sa/2.0/fr/>
--
https://mail.python.org/mailman/listinfo/python-list
means it is most definitely
> meant to be able to be caught.
Using compile() function yes.
So yes there is a way to check "syntax error" before executing code
(using compile function and exceptions) but it was not standard, nor
widely used... It was still a hack for me, but perhaps
interpretation, byte-code compilation, JIT
compilation, AOT compilation...
So yes Python compile (bytecode).
--
Pierre-Alain Dorange Moof <http://clarus.chez-alice.fr/>
Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons.org/licens
trange the initial request.
And sure, i overinterpret or simplify thing (compiling)...
But it seems that all this talk do not interested the initial requester
(Mr Puneet) : at that time he has not answer to the thread.
--
Pierre-Alain Dorange Moof <http://clarus.chez-alice.fr/&
m just an amateur developer.
But what confuse me, is that Python require "real live" interpratation
of the code to work properly (or perhaps i also confuse on that but
Python rely on interpretation of the code to conform to its own
standard, ie variables can change type during execution...)
--
Pierre
python to understand your new syntax, just write a small
interpreter to translate your new language to python.
--
Pierre-Alain Dorange Moof <http://clarus.chez-alice.fr/>
Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons.org/licenses
at to do from that.
Any clue or advice or tutorial ?
--
Pierre-Alain Dorange<http://microwar.sourceforge.net/>
Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons.org/licenses/by-nc-sa/2.0/fr/>
--
https://mail.python.org/mailman/listinfo/python-list
he cell where the canvas widget is put).
I think i can resize the canvas, but i can't find a way to get the
available space after resize.
Perhaps using the grid manager is not the godd idea for that ?
I except it was more understandable.
--
Pierre-Alain Dorange<http://microwar.sour
quadrant (for angle answer).
--
Pierre-Alain Dorange<http://microwar.sourceforge.net/>
Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons.org/licenses/by-nc-sa/2.0/fr/>
--
https://mail.python.org/mailman/listinfo/python-list
to see a different portion.
So i except the map to be resized to show a bigger portion of the whole
map : no streching.
--
Pierre-Alain Dorange<http://microwar.sourceforge.net/>
Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons.
Steven D'Aprano wrote:
> py> math.atan2(NAN, 0)
> nan
>
> I think that the only way it will return a NAN is if passed a NAN.
yes of course if you pass an invalid argument (NAN is not a real value,
atan2 except coordinate x,y), the result would be invalid...
--
been NaN too but
i'm not a math expert, but the limit of atan2 would be 45°, so pi/4
radians (0,7854).
As x,y are coordinates, the both infinite would tend toward 45°.
x only infinite would be 0° (0 radians)
y only infinite woudl be 180° (pi/2 radians)
--
Pierre-Alain Dorange&
pmx-bigmap>
the tkinter code is in pmx.py
the canvas class was TMap
GUI was created in main_gui.__init__()
callback function was main_gui.resize()
--
Pierre-Alain Dorange<http://microwar.sourceforge.net/>
Ce message est sous licence Creative Commons &quo
not explore
this, i just thought NSEW was also CENTERED.
Many Thanks.
--
Pierre-Alain Dorange<http://microwar.sourceforge.net/>
Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons.org/licenses/by-nc-sa/2.0/fr/>
--
https://mail.python.org/mailman/listinfo/python-list
ncy is always atan2(y,x) tend to pi/4 if you looks at lot od y and
x that will be grater and greater each time : the final frontier would
always be pi/4, even if t take a long time to reach it.
--
Pierre-Alain Dorange<http://microwar.sourceforge.net/>
Ce message est sous licence C
Steven D'Aprano wrote:
> > which infinity. There are many - some larger than others
>
> China has just announced a new supercomputer that is so fast it can run an
> infinite loop in 3.7 seconds.
Near a black hole 3.7 seconds can last an infinite time...
--
Pierre-Alain
Marko Rauhamaa wrote:
> Note that the "valid point of view for external observers" is the only
> valid scientific point of view.
For a scientific point of view, right. But tell this to the one that
will be close to a blackhole ;-)
--
Pierre-Alain Dorange Moof <
BartC wrote:
> But even with ordinary conditionals, False is False, but [False] is
> True. And [] is False, while [[]] is True. A class instance is always
> True, even when empty. And then "False" is True as well!
"Empty" is not "Nothing". To be empty,
;something" that perhaps will fill
the list (word.append("hello").
Then after do your job, you perhaps need to print it.
But initializing and just print, will do nothing else than initialize
and print the result...
As state before this code more or less like :
a=0
print a
--
P
;*':c=n1*n2
> if op=='/':c=n1/n2
> print(ui+' = '+str(c))
> ---
More reduced :
--
u=raw_input('Enter calculation:")
print eval(u)
--
works and compute :
1+2+3+4-1+4*2
2+3.0/2-0.5
Pe
-
env={}
env["__builtins__"] = None
u=raw_input('Enter calculation:")
print eval(u,env)
-
--
Pierre-Alain Dorange Moof <http://clarus.chez-alice.fr/>
Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons.org/licenses/by-nc-sa/2.0/fr/>
--
https://mail.python.org/mailman/listinfo/python-list
DFS wrote:
>
> 2 lines? Love it!
>
> But apparently eval==evil.
>
> http://nedbatchelder.com/blog/201206/eval_really_is_dangerous.html
>
> I bet you get hammered about it here on clp.
It was a software to be deploy, it was just for educational purpose.
Hello,
I have a class measurement representing a physical measurement.
Different objects in this class represent laboratory equipment, which
might raise an exception (e.g. overtemperature).
In any case the equipment has to be switched off after the experiment,
since if a
power supply stays in the
Hello Benjamin,
What would happen if an exception was thrown in the middle of setup()?
tearDown could not handle this case without having a list of the
objects already constructed (Or I would have to rely on the automatic
call to __del__, if it is reliable).
There is still some problem:
Imagine
Hello,
your idea sounds good and handles the exception on teardown as well.
(I did not think about the if XXX!=None check in teardown())
I will now provide each of the instruments with an explicit shutdown()
method which frees the interface card as well.
These methods will be called in a finally
"Caleb Hattingh" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL
PROTECTED]>...
> STILL...Having a Delphi-like IDE for Python would make me giddy.I know
> there are several ever-improving options out there already...I guess I am
> waiting to see which one floats to the surface. I also
Hello !
I've been trying desperately to access http://www.stackless.com but it's
been down, for about a week now !
I desperatly need to download stackless python...
Of course the stackless mailing list is on their server, so it's down,
too.
Does anybody has any info ?
Does anybody
MySQL is an excellent option is very well documented. It is also a
defacto standard for OpenSource databases.
MySQL sucks for anything but very very basic stuff as it supports no
transactions, foreign keys, procedures, triggers, concurrency, etc.
Postgresql is a lot better, free, and the psyc
If you want Simple you can use the following piece of code.
It won't work if you have a million records, but it's a nice intelligent
flatfile storage with a select where + order by and limit emulator.
# #
class ListMgr( object ):
de
Ideally, I would like an open source website + html design tool
implemented in Python
didn't you just say that ideally, you wanted a tool written in lisp or
scheme?
I honestly got a little tired of the tone of the answers I was getting
from that crowd, about what an idiot I am. My query there is
I've not used it personnally, but I heard good things about it :
"Firebird is a relational database offering many ANSI SQL-99 features that
runs on Linux, Windows, and a variety of Unix platforms. Firebird offers
excellent concurrency, high performance, and powerful language support fo
I am confused to chose between C++,Python,Perl.
Writing scripts in C++, you'll just die of brain burn.
Python has very good shell integration and I heard it can do funky stuff
with COM/OLE with a few lines of code where you'd need a few pages worth
of impossible to understand COM code to d
sometimes i'll write
if( key in myarray ) { ...
in PHP and then realize I have to use array_key_exists and curse that the
parameters are key then array, and bless scite auto-api-display for saving
me each time...
--
http://mail.python.org/mailman/listinfo/python-list
Thank You for your suggestionsI request you all to eloborate the
Uses(In Practical) for systems administrator.Some of my questions
regarding the same follows.
What do you want to do ?
1)Can i build web applications in Python ? If so how. I am planning to
build a web application for intrane
Great !
Thanks !
On Tue, 12 Apr 2005 16:15:42 +0200, cfbolz <[EMAIL PROTECTED]> wrote:
Hi!
Pierre-Frédéric Caillaud wrote:
I've been trying desperately to access http://www.stackless.com but
it's been down, for about a week now !
The stackless webpage is working agai
My code so far:
# -*- coding: iso-8859-1 -*-
import sys
import os
from progadn import *
ab1seq = raw_input("Entrez le répertoire où sont les fichiers à
analyser: ") or None
Ce serait mieux d'utiliser sys.argv pour spécifier le répertoire dans la
ligne de commande du programme :
import sys
hel
Bottomline - mysql has a lot of marketshare, is improving, and I'm sure
that it'll eventually be a credible product. But right now it's has a
wide range of inexcusable problems.
I so totally agree with you.
I find that mysql promotes bad coding practices by ignoring errors and
substituting in
It's not a bug if you didn't RTFM.
I did read it in much detail !
In fact I spent a lot of time trying to make understand how it could do a
simple 4-table join to display also purchased products on an online store.
The damn query took 0.5 seconds to execute no matter how I twisted it in
or almost 1 year now and current LTS
(Lucid) ship 2.6.
If you don't plan to support 2.4, supporting 2.5 does not seems a priority.
--
Pierre-Yves David
http://www.logilab.fr/
signature.asc
Description: Digital signature
--
http://mail.python.org/mailman/listinfo/python-list
hello (I hope my english is not so bad),
I'm doing a training course and I'm a newbie in Python. My problem :
I have a form, and when I click, I make an update. But all the parameters
are all required to make the update. So I'd like to put in my code something
like [optional]...
My code (simply
hello,
I'm doing a training course and I'm a newbie in Python. My problem :
I have a form, and when I click, I make an update. But all the parameters
are all required to make the update. So I'd like to put in my code something
like [optional]...
My code (simplyfied) :
prg.ev_ind_update(wf_pk_ev_
ust exist allready ?
--
Pierre-Alain Dorange
Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons.org/licenses/by-nc-sa/2.0/fr/>
--
http://mail.python.org/mailman/listinfo/python-list
ou invoked the ascii() builtin, the b
> >> prefix should disappear? Re-read the documentation of the
> >> ascii() builtin - it probably does something completely different
> >> from what you expect it to do.
> >
> > s = str(hexlify(urandom(8)))[2:18]
>
> And you
?
I do a site._test() and i return my only 1.8.0 module for pygame, 1.9.0
is ignored. The same with
Any clue ?
--
Pierre-Alain Dorange
<http://microwar.sourceforge.net/>
--
http://mail.python.org/mailman/listinfo/python-list
e Python directly from Xcode but i do not understand the
right way to do this. There is project for PyObjC but a can't make
working directly simple script project, so i continue to use terminal...
--
Pierre-Alain Dorange<http://microwar.sourceforge.net/>
Ce message est sous l
.org/library/profile.html>
--
Pierre-Alain Dorange
MicroWar 2.0 : tuez des PC
<http://microwar.sourceforge.net/>
--
http://mail.python.org/mailman/listinfo/python-list
y iMac intel, i run my small arcade game (a spaceinvader like)
between 800-1400 fps using dirtyrect.
I can also run without modification on Windows and Unbuntu using WMWare
on the same machine.
--
Pierre-Alain Dorange
<http://microwar.sourceforge.net/>
Ce message est sous licence Creative Co
i you want to loop in getAge() :
def getAge():
age=-1
while age<0:
try:
age = int(input('Please enter your age: '))
except ValueError:
print('That was not a valid number. Please try again.')
return age
I'm a begi
e display module you can use pygame, pyglet or pyOpenGL, there are
fast.
For the audio analysis i thought the module must be written in C or
something very fast, because python, due to it's nature, would probably
not compute spectrum as fast as real time : 44100 samples per seconds is
a lot
p Bonus (give 5 super-bomb)
* adding Saucer explosion : generate Virus that can infect PC
* clean the screens handling
--
Pierre-Alain Dorange
Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons.org/licenses/by-nc-sa/2.0/fr/>
--
http://mail.pyt
atching Time: 0.122432
(Compiled) Pattern Matching Time: 0.12012
Ratio Compiled/NotCompiled: 0.981116048092
2nd time and more
Pattern Matching Time: 0.00257
(Compiled) Pattern Matching Time: 0.000619
Ratio Compiled/NotCompiled: 0.240856031128
Config python 2.5.1 / MacOS X 10.5
--
better and could be faster.
How do you implement this or is there any other module with a sign()
function ?
--
Pierre-Alain Dorange<http://microwar.sourceforge.net/>
Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons
Christian Heimes wrote:
> Pierre-Alain Dorange schrieb:
> > I don't find any sign(x) function in the math library (return the sign
> > of the value).
> > I've read that math module is a wrapper to C math lib and that C math
> > lib has not sign(), so...
>
0.5244 second (+26%)
conclusions ---
1/ python is fast
2/ method (0) is the fastest
3/ cmp method (2) is the slowest
4/ the precise one (IEEE 754) is also fast (1)
--
Pierre-Alain Dorange<http://microwar.sourceforge.net/>
Ce message est sous licenc
ge from -1000 to 0
sign_0 : 0.46"
sign_1 : 0.30" (-35%)
1000 Random from -500 to +500
sign_0 : 0.37"
sign_1 : 0.42" (+13%)
--
Pierre-Alain Dorange<http://microwar.sourceforge.net/>
Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons.org/licenses/by-nc-sa/2.0/fr/>
--
http://mail.python.org/mailman/listinfo/python-list
)
sign_3 : 0.498 (+33%)
It seems it don't change the relative results between the methods.
Using timeit make measure accurate and remove print/range footprints.
I also try Arnaud's proposition, it make sign_0 just a little better
(-1%)
--
Pierre-Alain Dorange<http://microwa
III. Do you want to know my
> favorite color too?
Only if it's pythonic.
--
Pierre-Alain Dorange<http://microwar.sourceforge.net/>
Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons.org/licenses/by-nc-sa/2.0/fr/>
--
http://mail.python.org/mailman/listinfo/python-list
r wrote:
> [...]
> Well that shows that even lads with tiny nads can be brave, any of the
> other trolls want to expose them selfs?
This thread is offtopic, please just keep silent and let it be closed...
--
Pierre-Alain Dorange<http://microwar.sourceforge.net/>
Ce m
ft.
> At least until you profile your
> application and discover that the sign() function is the bottleneck
> keeping your program slow.
In each frame i'll have to use about 10 to 20 sign() call, so it'll not
be the bottleneck.
--
Pierre-Alain Dorange<http:/
|--//''`\--|
> | (( +==)) |
> |--\_|_//--|
Very nice indeed, but you forget ascii art need a fixed font...
--
201 - 300 of 389 matches
Mail list logo