Message115630
| Author |
gkraser |
| Recipients |
gkraser |
| Date |
2010年09月05日.07:36:07 |
| SpamBayes Score |
3.6963982e-05 |
| Marked as misclassified |
No |
| Message-id |
<1283672170.42.0.322683308746.issue9779@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
argparse.ArgumentParser not support unicode in print help.
Example:
# -*- coding: utf-8 -*-
import argparse
import unittest
class Test1(unittest.TestCase):
def test_unicode_desc(self):
h = u'Rus Рус' # unicode
print h # ok
parser = argparse.ArgumentParser(description=h)
parser.print_help() # error |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年09月05日 07:36:10 | gkraser | set | recipients:
+ gkraser |
| 2010年09月05日 07:36:10 | gkraser | set | messageid: <1283672170.42.0.322683308746.issue9779@psf.upfronthosting.co.za> |
| 2010年09月05日 07:36:08 | gkraser | link | issue9779 messages |
| 2010年09月05日 07:36:08 | gkraser | create |
|