Re: how to detect the encoding used for a specific text data ?

2012-12-20 Thread Stefan H. Holek
On 20.12.2012, at 12:57, iMath wrote: > how to detect the encoding used for a specific text data ? http://pypi.python.org/pypi?%3Aaction=search&term=detect+encoding -- Stefan H. Holek ste...@epy.co.at -- http://mail.python.org/mailman/listinfo/python-list

Re: Lazy Attribute

2012-11-16 Thread Stefan H. Holek
t invalidation anyway in order to write tests. I decided to expose the mechanism to keep users from having to invent their own SHOULD the need arise. I was not advocating invalidation in any way with my reply. All I wanted was to confirm the "least bad" solution. ;-) Stefan -- Stefan H. Holek ste...@epy.co.at -- http://mail.python.org/mailman/listinfo/python-list

Re: Lazy Attribute

2012-11-16 Thread Stefan H. Holek
bility. Putting it on PyPI alone does not cut it, apparently. Stefan -- Stefan H. Holek ste...@epy.co.at -- http://mail.python.org/mailman/listinfo/python-list

Re: Lazy Attribute

2012-11-16 Thread Stefan H. Holek
http://lazy.readthedocs.org/en/latest/ Stefan -- Stefan H. Holek ste...@epy.co.at -- http://mail.python.org/mailman/listinfo/python-list

Re: how-to use readline.set_completion_display_matches_hook()?

2012-11-07 Thread Stefan H. Holek
stdlib's readline bindings. There is a more complete implementation of the GNU Readline APIs at http://pypi.python.org/pypi/rl. With rl you can fix the prompt by calling rl.readline.redisplay(force=True) after the hook has returned. Hope this helps, Stefan -- Stefan H. Holek ste...@epy.co.at -- http://mail.python.org/mailman/listinfo/python-list

Re: How to improve the usability of nested packages

2012-11-02 Thread Stefan H. Holek
direction as well. [2] (Not trying to plug the ZTK here, it just happens to be a large, namespace-using library I know.) Hope this helps, Stefan [1] http://docs.zope.org/zopetoolkit/ [2] http://pypi.python.org/pypi/zope.deferredimport -- Stefan H. Holek ste...@epy.co.at -- http://mail.python.org

Re: lazy properties?

2012-11-02 Thread Stefan H. Holek
gt; is not going to change. > I was trying to generalize it in a @lazy_property but my attempts so far > failed, any help on how I could do that? There is a ready made and well tested lazy decorator at http://pypi.python.org/pypi/lazy Stefan -- Stefan H. Holek ste...@epy.co.at -- http://mail.python.org/mailman/listinfo/python-list

Re: python and Open cv

2012-11-01 Thread Stefan H. Holek
On 01.11.2012, at 09:55, inshu chauhan wrote: > How to load a yml file in python and work with it ?? > Try one of these: http://pypi.python.org/pypi?%3Aaction=search&term=yaml&submit=search -- Stefan H. Holek ste...@epy.co.at -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting lazy with decorators

2012-06-24 Thread Stefan H. Holek
On 24.06.2012, at 03:58, Josh English wrote: > I'm creating a cmd.Cmd class, and I have developed a helper method to easily > handle help_xxx methods. When I need custom help processing I tend to simply override do_help(). Stefan http://pypi.python.org/pypi/kmd -- Stefan H