#71 io.open() won't work on IronPython

v1.0 (example)
closed
nobody
ironpython (1)
5
2014-05-02
2014-04-25
Doug Blank
No

With IronPython 2.7, I had to change drawing.py line 110 from:

fileobj = io.open(self.filename, mode='w', encoding='utf-8')

to:

fileobj = open(self.filename, mode='w')

Related

Bugs: #71

Discussion

  • Paul McGuire
    Paul McGuire
    2014-04-25

    Doug -

    I don't think this is a pyparsing bug - there is no drawing.py file in
    pyparsing, nor in any of the examples. This looks like a change in how
    file-like objects are created in IronPython, which pyparsing is oblivious
    to.

    -- Paul

    From: Doug Blank [mailto:dsblank@users.sf.net]
    Sent: Friday, April 25, 2014 11:54 AM
    To: Ticket 71
    Subject: [pyparsing:bugs] #71 io.open() won't work on IronPython


    [bugs:#71] http://sourceforge.net/p/pyparsing/bugs/71/ io.open() won't
    work on IronPython

    Status: open
    Group: v1.0 (example)
    Labels: ironpython
    Created: Fri Apr 25, 2014 04:53 PM UTC by Doug Blank
    Last Updated: Fri Apr 25, 2014 04:53 PM UTC
    Owner: nobody

    With IronPython 2.7, I had to change drawing.py line 110 from:

    fileobj = io.open(self.filename, mode='w', encoding='utf-8')

    to:

    fileobj = open(self.filename, mode='w')


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/pyparsing/bugs/71/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/


    This email is free from viruses and malware because avast! Antivirus protection is active.
    http://www.avast.com

     

    Related

    Bugs: #71

    Attachments
  • Doug Blank
    Doug Blank
    2014-04-25

    Oops... my bad! It is the library that uses pyparsing. Sorry!

     
  • Paul McGuire
    Paul McGuire
    2014-05-02

    • status: open --> closed