On Thu, 25 Aug 2005, Jonathan Ellis wrote:
> from cStringIO import StringIO
> f = StringIO()
> Wing thinks f is a string, not a stringio ... ?
Indeed, our stdlib scraper is doing the wrong thing in this case.
A quick hack to fix this is to change cStringIO.pi in
resources/builtin-pi-files/#.# (where #.# is your Python version
number) inside your Wing installation so the last def is:
""" StringIO([s]) -- Return a StringIO-like stream for reading or writing """
(However, if you do stuff like this to your Wing installation please
be sure to uninstall Wing and remove any remaining files before
attempting an upgrade in the future; otherwise the upgrade may fail)
I'll look into why this is being generated wrong.
Thanks for the bug report.
Wing IDE for Python
Advancing Software Development
> On Thu, 25 Aug 2005, Jonathan Ellis wrote:
>>from cStringIO import StringIO
>>f = StringIO()
>>Wing thinks f is a string, not a stringio ... ?
> Indeed, our stdlib scraper is doing the wrong thing in this case.
Another (different?) case:
t = threading.Lock()
t.[cannot infer type]
I can see how threading might be a bitch to infer types in though. :)