Re: Python file location

2023-03-29 Thread dn via Python-list
On 30/03/2023 09.47, windhorn wrote: I have an older laptop I use for programming, particularly Python and Octave, running a variety of Debian Linux, and I am curious if there is a "standard" place in the file system to store this type of program file. OK, I know they should go in a repository

Re: Python file location

2023-03-29 Thread Chris Angelico
On Thu, 30 Mar 2023 at 11:08, windhorn wrote: > > I have an older laptop I use for programming, particularly Python and Octave, > running a variety of Debian Linux, and I am curious if there is a "standard" > place in the file system to store this type of program file. OK, I know they > should

Re: Python file location

2023-03-29 Thread Cameron Simpson
On 29Mar2023 13:47, windhorn wrote: I have an older laptop I use for programming, particularly Python and Octave, running a variety of Debian Linux, and I am curious if there is a "standard" place in the file system to store this type of program file. OK, I know they should go in a repository

Re: What kind of "thread safe" are deque's actually?

2023-03-29 Thread Chris Angelico
On Thu, 30 Mar 2023 at 07:36, Greg Ewing via Python-list wrote: > > On 30/03/23 6:13 am, Chris Angelico wrote: > > I'm not sure what would happen in > > a GIL-free world but most likely the lock on the input object would > > still ensure thread safety. > > In a GIL-free world, I would not expect d

Re: Standard class for time *period*?

2023-03-29 Thread Cameron Simpson
On 29Mar2023 08:17, Loris Bennett wrote: I am glad to hear that I am not alone :-) However, my use-case is fairly trivial, indeed less complicated than yours. So, in truth I don't really need a Period class. I just thought it might be a sufficiently generic itch that someone else with a more c

Re: Standard class for time *period*?

2023-03-29 Thread Cameron Simpson
On 30Mar2023 10:13, Cameron Simpson wrote: I do in fact have a `TimePartition` in my timeseries module; it presently doesn't do comparisons because I'm not comparing them - I'm just using them as slices into the timeseries data on the whole. https://github.com/cameron-simpson/css/blob/0ade6d1

Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-29 Thread a a
On Wednesday, 29 March 2023 at 22:51:15 UTC+2, Greg Ewing wrote: > On 30/03/23 8:39 am, a a wrote: > > How to add clickable url links to the following 3D Matplotlib chart to make > > it knowledge representation 3D chart, make of 1,000+ open Tabs in Firefox ? > It seems that matplotlib can be made

Python file location

2023-03-29 Thread windhorn
I have an older laptop I use for programming, particularly Python and Octave, running a variety of Debian Linux, and I am curious if there is a "standard" place in the file system to store this type of program file. OK, I know they should go in a repository and be managed by an IDE but this seem

Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-29 Thread Greg Ewing via Python-list
On 30/03/23 8:39 am, a a wrote: How to add clickable url links to the following 3D Matplotlib chart to make it knowledge representation 3D chart, make of 1,000+ open Tabs in Firefox ? It seems that matplotlib can be made to generate SVG images with hyperlinks in them: https://matplotlib.org/s

Re: What kind of "thread safe" are deque's actually?

2023-03-29 Thread Greg Ewing via Python-list
On 30/03/23 6:13 am, Chris Angelico wrote: I'm not sure what would happen in a GIL-free world but most likely the lock on the input object would still ensure thread safety. In a GIL-free world, I would not expect deque to hold a lock the entire time that something was iterating over it. That wo

combinations of all rows and cols from a dataframe

