[pypy-dev] when will pypy support psycopg2?

Yan Chunlu springrider at gmail.com
Sat Jan 7 12:11:00 CET 2012


okay, got it. guess I should take it carefully. thanks a lot for the help!


On Sat, Jan 7, 2012 at 6:59 PM, Maciej Fijalkowski <fijall at gmail.com> wrote:
> On Sat, Jan 7, 2012 at 12:54 PM, Yan Chunlu <springrider at gmail.com> wrote:
>> sorry I somehow replied to your personally, sorry for disturbing.
>> just didn't get used to gmail's new UI....
>>
>> about quora's adoption, brought me a lot confidence. thanks a lot! will test it!
>>
>> I am curious that does it hard for pypy to add those data type?
>> like PyByteArray_Type, PyMemoryView_Type and PyInterpreterState
>
> It's usually a painful experience to add new stuff to cpyext. But
> also, it does not necesarilly give you confidence that it'll work,
> since emulating CPython C API is tricky and tiny problems with
> refcounts can lead to segfaults that don't occur on cpython for
> obscure reasons.
>
>>
>> On Sat, Jan 7, 2012 at 6:44 PM, Maciej Fijalkowski <fijall at gmail.com> wrote:
>>> On Sat, Jan 7, 2012 at 12:39 PM, Yan Chunlu <springrider at gmail.com> wrote:
>>>> okay, thanks! I have installed psycopg2ct and will give a try.
>>>>
>>>> but since my app is serving several millions requests per day, I am
>>>> really worrying if it suitable for production usage.
>>>
>>> You mean because it's relatively new? you should test it and see how
>>> it works, FYI quora moved to the ctypes based new DB binding and they
>>> never complained, seems to be working just fine for them.
>>>
>>>>
>>>> On Sat, Jan 7, 2012 at 6:22 PM, Maciej Fijalkowski <fijall at gmail.com> wrote:
>>>>> On Sat, Jan 7, 2012 at 12:20 PM, Yan Chunlu <springrider at gmail.com> wrote:
>>>>>> thanks for the quick reply.  seems psycopg2 is "An (experimental)
>>>>>> implementation" based on http://pypi.python.org/pypi/psycopg2ct
>>>>>
>>>>> the other way around
>>>>>
>>>>>>
>>>>>> and also, both lib need to make many changes to the code...
>>>>>>
>>>>>
>>>>> they should not, they all support DB API
>>>>>
>>>>>>
>>>>>>
>>>>>> On Sat, Jan 7, 2012 at 6:10 PM, Maciej Fijalkowski <fijall at gmail.com> wrote:
>>>>>>> On Sat, Jan 7, 2012 at 12:07 PM, Yan Chunlu <springrider at gmail.com> wrote:
>>>>>>>> based on the irc chat here:
>>>>>>>>
>>>>>>>> http://www.tismer.com/pypy/irc-logs/pypy/pypy.2011-11-02.log.html
>>>>>>>>
>>>>>>>>
>>>>>>>> PyByteArray_Type, PyMemoryView_Type and PyInterpreterState are missing
>>>>>>>> from the headers. http://codepad.org/FYkhcZKf
>>>>>>>>
>>>>>>>>
>>>>>>>> just wonder is there any schedule about this? I think psycopg2 is
>>>>>>>> crucial for many developers to adopt pypy.  thanks!
>>>>>>>> _______________________________________________
>>>>>>>> pypy-dev mailing list
>>>>>>>> pypy-dev at python.org
>>>>>>>> http://mail.python.org/mailman/listinfo/pypy-dev
>>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>> Use psycopg2-ct or pg8000 instead, those work fine in PyPy.
>>>>>>>
>>>>>>> Cheers,
>>>>>>> fijal
>> _______________________________________________
>> pypy-dev mailing list
>> pypy-dev at python.org
>> http://mail.python.org/mailman/listinfo/pypy-dev


More information about the pypy-dev mailing list