[issue8382] StringIO.write() takes any argument and converts it to a string

2010-04-13 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8382 ___

[issue8382] StringIO.write() takes any argument and converts it to a string

2010-04-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- title: cStringIO and StringIO don't behave the same way - StringIO.write() takes any argument and converts it to a string ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8382

[issue8382] StringIO.write() takes any argument and converts it to a string

2010-04-12 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Yes, I am not sure what would be the best fix though. We cannot raise an error on StringIO now because this will break lots of code out there. In the meantime, I think it's cleaner to avoid doing implicit str() conversions, so I think

[issue8382] StringIO.write() takes any argument and converts it to a string

2010-04-12 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: It's clear you can't change it for 2.6 or 2.7, almost certainly not 3.1. Maybe you could change it for 3.2. -- nosy: +skip.montanaro ___ Python tracker rep...@bugs.python.org

[issue8382] StringIO.write() takes any argument and converts it to a string

2010-04-12 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Whoops. No stringio.py in 3.x. This should be closed as won't fix since it's not a problem in py3k and can't be changed in 2.x. -- ___ Python tracker rep...@bugs.python.org