_PACKAGE in a nested module
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: _PACKAGE in a nested module
- From: "Matthew M. Burke" <mmburke@...>
- Date: 2006年1月17日 09:55:51 -0500
If you create a module, call it peanut, with a nested module, say
butter. And then print(peanut.butter._PACKAGE) the answer you get is
"peanut." with the trailing period.
I would expect the answer to just be "peanut".
Similarly, if you define a module, peanut.butter.sandwich, and then
print(peanut.butter.sandwich._PACKAGE) you get "peanut.butter.".
Is that the intended behavior?
Matt