Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #2K
~6K People Reached
Favorite Forums
Favorite Tags

8 Posted Topics

Member Avatar for nosehat

Is there an easy way to modify the contents of a zip file inside the archive, without unpacking everything to a temp directory, making the change, then packing it all up again? I've got a whole bunch of zip files, each one with a bunch of plain text files (html, …

Member Avatar for nosehat
0
1K
Member Avatar for boiishuvo

Lines 11 and 12 put "****" between every single character. Other than this, is the output what you expect? By the way, you may want to look at the BeautifulSoup Python library for working with html files (and extracting text from them).

Member Avatar for boiishuvo
0
448
Member Avatar for inuasha

Depending on your operating system, there are a couple of ways. Start with [CODE]import os[/CODE] in your script. If you are on Linux (also Mac [I]I think[/I]) you can do: [CODE]os.system("clear")[/CODE] to clear the terminal screen. If you are on Windows you can do: [CODE]os.system("cls")[/CODE] Note that these probably won't …

Member Avatar for Gribouillis
0
217
Member Avatar for spyhawk

So it looks like you are writing a function to see if the areas of the pictures are the same? (x is the area of pic, and y is the area of pic1) Simply end your function with [CODE]return(x==y)[/CODE] This will return True or False.

Member Avatar for Lucaci Andrew
0
261
Member Avatar for nosehat

What is the procedure in Python for opening a very large binary file in read/write mode, and overwriting individual bytes or sequences of bytes? I'm working with huge files that are many GB, and I would like to seek(arbitrary_long_integer), and overwrite what's there (instead of appending or inserting). I need …

Member Avatar for richieking
0
4K
Member Avatar for nosehat

Hi All-- I am working with zip archives, using the [URL="http://docs.python.org/library/zipfile.html"]zipfile module[/URL] to extract all the files with certain file extensions from each zip. In these zip archives the files I'm after all have their own path information, but I would like to extract the files I want into one …

Member Avatar for nosehat
0
166
Member Avatar for rotexhawk

Yes, this is the problem: TypeError: 'str' object does not support item assignment Make your word a list of single character strings as tonyjv suggests, and you shouldn't have to change any of your other code.

Member Avatar for rotexhawk
0
359
Member Avatar for nosehat

I am working on a project where I need to parse a bunch of user text that comes in different fields. The problem is that the user input doesn't always come in on the same fields. One user might have a name in field 3 and a date in field …

Member Avatar for richieking
0
130

The End.