You should try the input function. I use it all the time. It does require
the user to hit enter but that is pretty typical of that kind of interface.
So I would write a loop like
while True:
answer = input("Please answer the question (y/n):")
if answer == 'y':
break
Chris
On Sun, Dec 11
Hello,
I have a design question that for me primarily occurs when I have a module
that needs to transition to a package. Lets assume I have module that
services a database. Initially the module just has some functions to pull
data out of the database format them etc. As the project grows I add tab
So it seems counter intuitive but you might also have luck just
reinstalling Python3.8 back over top. If the uninstall was botch then that
should put everything back in place and then you can just run the uninstall
again and see if it clears out this time. Otherwise I agree with stack
overflow you
I agree with dn. While you could scrape the text files each time you want
to display a user from a design perspective it makes more sense to use a
database to store the data. This doesn't mean that you need to get rid of
the text files or change the format that they are written to but instead
that
If you don't want to have to do any layout, Graphviz, which you mentioned,
is probably the best and there are/were Python libraries that will let you
control it to automatically produce files. The whole point of graphviz is
to do all the layout, however my only grip is it doesn't always make the
be
Hello,
We have several internal modules we have developed that are used mostly to
read different types of data files. Most of the time the different data
file formats come with some sort of DLL or SO files that gives a standard
interface to read the files. Our design pattern is to create a python
So I am stuck on a problem. I have a class which I want to use to create
another class without having to go through the boiler plate of subclassing.
Specifically because the subclass needs to have certain class attributes
and I would like to control how those are passed to provide defaults and
such