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 platon.work
Recipients pablogsal, platon.work
Date 2020-08-31.23:55:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAAKepuW9008kX_hSHTcxMG21pa-a7VhRfV4TGwFJcBPwdPa1rg@mail.gmail.com>
In-reply-to <1598908695.66.0.746583742448.issue41678@roundup.psfhosted.org>
Content
I mean Python's analog of sort [-k x.y] table.txt from GNU Coreutils.

>> What do you refer when you say "sorting a file"?

Sorting a file with multi-line plain text. Optionally, text consisting of
several columns separated by a specific character.

>> What does "key" act upon? Strings representing the lines in the file?

This is a sort rule argument similar to that of the existing in-memory
sort()/sorted() method.

>> For allow_disk_use=False, what's the difference between opening the
file, reading the lines, using sort() and writing the contents?

If False, there is no difference.

вт, 1 сент. 2020 г. в 00:18, Pablo Galindo Salgado <report@bugs.python.org>:

>
> Pablo Galindo Salgado <pablogsal@gmail.com> added the comment:
>
> What do you refer when you say "sorting a file"?
>
> What does "key" act upon? Strings representing the lines in the file?
>
> For allow_disk_use=False, what's the difference between opening the file,
> reading the lines, using sort() and writing the contents?
>
> ----------
> nosy: +pablogsal
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue41678>
> _______________________________________
>
History
Date User Action Args
2020-08-31 23:55:19platon.worksetrecipients: + platon.work, pablogsal
2020-08-31 23:55:19platon.worklinkissue41678 messages
2020-08-31 23:55:18platon.workcreate