« first day (1783 days earlier)      last day (3148 days later) » 

10:00 PM
I'm using Python 3 at work.
So now it's one for, one maybe against. Good sample size.
 
I saw this on a lot of the Core team's desks: python3porting.com/strategies.html
 
DSM
@davidism: yeah, but was that a decision imposed on you or one you had authority/influence over?
 
ah yeah, the previous code was written in python 2(from someone who didn't read the principle of DRY) and the wxPython that I've constantly been asking is best compatible with python 2
 
The XKCD survey allows you to put in that you have -1 older siblings
 
You need to talk to them about their 2/3 strategy and ask them if it makes sense to convert. If so, and you can do it, well I'd do it if I were you then.
 
DSM
10:06 PM
Time to flee. rhubarb for all!
 
Can I have mine in pie form?
 
@AaronHall Ah okay, but then is it suggested to also move away from wxpython altogether?
I'd think if wxpython is in the past, I should go find another GUI library
 
So that strategy thing is what I'm talking about. If you're waiting on python 3 conversion of wxpython, then you're out of luck on converting. Your boss will probably say no, so I wouldn't bother (unless you need some topic of conversation and just want to mention how you wish wxpython was fully on 3) I say this knowing next to nothing about wxpython, though.
> Wouldn't this be a good time for a piece of rhubarb pie?
> Yes, nothing takes the taste of shame and humiliation out of your mouth quite like Bebopareebop Rhubarb Pie.
 
10:26 PM
@AaronHall gotcha, I will actually go talk to him about that, but most likely when I end my internship
I don't want him to make me rewrite everything in a new framework - that's just putting extra work onto my back haha. Also, I remember there was a wxpython guru in this chat who said wxpython is the only OOP-ish GUI library for python, which is a good enough reason to stick with it
 
10:55 PM
hey guys, when an application crashes(in about 1 second, maybe less), what would you assume the problem is? It's not recursion I believe, because recursion usually takes longer to crash due to stack overflow (There is no error log, it just says Python has crashed) is there maybe a python crash dump log upon crash?
 
For wxPython?
 
@AlexanderHuszagh yep! Ah I guess I should have included that it was for GUI's
 
And this isn't windowless right? No .pyw extension @OneRaynyDay?
 
@AlexanderHuszagh it's not windowless, it's an App :)
 
Windowless (for what I mean) means that the thing is running without a terminal.
 
11:02 PM
Interestingly (maybe) I tried compiling wxPython for Py3 today. Left it compiling and forgot to check before I left - if someone is interested, I can let you know results tomorrow
to quote the project lead it's "very alpha"
 
yesterday, by davidism
Sure, hold on, psychically reading your code ... ... nothing.
 
@AlexanderHuszagh oh hmm it has an app window but there are console logs into the terminal
@davidism It's a bit hard to give code because literally I don't even know where it is :/
 
yes, so it's not appropriate as a question then
 
Well, it's just a general question about crashing behavior
not really specifically in my code.. Cause I know there are different crashing behaviors(like recursion probably takes a while before it crashes)
 
I can't believe this is still confusing to you: questions without context are not appreciated. We are not psychic.
 
11:06 PM
Well it shouldn't randomly crash no. But try having a try/except clause surrounding the code and then do a traceback to file.
 
Please be aware: I am very close to kicking you again.
 
try:
    do some_code
except:
    import traceback
    trace = traceback.format_exc()
    with open('log.txt', 'w') as myfile:
        print(trace, file=myfile)
 
@AlexanderHuszagh thanks, I'll try that
@AlexanderHuszagh didn't work, but it's okay! I think it crashes before the traceback was able to log
I'll go put a bunch of print statements in my code and see what happens
 
11:42 PM
Okay there's definitely something buggy going on regarding wxpython's listctrl, I'm not just tripping
 
ive used it plenty with no issues
 
Really? Here's my situation: I call .ClearAll(), and then I try to insert columns
and it crashes because of that transaction
Also, upon calling .ClearAll(), the listctrl doesn't even remove anything until the next event is triggered it appears
 
Until the gui redraws ... Im sure it would be nice if you provided a sample code that presents the problem ... also you havent told us the python version you are using nor the wx version you are using nor your os (at least that ive seen) ... in the mean time i will work on making an example for you ...
 
@JoranBeasley Wait no it's not necessary to give me an example, that's too much effort. I'll paste my code on pastebin
@JoranBeasley one sec! I'll be back
forgot I had a very important errand to do agh, I'll be back though I promise. No need to make an example for me in the mean time :)
thank you very much though
 

« first day (1783 days earlier)      last day (3148 days later) »