Re: Environment vars

2020-11-27 Thread Bob van der Poel
On Fri, Nov 27, 2020 at 1:41 PM dn via Python-list wrote: > On 26/11/2020 05:46, Bob van der Poel wrote: > > I've got a program which accepts an optional env variable listing a > single > > or multiple directory for the app to use. I've done a bit of a search

Funny error message

2020-12-31 Thread Bob van der Poel
When I run python from the command line and generate an error I get the following: Python 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> z /home/bob/.local/li

Re: Funny error message

2021-01-01 Thread Bob van der Poel
['', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/bob/.local /lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] - running pyt

Re: Funny error message

2021-01-01 Thread Bob van der Poel
On Thu, Dec 31, 2020 at 9:25 PM DL Neil via Python-list < python-list@python.org> wrote: > On 1/1/21 11:46 AM, Bob van der Poel wrote: > > When I run python from the command line and generate an error I get the > > following: > > > > Python 3.8.5 (default, Jul

Re: Funny error message

2021-01-01 Thread Bob van der Poel
ink!). > > > That is where "python3.8 -m pip install --user" puts the packages you > install. > > Barry > > > > Okay ... I'll take your word for it. But, I really don't think I've every run that command :) -- Listen to my FREE CD at http:/

Re: Funny error message

2021-01-01 Thread Bob van der Poel
On Fri, Jan 1, 2021 at 12:17 PM DL Neil via Python-list < python-list@python.org> wrote: > On 1/2/21 6:35 AM, Bob van der Poel wrote: > > Found it! > > Well done! > > > >> I had the proper urllib3 installed. But, in my .local/lib/ a > previous > >

Re: Funny error message

2021-01-01 Thread Bob van der Poel
that it's not 100%. > > There are multiple reasons for this, but the first time that code is > run, a .pyc will (presumably) be created - and we're back to > considerations of Python environments, Python cf C, perhaps even > > Oh no! Not these damned dragons again :) But, seriously. No, I have no idea of moving installed stuff around between /usr /.local and /usr/local. There lies no dragons but madness :) I meant that I will pay more attention as to what the installer(s) are doing. Thanks for the input. -- Listen to my FREE CD at http://www.mellowood.ca/music/cedars Bob van der Poel ** Wynndel, British Columbia, CANADA ** EMAIL: b...@mellowood.ca WWW: http://www.mellowood.ca -- https://mail.python.org/mailman/listinfo/python-list

MMA - Musical MIDI Accompaniment, Beta 0.12

2004-12-03 Thread Bob van der Poel
solo voice methods, and general cleanups/fixes. Comments appreciated! -- Bob van der Poel ** Wynndel, British Columbia, CANADA ** EMAIL: [EMAIL PROTECTED] WWW: http://mypage.uniserve.com/~bvdp -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software

MIDI (was - Re: BASIC vs Python)

2004-12-22 Thread Bob van der Poel
to enter notes and play them back. After trying out half a dozen of these, I ended rolling my own solution in just 400 lines of Python, plus a Python module to read/write MIDI files. Regards, Jan Just as a side note, I remember reading somewhere that the Casio WK3000 Keyboard uses Python. N

Re: Creating slice notation from string

2009-09-02 Thread Bob van der Poel
> For a one-liner: > >    x[slice(*map(int, x[1:-1].split(':')))] Thanks. Almost works :) For s="[2]" and s="[1:2]" it's fine. But, if I have s = "[:2]" then I get: >>> x[slice(*[int(i) for i in s.strip("[]").split(":")])] Traceback (most recent call last): File "", line 1, in ValueError:

Re: Creating slice notation from string

2009-09-02 Thread Bob van der Poel
> Of course, you could also do something like this: > >      eval('x' + s) > or >      eval(str(x) + s) > Yes, I have user inputed 's'. So, if I can't get the generalized list version from Robert working I'll have to use this. Speed is not a big deal in this. As to malicious input, I could pretty

Re: Creating slice notation from string

2009-09-02 Thread Bob van der Poel
On Sep 2, 4:16 pm, "Rhodri James" wrote: > On Wed, 02 Sep 2009 23:57:48 +0100, Bob van der Poel   > wrote: > > > > >> Of course, you could also do something like this: > > >>      eval('x' + s) > >> or > >>      e

Re: Creating slice notation from string

2009-09-02 Thread Bob van der Poel
On Sep 2, 4:43 pm, "Jan Kaliszewski" wrote: > 03-09-2009 o 00:55:10 Bob van der Poel wrote: > > > > >> For a one-liner: > > >>    x[slice(*map(int, x[1:-1].split(':')))] > > > Thanks. > > > Almost works :) > > >

Re: Creating slice notation from string

2009-09-02 Thread Bob van der Poel
On Sep 2, 5:16 pm, Steven D'Aprano wrote: > On Wed, 02 Sep 2009 16:41:34 -0700, Bob van der Poel wrote: > > > But, translating 1, 2 or 3 ints into a valid splice isn't quit that > > easy? I could figure each value, and convert them to either int or None > > (key

Re: Creating slice notation from string

2009-09-02 Thread Bob van der Poel
On Sep 2, 4:27 pm, Ethan Furman wrote: > Bob van der Poel wrote: > > > > >>For a one-liner: > > >>   x[slice(*map(int, x[1:-1].split(':')))] > > > Thanks. > > > Almost works :) > > > For s="[2]" and s="[1:2]"

Re: Creating slice notation from string

2009-09-03 Thread Bob van der Poel
On Sep 2, 8:52 pm, Steven D'Aprano wrote: > On Wed, 02 Sep 2009 17:32:09 -0700, Bob van der Poel wrote: > > > Actually, nither this or Jan's latest is working properly. I don't know > > if it's the slice() function or what (I'm using python 2.5). But

Canonical list of Python security vulnerabilities

2023-07-14 Thread Bob Kline via Python-list
found security-annou...@python.org, but there hasn't been anything posted there in over a year as far as I can tell, and even before that it's pretty thin. If there's a better place to ask, please advise. Thanks. -- Bob Kline https://www.rksystems.com mailto:bkl...@rks

Re: Canonical list of Python security vulnerabilities

2023-07-14 Thread Bob Kline via Python-list
On Fri, Jul 14, 2023 at 1:35 PM Bob Kline wrote: > Can someone point me to the official catalog of security vulnerabilities > in Python I did try entering "python security vulnerabilities" in the search box of the python.org web site, but what I got back was "No resu

Re: Canonical list of Python security vulnerabilities

2023-07-14 Thread Bob Kline via Python-list
On Fri, Jul 14, 2023 at 3:02 PM Barry wrote: > Where do you get your python from? Directly from python.org. > You may find that the organisation that packages python that you use has such > a list. That's my hope. Just haven't found it yet. :-} -- https://mail.python.org/mailman/listinfo/pyt

Re: Canonical list of Python security vulnerabilities

2023-07-15 Thread Bob Kline via Python-list
n_Vulnerabilities_and_Exposures";. Thanks for the link, Dieter. I found the NIST search interface to be buggy, and there doesn't seem to be a way to search the Mitre site effectively to get vulnerabilities just for the Python language and standard libraries. I've downloaded the entire cor

backslash in triple quoted string

2025-05-07 Thread Bob van der Poel via Python-list
as a comment at the top of a function. I changed the "\" to a "/" and all is well now. -- Listen to my FREE CD at http://www.mellowood.ca/music/cedars Bob van der Poel ** Wynndel, British Columbia, CANADA ** EMAIL: b...@mellowood.ca WWW: http://www.mellowood.ca -- https://mail.python.org/mailman/listinfo/python-list

<    2   3   4   5   6   7