Re: weirdness with list()

2021-02-28 Thread Greg Ewing
On 28/02/21 1:17 pm, Cameron Simpson wrote: [its length in bytes] is presented via the object's __len__ method, BUT... It also has a __iter__ value, which like any Box iterates over the subboxes. You're misusing __len__ here. If an object is iterable and also has a __len__, its __len__ shoul

Packaging/MANIFEST.in: Incude All, Exclude .gitignore

2021-02-28 Thread Abdur-Rahmaan Janhangeer
Greetings list, SInce i have a .gitignore, how do i exclude all files and folders listed by my gitignore? How do i include everything by default? Kind Regards, Abdur-Rahmaan Janhangeer about | blog github

Re: weirdness with list()

2021-02-28 Thread MRAB
On 2021-02-28 23:28, Peter Otten wrote: On 28/02/2021 23:33, Marco Sulla wrote: On Sun, 28 Feb 2021 at 01:19, Cameron Simpson wrote: My object represents an MDAT box in an MP4 file: it is the ludicrously large data box containing the raw audiovideo data; for a TV episode it is often about 2GB

Re: weirdness with list()

2021-02-28 Thread Cameron Simpson
On 01Mar2021 00:28, Peter Otten <__pete...@web.de> wrote: >On 28/02/2021 23:33, Marco Sulla wrote: >>I can't reproduce, Am I missing something? >> >>marco@buzz:~$ python3 >>Python 3.6.9 (default, Jan 26 2021, 15:33:00) >>[GCC 8.4.0] on linux >>Type "help", "copyright", "credits" or "license" for mo

Re: weirdness with list()

2021-02-28 Thread Cameron Simpson
On 28Feb2021 10:51, Peter Otten <__pete...@web.de> wrote: >On 28/02/2021 01:17, Cameron Simpson wrote: >>I noticed that it was stalling, and investigation revealed it was >>stalling at this line: >> >> subboxes = list(self) >> >>when doing the MDAT box. That box (a) has no subboxes at all and (

Re: weirdness with list()

2021-02-28 Thread Peter Otten
On 28/02/2021 23:33, Marco Sulla wrote: On Sun, 28 Feb 2021 at 01:19, Cameron Simpson wrote: My object represents an MDAT box in an MP4 file: it is the ludicrously large data box containing the raw audiovideo data; for a TV episode it is often about 2GB and a movie is often 4GB to 6GB. [...] Th

Re: weirdness with list()

2021-02-28 Thread Marco Sulla
On Sun, 28 Feb 2021 at 01:19, Cameron Simpson wrote: > My object represents an MDAT box in an MP4 file: it is the ludicrously > large data box containing the raw audiovideo data; for a TV episode it > is often about 2GB and a movie is often 4GB to 6GB. > [...] > That length is presented via the ob

[Announce] - preview of the new python extension "pymsgque"

2021-02-28 Thread aotto1968
Hello everybody, PYTHON has a new application server → https://nhi1.selfhost.co/nhi1/ SOMETHING that writes code for you → https://nhi1.selfhost.co/wiki/NHI1_-_the_POWER_of_programming have fun -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter new window contentent when button is clicked.

2021-02-28 Thread Bischoop
On 2021-02-25, MRAB wrote: >> > The trick is to put the "pages" on top of each other and then show the > appropriate one, something like this: > import tkinter as tk > > def on_next_page(): > # Brings page 2 to the top. > frame_2.tkraise() > > def on_previous_page(): > # Brings pa

Re: weirdness with list()

2021-02-28 Thread Peter Otten
On 28/02/2021 01:17, Cameron Simpson wrote: I just ran into a surprising (to me) issue with list() on an iterable object. My object represents an MDAT box in an MP4 file: it is the ludicrously large data box containing the raw audiovideo data; for a TV episode it is often about 2GB and a movie i