Re: python3.7 installation failing - so why?

2019-02-22 Thread Chris Angelico
On Sat, Feb 23, 2019 at 4:41 PM Frank Miles wrote: > > On Sat, 23 Feb 2019 14:56:03 +1100, Chris Angelico wrote: > > > On Sat, Feb 23, 2019 at 2:51 PM Frank Miles > > wrote: > >> > >> I have a Debian/Linux machine that I just upgraded to the newer > >> "testing" > >> distribution. I'd done that

Re: python3.7 installation failing - so why?

2019-02-22 Thread Frank Miles
On Sat, 23 Feb 2019 14:56:03 +1100, Chris Angelico wrote: > On Sat, Feb 23, 2019 at 2:51 PM Frank Miles > wrote: >> >> I have a Debian/Linux machine that I just upgraded to the newer >> "testing" >> distribution. I'd done that earlier to another machine and all went >> well. With the latest mac

Re: python3.7 installation failing - so why?

2019-02-22 Thread Chris Angelico
On Sat, Feb 23, 2019 at 2:51 PM Frank Miles wrote: > > I have a Debian/Linux machine that I just upgraded to the newer "testing" > distribution. I'd done that earlier to another machine and all went > well. With the latest machine, python2 is OK but python3 can barely run > at all. For example:

python3.7 installation failing - so why?

2019-02-22 Thread Frank Miles
I have a Debian/Linux machine that I just upgraded to the newer "testing" distribution. I'd done that earlier to another machine and all went well. With the latest machine, python2 is OK but python3 can barely run at all. For example: $ python3 Python 3.7.2+ (default, Feb 2 2019, 14:31:48)

Re: revisiting the "What am I running on?" question

2019-02-22 Thread Terry Reedy
On 2/22/2019 7:55 AM, songbird wrote: eryk sun wrote: ... The win-amd64 ABI is significantly different, but at the API level there isn't a drastic difference between 32-bit and 64-bit Windows, so there's no cognitive burden with perpetuating the Win32 name. The official API name was actually cha

Re: Custom logging code(s) / numbers to the log level Error

2019-02-22 Thread Peter Otten
kibt...@gmail.com wrote: > I wanted to write/extend the logging library to have a custom Error number > for each exception (error) the code has. What's the best approach for > this? If possible can someone please provide a good starting code snippet. > Thanks You can pass arbitrary data via the `

Re: confusion with os.chmod() and follow_symlinks

2019-02-22 Thread Peter Otten
Karsten Hilbert wrote: > Am I confused ? > > ncq@hermes:~$ python3 > Python 3.7.2+ (default, Feb 2 2019, 14:31:48) > [GCC 8.2.0] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import os > >>> print(os.supports_follow_symlinks) > {, , access>, , } >>> os.

RE: confusion with os.chmod() and follow_symlinks

2019-02-22 Thread David Raymond
Not sure, but the way I read it follow_symlinks = True is the default behavior of systems that don't allow you to set it, and being able to set it to False is the special bit. So "allowing follow_symlinks" means it "allows you to change it to whatever you want", not "allows it to be True" Under

Re: confusion with os.chmod() and follow_symlinks

2019-02-22 Thread Karsten Hilbert
On Fri, Feb 22, 2019 at 09:21:07PM +0100, Karsten Hilbert wrote: > Am I confused ? > > ncq@hermes:~$ python3 > Python 3.7.2+ (default, Feb 2 2019, 14:31:48) > [GCC 8.2.0] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import

confusion with os.chmod() and follow_symlinks

2019-02-22 Thread Karsten Hilbert
Am I confused ? ncq@hermes:~$ python3 Python 3.7.2+ (default, Feb 2 2019, 14:31:48) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> print(os.supports_follow_symlinks) {, , , , }

Re: revisiting the "What am I running on?" question

2019-02-22 Thread songbird
Chris Angelico wrote: >songbird wrote: ... >> "Do I have temporary directory and file creation >> permissions on this system or not?" > > Then ask that question instead! And the answer might well be here: > > https://docs.python.org/3/library/tempfile.html if you recall my original post/code i

Re: revisiting the "What am I running on?" question

2019-02-22 Thread songbird
eryk sun wrote: ... > The win-amd64 ABI is significantly different, but at the API level > there isn't a drastic difference between 32-bit and 64-bit Windows, so > there's no cognitive burden with perpetuating the Win32 name. The > official API name was actually changed to "Windows API" or WINAPI (

Re: revisiting the "What am I running on?" question

2019-02-22 Thread songbird
Chris Angelico wrote: > On Thu, Feb 21, 2019 at 12:56 AM songbird wrote: >> Thomas Jollans wrote: >> ... >> > I'm fairly sure "win32" was used on W9x as well. In any case it *was* >> > correct at the time, as early versions of Python also ran on DOS and >> > Windows 3.1. "windows" would not have b

Custom logging code(s) / numbers to the log level Error

2019-02-22 Thread kibtes2
I wanted to write/extend the logging library to have a custom Error number for each exception (error) the code has. What's the best approach for this? If possible can someone please provide a good starting code snippet. Thanks -- https://mail.python.org/mailman/listinfo/python-list