tag:blogger.com,1999:blog-3971202189709462152.post2414105295687348881..comments2024-03-11T12:50:02.036+01:00Comments on PyPy Status Blog: Pdb++ and rlcompleter_ngCarl Friedrich Bolz-Tereickhttp://www.blogger.com/profile/00518922641059511014noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-3971202189709462152.post-6349839337303815182011-05-05T19:39:41.763+02:002011-05-05T19:39:41.763+02:00I was disappointed that pdb++ doesn't work on ...I was disappointed that pdb++ doesn't work on Windows. Apparently it uses the `termios` module which is not available on Windows.cool-RRhttps://www.blogger.com/profile/09525756972721680643noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-51662350157813291672008-12-10T21:26:00.000+01:002008-12-10T21:26:00.000+01:00Antonio - I created a minor patch for rlcompleter_...Antonio - I created a minor patch for rlcompleter_ng.py which will allow it to run on both Python 2 and 3.<BR/><BR/>http://mikewatkins.ca/2008/12/10/colorized-interpreter/Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-20128009858326402962008-06-27T12:57:00.000+02:002008-06-27T12:57:00.000+02:00@Stephen: as described in the docs of rlcompleter_...@Stephen: as described in the docs of rlcompleter_ng, to use colorized completion you need to use a patched version of readline, there is no chance to get it working without that.<BR/><BR/>Could you describe in more details what problem did you encounter with ~/.pdbrc.py, so that I can fix it, please?Antonio Cunihttps://www.blogger.com/profile/17017456817083804792noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-82223435281117845572008-06-26T11:48:00.000+02:002008-06-26T11:48:00.000+02:00This looks great. You've taken a step futher than ...This looks great. You've taken a step futher than my own attempts here:<BR/>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/498182<BR/><BR/>Two small comments though: it crashes on startup without the right config in ~/.pdbrc.py and once I got it started I see things like this when completing th tab:<BR/><BR/>^[[000;00m^[[00mtest^[[00m<BR/><BR/>but syntax highlighting seems to work perfectly. Thanks!Unknownhttps://www.blogger.com/profile/12785399387131893357noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-32328789721819967772008-06-24T23:00:00.000+02:002008-06-24T23:00:00.000+02:00Nice job antonio. I'd clean the code up, conform ...Nice job antonio. I'd clean the code up, conform to new-style classes and proper MRO handling. I'd also think about refactoring some of those names and find something better suited. Overall, awesome job man.Paulhttps://www.blogger.com/profile/10682571484220242227noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-85538739036609522602008-06-23T17:25:00.000+02:002008-06-23T17:25:00.000+02:00There is readline implementation on top of pyrepl ...There is readline implementation on top of pyrepl in pypy already :) PyPy by default does not use readline, but just uses this.Maciej Fijalkowskihttps://www.blogger.com/profile/11410841070239382771noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-10601455854278869462008-06-23T13:58:00.000+02:002008-06-23T13:58:00.000+02:00would this work be suitable to inclusion in the st...would this work be suitable to inclusion in the standard pdb module?. That would be awesome.<BR/>Thanks!Pachihttps://www.blogger.com/profile/11477900708614203246noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-16380432545659879922008-06-23T13:32:00.000+02:002008-06-23T13:32:00.000+02:00yes, I agree that having to modify readline is not...yes, I agree that having to modify readline is not too nice. I tried hard to avoid this but with bad luck :-/.<BR/><BR/>I suppose I could try to reimplement readline in Python, but I think it would be too much work; if you are aware of something already done, please let me know :-).Antonio Cunihttps://www.blogger.com/profile/17017456817083804792noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-77134694982563535312008-06-22T21:57:00.000+02:002008-06-22T21:57:00.000+02:00That's pretty impressive, but I think having to mo...That's pretty impressive, but I think having to modify readline itself in order to do this is a little excessive. readline's completion capabilities are pretty limited. I wonder if there are any better alternatives that could be used with Python.<BR/><BR/>I have something similar set up for my Python prompt: http://bitheap.org/hg/dotfiles/file/tip/.pythonrc.py -- it allows completion and indentation, it persists command history with readline, and it prints documentation if you try to evaluate certain objects like functions, classes, and methods. It also pretty-prints output, but I'm still trying to tweak it so it's aware of the terminal width.Anonymousnoreply@blogger.com