I was working through Programing python by Mark Lutz, and I can get Example 4-1 working under unix (from the 2.0 tar.gz), but when I tried to run this under windows (win98 or win2000) it generates an error. The following error is generated. In unix it expands the *.py to all the associated files. In windows it does not. Why the difference. pack1.py *.py > packed.txt Traceback <most recent call last): File: "C:\Prog_Python\pack1.py", line 19, in ? input = open(name,'r') IOError: {Error 22] Invalid argument:'*.py ---- Script #! /usr/bin/env python # File: pack1.py # Example 4-1 import sys marker = '::::::' for name in sys.argv[1:]: input = open(name, 'r') print marker + name print input.read(),
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4