Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lists to strings
#6
My first thought is that a dict would work. Have the key be the author name, and the value a list of titles. Or a list of tuples of (title, file_path, category, whatever).

My second thought is that if you are doing file operations you will want to look at the os and pathlib libraries.

My third thought is that I would expect the file transfers to be more of a bottle neck than a DB. There are DB modules for the typical SQL suspects and some others.

Note that dir(collections) won't work until you import collections. And learn to love the docs.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Lists to strings - by millpond - Jul-29-2019, 12:20 AM
RE: Lists to strings - by ichabod801 - Jul-29-2019, 01:14 AM
RE: Lists to strings - by millpond - Jul-29-2019, 08:15 PM
RE: Lists to strings - by ichabod801 - Jul-29-2019, 09:02 PM
RE: Lists to strings - by millpond - Jul-31-2019, 08:06 PM
RE: Lists to strings - by ichabod801 - Aug-01-2019, 01:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Strings inside other strings - substrings OmarSinno 2 4,471 Oct-06-2017, 09:58 AM
Last Post: gruntfutuk

Forum Jump:

User Panel Messages

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