I released Benchmarker 2.0.0.
http://pypi.python.org/pypi/Benchmarker/
Benchmarker is a small utility to benchmark your code.
Download
http://pypi.python.org/pypi/Benchmarker/
Installation::
## if you have installed easy_install:
$ sudo easy_install Benchmarker
## or down
Stefan,
Thank you for trying Benchmarker library.
On Jun 28, 6:39 pm, Stefan Behnel wrote:
> Makoto Kuwata, 26.06.2010 19:09:
>
> > I released Benchmarker 1.1.0.
> >http://pypi.python.org/pypi/Benchmarker/
>
> > Benchmarker is a small utility to benchmark your code.
>
> Does it use any statistica
Hi,
I released Oktest 0.3.0.
http://packages.python.org/Oktest/
http://pypi.python.org/pypi/Oktest/
Overview
Oktest is a new-style testing library for Python.
::
from oktest import ok
ok (x) > 0 # same as assert_(x > 0)
ok (s) == 'foo'# same as
Hi,
I released Benchmarker 1.0.0.
http://pypi.python.org/pypi/Benchmarker/
Benchmarker is a small library for benchmarking.
Example
---
ex.py::
def fib(n):
return n <= 2 and 1 or fib(n-1) + fib(n-2)
from benchmarker import Benchmarker
bm = Benchmarker() # or Benchmark
Hi,
I released Oktest 0.2.1.
homepage: http://packages.python.org/Oktest/
download: http://pypi.python.org/pypi/Oktest/
repository: http://bitbucket.org/kwatch/oktest/
Oktest is a new-style testing library for Python.
from oktest import ok
ok (x) > 0 # same as asse
On 4月8日, 午後12:52, "Gabriel Genellina" wrote:
>
> The built-in SyntaxError exception does what you want. Constructor
> parameters are undocumented, but they're as follows:
>
> raise SyntaxError("A descriptive error message", (filename, linenum,
> colnum, source_line))
>
> colnum is used to
Hi all,
Is it possible to raise exception with custom traceback to specify
file and line?
Situation
=
I'm creating a certain parser.
I want to report syntax error with the same format as other exception.
Example
===
parser.py:
-
1: def parse(filename):
2:
Hi,
I have released pyKook 0.0.4.
http://pypi.python.org/pypi/Kook/0.0.4
http://www.kuwata-lab.com/kook/
http://www.kuwata-lab.com/kook/pykook-users-guide.html
In this release, recipe syntax is changed (see below).
Overview
pyKook is a smart build tool similar to Make, Rake, Ant, or C
Hi,
I have released pyKook 0.0.3.
http://pypi.python.org/pypi/Kook/0.0.3
http://www.kuwata-lab.com/kook/
http://www.kuwata-lab.com/kook/pykook-users-guide.html
In this release, recipe syntax is changed (see below).
Overview
pyKook is a smart build tool similar to Make, Rake, Ant, or C
Hi,
I have released pyKook 0.0.2.
http://pypi.python.org/pypi/Kook/0.0.2
http://www.kuwata-lab.com/kook/
http://www.kuwata-lab.com/kook/pykook-users-guide.html
Overview
pyKook is a simple build tool similar to Make, Ant, Rake, or SCons.
pyKook regards software project as cooking.
Term
I released pyTenjin 0.8.1.
http://www.kuwata-lab.com/tenjin/
http://pypi.python.org/pypi/Tenjin/
pyTenjin is the fastest template engine for Python.
* Very fast (about 10 times faster than Django template engine)
* Easy to learn (no need to learn template-original language)
* Full-featured (layou
I have released pyTenjin 0.8.0
http://www.kuwata-lab.com/tenjin/
pyTenjin is the fastest template engine for Python.
* Very fast (about 10 times faster than Django template engine)
* Easy to learn (no need to learn template-original language)
* Full-featured (layout template, partial template,
pr
q.html
* Examples
http://www.kuwata-lab.com/tenjin/pytenjin-examples.html
* (Presentation) Tenjin - the fastest template engine in the world
http://www.slideshare.net/kwatch/tenjin-the-wastest-template-engine-in-the-world
Have fun!
--
regards,
makoto kuwata
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I have released pyKook 0.0.1.
http://pypi.python.org/pypi/Kook/0.0.1
http://www.kuwata-lab.com/kook/
http://www.kuwata-lab.com/kook/pykook-users-guide.html
pyKook is a simple build tool similar to Make, Ant, Rake, or SCons.
pyKook regards software project as cooking.
Terms used in pyKook
What is the actual problem you're trying
> to solve?
I have a package which has several small modules and I want to
integrate them into a file, with keeping compatibility.
current:
mylib/
__init__.py
html.py
xhtml.py
xml.py
:
:
future:
mylib.py
7;from ...' statement.
# create a module
import new
foo = new.module('foo')
foo.pi = 3.14159
foo.x2 = lambda x: 2*x
# specify it in 'from' statement
from foo import pi, x2 # ImportError: No mod
you should subscribe yaml-core mailing list.
mailto:[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/yaml-core
this is what you want.
--
kwatch
Imbaud Pierre <[EMAIL PROTECTED]> wrote:
> I began using pyYaml.
> I found no place where pyYaml users exchange ideas, k
real0m13.621s
user0m12.438s
sys 0m0.063s
Great job, Douglas.
--
regards,
kwatch
[EMAIL PROTECTED] (Douglas Wells) wrote:
> [various posting problems corrected and response interspersed in
> previous post for purposes of coherent response]
>
> I
s that user time is 23.938sec.
Why os.times() reports wrong result? Do I have any mistake?
--
kwatch
--
http://mail.python.org/mailman/listinfo/python-list
title
\n''');
for item in items:
_buf.append(''' '''); _buf.append(escape(to_str(item)));
_buf.append('''\n''');
#end
_buf.append('''\n''');
--
regards,
kwatch
--
http://mail.python.org/mailman/listinfo/python-list
'''
## compile it and get bytecode
code = compile(pycode, kind='exec')
bytecode = code.co_code
open('hoge.pyc', 'wb').write(bytecode)
## load bytecode and eval it
bytecode = open('hoge.pyc', 'rb').read()
code = create_co
21 matches
Mail list logo