[issue7158] os.path.basename/split fails

2009-10-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Py

[issue7158] os.path.basename/split fails

2009-10-17 Thread Tom Kuiper
Tom Kuiper added the comment: Do I have to do that? I've never used the Python bug tracking system before. > BTW: I'm happy you solved this bug. > I guess we could consume a few beers over whether it's a bug or not. Cheers Tom -- ___ Python tr

[issue7158] os.path.basename/split fails

2009-10-17 Thread Marco Buccini
Marco Buccini added the comment: I cannot close this bug, ahah :) BTW: I'm happy you solved this bug. Bye. -- ___ Python tracker ___

[issue7158] os.path.basename/split fails

2009-10-17 Thread Tom Kuiper
Tom Kuiper added the comment: That's a good point, Marco. I'd forgotten about the distinction. Converting 'filename' to a Python string with 'str()' fixed the problem. > However, when I tried to run your example, newWF.py, and tried to open a > file from the menu, I got this: > > controls.nch

[issue7158] os.path.basename/split fails

2009-10-17 Thread Marco Buccini
Marco Buccini added the comment: > I should close this bug. I *would* close this bug. Sorry :) -- ___ Python tracker ___ ___ Python-b

[issue7158] os.path.basename/split fails

2009-10-17 Thread Marco Buccini
Marco Buccini added the comment: I think this is not a Python bug, since it concerns PyQt. You're passing a QString object to os.path.split(), while the official documentation wants you pass a Python string. However, when I tried to run your example, newWF.py, and tried to open a file from th

[issue7158] os.path.basename/split fails

2009-10-16 Thread Tom Kuiper
New submission from Tom Kuiper : Normal behavior: >>> from os import path >>> filename = "/home/kuiper/Projects/microdischarges/Observing/2009-09-01/STATS_NP2000_VSR1A.1W1.09-244-193632" >>> print filename /home/kuiper/Projects/microdischarges/Observing/2009-09-01/STATS_NP2000_VSR1A.1W1.09-244-