I have a self-deleted question (stackoverflow.com/questions/74987453), I used an old answer to try to solve my problem but the old answer had flaws. None of the existing Q/A I can find in other similar questions marked as duplicate actually solve my issue. I'm not quite sure how to re-write my question that will get my preferred solution. Can anyone help me navigate the re-write and undelete so it will get an answer?
@Code-Apprentice Thank you. I've read that many times. I generally have trouble asking questions when similar questions don't solve my issue (like this time). There are many (11 at my count) similar questions, none of them do what I need. So I may not be able to change the question to pinpoint my question without landing in false duplicate land - or I suppose it's an issue where I'm the only one who can't read the other questions and derive my solution.
@JamesRisner I suggest creating a small example that recreates the problem you are trying to solve. That article has talks about this and has a link to another page that gives more detailed suggestions.
@JamesRisner Linking those other questions and explaining why those solution do not fix your issue is also a good thing to do. Both to prevent people from closing as dupe, help them with getting a feel of the issue, but also so that you get to ask yourself "how is my problem different from that problem", which in turn may make you think about how to make them the same problem.
@sahasrara62 Thanks for thinking about it. It was that configparser converts everything to str, so it was the object string to begin with and consequent operations didn't do what I expected. I changed to a dict of dicts approach
stackoverflow.com/questions/74991915 Someone keep an eye on this please? I suspect I'm right (see comment on the existing answer) about what the question is intended to be, in which case it's potentially answerable but needs major editing in order to ask that question and have a proper example
Neither. I had a sore throat, then the "deadly man-cold" for a week, then low-key sniffles for a week, then the "deadly man-cold" for another week, then low-key sniffles and mild cough. Mostly fine now.
Yeah, I think I must have gotten it some time around November, but I tested negative twice. I just assumed it must have been a regular cold or flu, and I got over the worst of the symptoms within a short period of time (like 4 days), so flu made sense. But then I've had a persistent cough for 6-8 weeks now, so I'm thinking it must have been COVID.
@CodyGray there are multiple variants at the moment, and newer ones keep coming, so it wouldn't surprise me, even if the probability of that happening is slim, that the covid test just didn't work on the variant you had (if you had it).
https://stackoverflow.com/questions/74993357/how-python-knows-which-string-should-be-checked-thru-isdigit-method Do you think the dupe is warranted? I don't think it explains the clue of the question
Sure, the MRE could very well be print(str.isdigit("1234")), but still I think it's pretty clear map is not what they are uncertain about
I guess adding that to dupes would give a more complete picture https://stackoverflow.com/questions/51505666/calling-instance-method-using-class-definition-in-python
Today's pet peeve: questions worded like "Here is some code that works. I made some changes to the code, and now it doesn't work. Why?". They never show the actual code they're running that isn't working.
Presumably the OP of the above post has code that contains password.isdigit, and they ran it, and they saw an error message or unexpected behavior. But they didn't show us any of that.
If I have some sort of persistent data in memory of my Flask app, is there any way for it to not be cleared on debug reload when code changes (without dumping it to file or similiar)?
The flask debug server does seem to stay alive across multiple page loads etc. I'm guessing this isn't necessarily the case for production-quality servers
those 4 processes might hang around for a while... but it's not guaranteed that each worker will handle the same request from each client and will each have their own process memory
I can see how it would be useful to have stronger guarantees of persistence in one's development environment... My guess is that the debug server doesn't have a lot of customizability in that regard
@matszwecja I don't see any harm in doing something with before_first_request and teardown_request (or similar) and just dump/load from a pickle or something for testing
in short - think of it as process runs... handles request... exits... if it's a worker the master process might keep it around for multiple requests but... that's not guaranteed so don't count on it
@JonClements really? Sometimes I feel like only 2-3 people here use django if at all. I was wondering if it good and if you would recommend it. We have a similar custom solution, which is pretty ok. So I wonder if it's worth it to switch to it
I thought it was a neat feature that you could do this obj = MyGeneric[int](), but apparently that throws an error if you don't provide arguments for all TypeVars. Which means your code will go kaboom if MyGeneric ever receives a 2nd TypeVar. RIP forward compatibility
Guess it's back to obj: MyGeneric[int] = MyGeneric()