Bug 153688 - file open commands give ValueError not seen in shell
file open commands give ValueError not seen in shell
Status: CLOSED WORKSFORME
Product: python
Classification: Unclassified
Component: Code
6.x
All All
: P3 (vote)
: TBD
Assigned To: ardavis26
nbpythonqa
http://www.code-itch.com
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-22 01:02 UTC by Peter Lam
Modified: 2017-06-23 08:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-11-22 01:02:21 UTC
Transferred from https://nbpython.dev.java.net/issues/show_bug.cgi?id=25

The code
self.dfile = open(self.ddefilename , "read")
Gives error

    self.dfile = open(self.ddef , "read")
ValueError: Must have exactly one of read/write/append mode

This line Gives an error when run in nbpython but not when run externally using
python from a shell
Comment 1 Jenselme 2017-06-22 21:41:01 UTC
Not sure it is still relevant with the current version. Closing this as old bug. If this is still a thing, please reopen and accept my apologies.
Comment 2 Jiri Kovalsky 2017-06-23 08:06:33 UTC
Thanks for your evaluation Julien. Reporter, if you think your issue is still valid and needs to be addressed, don't hesitate to reopen it with additional information. Closing for now.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo