Meta Class Maybe?

2023-07-22 Thread Chris Nyland via Python-list
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

Re: Does one have to use curses to read single characters from keyboard?

2022-12-11 Thread Chris Nyland
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

Re: Recommendation for drawing graphs and creating tables, saving as PDF

2021-06-12 Thread Chris Nyland
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

Re: Data structure for plotting monotonically expanding data set

2021-06-04 Thread Chris Nyland
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

Re: uninstall

2021-05-04 Thread Chris Nyland
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

Transistion from module to package and __init__.py

2021-05-04 Thread Chris Nyland
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

Package DLL or SO in wheel

2018-05-17 Thread Chris Nyland
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

[issue28074] Add Configuration file parser action

2016-09-10 Thread Chris Nyland
New submission from Chris Nyland: I have recently developed a action for the argparse module that allows arguments to be read in from configuration files. It is different in functionality than the convert_arg_line_to_args in that the file path(s) is passed to the action and then opened