Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit23c0aa2

Browse files
authored
py: fix automatic addition of __doc__ to dict object
Fixes#229.
1 parent95c8e39 commit23c0aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎py/type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ func (t *Type) Ready() error {
10931093

10941094
// if the type dictionary doesn't contain a __doc__, set it from
10951095
// the tp_doc slot.
1096-
if_,ok:=t.Dict["__doc__"];ok {
1096+
if_,ok:=t.Dict["__doc__"];!ok {
10971097
ift.Doc!="" {
10981098
t.Dict["__doc__"]=String(t.Doc)
10991099
}else {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp