dl l writes:
> I understood call PyGC_collect to release object cycles. But in my python
> test code, seems there is NO reference cycle on the Simple object in the
> python test code. Why needs to call PyGC_Collect() here?
>
> =
>
> class Sim
I understood call PyGC_collect to release object cycles. But in my python
test code, seems there is NO reference cycle on the Simple object in the
python test code. Why needs to call PyGC_Collect() here?
=
class Simple:
def __init__( se
dl l writes:
> I found the problem is resolved if call PyGC_Collect() after
> PyDict_DelItemString(). Is it expected to call PyGC_Collect() here for
> Python 3.5 which is not needed for Python 3.3?
Usually, Python uses reference counting to determine when an object
can be deleted (and then reclai
Thank you all for the help.
I found the problem is resolved if call PyGC_Collect() after
PyDict_DelItemString(). Is it expected to call PyGC_Collect() here for
Python 3.5 which is not needed for Python 3.3?
2016-09-20 16:01 GMT+08:00 Chris Angelico :
> On Tue, Sep 20, 2016 at 4:19 PM, dl l wrot
On Tue, Sep 20, 2016 at 4:19 PM, dl l wrote:
> Yes, it's a workaround to set the global variables to None. But My app just
> provide a framework for my customers to run python scripts. That's means
> the workaround requires my customers to update their python scripts. That
> may make them unhappy
On Tuesday 20 September 2016 16:19, dl l wrote:
> Hi Steven,
>
> Thanks for reply.
>
> I logged bug https://bugs.python.org/issue28202. I added more info in this
> bug :).
>
> Yes, it's a workaround to set the global variables to None. But My app just
> provide a framework for my customers to r
Hi Steven,
Thanks for reply.
I logged bug https://bugs.python.org/issue28202. I added more info in this
bug :).
Yes, it's a workaround to set the global variables to None. But My app just
provide a framework for my customers to run python scripts. That's means
the workaround requires my customer
On Monday 19 September 2016 16:47, dl l wrote:
> Hi,
>
> I have a app loading python35.dll. Use python API PyImport_AddModule
> to run a py file. And use PyDict_DelItemString to delete the module.
> There is a global vailable in the py file. The global variable is not
> destroyed when calling PyD
Thanks for the replay.
I run this script as __main__ module, this module is removed from
sys.modules, and the ref count becomes 0.
2016-09-20 0:00 GMT+08:00 Chris Angelico :
> On Mon, Sep 19, 2016 at 4:47 PM, dl l wrote:
> > I have a app loading python35.dll. Use python API PyImport_AddModule
>
On Mon, Sep 19, 2016 at 4:47 PM, dl l wrote:
> I have a app loading python35.dll. Use python API PyImport_AddModule
> to run a py file. And use PyDict_DelItemString to delete the module.
> There is a global vailable in the py file. The global variable is not
> destroyed when calling PyDict_DelItem
On 5/19/2016 12:47 PM, Bella via Python-list wrote:
Thisis my first encountering with Python. I have successfully
downloaded Python3.5.1 for Windows but see only a black window with
command prompt.
If you start Python from the Python directory on the Start menu, you
should see a black window
On Thursday, May 19, 2016 at 12:21:52 PM UTC-5, kbell...@aol.com wrote:
> Thisis my first encountering with Python. I have successfully downloaded
> Python3.5.1 for Windows but see only a black window with command prompt. I do
> not see IDLE under PYthon on Windows Start Menu.
>
>
> Downloaded
On Fri, May 13, 2016, at 12:18, Aidan Silcock via Python-list wrote:
>
>
> Sent from Yahoo Mail on Android
>
> On Fri, 13 May, 2016 at 16:59, Aidan Silcock
> wrote: HelloI have tried to download python 3.5.1 today and it has
> downloaded but each time I try to open it it says I need to
In Aidan Silcock
writes:
> On Fri, 13 May, 2016 at 16:59, Aidan Silcock
> wrote:
> Hello I have tried to download python 3.5.1 today and it has downloaded
> but each time I try to open it it says I need to Modify, Repair or
> Uninstall the program.I have tried repairing it neumerous times an
Sent from Yahoo Mail on Android
On Fri, 13 May, 2016 at 16:59, Aidan Silcock
wrote: HelloI have tried to download python 3.5.1 today and it has downloaded
but each time I try to open it it says I need to Modify, Repair or Uninstall
the program.I have tried repairing it neumerous times a
On 06/03/2016 05:32, wrote:
when I am installing Python 3.5.1 (32-bit)??some problems occurred.I hope you
could offer me some help.This file may contain some information about the error.
This type of question has been asked and answered repeatedly over the
last few months, so please sea
On Sun, 6 Mar 2016 04:32 pm, 程仿 wrote:
> when I am installing Python 3.5.1 (32-bit),some problems occurred.I hope
> you could offer me some help.This file may contain some information about
> the error.
What file?
Please COPY AND PASTE the text of the error message into your email.
--
Steven
On Fri, Jan 29, 2016 at 10:35 AM, Joel Cotto wrote:
> Hi,
>
> I'm using the new release of python ver 3.5.1 but i got problem using its
> code to communicate w/ serial port. I'm receiving port error. Hope you can
> guide me if there are change made in the command. Thanks and Good Day
>
> import s
18 matches
Mail list logo