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

Uploaded Source

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

Uploaded Source

File details

Details for the file e-1.1.zip.

File metadata

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

File hashes

Hashes for e-1.1.zip
Algorithm Hash digest
SHA256 8ca58e1c932258407b2d626ac5539d671f0a6b11856839c17b104244ec32354d
MD5 cf88c3702b970b5c0c42ad70523bd039
BLAKE2b-256 912254b4e3a237b9dea552b22f57213898f99c2ea3cb3a45ca471bf5b173a239

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for e-1.1.tar.gz
Algorithm Hash digest
SHA256 07edd0cecd78fda3acecbf7e9aaa5b8051bc4f0c554231bc30456930de891ea2
MD5 e01785f299aa4b79c8246de6a1784bcc
BLAKE2b-256 feb9b0d16297e4040349352fb430615a7fc18f9c220580c75ed74da2283b278d

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