6 Topics

Member Avatar for
Member Avatar for Saran_1

I am currently troubleshooting a utility that I have been working on. The main file of the utility is below. Please not that `flatten_dict` and `makerows` are seperate files and functions, respectively. My objectives are to: * Recursively traverse a directory - done * Find XML and text files only …

Member Avatar for Saran_1
0
411
Member Avatar for Michael_SB

Lenovo Y480, Win 8.1. Last month a Malware Bytes update started cannibalizing my system, quarantining over 600 driver files, .dlls and assorted stuff. (Earlier part of that story [here](http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/threads/481460/mbam-blocked-and-cant-scan-cant-upate-cant-install-it-again#). I tried to undo everything, and in the process uninstalled MBAM, thereby deleting the quarantined files. My system is full of …

Member Avatar for Michael_SB
0
329
Member Avatar for arty.net

I have written some code just to practice verbosity in python. Verbosity is embedded by means of the ArgumentParser module....however, I'd also like to write the stdout to file also when verbosity is disabled : #!/usr/bin/python from optparse import OptionParser from argparse import ArgumentParser import sys def printable1(): print "1" …

0
185
Member Avatar for vegaseat

Shows you how to get a Python object's memory size. Notice that there can be a difference between Python versions.

Member Avatar for Tcll
3
512
Member Avatar for krystosan

if i try to dump from shell like this `python -c 'help("modules")' > ~/Desktop/modules.txt` but if I try to execute from within the python like this `>>os.system("python -c 'help("modules")' > ~/Desktop/modules.txt")` i get error File "<stdin>", line 1 os.system("python -c 'help("modules")' > ~/Desktop/modules.txt") ^ SyntaxError: invalid syntax once i get …

Member Avatar for krystosan
0
200
Member Avatar for 3e0jUn

So I have a code that prints out the `sys.argv` when the program is ran. How can I parse $ python ./arch.py install * to show `["./arch.py","install","*"]` Instead of `["./arch.py","install",#other files in directory]`?

Member Avatar for deceptikon
0
198

The End.