Re: Why exception from os.path.exists()?

2018-06-10 Thread Gregory Ewing
Steven D'Aprano wrote: Hmmm... you know I might just be able to do that. Write a file to a floppy, then mount it under Linux. That still might not tell you much. The Linux system will need a filesystem driver that understands the Mac HFS file system, which is what your classic Mac system will b

Re: Posting warning message

2018-06-10 Thread T Berger
Thanks, everyone, for your suggestions. I didn't respond to your posts earlier because I wasn't notified by email updates. I don't understand why they've stopped coming. I didn't change any settings. -- https://mail.python.org/mailman/listinfo/python-list

Re: Why exception from os.path.exists()?

2018-06-10 Thread Gregory Ewing
Chris Angelico wrote: I'd like to find out about that. If it doesn't work, it'll be easily provable that it can't be done. Using the shell: % touch colonic:name % ls colonic:name % touch slashy/name touch: slashy/name: No such file or directory (It's trying to create a file in a directory cal

NUL in file names verified [was Re: Why exception from os.path.exists()?]

2018-06-10 Thread Steven D'Aprano
Straight from the horse's mouth, Apple's HFS Plus volumes do indeed support NULs in file names. Quote: Indirect node files exist in a special directory called the metadata directory. This directory exists in the volume's root directory. The name of the metadata directory is four null

Re: Why exception from os.path.exists()?

2018-06-10 Thread Chris Angelico
On Mon, Jun 11, 2018 at 11:06 AM, Steven D'Aprano wrote: > On Sun, 10 Jun 2018 23:57:35 +0200, Peter J. Holzer wrote: > >> I think this is worth keeping, and "I couldn't pass that file name to >> the OS" is a different error than "the OS told me the file doesn't >> exist", so I think it should be

Re: Why exception from os.path.exists()?

2018-06-10 Thread Steven D'Aprano
On Sun, 10 Jun 2018 23:57:35 +0200, Peter J. Holzer wrote: > I think this is worth keeping, and "I couldn't pass that file name to > the OS" is a different error than "the OS told me the file doesn't > exist", so I think it should be a different exception. What makes you think that NUL bytes are

Re: Why exception from os.path.exists()?

2018-06-10 Thread Charles Hixson
On 06/07/2018 12:45 AM, Chris Angelico wrote: On Thu, Jun 7, 2018 at 1:55 PM, Steven D'Aprano wrote: On Tue, 05 Jun 2018 23:27:16 +1000, Chris Angelico wrote: And an ASCIIZ string cannot contain a byte value of zero. The parallel is exact. Why should we, as Python programmers, care one whit

Re: Why exception from os.path.exists()?

2018-06-10 Thread Steven D'Aprano
On Sun, 10 Jun 2018 22:09:39 +0100, Barry Scott wrote: > Singling out os.path.exists as a special case I do think is reasonable. > All functions that take paths need to have a consistent response to data The *mere existence* of os.path.exists means that there is not a consistent response to file

Re: Why exception from os.path.exists()?

2018-06-10 Thread Bev in TX
I accidentally did not send this to the list... > On Jun 10, 2018, at 7:10 PM, Bev in TX wrote: > > >> On Jun 10, 2018, at 3:10 PM, Chris Angelico > > wrote: >>> ... >> >> Can you try creating "spam:ham" and "spam/ham"? If they're both legal, >> I'd like to see what th

Re: Why exception from os.path.exists()?

2018-06-10 Thread Chris Angelico
On Mon, Jun 11, 2018 at 9:52 AM, Steven D'Aprano wrote: > On Mon, 11 Jun 2018 06:10:26 +1000, Chris Angelico wrote: > >> Can you try creating "spam:ham" and "spam/ham"? If they're both legal, >> I'd like to see what their file names are represented as. > > The Finder could very easily be substitut

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Steven D'Aprano
On Mon, 11 Jun 2018 06:21:31 +1000, Chris Angelico wrote: [...] > Nice work there. You trimmed key parts of my post, and then responded to > me out of context. Go back and read my actual post, then respond to what > I actually said. Thanks! I didn't trim any part of your post when I read it, but I

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-10 Thread bellcanadardp
On Sunday, 10 June 2018 17:29:59 UTC-4, Cameron Simpson wrote: > On 10Jun2018 13:04, bellcanada...@gmail.com wrote: > >here is the full error once again > >to summarize, my script works fine in python2 > >i get this error trying to run it in python3 > >plz see below after the error, my settings f

Re: Why exception from os.path.exists()?

2018-06-10 Thread Steven D'Aprano
On Mon, 11 Jun 2018 06:10:26 +1000, Chris Angelico wrote: > Can you try creating "spam:ham" and "spam/ham"? If they're both legal, > I'd like to see what their file names are represented as. The Finder could very easily be substituting another character, like Konqueror (the KDE 3 file manager) d

Re: FULLSCREEN and DOUBLEBUF

2018-06-10 Thread Gregory Ewing
Dennis Lee Bieber wrote: Both may be dependent upon the actual hardware graphics board and the drivers for said board. My guess is that if your surface is not fullscreen or is not a hardware surface, then you're always drawing into an ofscreen buffer that gets copied to the screen when

Re: Sorting NaNs

2018-06-10 Thread Steven D'Aprano
On Sun, 10 Jun 2018 21:28:02 +0200, Anders Munch wrote: > Richard Damon wrote: > >> The two behaviors that I have heard suggested are: >> >> 1) If any of the inputs are a NaN, the median should be a NaN. >> (Propagating the NaN as indicator of a numeric error) >> >> 2) Remove the NaNs from the in

