alex,
@alex@moreati.org.uk avatar

I've inherited some Python code that calls import('somepkg.module, fromlist=[''])
Has anyone seen this elsewhere?Is there a significance of an empty string in fromlist?
Current guess is it's a bug, or a workaround for Python 2.4 era behaviour. The code is https://github.com/mitogen-hq/mitogen/blob/798032b979bf5cabf50d3665f113f67cb5b33152/mitogen/core.py#L682, it's been around since the initial commit https://github.com/mitogen-hq/mitogen/blob/6d403481d44cdffb85ee36cc9e01642bcbc447df/mitogen/core.py#L461

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • kavyap
  • thenastyranch
  • GTA5RPClips
  • tester
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • cisconetworking
  • JUstTest
  • khanakhh
  • normalnudes
  • osvaldo12
  • tacticalgear
  • anitta
  • Durango
  • ethstaker
  • modclub
  • Leos
  • provamag3
  • cubers
  • megavids
  • lostlight
  • All magazines