Re: 'generator ignored GeneratorExit''

2012-10-20 Thread Hans Mulder
et the message: >>> Exception RuntimeError: 'generator ignored GeneratorExit' in>> object getNxtFile at 0x7f932f884f50> ignored >>> >>> def getNxtFile (startDir, exts = ["txt", "utf8"]): >>> try: >>>

Re: 'generator ignored GeneratorExit''

2012-10-20 Thread Cameron Simpson
On 20Oct2012 16:41, Charles Hixson wrote: | On 10/20/2012 04:28 PM, Ian Kelly wrote: | > On Sat, Oct 20, 2012 at 2:03 PM, Charles Hixson | >> try: | >> fil=open (path, encoding = "utf-8-sig") | >> yieldfil | >> except: [...] |

Re: 'generator ignored GeneratorExit''

2012-10-20 Thread Charles Hixson
On 10/20/2012 04:28 PM, Ian Kelly wrote: On Sat, Oct 20, 2012 at 2:03 PM, Charles Hixson wrote: If I run the following code in the same module, it works correctly, but if I import it I get the message: Exception RuntimeError: 'generator ignored GeneratorExit' in ignored def

Re: 'generator ignored GeneratorExit''

2012-10-20 Thread Ian Kelly
On Sat, Oct 20, 2012 at 2:03 PM, Charles Hixson wrote: > If I run the following code in the same module, it works correctly, but if I > import it I get the message: > Exception RuntimeError: 'generator ignored GeneratorExit' in object getNxtFile at 0x7f932f884f50> igno

Re: 'generator ignored GeneratorExit''

2012-10-20 Thread MRAB
On 2012-10-20 21:03, Charles Hixson wrote: If I run the following code in the same module, it works correctly, but if I import it I get the message: Exception RuntimeError: 'generator ignored GeneratorExit' in ignored def getNxtFile (startDir, exts = ["txt", "utf8&quo

'generator ignored GeneratorExit''

2012-10-20 Thread Charles Hixson
If I run the following code in the same module, it works correctly, but if I import it I get the message: Exception RuntimeError: 'generator ignored GeneratorExit' in object getNxtFile at 0x7f932f884f50> ignored def getNxtFile (startDir, exts = ["txt", "utf8"