0

I happened to read a line(source), which made me a hard time understanding:

More precisely, a local module or package can shadow another hanging directly off sys.path.

For me it's more readable to add "one that" follows "another":

[...] can shadow another one that hanging directly off sys.path.

Am I correct? If I'm not correct please teach me!

1
  • The "one" is implied. The "that" would simply be wrong. Sep 7, 2021 at 7:04

1 Answer 1

1

You don't always need "one" after "another". It's shortened but grammatically correct. A longer version of this sentence would be:

"More precisely, a local module or package can shadow another one which is hanging directly off sys.path."

What the sentence means precisely depends on the source text. It seems that there is a problem with scope based ambiguity of names.

1
  • Thank you so much, now I understand it!
    – Rain
    Sep 7, 2021 at 10:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .