Re: Sorting NaNs

2018-06-06 Thread Steven D'Aprano
On Sat, 02 Jun 2018 21:02:14 +1000, Chris Angelico wrote: > Point of curiosity: Why "> 0.5"? No particular reason, I just happened to hit that key and then copied and pasted the line into the next one. > Normally when I want a fractional > chance, I write the comparison the other way: "random

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

2018-06-06 Thread Steven D'Aprano
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 about ASCIIZ strings? They're not relevant. You might as well say that file names cannot contain the

Re: Names and identifiers

2018-06-06 Thread Steven D'Aprano
Disclaimer: Ido not see Stefan's original post. I recall that he has set some sort of header on his posts which means they are not processed by Gmane, but unfortunately I no longer have any of his posts in my cache where I can check. If anyone else is getting Stefan's posts, can you inspect the

Re: Problem finding my folder via terminal

2018-06-06 Thread Steven D'Aprano
Hi Tamara, and welcome! My response is written below. Please ensure your reply is to the group, not just to me personally, thank you. On Wed, 06 Jun 2018 09:19:17 -0700, T Berger wrote: > I’m learning Python on my own and have been stuck for two days trying to > get modules I created into sit

Re: Names and identifiers

2018-06-06 Thread Marko Rauhamaa
r...@zedat.fu-berlin.de (Stefan Ram): > I was asked about the difference between a name and an > identifier. I was not sure. Ah, a delicious terminology debate ahead! Traditionally, an "identifier" refers to a syntactic (lexical, to be exact) unit. It is a sequence of Unicode code points ins

Re: Problem finding my folder via terminal

2018-06-06 Thread Shakti Kumar
Hi Berger, Do you have any space in the absolute path for mymodules? Spaces avoid getting the correct path as I had seen in one of my virtual environments. Shakti. On Wed, Jun 6, 2018, 9:53 PM T Berger wrote: > I’m learning Python on my own and have been stuck for two days trying to > get modul

Re: site package does not work

2018-06-06 Thread Peter Otten
Erik Martinson via Python-list wrote: > I am trying to dynamically add a site-package to a script that is run as a > cron job. The method adduseristepackages does not seem to do anything. The function addusersitepackages() seems to be un(der)documented; looking at the source it turns out that th

SQLObject 3.7.0

2018-06-06 Thread Oleg Broytman
Hello! I'm pleased to announce version 3.7.0, the first stable release of branch 3.7 of SQLObject. What's new in SQLObject === Contributors for this release are Scott Stahl and Christophe Popov. Features * Add signals on commit and rollback; pull request by Scott

Re: site package does not work

2018-06-06 Thread Jim Lee
On 06/05/2018 01:33 PM, Erik Martinson via Python-list wrote: I am trying to dynamically add a site-package to a script that is run as a cron job. The method adduseristepackages does not seem to do anything. import sys import site print('-')print(site.getusersitepackag

Problem finding my folder via terminal

2018-06-06 Thread T Berger
I’m learning Python on my own and have been stuck for two days trying to get modules I created into site-packages. As a trial step, we were asked to change directly into the folder containing our modules. I typed “cd mymodules” per instructions, but got this error message: “-bash: cd: mymodules:

Re: urllib3 1.23 breaks API

2018-06-06 Thread Jon Ribbens
On 2018-06-06, Cecil Westerhof wrote: > I had installed urllib3 1.22 for Python3. I upgraded it to 1.23. This > broke the requirements for requests 2.18.4: > requests 2.18.4 has requirement urllib3<1.23,>=1.21.1, but you'll have > urllib3 1.23 which is incompatible > > I downgraded to 1.22, b

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

2018-06-06 Thread Steven D'Aprano
On Tue, 05 Jun 2018 17:28:24 +0200, Peter J. Holzer wrote: [...] > If a disk with a file system which allows embedded NUL characters is > mounted on Linux (let's for the sake of the argument assume it is HFS+, > although I have to admit that I don't know anything about the internals > of that files

Re: Attachments

2018-06-06 Thread Thomas Jollans
On 06/06/18 02:48, Ben Finney wrote: > "Peter J. Holzer" writes: >> (I remember that I have seen some messages in the past where an >> attachment was obviously missing. Maybe specific content types are >> stripped, but not attachments in general) > > Yes. There may be exceptions, but “don't expec