Re: your mail

2018-06-10 Thread Bob Gailer
On Jun 10, 2018 12:44 PM, "Karsten Hilbert" wrote: > > On Sun, Jun 10, 2018 at 06:58:17PM +0530, sagar daya wrote: > > > Couldn't install any module from pip > > Plz help??? The only help I can give at this point is to suggest that you tell us what you tried and how it failed. Please copy and pas

Re: Multiprocessing on a remote host

2018-06-10 Thread Peter J. Holzer
On 2018-03-21 09:27:37 -0400, Larry Martell wrote: > Yeah, I saw that and I wasn't trying to reinvent the wheel. On this > page https://docs.python.org/2/library/multiprocessing.html it says > this: > > The multiprocessing package offers both local and remote concurrency, > effectively side-steppi

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Peter J. Holzer
On 2018-06-11 06:35:27 +1000, Chris Angelico wrote: > Back in the 90s, my family sold books, many of them imported and/or > exported. We had a few books by Earl Rodd, all looking like books and > behaving like books. And we also had the "Rodd Papers", which are > individual photocopied leaflets (A5

Re: Why exception from os.path.exists()?

2018-06-10 Thread Peter J. Holzer
On 2018-06-11 00:28:11 +0300, Marko Rauhamaa wrote: > Barry Scott : > > Singling out os.path.exists as a special case I do think is > > reasonable. > > I don't think anyone has proposed that. While I brought up > os.path.exists() in my bug report, os.path.isfile(), os.path.isdir() etc > should obv

Re: Posting warning message

2018-06-10 Thread Cameron Simpson
On 10Jun2018 11:26, John Ladasky wrote: On Sunday, June 10, 2018 at 7:47:01 AM UTC-7, T Berger wrote: When I go to post a reply, I get a warning asking if I want my email address (or other email addresses listed) visible to all, and do I want to edit my post. What should I do? Are you posti

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Chris Angelico
On Mon, Jun 11, 2018 at 12:25 AM, Peter J. Holzer wrote: > But with online distribution (not necessarily github) the boundaries > become very fluid. When Debian still contained the Roxen webserver, it > comprised over 100 packages: The maintainer had put every plugin into a > separate package. I d

Re: Why exception from os.path.exists()?

2018-06-10 Thread Marko Rauhamaa
Barry Scott : > Singling out os.path.exists as a special case I do think is > reasonable. I don't think anyone has proposed that. While I brought up os.path.exists() in my bug report, os.path.isfile(), os.path.isdir() etc should obviously be addressed simultaneously. It may even be that the fix ne

Re: Posting warning message

2018-06-10 Thread Chris Angelico
On Mon, Jun 11, 2018 at 4:26 AM, John Ladasky wrote: > On Sunday, June 10, 2018 at 7:47:01 AM UTC-7, T Berger wrote: >> When I go to post a reply, I get a warning asking if I want my email address >> (or other email addresses listed) visible to all, and do I want to edit my >> post. What should

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-10 Thread Cameron Simpson
On 10Jun2018 13:04, bellcanada...@gmail.com wrote: here is the full error once again to summarize, my script works fine in python2 i get this error trying to run it in python3 plz see below after the error, my settings for python 2 and python 3 for me it seems i need to change some settings to '

Re: Why exception from os.path.exists()?

2018-06-10 Thread Barry Scott
> On 10 Jun 2018, at 21:10, Chris Angelico wrote: > > On Mon, Jun 11, 2018 at 12:45 AM, Bev in TX wrote: >>> * One with an embedded / in the file name >> >> This is easily done in Finder, where I created a folder named "my/slash”. >> When I list it at the command line in Terminal, this shows u

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Peter J. Holzer
On 2018-06-10 15:24:38 +, Steven D'Aprano wrote: > On Sun, 10 Jun 2018 16:25:24 +0200, Peter J. Holzer wrote: > > Personally, I would let the author decide what constitutes one work. > > Ah yes... > > Star Wars, Empire Strikes Back, Return of the Jedi, Phantom Menace, > Attack of the Clones,

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Jon Ribbens
On 2018-06-10, Ben Bacarisse wrote: > Jon Ribbens writes: > >> I'd suggest that since the processes he's purporting to disallow are >> entirely standard and automated and he knows full well they exist and >> that there is no mechanism by which they could be affected by his >> notice, the notice h

Re: Why exception from os.path.exists()?

2018-06-10 Thread Peter J. Holzer
On 2018-06-10 09:45:06 -0500, Bev in TX wrote: > On Jun 10, 2018, at 5:49 AM, Peter J. Holzer wrote: > > On 2018-06-07 12:47:15 +, Steven D'Aprano wrote: > >> But it doesn't do that. "Pathnames cannot contain NUL" is a falsehood > >> that programmers wrongly believe about paths. HFS Plus and

Re: Why exception from os.path.exists()?

2018-06-10 Thread Chris Angelico
On Mon, Jun 11, 2018 at 6:22 AM, Marko Rauhamaa wrote: > Chris Angelico : >> Can you try creating "spam:ham" and "spam/ham"? If they're both legal, >> I'd like to see what their file names are represented as. > > I think Bev already explained it. At Unix level, you can't have slashes > in filename

Re: Sorting NaNs

2018-06-10 Thread Richard Damon
On 6/10/18 3:28 PM, Anders Munch wrote: > Richard Damon wrote: > >> The two behaviors that I have heard suggested are: >> >> 1) If any of the inputs are a NaN, the median should be a NaN. >> (Propagating the NaN as indicator of a numeric error) >> >> 2) Remove the NaNs from the input set and proces

