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 JHari
Recipients JHari, steven.daprano
Date 2018-01-08.00:21:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAPsjwoDLU1HjBycALpwXb2L89JBACsPeJAABUM=w7cfkQ8uE+Q@mail.gmail.com>
In-reply-to <1515293522.05.0.467229070634.issue32508@psf.upfronthosting.co.za>
Content
Thanks for your sensible advice to produce
    a short, self-contained and correct example.

        Attached is the input file (35 lines, 770 bytes) and log (14 lines)

    Description of the problem and bug:

    The data consists of 6 triplets.

        The code is to group the data according to the pair in each
        triplet.

    In the data, there are just two pairs [1,3] and [2,2]

        With the pair [1,3] the associated third item in the first
        three triplets are 1, 2, 4.

        (This is printed correctly in the first line of the output).

         The bug is seen on the 4th (non-blank) line:

         klists[0] should be [1,2,4] and not as shown.

         I sincerely hope that I am not wasting your time with a
         non-existent bug.

     J. Viswanathan.

On Sun, Jan 7, 2018 at 8:22 AM, Steven D'Aprano <report@bugs.python.org>
wrote:

>
> Steven D'Aprano <steve+python@pearwood.info> added the comment:
>
> It isn't clear to me what bug you are reporting here:
>
> - What do you mean by "problem reading back from a list of lists"? What
> sort of problem?
>
> - What makes you think that there is a bug in the interpreter, rather than
> in your own code?
>
> We aren't going to debug your code for you: if you have found a bug,
> please report the simplest code that shows the bug. You may find it helpful
> to read this first:
>
> http://sscce.org/
>
> Although it is written for Java, the same applies to Python code too.
>
> I'm closing this ticket for now.
>
> If you simplify your code to something that demonstrates a bug in the
> Python interpreter, rather than a bug in your own code, please re-open this
> ticket with a better description of what the problem is, and the shortest,
> simplest demonstration of that problem that you can come up with.
>
> Thank you.
>
> ----------
> nosy: +steven.daprano
> resolution:  -> not a bug
> stage:  -> resolved
> status: open -> closed
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue32508>
> _______________________________________
>
Files
File name Uploaded
hksu.log JHari, 2018-01-08.00:21:39
hksu_copy.py JHari, 2018-01-08.00:21:39
History
Date User Action Args
2018-01-08 00:21:39JHarisetrecipients: + JHari, steven.daprano
2018-01-08 00:21:39JHarilinkissue32508 messages
2018-01-08 00:21:39JHaricreate