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 details)

Uploaded Source

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

Uploaded Source

File details

Details for the file e-1.3.zip.

File metadata

  • Download URL: e-1.3.zip
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for e-1.3.zip
Algorithm Hash digest
SHA256 1d0bb7294404be9e2e2827efa13863c0498507ef9718803aae55676d96cd52e4
MD5 5b5fe9774e054358b1be21a5905fd24f
BLAKE2b-256 e8d6048f0e39587e6e1f6ce3c0742aaeb647add540914f13eb22a70b59c569fe

See more details on using hashes here.

File details

Details for the file e-1.3.tar.gz.

File metadata

  • Download URL: e-1.3.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for e-1.3.tar.gz
Algorithm Hash digest
SHA256 90ee0f8e33902ff1650dd5d5694c0ac691125a345b408bedde733d585c071a70
MD5 14ae88b2b19ef363f8d1dbe3c07a32ef
BLAKE2b-256 840bbd055835076df87cf5de4e9ea25db1e210559dbba548f84f3a19ee4a0dfa

See more details on using hashes here.

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