[issue36872] passing negative values through modules

Terry J. Reedy report at bugs.python.org
Fri May 10 05:42:52 EDT 2019


Terry J. Reedy <tjreedy at udel.edu> added the comment:

Robert, when posting to this tracker by email, please remove the quote of the previous post.  It duplicates the post itself.

I said exactly what I said, which explained why marking the issue for IDLE was a mistake.  (The same error is a weekly occurrence, by beginners, on stackoverflow.com.)

That aside, you are not passing values through or between modules.  You are passing arguments to a function, which is an object separate from both modules.

I ran your code and got the expected error-free output:

Question 5
['i', 't'] s -1

Steven explained the bug in your code which makes the last print act different from what you probably expect.  Reread what he wrote until you understand.  If I do what he suggested you must have done, I get the error you got.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36872>
_______________________________________


More information about the Python-bugs-list mailing list