Re: Python 3.5.1 C API, the global available available is not destroyed when delete the module

2016-09-21 Thread dieter
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

Re: Python 3.5.1 C API, the global available available is not destroyed when delete the module

2016-09-20 Thread dl l
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

Re: Python 3.5.1 C API, the global available available is not destroyed when delete the module

2016-09-20 Thread dieter
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

Re: Python 3.5.1 C API, the global available available is not destroyed when delete the module

2016-09-20 Thread dl l
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

Re: Python 3.5.1 C API, the global available available is not destroyed when delete the module

2016-09-20 Thread Chris Angelico
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

Re: Python 3.5.1 C API, the global available available is not destroyed when delete the module

2016-09-20 Thread Steven D'Aprano
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

Re: Python 3.5.1 C API, the global available available is not destroyed when delete the module

2016-09-19 Thread dl l
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

Re: Python 3.5.1 C API, the global available available is not destroyed when delete the module

2016-09-19 Thread Steven D'Aprano
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

Re: Python 3.5.1 C API, the global available available is not destroyed when delete the module

2016-09-19 Thread dl l
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 >

Re: Python 3.5.1 C API, the global available available is not destroyed when delete the module

2016-09-19 Thread 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 > 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

Python 3.5.1 C API, the global available available is not destroyed when delete the module

2016-09-19 Thread dl l
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 PyDict_DelItemString to delete the module. That cause the memor

Re: is there a big in python 3.5.1 shell?

2016-06-12 Thread Joel Goldstick
the point is > Python 3.5.1 shell* gives a synatax error after I run the elif function. > It does not matter how correctly you indent your code block.however this is > not the case when I code in Python 3.5.1 which I open using the windows > command Line prompt c:\python. >

is there a big in python 3.5.1 shell?

2016-06-12 Thread Listo Amugongo
In my attarchment above is a screenshot of my session. Screenshot describtion: In my first elif function (first code block) I deliberately programmed an indention error.i did it purposely to make my point clear and the point is Python 3.5.1 shell* gives a synatax error after I run the elif

Re: Python 3.5.1

2016-05-19 Thread Terry Reedy
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

Re: Python 3.5.1

2016-05-19 Thread Mike Driscoll
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

Python 3.5.1

2016-05-19 Thread Bella via Python-list
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 version of Python is based on 32-bit and my PC is 64-bit. Couldyo please help an

Re: Python 3.5.1 Not Working

2016-05-13 Thread Random832
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 o

Re: Python 3.5.1 Not Working

2016-05-13 Thread John Gordon
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

Re: Python 3.5.1 Not Working

2016-05-13 Thread Aidan Silcock via Python-list
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

Re: The reason I uninstalled Python 3.5.1 (32-bit) for Windows

2016-04-13 Thread Tim Golden
On 13/04/2016 03:57, Jason Honeycutt wrote: > Hello, > > I am providing feedback as to why I just uninstalled Python. I could not > use pip. My command line would not recognize pip.exe as a file, even though > I could see the file listed when I type "dir" in the Scripts folder. > > I tried to rep

Re: The reason I uninstalled Python 3.5.1 (32-bit) for Windows

2016-04-12 Thread Stephen Hansen
On Tue, Apr 12, 2016, at 07:57 PM, Jason Honeycutt wrote: > I am providing feedback as to why I just uninstalled Python. I could not > use pip. My command line would not recognize pip.exe as a file, even > though > I could see the file listed when I type "dir" in the Scripts folder. If you can't u

Re: The reason I uninstalled Python 3.5.1 (32-bit) for Windows

2016-04-12 Thread Ben Finney
Jason Honeycutt writes: > I am providing feedback as to why I just uninstalled Python. Thank you for taking the time. I feel you should know that this is a community discussion forum only: posting the message here is unlikely to do anything but engage some people in discussion. If you have enou

The reason I uninstalled Python 3.5.1 (32-bit) for Windows

2016-04-12 Thread Jason Honeycutt
Hello, I am providing feedback as to why I just uninstalled Python. I could not use pip. My command line would not recognize pip.exe as a file, even though I could see the file listed when I type "dir" in the Scripts folder. I tried to repair Python; however, then the file did not show up at all.

Re: Trouble trying to install Python 3.5.1 (32-bit) for windows

2016-04-04 Thread Rustom Mody
On Tuesday, April 5, 2016 at 8:19:44 AM UTC+5:30, Yuri Armellei wrote: > Dear Python, > > I encountered difficulties when installing the python. > > Could you guys help me to solve and install it?! > > Attached log error to help you guys to help me out. =) ;) > > Regards, > > > > [cid:i

Trouble trying to install Python 3.5.1 (32-bit) for windows

2016-04-04 Thread Yuri Armellei
Dear Python, I encountered difficulties when installing the python. Could you guys help me to solve and install it?! Attached log error to help you guys to help me out. =) ;) Regards, [cid:image001.png@01D18EA7.4A69B7E0] [cid:image006.jpg@01D152DC.ACCAF540] Yuri Armellei Tesouraria T

Re: Regarding installation of python-3.5.1

