@@ -259,16 +259,16 @@ def english_upper(s):
259
259
return uppered
260
260
261
261
262
- #each entry in defdict is a Ufunc object.
262
+ # each entry in defdict is a Ufunc object.
263
263
264
- #name: [string of chars for which it is defined,
265
- # string of characters using func interface,
266
- # tuple of strings giving funcs for data,
267
- # (in, out), or (instr, outstr) giving the signature as character codes,
268
- # identity,
269
- # docstring,
270
- # output specification (optional)
271
- # ]
264
+ # name: [string of chars for which it is defined,
265
+ # string of characters using func interface,
266
+ # tuple of strings giving funcs for data,
267
+ # (in, out), or (instr, outstr) giving the signature as character codes,
268
+ # identity,
269
+ # docstring,
270
+ # output specification (optional)
271
+ # ]
272
272
273
273
chartoname = {
274
274
'?' : 'bool' ,
@@ -396,7 +396,7 @@ def english_upper(s):
396
396
TD (O , f = 'PyNumber_Multiply' ),
397
397
indexed = intfltcmplx
398
398
),
399
- #'true_divide' : aliased to divide in umathmodule.c:initumath
399
+ # 'true_divide' : aliased to divide in umathmodule.c:initumath
400
400
'floor_divide' :
401
401
Ufunc (2 , 1 , None , # One is only a unit to the right, not the left
402
402
docstrings .get ('numpy._core.umath.floor_divide' ),
@@ -1382,7 +1382,7 @@ def indent(st, spaces):
1382
1382
}
1383
1383
}
1384
1384
1385
- #for each name
1385
+ # for each name
1386
1386
# 1) create functions, data, and signature
1387
1387
# 2) fill in functions and data in InitOperators
1388
1388
# 3) add function.
@@ -1570,7 +1570,7 @@ def make_ufuncs(funcdict):
1570
1570
typenum = f"NPY_{ english_upper (chartoname [c ])} " ,
1571
1571
count = uf .nin + uf .nout ,
1572
1572
name = name ,
1573
- funcname = f"{ english_upper (chartoname [c ])} _{ name } _indexed" ,
1573
+ funcname = f"{ english_upper (chartoname [c ])} _{ name } _indexed" ,
1574
1574
))
1575
1575
1576
1576
mlist .append (r"""PyDict_SetItemString(dictionary, "%s", f);""" % name )
0 commit comments