« first day (2351 days earlier)      last day (2597 days later) » 
01:00 - 19:0019:00 - 00:00

1:04 AM
hi guys, was wondering if anyone can share an example will me how I mock stub the constuctor method. I have a classmethod that behaves like a "builder" for the class, I need to check if constuctor is actually being called
 
 
2 hours later…
3:06 AM
I was just browsing stackoverflow for funny questions, and then found this stackoverflow.com/questions/29584581/…
That answer is just... terrible
 
3:41 AM
Not sure whether it's funnier that it's unnecessarily O(n²), or funnier that it's still way better than the famous O(2ⁿ) naïve recursive algorithm.
 
 
1 hour later…
4:41 AM
Oh I remember, once I was told "to write fibonacci calculation in a recursive way". - Instinctively I made it a functor with state that was a lookup table for fib(n) while it calculated....
Lost many points due to unable to finish it in time.
 
5:15 AM
Has anybody tried association rule in Python?
 
@paul23 And the indentation is broken. FWIW, the author is still active, so they may respond to a comment.
@ZeroPiraeus That 2^n algorithm is ok if you use a memoizing cache. Of course, the simple iterative algorithm is cleaner, but if for some weird reason you need lots of Fibonacci numbers you ought to memoize anyway, or at least build a table. And I guess people who want a recursive Fibonacci want it because they're learning recursion, so they can't use an iterative algorithm.
 
If you use a memoizing cache, it's not 2ⁿ any more though, is it? ;-P
… or naïve, for that matter. Memoization is definitely one of those things that marks a loss of innocence in a programmer, I reckon.
I actually really like the fib(n-2) + fib(n-1) algorithm. It has the profundity of a koan.
 
5:32 AM
@ZeroPiraeus I guess not. :) This was a fun Fibonacci question. Pity the OP accepted a bad answer. stackoverflow.com/questions/40682947/fibonacci-in-python
 
Anybody knows where I can download accurate geojson files for whole world?
 
Using the matrix form is fun, although it's a bit slow for small n. At least, it's slow in Python, I haven't bothered testing it in other languages like C because you need some kind of bignum capability to make it worthwhile.
 
Oh, matrix forms for recursive functions: seems similar to how differential equations can be written linearly using a matrix notation.
Btw "Memoization" seems like an expensive word for "common sense"....
Take for example "calculating the next prime number" problem: no one in their right mind would divide by all numbers, rather they know they only have to divide by the already found primes.
 
5:58 AM
You may not have access to already found primes, but you may be able to get by with potential primes that contain all primes along with a small percentage of composites, eg stackoverflow.com/a/26440674/4014959
Yes, "memorization" is a big word, but it's useful jargon because it's fairly specific. But in extended discussion, once it's established that we're talking about memorization I tend to switch to "caching".
 
Time to curl up in bed with interstellar economics and robot mermaids. rbrb …
 
6:17 AM
recbg
 
cbg
 
6:37 AM
Grrr. I meant to say "memoization" in that last message but my phone auto-corrected it. :(
Here's a good quote for those who dive straight into using a complex framework before they've mastered the core language: "Perilous to us all are the devices of an art deeper than that which we possess ourselves." - J.R.R. Tolkien
 
 
2 hours later…
9:03 AM
there is any mongodb room?
to share problems
 
9:42 AM
Is there anyone present who knows how to connect Solr with the Python ?
 
Friday cabbage, all
@PM2Ring "using a complex framework before they've mastered the core language" would seem to describe about 50% of the Django community
 
hey \o @holdenweb
 
Hi @AndyK. 32 days to go and counting ...
 
I need holidays me too
 
9:58 AM
well I do get a few days off, but I'm actually talking about the end of my current employment
 
10:13 AM
@holdenweb Cbg! Moving on?
 
@holdenweb Indeed, but it also seems to happen a lot with OpenCV, most GUI frameworks, neural network stuff, etc, and to an extent with Numpy and SciPy.
May 31 '16 at 12:12, by PM 2Ring
Also, don't try to learn Python & Django at the same time. Get comfortable with core Python first, and then start learning Django. Otherwise, you're likely to misunderstand lots of stuff. So many bad Django questions on SO come from people who tried to learn Django without learning Python first.
 
...tensorflow, matplotlib, seaborn, requests...
I was goingto say it's the modern way, but that a) makes me sound like an old fogey b) is patently untrue as Tolkien recognised it.
 
Mar 10 at 17:45, by holdenweb
I put my notice in towards the end of January, and leave in April. Going to be the CTO of a stress-management company ...
 
Ah, I'm out of touch. Hardly on here at the moment. Stress management, eh? Might have a few new clients around here.
 
:)
 
