This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 153688

Summary: file open commands give ValueError not seen in shell
Product: python Reporter: Peter Lam <petersl>
Component: CodeAssignee: ardavis26 <ardavis26>
Status: CLOSED WORKSFORME    
Severity: blocker CC: Jenselme
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://www.code-itch.com
Issue Type: DEFECT Exception Reporter:

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.