[ANN] Benchmarker 2.0.0 released - a samll benchmark utility

2010-10-27 Thread kwatch
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

Re: Benchmarker 1.1.0 released - a samll benchmark utility

2010-06-28 Thread kwatch
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

[ANN] Oktest 0.3.0 released - a new style testing library

2010-05-16 Thread kwatch
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

[ANN] Benchmarker 1.0.0 - a samll utility for benchmarking

2010-05-15 Thread kwatch
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

ANN: Oktest 0.2.1 released - a new style testing library.

2010-04-19 Thread kwatch
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

Re: raise exception with fake filename and linenumber

2010-04-09 Thread kwatch
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

[Q] raise exception with fake filename and linenumber

2010-04-07 Thread kwatch
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:

[ANN] pyKook 0.0.4 - a smart build tool similar to Make, Rake, or Ant

2009-09-05 Thread kwatch
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

[ANN] pyKook 0.0.3 - a smart build tool similar to Make, Rake, or Ant

2009-08-08 Thread kwatch
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

[ANN] pyKook 0.0.2 - a simple build tool similar to Make or Ant

2009-07-30 Thread kwatch
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

ANN: pyTenjin 0.8.1 - much faster template engine than Django

2009-06-14 Thread kwatch
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

ANN: pyTenjin 0.8.0 - much faster template engine than Django

2009-06-06 Thread kwatch
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

[ANN] pyTenjin 0.7.0 - the fastest and full-featured template engine

2009-05-24 Thread kwatch
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

[ANN] pyKook 0.0.1 - a simple build tool similar to Make or Ant

2008-10-19 Thread kwatch
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

Re: module name available in 'from ... import ...' statement

2007-04-30 Thread kwatch
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

[Q] module name available in 'from ... import ...' statement

2007-04-30 Thread kwatch
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

Re: pyYaml community

2007-02-04 Thread kwatch
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

Re: result of os.times() is different with 'time' command

2007-02-04 Thread kwatch
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

[Q] result of os.times() is different with 'time' command

2007-02-02 Thread kwatch
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

Re: Q: How to generate code object from bytecode?

2006-12-26 Thread kwatch
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

Q: How to generate code object from bytecode?

2006-12-26 Thread kwatch
''' ## 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