Skip to main content

Evaluate and display command line expressions with ``python -me expr``

Project description

Evaluate and display command line expressions with python -me expr For example:

$ python -me 1+1
2

Like python -c but no need for a print statement.

It allows multiple expressions:

$ python -me 1+1 2+2
2
4

As a bonus, if the first argument is a module name then it will output the location of the module source code:

$ python -me os
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

e-1.3.zip (2.3 kB view hashes)

Uploaded Source

e-1.3.tar.gz (1.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page