Visitor pattern and separating iteration
Karsten Wutzke
kwutzke at web.de
Thu Jul 22 07:11:57 EDT 2010
> # "public final"
> modifierString = ""
>
> i = 0
>
> for modifier in method.getModifiers():
> if i > 0:
> modifierString += " "
> modifierString += modifier
>
> i += 1
>
And please don't comment on the code itself, as I'm just starting to
learn the Python API. The above should be
modifierString = " ".join(method.getModifiers())
Thanks
Karsten
More information about the Python-list
mailing list