Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.sort() Causing Strings to Be Listed on the same line #70216

Closed
HassanMahroof mannequin opened this issue Jan 6, 2016 · 2 comments
Closed

.sort() Causing Strings to Be Listed on the same line #70216

HassanMahroof mannequin opened this issue Jan 6, 2016 · 2 comments
Labels
topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@HassanMahroof
Copy link
Mannequin

HassanMahroof mannequin commented Jan 6, 2016

BPO 26028
Files
  • SortFile2.py: This is the Code I am having problems with (hopefully is isn't my code)
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2016-01-06.22:01:53.559>
    created_at = <Date 2016-01-06.21:33:53.512>
    labels = ['expert-IDLE', 'type-bug', 'invalid']
    title = '.sort() Causing Strings to Be Listed on the same line'
    updated_at = <Date 2016-01-06.22:01:53.557>
    user = 'https://bugs.python.org/HassanMahroof'

    bugs.python.org fields:

    activity = <Date 2016-01-06.22:01:53.557>
    actor = 'SilentGhost'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-01-06.22:01:53.559>
    closer = 'SilentGhost'
    components = ['IDLE']
    creation = <Date 2016-01-06.21:33:53.512>
    creator = 'Hassan Mahroof'
    dependencies = []
    files = ['41520']
    hgrepos = []
    issue_num = 26028
    keywords = []
    message_count = 2.0
    messages = ['257644', '257648']
    nosy_count = 2.0
    nosy_names = ['SilentGhost', 'Hassan Mahroof']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue26028'
    versions = ['Python 3.4']

    @HassanMahroof
    Copy link
    Mannequin Author

    HassanMahroof mannequin commented Jan 6, 2016

    I am a student @ Burnley College and we were learning how to use the .write(), .close(), .readlines() and .sort().

    I have a list of names within a text file which I am trying sort, These are random names generated using my Random Mind. However, when the sorted text file is created, what seems to be under certain circumstances with my list only (or words similar, This bug did not occur within my whole class till I stumbled upon it) it seems to instead of writing each term to seperate lines, it seems to connect two of the words (in this case names) on the same line. I have tried to find a pattern in this madness however being the rookie student I am I can only seem to break things aha. I have attached the 2 files which I am using and Hopefully someone can correct this cause I am confused.

    This is a list of the names:
    Robertas
    Hassan
    Bob
    Connor
    Camera
    Billy
    Maz
    Richard
    Mo

    @HassanMahroof HassanMahroof mannequin added topic-IDLE type-bug An unexpected behavior, bug, or error labels Jan 6, 2016
    @SilentGhost
    Copy link
    Mannequin

    SilentGhost mannequin commented Jan 6, 2016

    Please use stackoverflow or python-tutor list to get help on this.
    https://mail.python.org/pipermail/tutor/

    What it looks like is the problem with your text editor not being able to support EOL characters from a different OS.

    @SilentGhost SilentGhost mannequin closed this as completed Jan 6, 2016
    @SilentGhost SilentGhost mannequin added the invalid label Jan 6, 2016
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    topic-IDLE type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants