How do I handle #
I need to write out a file containing the # comment. When I try to specify it as part of a literal, everything afterward turns into a comment. I finally created a file containing the #, read it in, and used the resulting variable as part of the string I created. But that is so kludgy, even a newbie like me is ashamed to use it, though I did. Supposedly, I can us \x followed by the hex equivalent and somehow make that work. Can anybody give an example of this; my attempts failed. Or is there something simpler? There must be. -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I handle #
On Sat, 25 Mar 2006 07:06:59 +0100, Fredrik Lundh wrote: > Michael Sperlle wrote: > >> I need to write out a file containing the # comment. When I try to >> specify it as part of a literal, everything afterward turns into a >> comment. > > "turns into a comment" in what sense ? from your description, it sounds > like a bug in your editor's syntax highlighter. Python itself definitely > won't look for comment markers inside string literals. > Thanks, I just tried it again and it worked. I must have had a misplaced bit. -- http://mail.python.org/mailman/listinfo/python-list
Menu For The Command Line?
When I bring up the command line interface, it looks like: [EMAIL PROTECTED] Then I type in some command, and it works! But there are lots of commands to type in, and I find it more and more difficult to remember them. Is there any way to build a menu of frequently-used commands, so that when I bring up the command line interface, I can see this menu and be reminded of what command does what? -- http://mail.python.org/mailman/listinfo/python-list
Re: how to comment lot of lines in python
What's wrong with using three sets of double-quotes? I do it with kwrite and it works like a charm. -- http://mail.python.org/mailman/listinfo/python-list
Using Python To Create An Encrypted Container
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would cause. If I could create a large file that could be encrypted, and maybe add files to it by appending them and putting in some kind of delimiter between files, maybe a homemade version of truecrypt could be constructed. Any idea what it would take? -- http://mail.python.org/mailman/listinfo/python-list
Re: Using Python To Create An Encrypted Container
On Sun, 16 Apr 2006 08:11:12 -0700, Paul Rubin wrote: > Michael Sperlle <[EMAIL PROTECTED]> writes: >> If I could create a large file that could be encrypted, and maybe add >> files to it by appending them and putting in some kind of delimiter >> between files, maybe a homemade version of truecrypt could be >> constructed. Any idea what it would take? > > If by container you mean a user-level file system with transparent > encryption, there are a bunch of ways to do it, but it's system hacking, > Python doesn't come into it much. If you just want an encrypted archive, > then put your files into a normal zip file and encrypt the zip file. I've tried that, but the encryption and decryption take a long time compared to opening/closing the container, once it's made. The only other thing I can think of is making it non-readable for anyone except root, but have the feeling that's not too secure. -- http://mail.python.org/mailman/listinfo/python-list
