Re: Should stdlib files contain 'narrow non breaking space' U+202F?

2015-12-17 Thread Chris Angelico
On Fri, Dec 18, 2015 at 6:12 PM, Serhiy Storchaka wrote: > Agreed. Please open an issue. > > Using non-ASCII apostrophes and like in docstrings may be considered a bug. http://bugs.python.org/issue25899 Also noticed this. Is this a markup error? Lib/urllib/request.py:190: Note that *None& m

Re: Should stdlib files contain 'narrow non breaking space' U+202F?

2015-12-17 Thread Chris Angelico
On Fri, Dec 18, 2015 at 6:12 PM, Serhiy Storchaka wrote: > Agreed. Please open an issue. > > Using non-ASCII apostrophes and like in docstrings may be considered a bug. http://bugs.python.org/issue25899 Also noticed this. Is this a markup error? Lib/urllib/request.py:190: Note that *None& m

Re: Should stdlib files contain 'narrow non breaking space' U+202F?

2015-12-17 Thread Serhiy Storchaka
On 18.12.15 08:51, Chris Angelico wrote: On Fri, Dec 18, 2015 at 5:36 PM, Terry Reedy wrote: Last I knew, Guido still wanted stdlib files to be all-ascii, especially possibly in special cases. There is no good reason I can think of for there to be an invisible non-ascii space in a comment. It

Re: Should stdlib files contain 'narrow non breaking space' U+202F?

2015-12-17 Thread Chris Angelico
On Fri, Dec 18, 2015 at 5:36 PM, Terry Reedy wrote: > Last I knew, Guido still wanted stdlib files to be all-ascii, especially > possibly in special cases. There is no good reason I can think of for there > to be an invisible non-ascii space in a comment. It strikes me as most > likely an acciden

Re: cannot open file with non-ASCII filename

2015-12-17 Thread Terry Reedy
On 12/18/2015 12:12 AM, bearmingo wrote: Usually I put #!-*-coding=utf-8-*- at each py file. It's ok to open file in local system. That declaration only applies to the content of the file, not its name on the filesystem. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python

Re: Should stdlib files contain 'narrow non breaking space' U+202F?

2015-12-17 Thread Terry Reedy
On 12/17/2015 6:18 PM, Chris Angelico wrote: On Fri, Dec 18, 2015 at 10:05 AM, Mark Lawrence wrote: The culprit character is hidden between "Issue #" and "20540" at line 400 of C:\Python35\Lib\multiprocessing\connection.py. https://bugs.python.org/issue20540 and https://hg.python.org/cpython/re

cannot open file with non-ASCII filename

2015-12-17 Thread bearmingo
Usually I put #!-*-coding=utf-8-*- at each py file. It's ok to open file in local system. -- https://mail.python.org/mailman/listinfo/python-list

Re: Should stdlib files contain 'narrow non breaking space' U+202F?

2015-12-17 Thread Chris Angelico
On Fri, Dec 18, 2015 at 11:02 AM, Mark Lawrence wrote: > A lot of it is down to Windows, as the actual complaint is:- > > six.print_(source) > File "C:\Python35\lib\encodings\cp1252.py", line 19, in encode > return codecs.charmap_encode(input,self.errors,encoding_table)[0] > UnicodeEncod

Re: Should stdlib files contain 'narrow non breaking space' U+202F?

2015-12-17 Thread Mark Lawrence
On 17/12/2015 23:18, Chris Angelico wrote: On Fri, Dec 18, 2015 at 10:05 AM, Mark Lawrence wrote: The culprit character is hidden between "Issue #" and "20540" at line 400 of C:\Python35\Lib\multiprocessing\connection.py. https://bugs.python.org/issue20540 and https://hg.python.org/cpython/rev/

Re: Should stdlib files contain 'narrow non breaking space' U+202F?

2015-12-17 Thread Chris Angelico
On Fri, Dec 18, 2015 at 10:05 AM, Mark Lawrence wrote: > The culprit character is hidden between "Issue #" and "20540" at line 400 of > C:\Python35\Lib\multiprocessing\connection.py. > https://bugs.python.org/issue20540 and > https://hg.python.org/cpython/rev/125c24f47f3c refers. > > I'm asking as

Re: Should stdlib files contain 'narrow non breaking space' U+202F?

2015-12-17 Thread Ian Kelly
On Thu, Dec 17, 2015 at 4:05 PM, Mark Lawrence wrote: > The culprit character is hidden between "Issue #" and "20540" at line 400 of > C:\Python35\Lib\multiprocessing\connection.py. > https://bugs.python.org/issue20540 and > https://hg.python.org/cpython/rev/125c24f47f3c refers. > > I'm asking as

Should stdlib files contain 'narrow non breaking space' U+202F?

