#38 PySerial readline io.RawIOBase eol not supported

Brad Buran

It appears that PySerial 2.5 now uses io.RawIOBase for readline/readlines support. My code currently relies on specifying an eol parameter (\x03) to readline. Since io.RawIOBase does not support this keyword, the upgrade to v2.5 broke my code. It appears that FileLike does support the eol parameter. Will FileLike be going away anytime soon, or could we continue to rely on this class for legacy support?


  • Chris Liechti

    Chris Liechti - 2011-03-19

    Yes it uses the io module when available, which has a different readline.

    FileLike is only used when the io module is not available. It will be there as long as pySerial supports older Pythons than 2.6. There is currently no plan to change that.

    Alternative readline functions could be provided as mix-in class or as part of a helper module. But there is currently no plan to actually implement this.

  • Chris Liechti

    Chris Liechti - 2011-03-19
    • status: open --> pending
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

  • SourceForge Robot

    • status: pending --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks