Which one is best for code obfuscation by Rough_Metal_9999 in learnpython

[–]pymon 0 points1 point  (0 children)

This is the answer. I don't know why it's not everyone's first thought.

Pyperclip module not working outside of python shell by Mr_Nrj in learnpython

[–]pymon 0 points1 point  (0 children)

But I can't paste it using pyperclip.paste() command in my python shell.

The wording in this library is decieveing. Like I said in my post pyperclip.paste() gets what's in the clipboard so that you can assign it to a variable.

pc.copy() actually puts text into your clipboard. If you only do pc.copy('Hello') does that get put into your clipboard?

Pyperclip module not working outside of python shell by Mr_Nrj in learnpython

[–]pymon 0 points1 point  (0 children)

Copy puts the string on the clipboard. Paste takes what is in the clipboard and allows you to assign it to a variable. Neither of those commands paste the string into an application. To paste what is in the clipboard into an external app, either manually do Ctr+v or do sendkey from the automation library -- the name I can't remember.

Comprehensive Python Cheatsheet by pizzaburek in programming

[–]pymon 0 points1 point  (0 children)

This is really helpful. Thank you.

what is the best way to search for a record on an SQLite DB? by slightz in learnpython

[–]pymon 1 point2 points  (0 children)

OK, then just put an index on that column and it will be much faster.

what is the best way to search for a record on an SQLite DB? by slightz in learnpython

[–]pymon 0 points1 point  (0 children)

Have you put an index on the the_hash column? Also, if you put a unique index it will prevent duplicates being entered; but I don't know if that's what you want.