Re: Explaining names vs variables in Python
Den 02-03-2016 kl. 09:32 skrev Salvatore DI DIO: Hello, I know Python does not have variables, but names. Multiple names cant then be bound to the same objects. So this behavior b = 234 v = 234 b is v True according to the above that is ok But where is the consistency ? if I try : v = 890 w = 890 v is w False It is a little difficult to explain this behavior to a newcommer in Python Can someone give me the right argument to expose ? Regards You may get an answer to your question here: http://stackoverflow.com/questions/2419701/python-object-identity-question As I understand it, when you use 'is', you are comparing addresses to objects, not the values contained in the objects. Use '==' instead. Take a look here as well: https://docs.python.org/3.5/reference/datamodel.html -- Venlig hilsen / Best regards Jesper K. Brogaard (remove upper case letters in my e-mail address) -- https://mail.python.org/mailman/listinfo/python-list
Re: Export
Den 13-03-2016 kl. 00:07 skrev Herbert Müller: Hello, how can I export my .py files to .exe files? Thanks for your support Your Robert Look at pyinstaller or py2exe. I have no experience with either of them. -- Venlig hilsen / Best regards Jesper K. Brogaard (remove upper case letters in my e-mail address) -- https://mail.python.org/mailman/listinfo/python-list
Re: pdf version of python tutorial
Den 13-03-2016 kl. 14:45 skrev kamaraju kusumanchi: Is there a pdf version of the python tutorial https://docs.python.org/3/tutorial/index.html that I can download? The idea is to have everything in one file so I can search easily, be able to work offline. thanks raju Try here: https://docs.python.org/3.5/download.html. I found the tutorial in the zip-file "PDF(A4 paper size)", which contains a lot of PDFs, amongst these many of howto-documents. -- Venlig hilsen / Best regards Jesper K. Brogaard (remove upper case letters in my e-mail address) -- https://mail.python.org/mailman/listinfo/python-list