Re: Why exception from os.path.exists()?

2018-06-10 Thread Marko Rauhamaa
Chris Angelico : > Can you try creating "spam:ham" and "spam/ham"? If they're both legal, > I'd like to see what their file names are represented as. I think Bev already explained it. At Unix level, you can't have slashes in filenames. At GUI level, you can't have colons in filenames. Unix slashes

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Chris Angelico
On Sun, Jun 10, 2018 at 11:03 PM, Gregory Ewing wrote: > Chris Angelico wrote: >> >> You cannot, to >> my knowledge, publish a game for the PS4 or Xbox 360 without >> permission from Nintendo or Microsoft. > > > That's because, since we *do* have copyright laws, the > manufacturers of the consoles

Re: Why exception from os.path.exists()?

2018-06-10 Thread Chris Angelico
On Mon, Jun 11, 2018 at 12:45 AM, Bev in TX wrote: >> * One with an embedded / in the file name > > This is easily done in Finder, where I created a folder named "my/slash”. > When I list it at the command line in Terminal, this shows up as "my:slash”, > with the slash shown as a colon. > If I c

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-10 Thread Chris Angelico
On Mon, Jun 11, 2018 at 2:49 AM, wrote: > > excuse but sorry > i took the time to manually write the code error from the traceback as you > said > and thats because i cant seem to find a way to attach files here..which would > make it so easier for me and also i could attach snippets of the act

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-10 Thread bellcanadardp
On Friday, 8 June 2018 18:26:28 UTC-4, Cameron Simpson wrote: > On 05Jun2018 06:42, bellcanada...@gmail.com wrote: > >On Sunday, 3 June 2018 20:11:43 UTC-4, Steven D'Aprano wrote: > >> Don't retype a summary of what you think the error is. "character > >> undefieed" is not a thing, and there is

