Python Forum
conversion of newlines in a string
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
conversion of newlines in a string
#1
what is the best function to convert newlines in a string to Unix style whether in Windows style or Mac style (or a mix of both), all in one function call? i could do this in C in a way that would not be good in Python (picking at characters one by one).
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
conversion of newlines in a string - by Skaperen - Jan-14-2024, 06:20 AM
RE: conversion of newlines in a string - by buran - Jan-14-2024, 02:04 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020