Re: 'generator ignored GeneratorExit''

2012-10-20 Thread Hans Mulder
On 21/10/12 01:41:37, Charles Hixson wrote: > 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: 'ge

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 getNxtFile (start

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> ignored > > def getNxtFile (star

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"]): try: for