« first day (3524 days earlier)      last day (1425 days later) » 

5:01 PM
@LinkBerest understandably, spark 2.4+ especially IMO with the higher order func's
 
yep (worked on 1.4 last month - that was fun)
 
wim
oh, somebody found Forrest Fenn treasure chest finally
 
honestly, its the second aim that makes me a bit worried about their scope - what works on smaller datasets is not always where you want to go with distributed ones (esp. when considering in-memory & mutability) so I get the idea but it seems like it will turn back into bunch of jsons->reduce & merge -> load on Spark again
swapping are repeating the steps "reduce, merge, and load" as needed, of course
but the "no learning curve" of #1 would mean you have to directly translate the functions and I end up at my earlier statement that Spark's approach (due to immutability) versus Pandas mutable approach seems difficult :)
 
@roganjosh i dont even know :/ i have just transitioned to pyspark and spark.sql instead of trusting these data science friendly stuffs, traditional and takes some time but efficient :)
 
^ and above is what I tend to do when I am using a not complete legacy system (its just been a while since that happened)
 
5:13 PM
@LinkBerest absolutely, that was my first spark query in this room df.columns=listofcols doesnt work ;)
 
er... need both sql.functions & pyspark.sql.window to translate I meant earlier
 
related ^
 
5:29 PM
@anky wow, I thought more of those were added in 1.5 or 2.1 (but yes, the 25+ functions they added in 2.4 would make this a lot easier)
 
@AnnZen could you please stop asking one random statistic after another?
 
@LinkBerest yes thats what i meant :) 2.4+ is cooler especially with the lambdas of pyspark
 
....I am now more grumpy that I have to work on legacy systems :\
upgrade, dagnabbit!
(to be fair, I'm just happy to have a job right now but I stand by that statement in a general sense)
is it worth it anymore to post "what did you try?" comments or just VTC and move on at this point?
 
Depends on the tag,, rbrb all..
 
5:46 PM
@LinkBerest I say yes. More politely and helpfully commenting to seemingly crap questions has a) increased my joy of seeing an answer improved and b) reduced my inhibitions to just walk away from those that stay crap.
You cannot possibly VTC all posts that deserve it. If the only result of taking the time to politely react to posts of questionable quality is that you see less of them, that's a win in my grumpy, old, pessimistic book.
 
How would politely reacting to crap make you see less of them?
 
