﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32709	Examples in django.utils.baseconv.BaseConverter's docstring are incorrect.	pythonwood	pythonwood	"
----
NOW:
In fact, I found the right way is patch doc string instead of code.

I have a simple right (new) pull in gihub 14344  [https://github.com/django/django/pull/14344]


----
BEFORE:

I have a simple pull in gihub  # 14339 
[https://github.com/django/django/pull/14339/commits/86e0ec9df0b5ed7a9160c10974bf1adef19eb539]


{{{
def encode(self, i):
      neg, value = self.convert(i, self.decimal_digits, self.digits, '-')
}}}


try and know that arg '-' should be self.sign:  


{{{
In [1]: from django.utils import baseconv

In [2]: base11 = baseconv.BaseConverter('0123456789-', sign='$')

In [3]: base11.encode('$1234')

ValueError: substring not found
}}}

"	Bug	closed	Utilities	3.2	Normal	fixed	utils	wuweishun@…	Accepted	1	0	0	0	1	0
