Re: [Python-Dev] [Python-checkins] cpython: no one passes NULL here (or should anyway)
On Monday 04 July 2011, Benjamin Peterson wrote: > If someone's static analysis tool starts complaining about it, I'd be > happy to consider adding an assert... Here is one! To me an assertion is what actually documents that you don't expect NULL in this context and that the missing check is not an oversight. +1 for assert() Uli ** Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932 ** Visit our website at http://www.dominolaser.com ** Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden. E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich. ** ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] status of absolute_import w/ python 2.7
On Jul 13, 2011, at 02:40 PM, Nick Coghlan wrote: >Now, the what's new for 2.7 doesn't actually *say* we made that change >and I can't find any evidence for it in NEWS either, so I think the >bug is actually in the __future__ module (and docs: >http://docs.python.org/library/__future__). I think that's right. The change was not made for 2.7. -Barry signature.asc Description: PGP signature ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] status of absolute_import w/ python 2.7
Le 13/07/2011 06:40, Nick Coghlan a écrit : > Now, the what's new for 2.7 doesn't actually *say* we made that change > and I can't find any evidence for it in NEWS either, so I think the > bug is actually in the __future__ module (and docs: > http://docs.python.org/library/__future__). I seemed to recall the change was done in 2.6, but I found only that: > C API: the PyImport_Import() and PyImport_ImportModule() functions > now default to absolute imports, not relative imports. This will > affect C extensions that import other modules. http://docs.python.org/dev/whatsnew/2.6#porting-to-python-2-6 Regards ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] Failed to install PIL on windows, may have something to do with python implementaton
I am a programmer with more than two years of python programming experience, often the debugging process may led me to the details of some details of python implementation, this is exciting : ) Now i face a problem, that is i want to install PIL on windows, but failed, the error messages tells that the python installation cannot find python information in the windows register, lol, this is true, since i got a zipped python and extract it the a directory, not using a msi file to install python. So how should i do in order to install PIL for my python environment? I find that PIL installation file is a zipped file with execution capability (is it of 7z format?) Now i can open this exe file using 7z, and there are lots of .py files there, with directory somewhat as follows: PLATLIB PIL\*.py PIL.pth (a plaintext file with content "PIL") SCRIPTS *.py so can i just extrat the py files to my python installation directory? then will PIL work correctly? (should i extract PIL\*.py to python_24\Lib\site-packages, and extract *.py to python_24\Scripts?) Will this work? since this have something to do with the implementation of Python, i come to this maillist and ask for help. Hope i can receive some suggestions, Thank you :) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Failed to install PIL on windows, may have something to do with python implementaton
On Thu, 14 Jul 2011 09:02:01 +0800, smith jack wrote: > Will this work? since this have something to do with the > implementation of Python, i come to this maillist and ask for > help. Hope i can receive some suggestions, Thank you :) Yes, but this list is about the *development* of Python. For help on topic like this, which are about using Python, you'll have better luck getting an answer if you post to python-list. There are also probably a lot more people with experience using Python on windows on that list than there are here. Since we release Python as an MSI, we're not too likely to know how to work with it on Windows if you don't install it from the MSI. -- R. David Murray http://www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Failed to install PIL on windows, may have something to do with python implementaton
smith jack wrote: i want to install PIL on windows, but failed Python-Dev is for discussion of developing the next release of Python. This question should go to python-list, as your last question did. Good luck. ~Ethan~ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com