The tag is NLP which seems to just attract "gimme the code" (in this case use pytorch's LTSM) but the person shows no understanding of what that is doing (and how the number of hidden layers, dropouts, gradient clipping, and other factors could effect the choice)
 
@AndrasDeak It takes more time per question.
 
Something I observed today: Tom and Alice have an hour-long debate. They upload the footage to their YouTube channels, where Tom's followers praise him for "totally owning" Alice, while Alice's followers praise her for "totally destroying" Tom. This species is screwed, y'all
 
5:52 PM
tempted to respond with the math and say "here you go"
 
@Aran-Fey yup
 
rb folks
 
@Aran-Fey Who's this Tom guy? What happened to Bob?
 
Bob got fed up with it all and retired
 
he was destroyed in the previous episode
 
5:55 PM
okay, added a comment - waiting on it to be deleted by mod (or just flags) for being mean (it was not the math one though I was sorely tempted - couldn't get the mathjax working)
ahh...I liked Bob
 
After Tom retires we'll have Sam, continuing the ancient tradition of having a name that's exactly 3 letters long
 
user11006952
@AndrasDeak Sorry about the un-called for suggestion there.
 
It's alright. It's just that Paul gave an excellent and nuanced explanation of what can be expected from users. Flat-out suggesting that the user post animal pictures after that is a bit off :P
 
fyi, food (sometimes drinks) are the most off-topic topic in here (and it usually just comes up when someone says what they're making for a meal)
fuzzy animal pictures used to mean "look at the cute thing & calm down all yous!" but I haven't seen that in a while
 
user11006952
6:11 PM
Right. Understood.
 
7:08 PM
@Pax did you end up figuring out your vcr vs. pytest-vcr question?
I wonder how long until people will have no idea what a VCR is (assuming they still know that :D)
 
*googles vcr*
 
an ancient world awaits
 
my kids know they are the thing from the Goldbergs
(but I definitely had to explain it to them the first time they watched that show)
 
it would blow their minds to know that cassettes are still used for long-term backups
 
user11006952
@AndrasDeak I did not. I ended up using pytest-recording and that I know has extra "features" on top of vcr, specifically rewrite mode.
 
7:16 PM
Sounds like the question had become obsolete then :)
 
user11006952
I know what VCRs are. I'm not sure if it's because I'm old or grew up where tech is not as "updated". Maybe both.
 
then again records are "cool" now so maybe one day everyone will want VHS again for that retro quality ;)
 
not if they figure out how to put video on vinyl records...
 
@AndrasDeak how about holograms?
 
that won't be great for HD video
 
7:24 PM
 
Ah!
 
user11006952
Seems like they already did, eh? "CED (Capacitance Electronic Disc), or VideoDisc, is basically video on vinyl."
 
user11006952
Not very practical though "it was more complex and costly to produce, degrades a lot faster, and playback.." Not too late to be picked up again.
 
Wow, never heard of that
I knew about laserdisc though, but that's not very exciting
 
I just love the caption on that record (seen in scene before: 78 million RPM)
 
user11006952
7:29 PM
Indeed.
 
user11006952
rbrb!
 
rbrb
 
7:57 PM
I find it absurd and unintuitive that [::-1] reverses a string. Youre giving :: so its the whole string. It is not explicitly specified that we begin at the end of the string
Its like a pirate patchwork fix or an inside joke
 
No, it's [start, stop, step]
 
So, Where would you expect [:2] to start from?
 
but this expression was always weird `[::]
 
@ExoticBirdsMerchant that's why you never use that
 
7:59 PM
"hello" starts from l
 
I agree with you, btw, that it's a bit wonky, but it does kinda make sense
 
Ohhhhhh okay
@AndrasDeak its in the Mooc i do
 
lst[::]?
 
@AndrasDeak well without specifiying start end how do we know that [::-1] reverses all?
edx UTArlingtonX: CSE1309x btw
 
user11006952
 
8:01 PM
The same way that lst[:] takes all. Because that's what slice was implemented to do.
>>> [2, 3, 4][slice(None, None, -1)]
[4, 3, 2]
It's not entirely intuitive, but if you see it once you'll know it afterward. It's the best option if you want to use slice syntax.
 
aha none, none ,-1 ... yeahhh
 
kin?
 
i need to check this to understand it @Pax thanx for the link
mittype
by hastily trying to answer the group discussion
 
mittype?
You can (should) edit messages in chat for 2 minutes
there's no rush
 
yup its a good approach not to be so pushy with rush
especially when writing a new script
 
8:05 PM
Nobody is pushing you. You're free to take your time and edit your comments within the 2 minute window before responding to something else
 
user11006952
@ExoticBirdsMerchant IIUC, if start is not specified, then it means it's the beginning of the list. if end is not specified then it means the end of the list. So, it takes the whole list. Then the negative in -1 means instead of counting 1 step from the start, it counts from end (i.e. reverse).
 
@Pax that's exactly why "if start is not specified, then it means it's the beginning of the list" can be tricky (misleading)
 
@pax yes i ve learned it it is start, end, step what was weird for me was the following expression of the rule [::-1] because start is None and End is None
 
it's only the beginning when step is non-negative
 
Whenever I think about it, it's never entirely clear to me why [1, 2, 3, 4] doesn't become [1, 4, 3, 2] because the start of the slice would be the first item in the list, if the step size wasn't specified
 
8:12 PM
@roganjosh huh?
Oh, you mean wrapping around. Ew, no, that never happens with slices!
 
@AndrasDeak Ohhh there is a one-liner answer: it is only the begining when step is non-negative! Why they dont write is in books?
 
@ExoticBirdsMerchant I'm not 100% sure that this covers all edge cases, though. You have to look at the documentation to see the actual rules broken down.
 
@AndrasDeak because going forwards, you'd capture the 0th index of the list first, before any step was applied:
 
Thank you after the end of the Mooc i am planing to revisit documentation
 
a = [1, 2, 3, 4]

b = a[::1]
So why does a negative step not capture the 0th index, and then go backwards?
 
user11006952
8:14 PM
@AndrasDeak Right. What if it's seen as a 2-step process: Get the list using the start and stop indices. And by start, start of the string you want to step through. Not necessarily the start of the resulting string.
 
user11006952
And then step using step.
 
@roganjosh it captures the -1st index
i.e. the "start"
@Pax I'm not sure I'm following
 
Maybe if it is done in two steps the parsing is at the end of the slice and then in the second phase starts stepping behind
 
user11006952
@ExoticBirdsMerchant Yeah. Maybe it should be clarified that by 'beginning' it doesn't necessarily mean "beginning" of the resulting string. It just means the "beginning" of the string that will be stepped through.
 
I don't think it should be made more complicated than it already is...
 
8:18 PM
[start:end] this produces a string and then stepp yeah it can be @pax
 
@Pax but it's not the beginning of the string that will be stepped through! If the step is negative it will start stepping through from the end of the sequence
 
user11006952
@AndrasDeak Hmm. Yeah. I'll stop there. If I'm not being clear, I don't think more words will help!
 
but you two seem to be understanding each other just fine so perhaps I'm being too paranoid
 
user11006952
@AndrasDeak Yeah. Not excellent choice of words on my part. Not sure how to articulate it better.
 
well i am starstruck
but i got how it works
 
8:19 PM
the one truth is in the notes at docs.python.org/3/library/stdtypes.html#typesseq
 
@pax and @AndrasDeak by Python are the first 100 years hard.
Joking
 
user11006952
@AndrasDeak That's what I was going to say. Don't quote me on it @ExoticBirdsMerchant because how I said it is clearly open to misinterpretation.
 
@ExoticBirdsMerchant they are just about enough to deprecate python 2
 
yeah a lot of applications written on the unsupported Python 2
 
user11006952
@ExoticBirdsMerchant Not the person to ask. I know enough Python that I know how to slice lists. But other than that, you are asking the wrong person.
 
8:22 PM
@AndrasDeak I was just trying to illustrate why it's conceptually confusing when first encountering it
 
@pax thanks for the information. That counts
 
user11006952
@ExoticBirdsMerchant Just to explicitly say: if step is negative, then start stepping at the end of the string as Andras says "it's not the beginning of the string that will be stepped through! If the step is negative it will start stepping through from the end of the sequence"
 
@pax It will start stepping back from end backwards
 
this is one of many things that's easier to understand in front of a REPL
 
Any ideas what I need to search for to find a way to replicate that awesome progress bar spacex has going in their videos? The one on the bottom that looks like a little earth and the different events keep going by. I searched for progress bar, but I feel like it's the wrong term
 
user11006952
8:32 PM
@ExoticBirdsMerchant Here's a REPL for you to quickly test out your understanding repl.it/languages/python3
 
@pax wow that is something new... let me check it
 
@Hakaishin link?
 
user11006952
I just invalidated my own.
 
@ExoticBirdsMerchant please see the formatting guide for chat
 
i m trying to format it hihi
 
8:35 PM
So I see, but you won't get anywhere with backticks on that :)
 
and practice in the sandbox
 
@ExoticBirdsMerchant Note that to do case-insensitive matching, str.casefold should be used instead of str.upper/str.lower.
 
Theme of the week :)
 
hehe okay ill look casefold up
 
8:37 PM
 
@MisterMiyagi casefold just ignores cases when formatting its beter
 
user11006952
@Hakaishin "event timeline progress" ?
 
@Hakaishin i love the falcon 9 probably starlink 8
@Hakaishin was the first time a booster launched a probe for the 5th time and landed
 
ah I knew it's not a progress bar
yeah timeline is the better word for it
 
8:39 PM
That video probably doesn't need a onebox, but it's relevant to the discussion.
 
yeah, it's just so ridicolous :)
 
To the extent that such a fancy progress bar embedded in the video is on-topic in the python room
 
what's a onebox?
ah right
 
I think there's a tonne of custom styling going on in that :)
 
@Hakaishin what Cody just undid ;)
Thanks, Cody!
 
user11006952
8:39 PM
@Hakaishin Just ideas. Not sure if you'll actually find something.
 
################### Sample Solution ###################
def _is_palindrome_sample_(sample_string):
    # Check if the inverted string  equals the original string
    if str(sample_string).casefold() == str(sample_string)[::-1].casefold():
        return True     # Sample string is a palindrome
    else:
        return False    # Sample string is not a palindrome
 
@AndrasDeak haha I just wanted to at you andras and tell you please, let this one pass :P Sometimes it's worth it too ask in here things like this, because other places are dead and people often have good answers, especially if the questions are kinda high level
 
i ll try it on REPL maybe i can check it out step by step like in VBA Editor
 
@Hakaishin Oneboxes are automatic styling that get applied to certain messages in chat that consist of nothing more than a link to an external site, like Wikipedia, YouTube, XKCD, etc. While cute and sometimes handy, chat regulars often find they are disruptive, as they take up so much room in the transcript. This is why people will sometimes ask and rooms sometimes have rules that you not "onebox" things. Oneboxing can be prevented by manually inserting a link using the standard Markdown syntax.
 
For what it's worth this room doesn't have strict policy around oneboxing. We rely on good judgement, a lot more volatile system ;)
 
8:42 PM
As a moderator, I was able to go back and edit that, which I did in response to a flag on it. I didn't think you deserved to be penalized in any way, or even that the message needed to be deleted, but obviously someone thought it was annoying, so editing is a compromise solution.
 
wim
@ExoticBirdsMerchant simplify the conditional
 
@AndrasDeak Danger!
 
@CodyGray as a room owner I endorse your decision :)
 
But...my kind of danger.
 
Draw on 21?
(my blackjack lingo is non-existent)
 
8:45 PM
@wim i ll read the link probably i use a quite overstreched if conditional
 
@AndrasDeak I actually did google that to see if it's a phrase, because there's a line between danger and insanity :P
 
wim
I'm not actually sure why str.casefold exists tbh. Couldn't they have just rolled that functionality into str.lower directly?
Is it actually useful for str.lower to do something different than str.casefold?
 
@wim Yes... I don't know beans about Python, but lowercase is not the same thing as a case-insensitive comparison.
 
the one case (heh) where I know there's a difference is
 
I guess you could have a flag/option for str.lower, but I'm not convinced that would be better design.
 
8:48 PM
>>> 'ß'.casefold()
'ss'
 
wim
right, but would you care if 'ß'.lower() did the same? I wouldn't
 
then again
>>> 'ß'.lower()
'ß'

>>> 'ß'.upper()
'SS'
@wim we should probably ask the Germans
 
I love how easy it is to stalk people on the internet :) Especially people in this chat :P
 
"Haha! I found out this glasses guy is a moderator on some website!"
 
wim
8:51 PM
several here use their real names
 
@CodyGray I don't see a guy, just glasses
 
@AndrasDeak Or the Turkish, whose letter "i" is the canonical example in my mind, even more so than the Eszett .
 
user11006952
@ExoticBirdsMerchant By the way, slicing cannot be simplified the way I said it. What I said is utterly wrong:

> aList = [1,2,3,4,5]
> aList[2:4:-1]
[]

Sorry about that. Sigh.
 
@CodyGray Or them. Though I know more Germans than Turks :)
 
@wim ß is already lowercase.
 
8:53 PM
Can anyone actually tell the difference between ß and ẞ?
 
@pax i now that it gives an empty value. I learned by List slicing ... but siplified? I mean it has a certain structure
 
And are they still used? I thought they were deprecated.
 
@CodyGray i know german pretty well and i cant see any difference
 
wim
if you want to properly compare unicode you can't just use casefold anyway, you need to normalize forms (e.g. combining accents vs codepoints with accents built in). so what's the point of casefold and lower being different functions?
 
The Swiss deprecated them many years ago. I think recent German language reforms have also deprecated Eszett, too.
But you do still see it used.
 
user11006952
8:55 PM
@ExoticBirdsMerchant Good that you know that. I was expecting something else. Never mind, then!
 
Apparently, German officially got ẞ as the uppercase of ß in 2017.
TIL
 
@wim True. But then, it seems not a matter of casefold being redundant with lower, but rather casefold being redundant with whatever function is used to properly compare Unicode.
 
@CodyGray the German language removed it by some words you see all the time in german. For example ß is gonne from müßen and the word itself became müssen but ß is widely useed
@MisterMiyagi ß has no uppercase
 
Müßen Sie scribt "ss"?
 
Müssen means must and earlier was writen with müßen after the 70s became müssen
 
8:58 PM
I've always wondered who enforces these "language reforms", and more importantly, how I can get that job.
 
@ExoticBirdsMerchant poor Miyagi must be Germaning wrong
 
@ExoticBirdsMerchant I didn't get the memo, but us crazy Germans decided that it does
 
@AndrasDeak there are conditional statements in VBA (i think) where they do not accept if you must type wenn which in german means if
 
@CodyGray I know about the French version: Académie Française
 
@MisterMiyagi they thought they müßed informing you, but since ß was removed they could no longer tell you that
 
9:01 PM
@MisterMiyagi LOL i have never seen a german word with a big ß.
 
ugh, just let it die, like the swiss did. It's a letter we dont really need
 
@MisterMiyagi sry i am no native speaker i was absolutely certain that there is no big ß
 
First, they came for the Eszett, because it was "a letter nobody needed".
 
poor Scharfes S
 
wim
sspecial cases aren't sspecial enough to break the rules
 
9:04 PM
@MisterMiyagi there was this guy Piëch that uses a letter for his name that it is 99.99% extinct. The ë. Guess it gives him style
 
@AndrasDeak I'm boiling with rage over this lack of announcing ze rules! Zat is embaraßing!
spreads the word of ẞ
 
visjs.github.io/vis-timeline/docs/timeline/index.html A library about visualisation with no single example image or animation on the website, hmmm
 
Lißt ßlicing
 
wim
@CodyGray that would be unicodedata.normalize
the only use case for str.casefold is to get a few more upvotes than the guy who used str.lower on stackoverflow
 
Why would it attract more upvotes?
 
9:08 PM
The same reason that i+++++++j goes to HNQ
 
wim
n00bs see it for the first time and thunk it clever
 
What I hate about web stuff, that I'm never sure what is the best tool. Should I google html5 timeline or better css or better js or better specific js animation library or maybe jquery library. Ah, it's annoying to not know what already exists out there and at what level I should look at to start with the task
Time for bed, bye guys, have a great time
 
@Hakaishin On that particular case, I can't help but think I've seen something similar on Halo
Someone probably made a replica for "HTML" (which will come with the CSS/JS)
Anyway, rbrb Hakaishin
 
@Hakaishin all of those sounds like something that the JS room might be able to help with
 
So, my first instinct is to go to the source and see what the difference is.
 
wim
9:12 PM
js room? that's the shadowy place Mufasa warned us not to go
 
And that's handy, because the source is actually written in a language that I can understand. :-)
 
So, maybe I missed something when I was away during the whole push to be nicer to noobs thing, but is it now customary/recommended to upvote someone's first post even if it's pretty banal? I've seen this several times -- a simple question with a simple answer that typically wouldn't be upvoted now is, sometimes more than once.
 
It's kind of odd, looking at it. It seems that if the character ISUPPER, it converts it to lower. Otherwise, if the character ISLOWER, then it converts it ToUpperFull.
Ack. No. Looked at the wrong method.
Trying to do too many things at once.
 
@MattDMo no, it's customary to upvote whatever you come across
@CodyGray watch out with the cpython source. 'Tis a silly place.
 
@MattDMo Don't know where this is coming from, but I've seen it too. Very annoying to see a dozen upvotes on RTFM threads.
 
9:16 PM
@MattDMo Absolutely not. Nothing in the "be nice" policy is concerned with votes. You don't upvote content to be "nice", and downvoting is not the opposite of nice. Votes are on content. Follow the instructions on the tooltips.
 
@AndrasDeak seems like it sometimes...
 
@MisterMiyagi The general viewer/(asker) is getting less experienced so they are likely more impressed with simple answers to questions they didn't realise they had
 
like exiting vim
 
Number of votes is naturally going to be proportional to the number of views.
 
Are we talking about Django?
cbg
 
9:20 PM
What do you think?
This must be one of those days. Good thing there's only 40 minutes left.
 
@roganjosh Soon the end of the world(SE) will come and a new cycle will start, where the pros move to super cool new site and the crowd slowly trickles in over the years, until a new cycle has to begin again
 
@roganjosh Dunno. I understand the simple stuff having more traffic. However, some vote-fests are "borderline trivial" only because I do not feel like using stronger language anymore.
 
@Hakaishin I'm still waiting for when we all move back to USENET.
 
@MisterMiyagi did you run my hijacked SEDE query? I'm trying to link it but my tethered mobile connection is crapping out :/
 
I'm doing a tutorial on Django and it's about creating a poll
We're creating views for the poll elements
 
9:23 PM
@MisterMiyagi data.stackexchange.com/stackoverflow/query/edit/1238208#graph. set the rep threshold low, like 100, and the year as 1. Watch the jump over lockdown
 
@roganjosh Not feeling involved enough to launch a full scale SEDE query.
My newfound tranquility on SO quality is fragile...
 
@MisterMiyagi it's already written for you :P
 
@CodyGray are there still active newsservers to this day?
 
@Hakaishin Yeah, I think so. But I was mostly kidding.
 
^^
 
9:25 PM
Ah, I edited it. You'll need to change %numpy% to %python%. Trend is the same, just the volume of questions changes
 
Cody would never be so foolish to tell us where he bails when he leaves
@roganjosh lockdown? Surely you mean dark theme!
 
@AndrasDeak On balance, I'm sure that was the bigger driving-force :)
I take my comment back. "Watch the jump over dark-theme-release"
 
Much better! Time to be acquired!
 
@AndrasDeak I'll have to provide you with my mailing address, so you can send the flags directly.
 
I heard it's easy to stalk people on the internet
 
9:31 PM
.... I know someone wears glasses <looks mischievous>
 
Web scraper here. I concur.
 
Now I know what that w sign means that gang members make with their hands. Web scrapers. Boom!
3
 
It's the gang sign for W3C membership, right?
 
Boom indeed when they become web scrappers
 
@CodyGray For the cool kids, yes. For the less cool kids, w3schools.
we don't know why they smell of glue
 
9:38 PM
https://pastebin.com/5EasPE5S
https://pastebin.com/Qv64A0iF

First code iterated for one item.
Second code iterated for 40 items.

What's wrong?
Hello
 
For some reason self.player_data.append([]) stops the iteration. But why?
 
Should we help Chris, Andras? I don't want to get moved to the Ouroboros again
 
Is it something with variable names: player_song - player_data ?
 
@ChrisP do you get an error? If not, do you have a try-except block that eats the error?
 
9:41 PM
No there is no error.
data.player has 40 songs.
 
There's no MCVE to speak of, your objects and attributes hang in the air like clouds. We can't help you.
 
But in first code runs only the first
 
Are you allowed to modify a container inside a loop that iterates it? I suspect not...
 
@ChrisP there's no need to repeat information you've already said. The problem is information you haven't said at all.
@CodyGray we are, but it's usually a bad idea. But that doesn't seem to be what's going on.
cf. data.player and self.player_data
 
I will try to change the variables name so to be exactly different.
 
9:43 PM
@ChrisP Okay? That probably won't help us debug it, though.
@ChrisP you didn't answer my second question, whether you are running this inside some try-except block that might hide an error.
 
Not inside try block
 
No difference while changing variable names
 
@ChrisP that's good
We can't help you without something resembling an MCVE, sorry.
 
If changing variable names mattered, then that would be a bug in the interpreter, so definitely good.
 
9:45 PM
I see no obvious reason why the loop should stop prematurely
 
But how cool would it be if you got an error that just silently broke your code when your variable names were poorly chosen?
 
@CodyGray something something reserved keywords ;)
not that silent in that case, though
 
I don't see why you couldn't solve this problem easily with a debugger. Or, even for want of a debugger, with some strategically placed print statements.
 
That's something we often don't see when Chris P is asking for help
 
print(self.total_songs_in_playlist) prints only 1. Should be print 1,2,3...40
 
9:47 PM
OK, to be fair the usual issues are lack of googling
 
I tried with insert method
Same happens
 
@ChrisP does that happen in both cases?
 
@MisterMiyagi no, that's what they're saying
there's a black box that has a red led that should blink 40 times, but if you shake the box it only blinks once
 
:)
 
@ChrisP I suggest that you try debugging your code. It might be a good time to learn to use a debugger. We can't help you.
 
9:49 PM
@ChrisP Clearly not what you showed in Qv64A0iF. You can flick between that and the full code and see that nothing changes... so the problem isn't that part of the code
 
ah. well, my guess would be that some of these lists are aliases of each other.
 
When is not a good time to learn to use a debugger? Inquiring minds want to know.
 
What debugger should i use for python3.6 on ubuntu desktop 20.04?
 
@CodyGray you'd be surprised how few people use debuggers in python
 
ideally the one that's built into your IDE
 
9:50 PM
@AndrasDeak I would. That makes no sense.
 
I don't use a debugger. I can still see that the opening code is the same between the two
 
Can i install it from pip3?
 
@roganjosh You use the debugger between your ears.
3
 
@ChrisP no need
 
9:50 PM
I often single-step through code using that exact same debugger.
 
@CodyGray errors and tracebacks are usually plenty of information
@CodyGray using a neural network? Fancy
 
natural intelligence
 
@CodyGray I'll buy that interpretation :)
 
import 'Papinhio\ player'
^
SyntaxError: invalid syntax
 
How is that related?
 
9:53 PM
I will just rename the main project
It's not related
Trying to import my own module in interpritter
 
So why rename it then? We've established that the problem isn't in the code that the two samples share
 
We're on very thin "what does your code really look like" ice
I'll suggest stopping all of this until Chris comes back with something we can help with
 
This is why debuggers are important. Code can't hide from a debugger.
 
I'm more worried about remote hearsay debugging
 
But surely there's something pleasant and graphical, other than having to use a Python port of the less-than-venerable gdb.
(Other than an SO chat room, of course. Assuming you think we're "pleasant".)
 
9:55 PM
@CodyGray personally, I like gdb --tui and so I use pudb which is very similar for python
but any decent IDE will have a fancy debugger in it
 
gdb --tui is not something I've ever used or even been aware of, considering the only time I ever bother with gdb is when I'm on an embedded system, and then thre's no fancy business.
 
I'm sorry for you :)
 
It looks pretty neat, though.
 
Yeah, really helpful. I've mostly used it for fortran.
But I rarely have to use a debugger in python. Mostly because I write bug-free code most things I run into can be played with interactively in an ipython shell. One huge benefit of a dynamic language is that you can pull it apart.
 
That's cheating! A dynamic interpreteter is a debugger!
 
9:58 PM
> The standard Python distribution includes a module named pdb, which provides
debugging support directly within the interpreter. Most IDEs for Python, such as
IDLE, provide debugging environments with graphical user interfaces.
-Goodrich
 
@CodyGray but in an evil genie kind of way
 
What key i must press to continue the debugger?
 
@JossieCalderon IDLE as an IDE example... *sigh*
 
@AndrasDeak <cough>Spyder still has its place</cough>
 
@ChrisP I said you need to learn using it. Not asking here for step-by-step instructions. Go and read and play with it.
 

« first day (3524 days earlier)      last day (1425 days later) »