2016-03-06 Thread Mark Lawrence
On 06/03/2016 06:35, Roshan S Sontakke wrote: Gud afternoon sir my self Roshan sontakke I have down loaded a setup of python-3.5.1 but nt able to install it gives an error message Please read this http://www.catb.org/esr/faqs/smart-questions.html and then have a go at providing us with the

Re: Python 3.5.1 (32-bit)_20160306131105

2016-03-06 Thread Mark Lawrence
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

Re: Regarding installation of python-3.5.1

2016-03-06 Thread Grant Edwards
On 2016-03-06, Steven D'Aprano wrote: > On Sun, 6 Mar 2016 05:35 pm, Roshan S Sontakke wrote: > >> Gud afternoon sir my self Roshan sontakke I have down loaded a setup of >> python-3.5.1 but nt able to install it gives an error message > > Shall we guess what the err

Re: Regarding installation of python-3.5.1

2016-03-06 Thread Steven D'Aprano
On Sun, 6 Mar 2016 05:35 pm, Roshan S Sontakke wrote: > Gud afternoon sir my self Roshan sontakke I have down loaded a setup of > python-3.5.1 but nt able to install it gives an error message Shall we guess what the error message says, or would you like to tell us? -- Steven --

Re: Python 3.5.1 (32-bit)_20160306131105

2016-03-06 Thread Steven D'Aprano
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. -

Regarding installation of python-3.5.1

2016-03-06 Thread Roshan S Sontakke
Gud afternoon sir my self Roshan sontakke I have down loaded a setup of python-3.5.1 but nt able to install it gives an error message -- https://mail.python.org/mailman/listinfo/python-list

Python 3.5.1 (32-bit)_20160306131105

2016-03-06 Thread ????
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. -- https://mail.python.org/mailman/listinfo/python-list

Compilation of Python 3.5.1 fails on Solaris 8 sparc

2016-02-19 Thread bthk55
al/include" export CPPFLAGS LD_OPTIONS='-L/usr/local/lib -R/usr/local/lib' export LD_OPTIONS LDFLAGS='-L/usr/local/lib -R/usr/local/lib' export LDFLAGS CC=/usr/local/bin/gcc OPT="-O2" ./configure --prefix=/opt/soe/local/Python-3.5.1 -- https://mail.python.org/mailman/listinfo/python-list

Compilation of Python 3.5.1 fails on Solaris 8 sparc

2016-02-19 Thread bthk55
AGS LD_OPTIONS='-L/usr/local/lib -R/usr/local/lib' export LD_OPTIONS LDFLAGS='-L/usr/local/lib -R/usr/local/lib' export LDFLAGS CC=/usr/local/bin/gcc OPT="-O2" ./configure --prefix=/opt/soe/local/Python-3.5.1 -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.5.1

2016-01-29 Thread Joel Goldstick
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

Python 3.5.1

2016-01-29 Thread Joel Cotto
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 serial ser = 0 def init_serial(): COMNUM = 1 global ser ser = seria

python 3.5.1 winsound bug

2016-01-08 Thread nick mcelwaine
Dear python team, On my 64bit windows10 the SND_ASYNC flag doesn’t cause the sound to play asynchronously. Nick McElwaine Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

unable to run python 3.5.1

2016-01-06 Thread Kufre Akata
Dear All, Kindly be informed that I downloaded the new python 3.5.1 (32-bit) to install in my machine, after the download and set-up, each time I clicked on the icon to launch the program, it will give me 3 options - modify, repair and uninstall. I needed to launch python and use it to program

Re: Bug in Python 3.5.1

2015-12-24 Thread Laurent Pointal
Hello, nisthesec...@verizon.net wrote: > Dear Sir, >I downloaded and installed Python 3.5.1 in Windows 10. >The pip command was not part of it. >In the future, can you kindly include numpy, scipy, and pygame as part >of the Python release? >I am a teach

Re: Bug in Python 3.5.1

2015-12-24 Thread Cody Piersall
On Wed, Dec 23, 2015 at 6:57 PM, wrote: > Dear Sir, >In the future, can you kindly include numpy, scipy, and pygame as part of >the Python release? >Nick Srinivasan Hello Nick, Any time you want to install a Python package, the first thing you should try is typing "pip install [p

Re: Bug in Python 3.5.1

2015-12-24 Thread Mark Lawrence
On 24/12/2015 00:57, nisthesec...@verizon.net wrote: Dear Sir, I downloaded and installed Python 3.5.1 in Windows 10. The pip command was not part of it. In the future, can you kindly include numpy, scipy, and pygame as part of the Python release? I am a teacher trying

Bug in Python 3.5.1

2015-12-24 Thread nisthesecond
Dear Sir, I downloaded and installed Python 3.5.1 in Windows 10. The pip command was not part of it. In the future, can you kindly include numpy, scipy, and pygame as part of the Python release? I am a teacher trying to teach Python to my students. To get a working version of

[RELEASED] Python 3.5.1 and 3.4.4rc1 are now available

2015-12-06 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 and 3.5 release teams, I'm pleased to announce the simultaneous availability of Python 3.5.1 and Python 3.4.4rc1. As point releases, both have many incremental improvements over their predecessor releases. You can