¡@

Home 

python Programming Glossary: defn

When I run the setuptools .egg “as if it were a shell script”, what's actually happening?

http://stackoverflow.com/questions/13399118/when-i-run-the-setuptools-egg-as-if-it-were-a-shell-script-whats-actually-h

py2.7.egg 332005 bytes 78 files rw rw r 2.0 unx 1713 b 995 defN 7 Jul 10 20 26 site.pyc rw rw r 2.0 unx 90113 b 31461 defN 7.. defN 7 Jul 10 20 26 site.pyc rw rw r 2.0 unx 90113 b 31461 defN 7 Jul 10 20 26 pkg_resources.pyc rw rw r 2.0 unx 85435 b 23537.. 10 20 26 pkg_resources.pyc rw rw r 2.0 unx 85435 b 23537 defN 19 Oct 09 13 35 pkg_resources.py rw rw r 2.0 unx 2362 b 875..

Interpreting a benchmark in C, Clojure, Python, Ruby, Scala and others [closed]

http://stackoverflow.com/questions/11641098/interpreting-a-benchmark-in-c-clojure-python-ruby-scala-and-others

if i n true else if n i 0 isPrime n i 1 else false Clojure defn is prime n every # mod n 0 range 2 n defn sexy primes m for.. false Clojure defn is prime n every # mod n 0 range 2 n defn sexy primes m for x range 11 inc m let z list x 6 x when every.. println b a mils Clojure optimized is prime defn ^ static is prime ^long n loop i long 2 if rem n i 0 false if..

Clojure Jython interop

http://stackoverflow.com/questions/2129253/clojure-jython-interop

a way. Here's an ultra basic helper for ._jcall type calls defn py call pyf args apply fn pyf args ._jcall pyf into array args..

Unicode identifiers in Python?

http://stackoverflow.com/questions/2649544/unicode-identifiers-in-python

was a piece of Clojure code I saw today that looks like defn entropy X 1 Σ i X p i log p i where Σ is a macro defined as..

What is the clojure equivalent of the Python idiom “if __name__ == '__main__'”?

http://stackoverflow.com/questions/973106/what-is-the-clojure-equivalent-of-the-python-idiom-if-name-main

Given this foo.clj in the current directory ns foo defn hello x println Hello x if command line args hello command line.. command line. Given a source file foo.clj ns foo gen class defn hello x println Hello x defn main hello command line Make a.. file foo.clj ns foo gen class defn hello x println Hello x defn main hello command line Make a directory to store the compiled..