This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Braiden Gole
Recipients Braiden Gole, josh.r, terry.reedy
Date 2018-05-02.02:41:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CADop9Lxx=dWVUEDfTwK4fzGejxDofiiSV7T-z+MXXLq1-rnEqw@mail.gmail.com>
In-reply-to <1525225227.15.0.682650639539.issue33404@psf.upfronthosting.co.za>
Content
Thanks for the detailed explenation and my apologies. I will contact
Stack Overflow in the future when I have an issue. This is my first report
in the bug section of Python and I now understand the content that needs to
be put under a category like this one.

Thanks: Braiden Gole

On Tue, May 1, 2018, 9:40 PM Josh Rosenberg, <report@bugs.python.org> wrote:

>
> Josh Rosenberg <shadowranger+python@gmail.com> added the comment:
>
> You named your loop variable i, overlapping the name of your second to
> last digit, so you end up replacing the original value of i in each (given
> the break, the only) loop.
>
> So before the loop begins, i has the expected value of '6', but on the
> first iteration, i is rebound to the value of a (the first element in the
> tuple), '5', and your format string uses that value instead. If you removed
> the break, you'd see the second to last digit cycle through all the other
> values as it goes, because i would be repeatedly rebound to each digit as
> it goes.
>
> This is a bug in your code, not a problem with Python; in the future,
> direct questions of this sort to other online resources (e.g. Stack
> Overflow); unless you have a provable bug in Python itself, odds are it's a
> bug in your code's logic.
>
> ----------
> nosy: +josh.r
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue33404>
> _______________________________________
>
History
Date User Action Args
2018-05-02 02:41:05Braiden Golesetrecipients: + Braiden Gole, terry.reedy, josh.r
2018-05-02 02:41:05Braiden Golelinkissue33404 messages
2018-05-02 02:41:05Braiden Golecreate