10:18 AM
@holdenweb omg ! that violent ???
 
Also,
Sep 24 '16 at 13:13, by PM 2Ring
All GUI framework docs assume that the reader is competent in core Python, so you will have problems understanding those docs & using the framework properly if that's not the case.
As you can see, this is an important issue for me. We get so many bad questions on SO because of this, and it's hard to help the OP properly because they simply don't have the fundamental knowledge required to understand the cause of their particular problem, or the appropriate solution. They just want code that they can use in their cargo-cult fashion.
 
Yeah, it's definitely frustrating. I'm a learner that likes to work things through from simple fundamentals, so this jumping in at the high end makes my brain hurt anyway. I find it hard to understand how people even try it.
I wonder if it's something fundamental where the penny hasn't dropped that all the things can be built out of smaller, simpler sub-steps.
Maybe that's just because I've been seeing too much misunderstanding of simple mathematical concepts of late.
 
10:43 AM
It's like they don't really want to know stuff, they just want to do stuff. You get paid for what you accomplish, not for the knowledge you used to do it.
OTOH, if you have the right qualifications you can demand a high fee for your services. ;)
But all is not lost - some people still get a buzz from learning stuff
Wow!! learned something new from your Answer. — Abhishake gupta 56 mins ago
 
Yeah - that's the good stuff :)
 
nowadays, loads of people want everything, now. Mastery takes time and drudge
 
Mmm, based on fees, my qualifications must not be the right ones...
 
blame it on capitalism, quick and high yields , the art of taking his time is getting lost. @JRichardSnape, you can make a living out of it, regardless you have the quals or not
 
10:59 AM
Oh yeah, don't worry, I am not in danger of starvation. TBH, I blame nearly everything on capitalism, so I can add this to the pile ;D
 
It's a crime that teaching is generally so poorly paid.
 
true @PM2Ring
In France in the last century, teachers were as much considered as priests , mayors or landowners, in term of social status
 
"Arrogance in computer science is measured in nano-Dijkstras." - Alan Kay
 
11:19 AM
I'm voting for @pm2 and @andy as my next pay review board :)
 
Vilanayur Ramachandran said something very interesting once
he said look for ideas that are weird almost like innocuous but can spawn a whole new industry
like Wrigley chewing gum
 
1pa
11:35 AM
hello what is the equivalent function pg_escape_bytea of php in python?
And one more thing, I want to insert data in a bytea collumn(postgres). I generate a output of type <class 'bytes'> in python3 . Can i insert this without needed for escape bytea right, ?
 
cbg
 
11:52 AM
@1pa cbg
 
Morning cabbage
 
cbg
 
So who will get the IPv6 address dead:beef:dead:beef:dead:beef:dead:beef?
random questions I have after learning new things
I'm hoping that dead::dead point to mortuaries and things, because that's just apropos.
 
the good old dead beef test of comprehension, mhmm *nods knowingly*
 
> So to send a packet to me, any computer on my local network can write 3c:97:ae:44:b3:7f on it, and it gets to my computer. In AWS, “local network” basically means “availability zone”. If two instances are in the same AWS availability zone, they can just put the MAC address of the
target computer on it, and then the packet will get to the right place. It doesn’t matter what IP address is on the packet!
well, that's crazy
What I'm learning this morning
 
12:27 PM
@JRichardSnape More likely true that, based on your experience, your fees aren't the right ones ...
@AndyK Chewing gum is an irresponsible product. If the "polluter pays" principle were followed, they'd never be able to charge enough to allow them to remove the discarded gum from sidewalks all over the world (except Singapore)
 
chewing gum doesn't pollute the world; people do :PP
 
@WayneWerner But that's not how IP is supposed to work - the stack should determine the destination physical address using ARP, which requires both hosts to be on the same subnet
(unless you actively maintain an ARP relay agent that lies and forwards the resulting traffic)
 
I'm pretty sure that's what AWS does - at least that's what it sounds like :)
 
unless subnets are bridged (a layer-2 routing technique) I can't see any way to avoid that sort of rigmarole
 
1:04 PM
@AndrasDeak agreed
 
I should learn how networks work.
 
*how netswork
 
You take a cable and you put each end in a different computer, and then ~*~magic occurs~*~ and that's how you get Game Of Thrones in 1080p.
 
I don't like GoT
 
