[arch-general] python2: Where is imp.py?

Eli Schwartz eschwartz at archlinux.org
Sun Dec 30 22:06:46 UTC 2018


On 12/30/18 4:04 PM, Peter Nabbefeld wrote:
> 
> Hello,
> 
> I need to use the inspect module with python 2.7, but the imported imp
> module seems to be missing - how can I get that, as there's no
> python2-imp package?

That's categorically impossible as the imp module is a builtin in
python2 and imp.py is a (deprecated!) part of the stdlib in python3.

You should definitely be able to "import imp". Please explain your
problem further.

-- 
Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20181230/5e1931c8/attachment.asc>


More information about the arch-general mailing list