[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: Exception in pydoc

Florian Ludwig

2/27/2010 9:12:00 AM

On Fri, 2010-02-26 at 13:49 -0300, Ricardo Aráoz wrote:
> Does pydoc only deal with ASCII?

UTF-8 in docstrings works for me.

Maybe:
* Its actually not UTF-8
* The console you're using doesn't support UTF-8 well
(note: I'm on linux, maybe its a problem with windows?)


code >>>
#!/usr/bin/env python
# -*- coding: utf-8 -*-

def foo():
"""Some ütf-8 docstring ? g?f (x)"""
return False
<<<EOF


>>> help(test)
Help on module test:

NAME
test - # -*- coding: utf-8 -*-

FILE
/tmp/test.py

FUNCTIONS
foo()
Some ütf-8 docstring ? g?f (x)



--
Florian Ludwig <dino@phidev.org>