I'm not a networking kind of guy, I tend to stay home. :P
 
1:08 PM
I deduce the time it takes for me to commute and that's what I consider to be my networking time
 
I liked the first season of GoT, but not enough to keep watching it
The last "prestige" show I watched religiously was LOST and I think that was just because my friend would host a viewing party and I like spending time with my friend.
 
you sum up up the story of my life with that short image
 
Alternate obligatory link (mildly nsfw audio)
 
lol:D
haven't seen that one yet
 
Trying to think of a tactful way to tell OP of how to insert column names in table using python? that he could learn to do that within the first ten minutes of reading literally any mysql tutorial
 
1:19 PM
\o cbg :D
 
o/
 
I'm only holding back on the off-chance he'll reply "no, I know how to insert values into a table. I want to insert names into my table" and then he'll give a perfectly eloquent explanation of why his problem truly isn't trivial and then I'll feel bad for condescending
 
want me to do it for you :D
bad cop good cop style :D ?
but either way it's OP's fault for not providing a clear question :(, you shouldn't have to guess what the issue is.
 
Nah, I don't want to sic anyone on anyone else. It's bad enough when I decide my comment was uncharitable and delete it; imagine if I didn't have a delete button at all.
You are, of course, free to do as you please, but I don't want to be in the chain of responsibility
 
that's the point, you don't struggle because there's no way you can delete it, just let it happen ;)
 
1:26 PM
Hmm, just noticed (thanks to my slow-ass internet connection) that that's animated.
 
@Kevin every time the "Let Go" prompt shows up while playing Breath of the Wild, I crack up because that picture is all I can think about.
And it shows up a lot, because you're climbing everywhere.
 
Everyone these days is talking about Zelda and it's tempting me to buy a Switch but it's the worst possible time for me to be spending money irresponsibly because I'm trying to move to a new place
(approximately two miles from my current place, but that's neither here nor there)
 
Do you have a Wii U?
 
Nope, last console I bought was the Wii.
 
I don't think buying a Switch just for Zelda is worth it. It's fun, and worth the price of the game, but not the whole console.
I'm not even sure what other games are available for the Switch right now.
The only one I'm slightly interested in is Splatoon, but there's no way I'd have enough time to get good at it.
 
1:37 PM
Newly launched consoles do tend to have a sparse selection, I feel.
 
@davidism why did you vote to delete meta.stackoverflow.com/questions/345924/… ?
 
I sense a disturbance on meta:P
oh, the post itself is meta
less profound obvservation then
 
If a new editor would cause 1-rep users to create code blocks without mangling their indentation, you would not find a more adherent supporter than me
 
@Stijn because I didn't feel that the conversation was going anywhere constructive, and felt that the question itself was low quality.
In other words, the normal reasons you would delete something.
 
But is it not written, "you can't fix stupid"? So such a dream is nothing more than a dream.
 
1:51 PM
The question was a few hours old and put on-hold, why not give OP the chance to clarify? Meta discussions can take a while, it's not like on SO main.
 
@Stijn given the course it's taken, I'm not optimistic for it. But if you really think that a few more comments will make the op see the light and create a constructive question, I'll vote to reopen it. Your own answer though is basically "read the docs", not sure where it can go from there.
 
Well I'm generally not a fan of deleting stuff on Meta unless it's blatantly off-topic
You can do as you like, I was mostly curious for the reason
 
cbg
 
@Stijn I've edited the post to sound more constructive and undeleted it.
 
user6845426
cbg
 
2:14 PM
I'm hoping monster hunter comes to the switch, or maybe pokemon or smash. I heard some bad things about the switch....maybe it's better to wait for the 2nd gen of switch
 
I'm feeling nostalgic for when I was ten and I didn't even know it was possible for a console to be "bad"
 
when I was ten, console was for haxors
 
Mario 3 runs on hardware less powerful than the average modern wristwatch, so I look askance at people that say "how can I possibly have fun with a game that doesn't render a hundred million polygons per frame?"
 
@holdenweb Yeah - you're probably right. Error #1 - working in a context such that you do not set your own rate. Schoolboy error on the part of Snape
 
2:23 PM
Nice
 
@davidism thank you :)
I'll let you lot get back to talking about Python... :)
 
DSM
2:42 PM
Friday cabbage for all!
 
just...15...minutes...to...go
 
cbg @DSM
today is end of sprint and the release of version 1 of our new project. So we are celebrating by going out for lunch and a movie
my work day ends in 15 minutes, because the partying starts
\o/
Friday fun day!
 
DSM
veinard!!
 
@Kevin I have a suspicion that's the SQL equivalent of "how to I add to my namespace dynamically?". Just as the Python OPs should use dicts, probably he should have a columns he can query on what he's referring to as "column names"
 
@DSM ton temps de fête va venir mon ami :)
 
