[issue26861] shutil.copyfile() doesn't close the opened files

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue26861] shutil.copyfile() doesn't close the opened files

2016-12-02 Thread Josh Rosenberg
Josh Rosenberg added the comment: You're going to need to provide a real repro; your description is effectively useless. For the record, Python is not precisely pass by reference (it's roughly equivalent to passing a pointer in C, binding the local name to the same pointer, so if you reassign

[issue26861] shutil.copyfile() doesn't close the opened files

2016-12-02 Thread Vukasin Felbab
Vukasin Felbab added the comment: Okay, so the problem is that I have a command library instance which is containing a connection to a server and functions can be called to execute some queries. As I pass this instance as a parameter in a recursive chain, after a while the open files limit is

[issue26861] shutil.copyfile() doesn't close the opened files

2016-12-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue26861] shutil.copyfile() doesn't close the opened files

2016-11-29 Thread Josh Rosenberg
Josh Rosenberg added the comment: Agreed. 2.7 source is definitely using with: https://hg.python.org/cpython/file/2.7/Lib/shutil.py#l82 -- nosy: +josh.r status: pending -> open ___ Python tracker _

[issue26861] shutil.copyfile() doesn't close the opened files

2016-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As I see, shutil.copyfile() uses the "with" statements and closes files just after copying. -- status: open -> pending ___ Python tracker ___

[issue26861] shutil.copyfile() doesn't close the opened files

2016-04-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you provide an example? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-li

[issue26861] shutil.copyfile() doesn't close the opened files

2016-04-26 Thread Vukasin Felbab
New submission from Vukasin Felbab: shutil.copyfile() doesn't close the opened files, so it is vulnerable to IO Error 24: too many files open actually, the src and dst files should be closed after copy -- components: IO messages: 264286 nosy: vocdetnojz priority: normal severity: norma