Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyutils module
#7
(Oct-04-2016, 07:39 PM)nilamo Wrote:
Quote:
if version_info[:3] >= (3,4,0):
    from base64         import a85decode, a85encode

...but then you never use the imported functions?  And they're also undefined, if you're using an older version of python?

is importing a function and not using it in the module considered bad?

i used to have a separate module just to import frequently used functions.  i merged that module because there were a lot of imported functions that were the same.  i wanted to have just one import in my other code so i merged them. then i made the base64 stuff more consistent by filling in the gaps for encode/decode.  i have yet to figure out the difference between a85... and b85...  i decided to include both, but maybe i don't need to.  if the a85 functions would be less often used in other code or a85 is an odd encoding then i would be inclined to remove them.  but i would not remove the version test. is that an issue?

(Oct-04-2016, 07:58 PM)metulburr Wrote: I made a new help doc...i know this is going to be asked numerous times in the future.
http://python-forum.io/misc.php?action=help&hid=32


:s

the difference between the code inserts was a typo ("b64" where it should have been "b85" on line45).  if i had been able to edit the inserted code, i would be fixing a typo. but code could be considered different; someone may have already downloaded the bad one.

a discussion around code (or documentation) might be good to have a wikipedia style history flow so everyone can see all the changes. but i have seen no forum with this feature. maybe a parallel wiki.python-forum.io would have uses.

the new way to display code is nice.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.


Messages In This Thread
pyutils module - by Skaperen - Oct-04-2016, 02:19 AM
RE: pyutils module - by Skaperen - Oct-04-2016, 04:48 AM
RE: pyutils module - by nilamo - Oct-04-2016, 07:39 PM
RE: pyutils module - by Skaperen - Oct-05-2016, 04:25 AM
RE: pyutils module - by nilamo - Oct-05-2016, 02:34 PM
RE: pyutils module - by Skaperen - Oct-06-2016, 12:33 AM
RE: pyutils module - by metulburr - Oct-04-2016, 07:49 PM
RE: pyutils module - by nilamo - Oct-04-2016, 07:53 PM
RE: pyutils module - by metulburr - Oct-04-2016, 07:58 PM
RE: pyutils module - by metulburr - Oct-05-2016, 11:43 AM
RE: pyutils module - by Mekire - Oct-08-2016, 02:24 AM
RE: pyutils module - by Skaperen - Oct-08-2016, 03:34 AM
RE: pyutils module - by Mekire - Oct-08-2016, 06:43 AM
RE: pyutils module - by Skaperen - Oct-08-2016, 07:05 AM
RE: pyutils module - by Mekire - Oct-08-2016, 04:48 PM
RE: pyutils module - by wavic - Oct-08-2016, 08:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pyutils.py Skaperen 8 6,387 May-09-2020, 01:22 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020