2:48 PM
@DSM 7-1-1 cbg :D
@Kevin I feel like my child hood is slipping away, all the cartoons/anime I was watching/growing up is ending :( hopefully games will keep me ground to my childhood
I would love to have a mario kart for the switch ...
 
@idjaw this was the next post I saw...
 
yup...I posted that in work-slack
haha
 
3:08 PM
Where have my messages and points drop-downs gone in the new SO UI?
 
top right
 
DSM
Bin and trophy in the top right?
 
3:43 PM
cabbage
 
\o cbg Mr.blue BR :D hows the blue life treating you ?
 
Blue life is easy, but work has become a bit hard.
Accepted a new project from prof, so my free time is dead.
 
oh is it a fun proj at least ?
 
Yep, fun and tiring.
 
at least you will sleep well knowing you did something you enjoy all day, and you will sleep well cause you are tired. :D
 
3:56 PM
Thanks guys, now re-oriented
 
4:07 PM
@MooingRawr Well, there's always remakes and sequels. The new season of Samurai Jack has been pretty good so far, incidentally.
 
DSM
I've seen exactly one episode, which I enjoyed, so don't say more or it'll be like Stranger Things all over again!!
 
@MooingRawr Yep, exactly. I come home tired from work, start doing this project, spend some time on SO and sleep satisfied :)
 
Only two episodes have aired, so there's not much opportunity for spoiling
Although I think Internet rapscallions may have leaked the whole season. I'm making an effort not to get ahead of the actual broadcast.
 
I remember watching Samurai Jack and that stupid 'song'/tune that was floating around online.. -something something Samurai Jack talk to the Jack Samurai Jack, Jack Jack Jack-
also there are some things I don't want a remake of .... many things actually falls in that zone
 
This one's got Genndy at the helm so I think they're being as faithful to the original as possible.
Any more than this would require Mako to rise from his grave for voice recording sessions
 
4:17 PM
It's like the new FF7 "remake" all over again... I want it to be good, I have hopes that it will be just as good, but a little part of me knows it's not going to be AS good.
Nothing is... Nostalgic feeling is like a drug, you think it's so good, so highly of it, and when you try to recreate it, it will never be as good as what you thought it was... :\ I guess that's why we should just move forward and hope to create new Nostalgic feelings
and now im sad again.... Sigh at least lunch is coming up, so there's that :D
 
An even better point is that it's Friday.
 
I agree in general but I'm giving this one a pass because 1) it's a continuation of the story rather than a retelling and 2) the original ended without concluding the main plot line
 
DSM
This is The Final Season, right?
 
I haven't heard for certain but I think that's the implication, yeah
I expect if ratings are stellar and they decide to make more, those episodes will take place chronologically before these ones.
How convenient that the previous season ended around episode 50 and they decided to number this season starting at episode 90. Gives them plenty of breathing room for in-quels.
Anything that reduces the size of this list must be a good thing.
 
4:33 PM
cbg
 
\o
 
4:50 PM
bye
 
rbrb \o o.o
on another note, TIL that you can create tuples just by foo = 1,2,3 where they can just be object separated by commas without the brackets.
 
yep, tuples are defined by commas
 
Take care not to go overboard and replace f((1,2), (3,4)) with f(1,2,3,4), though
 
the very few times I've been defining tuples with ( ) I could have saved myself half a second =O....
 
DSM
Although the presence of commas by itself doesn't make a tuple. [1,2,3] is a list, it's not list((1,2,3)) or something..
 
4:54 PM
well yeah, but [1,2,3], is a tuple... I found that surprising. but [[1,2,3],] is a list to be expected.
 
DSM
I'm not a fan of the unbracketed-dangling-comma syntax.
 
I only ever use dangling commas for multiline sequences I might update later, ex.
[
[1,2,3],
[4,5,6],
[7,8,9],
]
Now I can add [10,11,12] as a new line without having to modify any existing lines. This is especially nice when dealing with version control that does per-line comparisons, since it cuts down on clutter in the diff
 
DSM
That I like, but that's bracketed.
You see x, = whatever in code using matplotlib sometimes and I hate it.
 