2023-03-29 Thread marc nicole
Hello everyone, Given a dataframe like this: 2 6 8 5 I want to yield the following list of lists: [ [[2],[6,5]], [[2],[6]], [[2],[5]], [[8],[6,5]], [[8],[6]], [[8],[5]], [[6],[2,8]], [[6],[8]], [[6],[2]], [[5],[2,8]], [[5],[2]], [[5],[8]], [[6,5],[2,8]] ] I have written the following (which d

Re: Ole version set as default

2023-03-29 Thread Mats Wichmann
On 3/29/23 10:46, Pranav Bhardwaj wrote: Dear sir, I am Pranav Bhardwaj and I stuck in a problem. My problem is that in my system I have python 3.11.2 but when I type python in my command prompt, my command prompt show that python version 2.7.13 as a default. And I can't be able t

Re: Ole version set as default

2023-03-29 Thread Eryk Sun
On 3/29/23, Pranav Bhardwaj wrote: >I am Pranav Bhardwaj and I stuck in a problem. My problem is > that in my system I have python 3.11.2 but when I type python in my command > prompt, my command prompt show that python version 2.7.13 as a default. Run the following command in the

Re: What kind of "thread safe" are deque's actually?

2023-03-29 Thread Jack Dangler
On 3/29/23 13:13, Chris Angelico wrote: On Thu, 30 Mar 2023 at 01:52, Jack Dangler wrote: On 3/29/23 02:08, Chris Angelico wrote: On Wed, 29 Mar 2023 at 16:56, Greg Ewing via Python-list wrote: On 28/03/23 2:25 pm, Travis Griggs wrote: Interestingly the error also only started showing up

Re: Ole version set as default

2023-03-29 Thread Thomas Passin
On 3/29/2023 12:46 PM, Pranav Bhardwaj wrote: Dear sir, I am Pranav Bhardwaj and I stuck in a problem. My problem is that in my system I have python 3.11.2 but when I type python in my command prompt, my command prompt show that python version 2.7.13 as a default. And I can't be a

Re: What kind of "thread safe" are deque's actually?

2023-03-29 Thread Dennis Lee Bieber
On Wed, 29 Mar 2023 10:50:49 -0400, Jack Dangler declaimed the following: >Sorry for any injected confusion here, but that line "data = >sorted(data)" appears as though it takes the value of the variable named >_data_, sorts it and returns it to the same variable store, so no copy >would be cr

Ole version set as default

2023-03-29 Thread Pranav Bhardwaj
Dear sir, I am Pranav Bhardwaj and I stuck in a problem. My problem is that in my system I have python 3.11.2 but when I type python in my command prompt, my command prompt show that python version 2.7.13 as a default. And I can't be able to find python 2.7.13 in my system in any fil

Re: What kind of "thread safe" are deque's actually?

2023-03-29 Thread Chris Angelico
On Thu, 30 Mar 2023 at 01:52, Jack Dangler wrote: > > > On 3/29/23 02:08, Chris Angelico wrote: > > On Wed, 29 Mar 2023 at 16:56, Greg Ewing via Python-list > > wrote: > >> On 28/03/23 2:25 pm, Travis Griggs wrote: > >>> Interestingly the error also only started showing up when I switched from >

Re: Standard class for time *period*?

2023-03-29 Thread Thomas Passin
On 3/29/2023 2:17 AM, Loris Bennett wrote: I am glad to hear that I am not alone :-) However, my use-case is fairly trivial, indeed less complicated than yours. So, in truth I don't really need a Period class. I just thought it might be a sufficiently generic itch that someone else with a more

Re: Standard class for time *period*?

2023-03-29 Thread Loris Bennett
Cameron Simpson writes: > On 28Mar2023 08:05, Dennis Lee Bieber wrote: >> So far, you seem to be the only person who has ever asked for >> asingle >>entity incorporating an EPOCH (datetime.datetime) + a DURATION >>(datetime.timedelta). > > But not the only person to want one. I've got a

Re: What kind of "thread safe" are deque's actually?

2023-03-29 Thread Grant Edwards
On 2023-03-29, Jack Dangler wrote: > >> data = sorted(data) > > Sorry for any injected confusion here, but that line "data = > sorted(data)" appears as though it takes the value of the variable named > _data_, sorts it and returns it to the same variable store, so no copy > would be create

Re: What kind of "thread safe" are deque's actually?

2023-03-29 Thread Jack Dangler
On 3/29/23 02:08, Chris Angelico wrote: On Wed, 29 Mar 2023 at 16:56, Greg Ewing via Python-list wrote: On 28/03/23 2:25 pm, Travis Griggs wrote: Interestingly the error also only started showing up when I switched from running a statistics.mean() on one of these, instead of what I had been