[pypy-dev] Problems in connecting C++ and python with cppyy

2013-05-23 Thread Xia Xin
Hi, When I use cppyy to connect the C++ with the python, I got a failure. Following this page, https://pypy.readthedocs.org/en/improve-docs/cppyy.html Define a new class $ cat MyClass.h class MyClass { public: MyClass(int i = -99) : m_myint(i) {} int GetMyInt() { return m_myint; } v

Re: [pypy-dev] Python 3 ...

2013-05-23 Thread Massa, Harald Armin
> > I guess I just have to remember: use 4 dots, never 3. which goes great with indention, you shall use 4 spaces to indent, never 3. Harald -- GHUM GmbH Harald Armin Massa Spielberger Straße 49 70435 Stuttgart 0173/9409607 Amtsgericht Stuttgart, HRB 734971

Re: [pypy-dev] Fail to compile psycopg2

2013-05-23 Thread Steve Kieu
Thanks, It install cleanly (have not tried to test by making some connection etc.. but hopefuly all good) The MySQL-python works though cheers On Fri, May 24, 2013 at 3:40 PM, Alex Gaynor wrote: > Hi Steve, > > In general you probably want to avoid C-extensions when running under > PyPy. In t

Re: [pypy-dev] Fail to compile psycopg2

2013-05-23 Thread Alex Gaynor
Hi Steve, In general you probably want to avoid C-extensions when running under PyPy. In this case I reccomend using psycopg2cffi instead: https://pypi.python.org/pypi/psycopg2cffi it's basically a drop-in replacement and works well under PyPy. Alex On Fri, May 24, 2013 at 1:36 AM, Steve Kieu

[pypy-dev] Fail to compile psycopg2

2013-05-23 Thread Steve Kieu
Hello All, I tried to install psycopg2 but failed with the following message building 'psycopg2._psycopg' extension cc -O2 -fPIC -Wimplicit -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.5 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x090109 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQF

Re: [pypy-dev] Python 3 ...

2013-05-23 Thread Alexander Belopolsky
On Thu, May 23, 2013 at 7:00 PM, Armin Rigo wrote: > > I guess I just have to remember: use 4 dots, never 3. .. or 2 :-) ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] Python 3 ...

2013-05-23 Thread Paulo Köch
I'll save a google search to a lot of people. http://docs.python.org/dev/library/constants.html#Ellipsis http://stackoverflow.com/questions/772124/what-does-the-python-ellipsis-object-do ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.or

[pypy-dev] Python 3 ...

2013-05-23 Thread Armin Rigo
Hi all, Unrelated to everything, a comment about Python 3's unrivalled syntax. You can now be hesitant in your programs! Try it out: if len(x) > 0 and... and... and x[0] == 5: More seriously, I'm used to type "..." somewhere to mean "fix me first!". I didn't move to Python 3 so far, but if