avoid pypy's csv module

dear list, i have a problem with pypy's csv module. Apart from it being somewhat slower than cPython's (i could live with that) i am getting rarely but annoyingly corrupted files written, which have some single corrupted lines. I cannot provide enough information (yet) for debugging, it looks like a writing race condition, although i am 120% sure that my program does never more than one writing event at any moment. Everything worked fine in cpython (for years), so my question is, can i simply tell pypy to run my program, but use CPython's implementation of the csv module? thanks, Arno -- Arno Waschk arno@arnowaschk.de +491723149605 +436508950949 (nur während Projekten in Österreich) current and upcoming projects: Wien Burgtheater Goethe: *Faust I* (Repertoire) Matthias Hartmann Berlin Staatsoper im Schillertheater Satie: Le Piège de Méduse --- *Satiesfactionen: Wissen Sie wie man Töne reinigt?* (Repertoire) Jürgen Flimm Neuhardenberg/Leipzig u. a. *Lesungen mit Klaus Maria Brandauer* *Via intolleranza II* Christoph Schlingensief Wien Burgtheater *Mea Culpa* (Repertoire) Christoph Schlingensief Berlin Staatsoper im Schillertheater Maxwell Davies & Sciarrino: *Miss Donnithorne's Maggot // Infinito Nero (Repertoire)* Staatskapelle Berlin Michael von zur Mühlen *franz. Klaviertrios* Bonn Trio Cartier Freiburg *Fanny und Alexander* Regie Julia Hölscher *CRUSOE*Staatstheater Oldenburg Regie: Julia Hölscher *Die weisse Rose*Theater Koblenz Regie: Anja Nicklich *Wie ich Welt wurde (AT)* Oper Zürich Regie: Hans Neuenfels

Hi Arno, On Mon, Aug 31, 2015 at 11:54 AM, Arno Waschk <hamamatsu@gmx.de> wrote:
We'll be waiting for a reproducible example to debug that. In the meantime, well, by trying hard enough you can indeed use CPython's implementation of the csv module. It is going to be very, very, *extremely* slow (because a huge number of objects have to cross the barrier to CPython land). But if you want, you can try to copy from CPython's source code the file Module/_csv.c, write a small setup.py, and compile it with "pypy setup.py build". A bientôt, Armin.

Hi Arno, On Mon, Aug 31, 2015 at 11:54 AM, Arno Waschk <hamamatsu@gmx.de> wrote:
We'll be waiting for a reproducible example to debug that. In the meantime, well, by trying hard enough you can indeed use CPython's implementation of the csv module. It is going to be very, very, *extremely* slow (because a huge number of objects have to cross the barrier to CPython land). But if you want, you can try to copy from CPython's source code the file Module/_csv.c, write a small setup.py, and compile it with "pypy setup.py build". A bientôt, Armin.
participants (3)
-
Armin Rigo
-
Arno Waschk
-
Maciej Fijalkowski