Files
2012-02-21 01:15:00 -05:00

1 line
1.5 KiB
JSON

[{"user_id": 39247, "stars": [], "topic_id": 45458, "date_created": 1316311605.0758131, "message": "I've been trying to deal with very simple question within python for weeks;\nhttp://stackoverflow.com/questions/7184375/how-to-find-import-name-of-any-package-in-python\n\nI modified the TokenMacGuy's code snippet there a bit and put it on github;\nhttps://gist.github.com/1176645\n\nBut still could not get that solution working in a reliable way for all the packages on pypi. It is failing for every second package. Any help will be appreciated.", "group_id": 292, "id": 2153936}, {"user_id": 40774, "stars": [], "topic_id": 45458, "date_created": 1317020792.6254079, "message": "Perhaps it is better you start with explaining the purpose of finding the module name. A package may well export several modules.", "group_id": 292, "id": 2214805}, {"user_id": 39247, "stars": [], "topic_id": 45458, "date_created": 1322132272.2683539, "message": "yes, terms are ambiguous here. my question was \"how to find the desirable import namespace of any python distribution\" as there is no shortcut answer for that.. because a distribution may have zero or more packages. therefore may come with more than 1 import namespaces such as \"test\" package.", "group_id": 292, "id": 2630006}, {"user_id": 40129, "stars": [], "topic_id": 45458, "date_created": 1322162101.5814941, "message": "I think rope (http://rope.sourceforge.net/) could help you. As feature it has \"Fixing imports when needed\"", "group_id": 292, "id": 2631865}]