Re: Exploring terminfo

2021-01-17 Thread Greg Ewing
On 18/01/21 3:34 am, Alan Gauld wrote: The problem is terminfo is not really part of curses. Curses is built on top of terminfo. As far as I can tell from the man pages, terminfo itself is just a file format. The only programmatic interfaces I can find for it *are* part of curses: del_curterm(

Re: advice on debugging a segfault

2021-01-17 Thread Stestagg
I would normally agree, except... This is a refcount issue (I was able to reproduce the problem, gbd shows a free error ) And I wouldn't recommend DGBing a refcount issue as a beginner to debugging. The other mailing list identified a PIL bug that messes up the refcount for True, but this refcou

Re: Exploring terminfo

2021-01-17 Thread Grant Edwards
On 2021-01-17, Grant Edwards wrote: > On 2021-01-17, Greg Ewing wrote: >> On 17/01/21 12:40 pm, Chris Angelico wrote: >>> This is true. However, at some point, the boundary is crossed from >>> Python into the C library. Something, at that point, knows. It's very >>> common to have a flush option

Re: advice on debugging a segfault

2021-01-17 Thread Barry
Run python under gdb and when the segv happens use the gdb bt command to get a stack trace. Also if gdb says that it needs debug symbols install you will need to do that. Otherwise the not will not contain symbols. Barry > On 17 Jan 2021, at 19:58, Robin Becker wrote: > > I have a segfault i

Re: Exploring terminfo

2021-01-17 Thread Grant Edwards
On 2021-01-17, Greg Ewing wrote: > On 17/01/21 12:40 pm, Chris Angelico wrote: >> This is true. However, at some point, the boundary is crossed from >> Python into the C library. Something, at that point, knows. It's very >> common to have a flush option available, so it should be used. > > I'm wo

advice on debugging a segfault

2021-01-17 Thread Robin Becker
I have a segfault in the 3.10 alpha 4 when running the reportlab document generation; all the other tests seem to have worked. I would like to ask experts here how to approach getting the location of the problem. I run recent archlinux. Below is the output of a test run with -Xdev -Xtracemalloc

Re: open sentinel-2image python

2021-01-17 Thread MRAB
On 2021-01-17 19:12, omid mohammadi wrote: On Sunday, January 17, 2021 at 9:31:58 PM UTC+3:30, MRAB wrote: On 2021-01-17 13:57, Karsten Hilbert wrote: > Am Sun, Jan 17, 2021 at 02:20:24AM -0800 schrieb omid mohammadi: > >> When I open the sentinel-2 image in Python, I get the following error:

Re: open sentinel-2image python

2021-01-17 Thread dn via Python-list
On 18/01/2021 08.12, omid mohammadi wrote: > On Sunday, January 17, 2021 at 9:31:58 PM UTC+3:30, MRAB wrote: >> On 2021-01-17 13:57, Karsten Hilbert wrote: >>> Am Sun, Jan 17, 2021 at 02:20:24AM -0800 schrieb omid mohammadi: >>> When I open the sentinel-2 image in Python, I get the following

Re: open sentinel-2image python

2021-01-17 Thread omid mohammadi
On Sunday, January 17, 2021 at 9:31:58 PM UTC+3:30, MRAB wrote: > On 2021-01-17 13:57, Karsten Hilbert wrote: > > Am Sun, Jan 17, 2021 at 02:20:24AM -0800 schrieb omid mohammadi: > > > >> When I open the sentinel-2 image in Python, I get the following error: > >> > >> MemoryError: Unable to all

Re: open sentinel-2image python

2021-01-17 Thread MRAB
On 2021-01-17 13:57, Karsten Hilbert wrote: Am Sun, Jan 17, 2021 at 02:20:24AM -0800 schrieb omid mohammadi: When I open the sentinel-2 image in Python, I get the following error: MemoryError: Unable to allocate 115. MiB for an array with shape (5490, 5490) and data type float32 How can I fi

Re: count consecutive elements

2021-01-17 Thread Peter Otten
On 17/01/2021 02:15, Dan Stromberg wrote: IMO a good set of tests is much more important than type annotations ;) def get_longest(string: str) -> typing.Tuple[int, typing.List[str]]: """Get the longest run of a single consecutive character.""" May I ask why you artificially limit th

Re: Exploring terminfo

2021-01-17 Thread Alan Gauld via Python-list
On 17/01/2021 00:02, Greg Ewing wrote: > On 17/01/21 12:40 pm, Chris Angelico wrote: >> This is true. However, at some point, the boundary is crossed from >> Python into the C library. Something, at that point, knows. It's very >> common to have a flush option available, so it should be used. > >

Re: open sentinel-2image python

2021-01-17 Thread Karsten Hilbert
Am Sun, Jan 17, 2021 at 02:20:24AM -0800 schrieb omid mohammadi: > When I open the sentinel-2 image in Python, I get the following error: > > MemoryError: Unable to allocate 115. MiB for an array with shape (5490, 5490) > and data type float32 > > How can I fix it? You can install more RAM. Kar

open sentinel-2image python

2021-01-17 Thread omid mohammadi
Dear all , When I open the sentinel-2 image in Python, I get the following error: MemoryError: Unable to allocate 115. MiB for an array with shape (5490, 5490) and data type float32 How can I fix it? Thanks -- https://mail.python.org/mailman/listinfo/python-list