I sincerely hope you become a successful software developer with a very large customer base, and I hope every single one of them file issues with your software in the incomprehensible manner you did here. And I hope, once you have spent twenty years struggling to get any details out of them (like, collectively, everybody here has done), I hope you look back on this comment and weep. Weep tears of regret and shame. — Will 52 mins ago
Oh Will!
There goes my effort to fix the post though, the downvotes kept coming.
 
@DSM I'm not either, but I was reading someone elses code, where they had an issue.... which prompted me to discover that syntax
@davidism this Will person seems like hes been around, seen some things, maybe too many things that can't be unseen. :( hes not wrong, but he seems like he needs a hug or something
 
5:04 PM
@DSM Oh, gotcha. I'm not fond of that either
 
@MooingRawr He was a moderator for a long time.
 
That would do it :|
 
wim
5:41 PM
print(2,) prints a tuple or an int? think quick!
 
int in py3
unless you imported print_function in py2
 
wim
yep. and tuple in py2
trick question :P
since we were talking about annoying trailing commas
here's another annoying one..
def foo(arg1=1, arg2=2,):  # <-- valid
def foo(arg1=1, arg2=2, **kwargs,):   # <-- SyntaxError
 
Trying to make sense of the formal syntax for parameters:
varargslist: ((fpdef ['=' test] ',')*
              ('*' NAME [',' '**' NAME] | '**' NAME) |
              fpdef ['=' test] (',' fpdef ['=' test])* [','])
What's the precedence on pipes in EBNF? Is A B | C equal to A (B | C) or (A B) | C?
 
DSM
So f(**kwargs,) is valid syntax, but def f(**kwargs,): is not? Hmmph.
 
There would be less ambiguity if it was
varargslist: ((fpdef ['=' test] ',')*
              ('*' NAME [',' '**' NAME] | '**' NAME)) |
              fpdef ['=' test] (',' fpdef ['=' test])* [',']
@DSM Seemingly f(**kwargs,) is legal in 3.X but not in 2.7
Oh, interesting, I didn't know you could do this.
 
5:57 PM
@wim do you know why or should i look it up ?
 
>>> def f(**kwargs):
...     print(kwargs)
...
>>> f(**{"1": 2}, **{"2": 3})
{'2': 3, '1': 2}
Python devs please implement a *** operator so I can pass a sequence of dictionaries as the keyword arguments for a function
 
Do it in KevinScript lead the way :D
 
Something like
>>> def f(**kwargs):
...     print(kwargs)
...
>>> dicts = [{"1": 2}, {"2": 3}]
>>> f(***dicts)
{'2': 3, '1': 2}
And while we're at it I need **** so I can pass a sequence of sequences of dicts
 