2015-12-17 Thread Mark Lawrence
The culprit character is hidden between "Issue #" and "20540" at line 400 of C:\Python35\Lib\multiprocessing\connection.py. https://bugs.python.org/issue20540 and https://hg.python.org/cpython/rev/125c24f47f3c refers. I'm asking as I've just spent 30 minutes tracking down why my debug code wo

Re: error reading api with urllib

2015-12-17 Thread Simian
I will try adding the get. I have not used curl. I also forgot to mention that the code runs against another server, though a slightly different version number. Thanks to you both. Simian -- https://mail.python.org/mailman/listinfo/python-list

Re: How does one distribute Tkinter or Qt GUI apps Developed in Python

2015-12-17 Thread Oscar Benjamin
On 17 December 2015 at 00:03, Bruce Whealton wrote: > I watched one training video that discussed Python and Tkinter. Like many > similar tutorials from online training sites, I was left scratching my head. > > What seems to be blatantly missing is how this would be distributed. In the > first m

Re: How can I get/save Pandas DataFrame help content?

2015-12-17 Thread Robert Kern
On 2015-12-17 04:09, Steven D'Aprano wrote: On Thursday 17 December 2015 13:48, Robert wrote: Hi, When I use Enthought/Canopy, help(DataFrame) has so much content that it exceeds the display buffer, i.e. its head is cut off as I go up to see it. Step 1: report this as a bug to Enthought and

Re: Tk alternative to askopenfilename and askdirectory?

2015-12-17 Thread Ulli Horlacher
Rick Johnson wrote: > Oh i understand. What you opine for is something like: askOpenFileOrDir() > -- which displays a dialog from which a file or directory can be selected > by the user. Yes, exactly! Now: how? -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum IZUS/TI

Re: Hangman Code.

2015-12-17 Thread Denis McMahon
On Thu, 17 Dec 2015 05:28:23 -0800, trkaplan24 wrote: > Hello, I created a python code for a simple hangman game. Was wondering > if anyone could edit to help me make it multiplayer so when one person > guesses a letter incorrectly, the next player can then guess a letter. First you need to promp

Re: How does one distribute Tkinter or Qt GUI apps Developed in Python

2015-12-17 Thread Ulli Horlacher
Rick Johnson wrote: > Unlike a true "applications language", like say, um, *JAVA*, one cannot > simply compile an executable and distribute it in a teeny tiny binary > form, no, with Python Of course you can! If have done this with pyinstaller. This creates a standalone Windows executable you ca

Re: python 3.4, os.walk does not walk into cdroms

2015-12-17 Thread Mark Lawrence
On 17/12/2015 13:03, Siegfried Kaiser wrote: Hello all, I have a problem with os.walk - it does not walk into a mounted cdrom, I do not see the cdrom in the walk at all. What can I do to walk into cdrom? Thanks, Siegfried Please give us. 1) Your OS. 2) Your code. 3) How you trie

python 3.4, os.walk does not walk into cdroms

2015-12-17 Thread Siegfried Kaiser
Hello all, I have a problem with os.walk - it does not walk into a mounted cdrom, I do not see the cdrom in the walk at all. What can I do to walk into cdrom? Thanks, Siegfried -- Siegfried Kaiser -- https://mail.python.org/mailman/listinfo/python-list

Hangman Code.

2015-12-17 Thread trkaplan24
Hello, I created a python code for a simple hangman game. Was wondering if anyone could edit to help me make it multiplayer so when one person guesses a letter incorrectly, the next player can then guess a letter. import time player1 = raw_input("What is your name Player 1? ") player2 = raw_inp

Re: Why my image is in bad quality ?

2015-12-17 Thread fsn761304
On Thursday, December 17, 2015 at 5:27:28 AM UTC+4, Nobody wrote: > On Wed, 16 Dec 2015 06:04:37 -0800, fsn761304 wrote: > > > pixbufObj = Gdk.pixbuf_get_from_window(window, x, y, width, height) ... > > image = Image.frombuffer("RGB", (width, height), > > pixbufObj

Re: How does one distribute Tkinter or Qt GUI apps Developed in Python

2015-12-17 Thread Michiel Overtoom
> On 2015-12-17, at 01:03, Bruce Whealton > wrote: > > I would want to package in some way so that when launched, it installs > whatever is needed on the end user's computer. How is this done? You might want to watch https://www.youtube.com/watch?v=wsczq6j3_bA (Brandon Rhodes: The Day of th

Re: How can I get/save Pandas DataFrame help content?

2015-12-17 Thread Peter Otten
Robert wrote: > Hi, > > When I use Enthought/Canopy, help(DataFrame) has so much content that it > exceeds the display buffer, i.e. its head is cut off as I go up to see it. > I would like to know whether there is a way similar to Linux redirection > to save the help DataFrame content to a file?