[issue30135] default value of argument seems to be overwritten

2017-04-22 Thread Steven D'Aprano
Steven D'Aprano added the comment: In the future please don't post binary files containing source code, especially something as non-standard as 7z. That just makes it difficult for people to review the code. Either paste your code snippet directly into the bug report, or attach it as a .py fil

[issue30135] default value of argument seems to be overwritten

2017-04-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is correct behavior. You just made a common mistake made by newcomers. Read Python FAQ and other resources, this can help you to avoid other pitfalls. -- ___ Python tracker

[issue30135] default value of argument seems to be overwritten

2017-04-22 Thread Klaus Wolf
Klaus Wolf added the comment: A documented misbheavior is still a misbehavior. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30135] default value of argument seems to be overwritten

2017-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See "Why are default values shared between objects?" in Python FAQ (https://docs.python.org/3/faq/programming.html#id13). -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed

[issue30135] default value of argument seems to be overwritten

2017-04-21 Thread Klaus Wolf
New submission from Klaus Wolf: Two function results differ if the parameter is given explictly instead of using the given default. (Enclosed example: A small simple interpreter of Forth language, both scripts should give the same result, but the first one (variant1) fails because the value f