Well *** could also be a dictionary of sequences... `{"a":[1, 2], "b":[3,4]}
 
recbg
@Kevin does *(**dicts) not work?
I really have no clue if it would or should
or something like that
oh, i guess it would be **(*dicts), right?
fnord(**(*x))
^
SyntaxError: can't use starred expression here
guess not
 
6:06 PM
Yeah, no :-P
 
you could write your chain unpacker :D
 
can't return *arg either, which I guess makes sense
 
I guess play around with itertools chain() :D
 
Yeah packing/unpacking can only be done in parameter lists and argument lists, and not in arbitrary expressions. Such context sensitivity isn't too common in Python so it can catch you by surprise
 
wim
@MooingRawr basically just a stupid python2 parser bug that is fixed now
guys can you check this comment stackoverflow.com/questions/43005529/…
AFAIK what they are complaining about is impossible
 
6:09 PM
none of the horrible hacks I'm trying seem to work, but I'm super tired
 
wim
is it possible really early versions of python 3 behaved differently?
 
I don't know. That's an interesting problem.
 
6:29 PM
off topic: I've been told I eat sandwiches weird/wrong. How i eat it: Sandwiches - eat the perimeter first (crest first) and spiral inwards. How do you eat your sandwiches ?
 
Interesting. That's uncommon, I think.
 
I eat it with diffusion
 
The amount of crust remaining should be proportional to the amount of sandwich remaining. If you have eaten half of the sandwich, you should have also eaten half of the crust.
 
At least I've never observed anyone eat it that way.
Well, except when I was a kid and hated crust, so it had to be the first to go
 
what you're describing is the proper way to eat kakaós csiga
 
6:32 PM
I enjoy the crust.. it's like pizza, sometimes I would rip the crust off first into the dip, eat it like an appetizer, and then eat my pizza....
 
Then you're all messy. I eat the pizza first then dip the crust ;)
 
What do you do if every square inch of the pizza is drenched in grease, except for the crust? Eat that first and you've lost your only handhold.
 
Exactly
 
There's pizza that is not drenched in grease? Why would you order that?
 
Using the webbrowser module, can we open multiple tabs at once?
 
6:35 PM
@Kevin semi-fold the pizza (loose V shape) so the bottom of the pizza is all you touch, sometimes the topping might be incline to slide to the middle, but eh, eat the sides first, enjoy the double topping in the middle afterwards :D
 
I admire your optimism in assuming that the bottom is, and will remain, dry
 
@MooingRawr it's clear that you have entirely different priorities when it comes to consuming crust-laden hand-held foods ;)
 
I admit I rarely have pizza but that's how I do it.. and I see so people around me were correct.... oh well thanks for verifying
 
If it makes you feel any better, I've held my pencil wrong since I learned to write.
 
6:39 PM
correct that your style of consuming food is fairly uncommon. But if that way of eating brings you the most joy then enjoy your meal.
 
I guess I enjoy maximum/perfect ratio of ingredients to 'breading'. :\
@WayneWerner spoken like a true father :D
 
wim
does the xkcd page have the date of the comic anywhere?
 
@Kevin how do you hold your writing utensils ?
 
wim
I wanted to know when xkcd.com/1002 was published
 
@wim explainxkcd.com/wiki/index.php/1002:_Game_AIs it will tell you when it is. on the explainxkcd site
 
6:40 PM
Most people make a sort of triangle formation with the tips of their thumb and index finger and middle finger, and grasp the pencil at the center. Instead, My index finger and middle finger and ring finger form a line about two inches long along the side of the pencil, with the thumb opposing all of them diametrically.
 
wim
I hate that site
I would like to know if it's on the official site
 
@Kevin so like a robot got it :D
 
@MooingRawr Alternating between pencil style and full-fist grip
 
@wim sorry, not that I've found. If you found what you are looking for let me know. Andras :D
 
wim
6:42 PM
that kinda works, thanks deak
 
no worries
 
@MooingRawr I think many fathers may typically have a slightly different approach
 
@Kevin I hold my pens like I do with the bottom half of the chopsticks.
 
wim
shame it's not on the actual page anywhere ..
 
I will click on that when I get home Wayne :D
 
6:44 PM
@wim well, the Go one is obsolete now :(
lol the alt-text of that is fantastic
 
The last I had heard (maybe a month ago), it was suspected that the number 1 online Go player was a bot, but nobody had come forth to claim responsibility. Has anything changed since then?
 
anybody here familiar with flask that could see why using abort() throws a RunTime Error in regards to referencing app out of context?
 
Hey all. quick question here. I'm running into an issue with my code (python 3.5) where I have an object of type MyClassType stored in a list. In my code, I index into that list to retrieve the object, then try to access one of its attributes, but I then get an error saying "dict object has no attribute "<my attribute name>".

It appears as if python is treating my object as a dictionary at runtime. This is something similar to an issue I've seen in the past but I don't know python well enough to identify what's the cause and fix. any ideas?
 
@JoshKitchens That's super sketchy. Are you loading stuff up from pickle or JSON? And have you done print(type(mystuff[index]))), which will tell you the type?
 
stackoverflow.com/q/43007021 too broad / recommendation
 
6:54 PM
It's possible that you've got something stuck in your list that there shouldn't be.
(also see a tool like pdb or pudb, if you want something more powerful than 'print')
 
@Jfach abort will not throw that error because abort does not do anything with Flask's app context. The error is coming from elsewhere.
In general, the error means that you're doing something outside a request that requires information from the request.
 
@WayneWerner that data is originally being loaded from a pickle using jsonpickle, but I made sure to retain the python pickle data that allows it to convert back to actual python objects. There are other places in my code where I'm doing the same thing and those objects convert just fine
What's even more weird is if I run the code through a debugger with local test data, it works just fine. It's only when I invoke the code via our web API that it snags. But the data in question is being read from the same local file regardless of entry point...
 
@davidism interesting, heres my stack trace, does anything immediately jump out to you?
 
@JoshKitchens What are you using for your web API?
 
OH! You know what, the data being read in got desynced and it doesn't actually contain the python symbol data
nvm
maybe one day I'll learn that making assumptions is always bad.
 
6:59 PM
@Jfach going to need a MCVE
 
01:00 - 19:0019:00 - 00:00

« first day (2351 days earlier)      last day (2597 days later) »