Ok, I solved the problem, the patch works great (thanks Thomas) but the
problem was a conflict with the python 2.6 library from which the
readline.py module was loaded. Is it normal that it happens or it a problem
of my configuration?

I solved by using the sys.path.insert(0, "path of the pypy_lib in my drive")
but I wonder if there is a better way so that I don't need to add that line
every time.

Thanks,

P



2011/6/10 Paolo Basso <pa.ba...@gmail.com>

> Thanks for your help, I tryed to add the patch but still have the same
> problem...
>
> Attached are the msvcrt module as I modified it and the code I tryed to
> run.
>
> P
>
>  2011/6/8 Amaury Forgeot d'Arc <amaur...@gmail.com>
>
>> Hi,
>>
>> 2011/6/8 Paolo Basso <pa.ba...@gmail.com>:
>> > if msvcrt.kbhit():
>> > AttributeError: 'module' object has no attribute 'kbhit'
>>
>> The msvcrt module is implemented in pure Python (in pypy_lib/msvcrt.py)
>> This function seems easy to add.
>> Patches are welcome!
>>
>> --
>> Amaury Forgeot d'Arc
>>
>
>
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to