Bugs item #1603336, was opened at 2006-11-26 20:08 Message generated for change (Comment added) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1603336&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Interpreter Core Group: Python 2.5 >Status: Pending >Resolution: Works For Me Priority: 5 Private: No Submitted By: Gibholio (gibholio) Assigned to: Nobody/Anonymous (nobody) Summary: f=open fails with TypeError Initial Comment: I've found that Python 2.5 halts, giving a TypeError, when opening a file to write to. This is the error (path is shortened for compactness): Traceback (most recent call last): File "C:\...\BatchGen.py", line 32, in <module> f=open('ImGen.bat', 'w') TypeError: an integer is required I noticed that calling an external command via os.system() would always make the error occur, but now it is happening all the time. I've tried this on two machines, both running Windows XP SP2. ---------------------------------------------------------------------- >Comment By: Georg Brandl (gbrandl) Date: 2006-11-26 20:47 Message: Logged In: YES user_id=849994 Originator: NO This looks a bit fishy to me. Are you sure that "open" isn't bound to something else in your script? (Try replacing it with "file" for a start) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1603336&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com