homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vocdetnojz
Recipients josh.r, serhiy.storchaka, vocdetnojz
Date 2016年12月02日.09:10:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480669805.17.0.13386613258.issue26861@psf.upfronthosting.co.za>
In-reply-to
Content
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 reached, I got it a few times an error on file opening. It is sure that I don't leave connections and open files before calling the next recursion, only thing this command library has the connection open. Additionally, when I store the instance in a global variable and call it from there then there are no IO errors. So, it means that the python is not giving parameters by reference, but by value? Because according to the Python, if I pass a mutable object as an argument, an if I use that for querying and passing the same instance to the next recursion level it should work fine, because in this case it should pass by reference, but it is not obviously, it passes by value, the connections remain open and the io limit is reached.
History
Date User Action Args
2016年12月02日 09:10:05vocdetnojzsetrecipients: + vocdetnojz, serhiy.storchaka, josh.r
2016年12月02日 09:10:05vocdetnojzsetmessageid: <1480669805.17.0.13386613258.issue26861@psf.upfronthosting.co.za>
2016年12月02日 09:10:05vocdetnojzlinkissue26861 messages
2016年12月02日 09:10:05vocdetnojzcreate

AltStyle によって変換されたページ (->オリジナル) /