-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Tutors,
I've written a script to use within XChat (IRC client) and everything is working without issue. The script is a little tool to give an emote command and a handful of general pre written actions. As it is now, the script works. But I've got maybe a dozen emotes in there, using if/elif loops to check against a list of emotes and format a string for display in the channel. But, I also have another dictionary containing duplicate values with text placeholders where a %s would be substituted. I feel that, as the list of available emotes grows, the script will suffer from a poor design. I have thought about pickling or using a file to store the dict or loops, but that only seems like a bandage and there may be a performance issue with potentially hundreds of loops to check through. Ok, so I have posted my script at http://www.baked-potato.us/files/2ndthat.py My question is, would anybody please take a look and offer suggestions on what I may do to improve this script? Thank you, Justin -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPzNYQAAoJEBXz28t2j4R5cmYIAIVIQMJI7HshaV0WqmbUKp1U +vFdLbD52JHs+x4dUwq6DBWdAllauxkm0GW6PGYhHefQZrzRrplTG37Oj+C6czvT pHT6mI1AwXdrQIQab6D0JEPkqIw9kuQormNrUynxwZFSU7M/Z1qmBv0twikwDUVD R3hClBeuVMydLk2DhIuPpgqEO/6ljkN8tK6El5+1vIQFsVRizEX2HVeco7oMz/9x ePedVpEfW4cGpRcFz2gnthzLawoPPmxKc3fTTq29za/tR8eqvUxXY4vjxWWeOr/+ N97Yfdglo1pa4Kir/Ukd+678R/WHZzrqZVRTa4fRZC17cSOU1Pd96L2cqwOCqzs= =0zEs -----END PGP SIGNATURE-----
0x768F8479.asc
Description: application/pgp-keys
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor