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.2.zip (2.3 kB view details)

Uploaded Source

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

Uploaded Source

File details

Details for the file e-1.2.zip.

File metadata

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

File hashes

Hashes for e-1.2.zip
Algorithm Hash digest
SHA256 e960a91f91738e6784b1d9f4d95309628dbc0a02ef8816867e91b0256dcb128a
MD5 1c9abde92cc3ab987af8e798fb16a2e7
BLAKE2b-256 16421c79e2aad6837c448332545df9e9229b6dfa94282184a04f6578bfe985e5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for e-1.2.tar.gz
Algorithm Hash digest
SHA256 8b9efa69dc3a0e002e2290c7d9708c920049f4dd2bd70fe7430b174164ffcf68
MD5 f940317306c8c696ac6819b834917dbb
BLAKE2b-256 d91a3e9092dcf87594c41ffed29778542096d2d11005b9d35e50a2456361811b

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