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

Commitccabef7

Browse files
committed
MNT: do not handle case of ax as positional arg in wrapped method
1 parentfdc139d commitccabef7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎tools/boilerplate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,12 @@ def format_value(value):
317317
argspec=join_with.join(text_wrapper.wrap(argspec))
318318

319319
# A gensym-like facility in case some function takes an
320-
# argument named washold, ax, or ret
320+
# argument named washold or ret
321321
washold,ret='washold','ret'
322322
bad=set(args)| {varargs,varkw}
323+
if'ax'isset(args):
324+
raiseRuntimeError("Can not wrap this function it has `ax` "
325+
"as explicit arg")
323326
whilewasholdinbadorretinbad:
324327
washold='washold'+str(random.randrange(10**12))
325328
ret='ret'+str(random.randrange(10**12))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp