Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/w/i/willie-4.3.0/willie/modules/calc.py   willie(Download)
from willie import web
from willie.module import commands, example
from willie.tools import eval_equation
from socket import timeout
import sys
    eqn = trigger.group(2).replace(',', '.')
    try:
        result = str(eval_equation(eqn))
    except ZeroDivisionError:
        result = "Division by zero is not supported in this universe."

src/w/i/willie-HEAD/willie/modules/calc.py   willie(Download)
from willie import web
from willie.module import commands, example
from willie.tools import eval_equation
from socket import timeout
import sys
    eqn = trigger.group(2).replace(',', '.')
    try:
        result = str(eval_equation(eqn))
    except ZeroDivisionError:
        result = "Division by zero is not supported in this universe."

src/w/i/willie-4.3.0/willie/modules/dice.py   willie(Download)
 
import willie.module
from willie.tools import eval_equation
 
 
    # wrong with the syntax than a generic error message.
    try:
        result = eval_equation(eval_str)
    except Exception as e:
        bot.reply("SyntaxError, eval(%s), %s" % (eval_str, e))

src/w/i/willie-HEAD/willie/modules/dice.py   willie(Download)
 
import willie.module
from willie.tools import eval_equation
 
 
    # wrong with the syntax than a generic error message.
    try:
        result = eval_equation(eval_str)
    except Exception as e:
        bot.reply("SyntaxError, eval(%s), %s" % (eval_str, e))