« first day (3516 days earlier)      last day (1418 days later) » 
01:00 - 20:0020:00 - 00:00

8:00 PM
Oh yeah that was it, its working now properly, thanks you.
 
OH, so tempted to add the answer "Yes" to this question on running two processes
 
I have one file called data.py.
It has all the variables needed+Mysql data.

Now if i want to use, what's the best practice?:
Include it to each seperate file that needs those information?
Include it just one time to main python file, and then pass it as parameter to external classes?
 
^ Completely and utterly depends on your use-case (and I'm not answering beyond that - do some research)
 
8:16 PM
@ChrisP Your first option is for making the state available to modules, the second to instances. These are not at all equal options. What do you need the state available to – modules or instances?
 
@Nanoni I'm glad your issue is fixed, but that reference count error is a huge problem that one should never see. It suggests a bug somewhere here, I suspect the Py_DECREF should not be there. So I would still urge you to open an issue with numpy. Try to see if you can repro the issue with your 32-bit windows python using a small demo file.
 
@AndrasDeak if the latest version of numpy is installed and it is still happening (it should have been fixed by the Nov. 2018 fix I linked)
 
Ah, I missed that, good point. Let me check that.
doesn't seem like the same code path to me
Still, your point is very valid. @Nanoni do check please with numpy master first, if possible.
 
Yeah i had older 32bit v.3.7.2 previously when i got the error, now i updated to 64bit v.3.8 and no issues
 
8:31 PM
yeah, I don't remember if that specific fix was the one but I do remember there being a few issues dealing with DECREF
 
@Nanoni The problem is that you're skipping that code path. Anyway, thanks. I'll try to construe a case that reproduces it.
 
@Nanoni Where does the file come from originally? Did you save it using your Mac using 64bit?
 
it is saved on MAC originally yes, but it is a pure binary file, so i dont see how that makes a difference.
Im not sure if the MAC that created the files is 64bit
Oh no wait... its not created on MAC originally, it is created by a old winXP machine thats attached to our AD-converter via serialport
 
May 29 at 14:28, by LinkBerest
fyi - a fun statistic with Windows PCs is to calculate how many are still using XP (its +20% the last time I checked - 3 months ago)
Windows XP will never die!
 
we use a special audio capture card on that machine and it has no drivers on newer systems so have to use XP :)
 
8:40 PM
I'm pretty sure there are systems out there that still run MSDOS or WIn3.1
I wouldn't be surprised if those systems include ones that monitor nuclear missles.
 
Wasn't there an article circulating that the nuclear codes are on floppy disks?
 
@Nanoni just to be sure: you're not going to investigate this bug, right?
 
Im not that proficient with python to be able to do that, so no.
 
OK, I'll open an issue then
 
python bug?
 
8:50 PM
numpy bug
 
cool
always fun to find those
 
definitely a high chance of a DECREF issue (I'm looking at the recent issues right now; haven't seen anything better than that 2018 one)
I'm out for today but if I find something later tonight or tomorrow morning I'll either ping you (or comment on the issue itself) @AndrasDeak
 
OK, thanks
 
9:55 PM
stackoverflow.com/q/62116962/4799172 needs more detail. The traceback doesn't match the code posted and their last comment to me shows that there is something unseen going on
 
wim
10:16 PM
try:
    ...
    return render_template("return.html", ...)
except:
    return render_template("main.html")
adds to ignored tags
 
Ah, c'mon. If you're benchmarking the tag based on the quality of the questions, you might as well add to your list :/ It's the one tag I'm actually trying to save because I've lost hope in many others
 
wim
who thinks "in case of any errors, just render main.html instead"? struggling to imagine a situation where that is ever a good idea
 
It isn't, which is why I called for it to be closed. I also know from anecdotal evidence that I'll struggle to garner CVs from the room because people see Flask and are, rightly, put off by the fact that they don't use the library. But there is an increasing number of bad questions. So I give it my best effort to think around the problem before asking
 
wim
10:32 PM
is not too bad once you filter out rep-1 users, and problematic sub-tags such as pandas and web-scraping
flask is the framework of choice for beginners, that's probably why there are many questions that lack a minimal understanding of web development
 
Python is the programming language for beginners
 
wim
I reckon beginners would be better served (pardon the pun) by choosing a web framework with less magic rather than more
Especially true if they are so new to programming that they don't even recognize which parts are "magic framework stuff" and which aren't
 
Sure, we've debated this before :) I'm just calling attention to "flask is the framework of choice for beginners" when the python tag is suffering much worse still
 
wim
It might be SO as a whole..
 
Have you noticed the number of bountied questions slowly increasing? The signal is being drowned by the noise. You might have your filters, but the real situation is that there's a lot of crap
I'm trying to ride the crest of the wave on Flask and keep the noise down as best I can. Pandas is a gonner, SQL is a gonner, and numpy is starting to leak, though it has complexity on its side for now, to bar the sluice gates :P
 
wim
10:50 PM
hmm, I hadn't noticed, but now that you mention it yes more bounties
 
@wim I just shoved numpy into the SEDE instead of python and the trend is actually just the same, just lower volume. So you might be right on it being across-the-board
 
 
1 hour later…
11:53 PM
I just don't get this attitude:
Enough rope to, well, you know... — Sam 1 min ago
 
01:00 - 20:0020:00 - 00:00

« first day (3516 days earlier)      last day (1418 days later) »