Re: Distributing a Python module as .rpm and .deb packages across major distributions

2018-06-10 Thread Barry
> On 8 Jun 2018, at 18:04, adam.pre...@gmail.com wrote: > > I have a situation where internally I need to distribute some Python code > using Linux packages rather than simply relying on wheel files. This seems to > be a solved problem because a lot of Python modules clearly get distributed

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Gene Heskett
On Sunday 10 June 2018 14:42:02 Rick Johnson wrote: > Gene Heskett wrote: > > I rather like that idea. Unforch, who would be in charge of keeping > > the books uptodate? The USTPO? Of course that would expand another > > guvmnt agencies payroll x10, and its a waste of taxpayer dollars > > since Al

Re: Sorting NaNs

2018-06-10 Thread Anders Munch
Richard Damon wrote: The two behaviors that I have heard suggested are: 1) If any of the inputs are a NaN, the median should be a NaN. (Propagating the NaN as indicator of a numeric error) 2) Remove the NaNs from the input set and process what is left. If nothing, then return a NaN (treating N

Re: user defined modules

2018-06-10 Thread Rick Johnson
Sharan Basappa wrote: > Is there a specific location where user defined modules > need to be kept? My advice is that any location is a good location so long as the location you chose is _not_ a part of the PythonXY directory tree. For example, on a windoze machine (and in Python2.x at least), th

Re:

2018-06-10 Thread Timo Furrer
Can you be more specific. What did you try? In which environment? What was the error message you got? On Sun, Jun 10, 2018 at 6:32 PM sagar daya wrote: > Couldn't install any module from pip > Plz help??? > -- > https://mail.python.org/mailman/listinfo/python-list > -- *Timo Furrer* https://

Re: Posting warning message

2018-06-10 Thread John Ladasky
On Sunday, June 10, 2018 at 7:47:01 AM UTC-7, T Berger wrote: > When I go to post a reply, I get a warning asking if I want my email address > (or other email addresses listed) visible to all, and do I want to edit my > post. What should I do? Are you posting through Google Groups? Sometimes I

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Rick Johnson
Gene Heskett wrote: > I rather like that idea. Unforch, who would be in charge of keeping the > books uptodate? The USTPO? Of course that would expand another guvmnt > agencies payroll x10, and its a waste of taxpayer dollars since Albert > retired anyway. What century are you trapped in pal? H

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Rick Johnson
On Friday, June 8, 2018 at 12:34:58 PM UTC-5, Marko Rauhamaa wrote: > PS IMO copyright laws should be abolished altogether. At > the very least one should pay for copyright protection. One > €1 for the first year, €2 for the second, €4 for the third > and so on exponentially. I like your idea of

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Ben Bacarisse
Jon Ribbens writes: > I'd suggest that since the processes he's purporting to disallow are > entirely standard and automated and he knows full well they exist and > that there is no mechanism by which they could be affected by his > notice, the notice has little effect. The Copyright notice is p

Re: Why exception from os.path.exists()?

2018-06-10 Thread Rick Johnson
Marko Rauhamaa wrote: > Chris Angelico : > > > Marko Rauhamaa wrote: > >> > >> This surprising exception can even be a security issue: > >> > >>>>> os.path.exists("\0") > >>Traceback (most recent call last): > >> File "", line 1, in > >> File "/usr/lib64/python3.6/genericpath.p

Re: Re: Re: FULLSCREEN and DOUBLEBUF

2018-06-10 Thread Paul St George
Paul St George wrote: So... print pygame.display.get_surface() gives and print screen.get_flags() gives -2147483648 To recap: this thread started with a question. How do I know whether DOUBLEBUF has been set with: screen = pygame.display.set_mode((720,480), pygame.DOUBLEBUF | pyg

Re: (no subject)

2018-06-10 Thread Rick Johnson
sagar daya wrote: > Couldn't install any module from pip > Plz help??? As with most actions, an algorithm is required. (shocking, i know!) What methodology have you implemented thus far to achieve your goal of "installing modules from PIP"? Please enumerate the steps you chose to take, and then w

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-10 Thread bellcanadardp
On Sunday, 10 June 2018 10:23:47 UTC-4, Steven D'Aprano wrote: > Do you enjoy wasting your own time (as well as ours) by failing to follow > instructions? > > We can't read your mind to see the code you are using, and I am getting > frustrated from telling you the same thing again and again. >

Re: your mail

2018-06-10 Thread Karsten Hilbert
On Sun, Jun 10, 2018 at 06:58:17PM +0530, sagar daya wrote: > Couldn't install any module from pip > Plz help??? https://duckduckgo.com kh -- -- https://mail.python.org/mailman/listinfo/python-list

Re: Why exception from os.path.exists()?

2018-06-10 Thread Bev in TX
> On Jun 10, 2018, at 5:49 AM, Peter J. Holzer wrote: > > On 2018-06-07 12:47:15 +, Steven D'Aprano wrote: >> But it doesn't do that. "Pathnames cannot contain NUL" is a falsehood >> that programmers wrongly believe about paths. HFS Plus and Apple File >> System support NULs in paths. > [

[no subject]

2018-06-10 Thread sagar daya
Couldn't install any module from pip Plz help??? -- https://mail.python.org/mailman/listinfo/python-list

Posting warning message

2018-06-10 Thread T Berger
When I go to post a reply, I get a warning asking if I want my email address (or other email addresses listed) visible to all, and do I want to edit my post. What should I do? -- https://mail.python.org/mailman/listinfo/python-list

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Marko Rauhamaa
Chris Angelico : > It's easy to look back NOW and say "even if software had no copyright, > this could still exist". It's not so easy to see that such things > would have come about. [...] I doubt very much that anyone other than > hobbyists would write software that they're unable to sell. A lot

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Marko Rauhamaa
Steven D'Aprano : > On Sun, 10 Jun 2018 16:25:24 +0200, Peter J. Holzer wrote: > >> Personally, I would let the author decide what constitutes one work. > > Ah yes... > > Star Wars, Empire Strikes Back, Return of the Jedi, Phantom Menace, > Attack of the Clones, Revenge of the Sith, Rogue One, For

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Steven D'Aprano
On Sun, 10 Jun 2018 16:25:24 +0200, Peter J. Holzer wrote: > Personally, I would let the author decide what constitutes one work. Ah yes... Star Wars, Empire Strikes Back, Return of the Jedi, Phantom Menace, Attack of the Clones, Revenge of the Sith, Rogue One, Force Awakens, Last Jedi, Solo..

Re: Re: FULLSCREEN and DOUBLEBUF

2018-06-10 Thread Peter Otten
Paul St George wrote: > So... > > print pygame.display.get_surface() > gives > > > and > print screen.get_flags() > gives > -2147483648 > To recap: this thread started with a question. How do I know whether > DOUBLEBUF has been set with: > > screen = pygame.display.set_mode((720,480

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Peter J. Holzer
On 2018-06-09 10:15:43 +1000, Chris Angelico wrote: > On Sat, Jun 9, 2018 at 8:19 AM, Marko Rauhamaa wrote: > > Chris Angelico : > >> On Sat, Jun 9, 2018 at 6:59 AM, MRAB wrote: > >>> So those with the most money can buy the most protection? > >> > >> Yes, or more specifically, those who believe

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-10 Thread Steven D'Aprano
Do you enjoy wasting your own time (as well as ours) by failing to follow instructions? We can't read your mind to see the code you are using, and I am getting frustrated from telling you the same thing again and again. PLEASE PLEASE PLEASE PLEASE help us to help you. Start by reading this: h

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-10 Thread bellcanadardp
On Friday, 8 June 2018 07:42:34 UTC-4, Steven D'Aprano wrote: > On Fri, 08 Jun 2018 03:35:12 -0700, bellcanadardp wrote: > > > hello steven are you there?? > > i posted the full error message... > > No you didn't. > > I saw your post, and ignored it, because you didn't follow instructions. > I

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Gregory Ewing
Chris Angelico wrote: I doubt very much that anyone other than hobbyists would write software that they're unable to sell. Or, maybe, people who *use* the machines as part of their livelihood, and have an incentive to produce good, reliable software that does what they need. I'm also not sure

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Gregory Ewing
Chris Angelico wrote: You cannot, to my knowledge, publish a game for the PS4 or Xbox 360 without permission from Nintendo or Microsoft. That's because, since we *do* have copyright laws, the manufacturers of the consoles are able to make money by selling the software as well as the hardware --

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Chris Angelico
On Sun, Jun 10, 2018 at 9:08 PM, Steven D'Aprano wrote: > On Sun, 10 Jun 2018 13:36:34 +1000, Chris Angelico wrote: > >>> That's all speculation. It's impossible to say how things would have >>> turned out if copyrights didn't apply to software. Certainly different, >>> but not necessarily worse.

Re: Re: FULLSCREEN and DOUBLEBUF

2018-06-10 Thread Paul St George
To recap: this thread started with a question. How do I know whether DOUBLEBUF has been set with:     screen = pygame.display.set_mode((720,480), pygame.DOUBLEBUF | pygame.FULLSCREEN) On 09/06/2018 22:04, Mark Lawrence wrote: On 09/06/18 20:31, Paul St George wrote: print pygame.disp

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Steven D'Aprano
On Sun, 10 Jun 2018 13:36:34 +1000, Chris Angelico wrote: >> That's all speculation. It's impossible to say how things would have >> turned out if copyrights didn't apply to software. Certainly different, >> but not necessarily worse. >> >> In the early days, computer manufacturers didn't worry ab

Re: Why exception from os.path.exists()?

2018-06-10 Thread Peter J. Holzer
On 2018-06-07 12:47:15 +, Steven D'Aprano wrote: > But it doesn't do that. "Pathnames cannot contain NUL" is a falsehood > that programmers wrongly believe about paths. HFS Plus and Apple File > System support NULs in paths. [...] > But in the spirit of compromise, okay, let's ignore the exis

Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Jon Ribbens
On 2018-06-08, Chris Angelico wrote: > Yes, this is true. It's not copyright that is unenforceable, but the > copyright notice in his message. Nobody is denying that he owns his > own words; but by posting them on a public forum, he - like everyone > else here - is implicitly granting us the right

Re: Why exception from os.path.exists()?

2018-06-10 Thread Chris Angelico
On Sun, Jun 10, 2018 at 7:06 PM, Marko Rauhamaa wrote: > Chris Angelico : >> It's important to pin down the true cause of the problem, and not >> blame something for doing the proper Pythonic thing. > > So could you tell me what the proper Pythonic fix for the example server > in Python's document

Re: Why exception from os.path.exists()?

2018-06-10 Thread Marko Rauhamaa
Chris Angelico : > It's important to pin down the true cause of the problem, and not > blame something for doing the proper Pythonic thing. So could you tell me what the proper Pythonic fix for the example server in Python's documentation would be? Here's the code in question: ==