search for: __cmp__

Displaying 5 results from an estimated 5 matches for "__cmp__".

2004 Aug 21
1
Required Python version?
...on, Jun 23, 2003 at 03:07:12PM +0100, James Aylett wrote: > [R]eally we should be testing which version of Python we're compiling > against ... pre-2.0 definitely won't work because the internal C API > changed, and I suspect we may rely on 2.1 features in some way (__eq__ > vs. __cmp__ comes to mind). Currently the configure test checks for Python 1.5 or newer (because SWIG requires at least that). Should this be changed to 2.0 or 2.1 or what? Cheers, Olly
2012 Dec 04
0
[LLVMdev] Minimum Python Version
...declining, the number of people running python3 will only increase. I believe that 2.6 was the first version that had the __future__ import print_function available, which means that python 2.4 and 2.5 would not be able to use print statements if they are to interoperate with py3k. There is also __cmp__() which has been removed in python3 and I saw in a couple places. The bottom line is that basically every guide to porting/interoperating with python3 starts with "step 1: use python 2.6 at least, ideally 2.7". Given the need to interoperate with py3k, the need to get to 2.6 at least is...
2012 Dec 04
2
[LLVMdev] Minimum Python Version
On 12/04/2012 12:28 AM, Sean Silva wrote: > On Mon, Dec 3, 2012 at 6:56 AM, Tobias Grosser<tobias at grosser.es> wrote: >> The gcc compile farm currently only has python 2.4 and 2.5. I know Duncan is >> using it quiet extensively, especially all dragonegg buildbots run on it. >> >> I very much agree we should ensure our python scripts are valid python 2.7 >>
2008 May 08
1
problem with yumdownload?
...main() File "/usr/bin/yumdownloader", line 159, in main if not pkg in toDownload: File "/usr/lib/python2.4/site-packages/yum/packages.py", line 191, in __eq__ if other == None: File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line 403, in __cmp__ if self.name > other.name: AttributeError: 'NoneType' object has no attribute 'name' [root at pig home]# um... this a bug?
2012 Dec 04
5
[LLVMdev] Minimum Python Version
...e e.g. the six python 2&3 compatibility library http://pypi.python.org/pypi/six, which supports python 2.4. It also provides a generic print statement. Using such a compatibility library could make sense in general. If it does, python 2.4 support may actual not too involved. > There is also __cmp__() which has been removed in python3 and I saw in > a couple places. That is fine. However, I bet that the replacement code that fixes this is valid python 2.4. > The bottom line is that basically every guide to > porting/interoperating with python3 starts with "step 1: use python &...