Re: How does a method of a subclass become a method of the base class?
On 2023-03-27 01:53:49 +0200, Jen Kris via Python-list wrote: > But that brings up a new question. I can create a class instance with > x = BinaryConstraint(), but what happens when I have a line like > "EqualityConstraint(prev, v, Strength.REQUIRED)"? If that is the whole statement it will create a new object of class EqualityConstraint and immediately discard it. That may have some useful side effect (for example the object may add itself to a list of constraints) but this is not apparent from this line. hp -- _ | Peter J. Holzer| Story must make more sense than reality. |_|_) || | | | h...@hjp.at |-- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" signature.asc Description: PGP signature -- https://mail.python.org/mailman/listinfo/python-list
Re: How does a method of a subclass become a method of the base class?
On 3/26/23 17:53, Jen Kris via Python-list wrote: I’m asking all these question because I have worked in a procedural style for many years, with class work limited to only simple classes, but now I’m studying classes in more depth. The three answers I have received today, including yours, have helped a lot. Classes in Python don't work quite like they do in many other languages. You may find a lightbulb if you listen to Raymond Hettinger talk about them: https://dailytechvideo.com/raymond-hettinger-pythons-class-development-toolkit/ I'd also advise that benchmarks often do very strange things to set up the scenario they're trying to test, a benchmark sure wouldn't be my first place to look in learning a new piece of Python - I don't know if it was the first place, but thought this was worth a mention. -- https://mail.python.org/mailman/listinfo/python-list
Re: How does a method of a subclass become a method of the base class?
Thanks to everyone who answered this question. Your answers have helped a lot. Jen Mar 27, 2023, 14:12 by m...@wichmann.us: > On 3/26/23 17:53, Jen Kris via Python-list wrote: > >> I’m asking all these question because I have worked in a procedural style >> for many years, with class work limited to only simple classes, but now I’m >> studying classes in more depth. The three answers I have received today, >> including yours, have helped a lot. >> > > Classes in Python don't work quite like they do in many other languages. > > You may find a lightbulb if you listen to Raymond Hettinger talk about them: > > https://dailytechvideo.com/raymond-hettinger-pythons-class-development-toolkit/ > > I'd also advise that benchmarks often do very strange things to set up the > scenario they're trying to test, a benchmark sure wouldn't be my first place > to look in learning a new piece of Python - I don't know if it was the first > place, but thought this was worth a mention. > > > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list
Standard class for time *period*?
Hi, I have been around long enough to know that, due to time-zones, daylight saving and whatnot, time-related stuff is complicated. So even if I think something connected with time should exist, there may well be a very good reason why it does not. My problem: I need to deal with what I call a 'period', which is a span of time limited by two dates, start and end. The period has a 'duration', which is the elapsed time between start and end. The duration is essentially a number of seconds, but in my context, because the durations are usually hours or days, I would generally want to display the duration in a format such as "dd-hh:mm:ss" My (possibly ill-founded) expectation: There is a standard class which encapsulates this sort of functionality. My (possibly insufficiently researched) conclusion: Such a standard class does not exist. What is at fault here? My expectation or my conclusion? Cheers, Loris -- This signature is currently under constuction. -- https://mail.python.org/mailman/listinfo/python-list
Re: How does a method of a subclass become a method of the base class?
On 3/26/23 13:43, Jen Kris wrote: My question is: what makes "choose_method" a method of the base class, called as self.choose_method instead of UrnaryConstraint.choose_method? Is it super(UrnaryConstraint, self).__init__(strength) or just the fact that Constraint is its base class? When referring to "self" you are referring to an "instance" of the class or classes, think in terms of objects (the instance, usually self) vs a blueprint (the class, usually cls). saying self.choose_method(mark) checks the "instance" of self to see if it has something called choose_method at run time (instances being created at run time). If you have an instance of just Constraint, and never had a choose_method defined for it, you will get an error because it can't find it (which in this case is presumed as designed). If the "instance" is of a subclass of Constraint that does have a choose_method, that also inherits the stuff from Constraint, it will successfully call it against the "instance" that has been constructed with attributes of both classes. if the instance of a subclass has a definition for something that is in the base class, for instance IF UrnaryConstraint had it's own def satisfy() method, the instance would call the subclass version. In the case given, it does not, so it looks to the parent to see if it has inherited satisfy() from higher up. Hopefully that helps a little bit.. just have to get a feel for OO instantiated object vs class.. -- https://mail.python.org/mailman/listinfo/python-list
Re: Standard class for time *period*?
r...@zedat.fu-berlin.de (Stefan Ram) writes: > r...@zedat.fu-berlin.de (Stefan Ram) writes: >>d = datetime_diff.days >>h, rem = divmod( datetime_diff.seconds, 3600 ) >>m, s = divmod( rem, 60 ) >>print( f'{d:02}-{h:02}:{m:02}:{s:02}' ) > > If the default formatting is acceptable to you, you can also > print the datetime_diff in a shorter way: > > main.py > > from datetime import datetime > > format = '%Y-%m-%dT%H:%M:%S%z' > datetime_0 = datetime.strptime( '2023-03-27T14:00:52+01:00', format ) > datetime_1 = datetime.strptime( '2023-03-27T14:27:23+01:00', format ) > > print( datetime_1 - datetime_0 ) > > sys.stdout > > 0:26:31 > > . Days will also be shown if greater than zero. Thanks for the examples, but I am not really interested in how to write a bunch of code to do what I need, as I can already do that. I am interested in whether there is a standard class for this and, if there is not such a class, why this is the case. Cheers, Loris -- This signature is currently under constuction. -- https://mail.python.org/mailman/listinfo/python-list
Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?
On Thursday, 23 March 2023 at 22:15:10 UTC+1, Thomas Passin wrote: > On 3/23/2023 3:38 PM, Mats Wichmann wrote: > > On 3/23/23 09:48, Thomas Passin wrote: > > > >> I didn't realize that Christoph Gohlke is still maintaining this site. > > > > Unless the the last-changed stuff stopped working, it's in a static state: > > > > by Christoph Gohlke. Updated on 26 June 2022 at 07:27 UTC > I did see that. The OP needs a version that would work with Windows 7 > and an older version of Python (3.7 or 3.8, IIRC), so things may work out. Thank you Thomas for your excellent work you did for me. Ok, I know, I need to switch to Windows 10 run on another PC next to me. I need to learn how to copy and move every web page opened in Firefox as a reference to social media, web sites for Python, chat and more (about 50 web pages live opened ;) I really love the limited functionality of w3schools to let me live open and run Python examples, especiallly Matplotlib examples. Unfortunately chat forum at w3schools is low traffic, showing no interest to add more examples. https://www.w3schools.com/python/trypython.asp?filename=demo_matplotlib_subplots3 https://www.w3schools.com/python/matplotlib_subplot.asp thank you Thomas, darius -- https://mail.python.org/mailman/listinfo/python-list
Re: Standard class for time *period*?
On Mon, 27 Mar 2023 15:00:52 +0200, Loris Bennett wrote: > I need to deal with what I call a 'period', which is a span of time > limited by two dates, start and end. The period has a 'duration', > which is the elapsed time between start and end. The duration is > essentially a number of seconds, but in my context, because the > durations are usually hours or days, I would generally want to display > the duration in a format such as "dd-hh:mm:ss" https://www.programiz.com/python-programming/datetime Scroll down to timedelta. If '14 days, 13:55:39' isn't good enough you'll have to format it yourself. -- https://mail.python.org/mailman/listinfo/python-list
Re: Standard class for time *period*?
The Python standard library module datetime seems to be what you want. It has objects representing date/times, and deltatimes (i.e., durations). These can be timezone aware or not as you wish. Dr. Gary Herron Professor of Computer Science DigiPen Institute of Technology On 3/27/23 6:00 AM, loris.benn...@fu-berlin.de wrote: Hi, I have been around long enough to know that, due to time-zones, daylight saving and whatnot, time-related stuff is complicated. So even if I think something connected with time should exist, there may well be a very good reason why it does not. My problem: I need to deal with what I call a 'period', which is a span of time limited by two dates, start and end. The period has a 'duration', which is the elapsed time between start and end. The duration is essentially a number of seconds, but in my context, because the durations are usually hours or days, I would generally want to display the duration in a format such as "dd-hh:mm:ss" My (possibly ill-founded) expectation: There is a standard class which encapsulates this sort of functionality. My (possibly insufficiently researched) conclusion: Such a standard class does not exist. What is at fault here? My expectation or my conclusion? Cheers, Loris -- https://mail.python.org/mailman/listinfo/python-list
Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?
On 3/27/2023 10:07 AM, a a wrote: Ok, I know, I need to switch to Windows 10 run on another PC next to me. I need to learn how to copy and move every web page opened in Firefox as a reference to social media, web sites for Python, chat and more (about 50 web pages live opened 😉 This sounds like you mean when you get a new Windows 10 PC, you will want to move your open tabs to the new machine. I see several possibilities for this. 1. Copy your Firefox profile folder to the new computer, and tell Firefox to use it as the default profile. I *think* this will include the open tabs, but I haven't tried it. Saving that folder is useful for backup anyway. (If you use Thunderbird for email, you really *must* back up its profile folder because all your email with its folder structure is there. BTW, you can even copy the profile over to a Linux machine that has Thunderbird, and presto, all your email will be there. The Firefox profile would probably transfer just as well). 2. Bookmark all your open tabs under a new heading "open tabs", then export the bookmarks. In the new machine, import them into Firefox there. They won't open in tabs, but it will be easy to find them and open them when you want to. You probably will want to copy over your bookmarks anyway, so this adds little effort. 3. There may be a specific record of open tabs that you can copy or export. I don't know about this but an internet search should help. Good luck. -- https://mail.python.org/mailman/listinfo/python-list
Re: Standard class for time *period*?
On 3/27/2023 11:34 AM, rbowman wrote: On Mon, 27 Mar 2023 15:00:52 +0200, Loris Bennett wrote: I need to deal with what I call a 'period', which is a span of time limited by two dates, start and end. The period has a 'duration', which is the elapsed time between start and end. The duration is essentially a number of seconds, but in my context, because the durations are usually hours or days, I would generally want to display the duration in a format such as "dd-hh:mm:ss" https://www.programiz.com/python-programming/datetime Scroll down to timedelta. If '14 days, 13:55:39' isn't good enough you'll have to format it yourself. I second this. timedelta should give the OP exactly what he's talking about. -- https://mail.python.org/mailman/listinfo/python-list
Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?
On Monday, 27 March 2023 at 19:19:41 UTC+2, Thomas Passin wrote: > On 3/27/2023 10:07 AM, a a wrote: > > Ok, I know, I need to switch to Windows 10 run on another PC next to me. > > > > I need to learn how to copy and move every web page opened in Firefox as a > > reference to social media, web sites for Python, chat and more (about 50 > > web pages live opened 😉 > > This sounds like you mean when you get a new Windows 10 PC, you will > want to move your open tabs to the new machine. I see several > possibilities for this. > > 1. Copy your Firefox profile folder to the new computer, and tell > Firefox to use it as the default profile. I *think* this will include > the open tabs, but I haven't tried it. Saving that folder is useful for > backup anyway. (If you use Thunderbird for email, you really *must* > back up its profile folder because all your email with its folder > structure is there. BTW, you can even copy the profile over to a Linux > machine that has Thunderbird, and presto, all your email will be there. > The Firefox profile would probably transfer just as well). > > 2. Bookmark all your open tabs under a new heading "open tabs", then > export the bookmarks. In the new machine, import them into Firefox > there. They won't open in tabs, but it will be easy to find them and > open them when you want to. You probably will want to copy over your > bookmarks anyway, so this adds little effort. > > 3. There may be a specific record of open tabs that you can copy or > export. I don't know about this but an internet search should help. > > Good luck. a nice solution comes from How to Copy URLs of All Open Tabs in Firefox https://www.howtogeek.com/723921/how-to-copy-urls-of-all-open-tabs-in-firefox/ right clicking opened tab, all opened tabs can be selected moving via menu to bookmarks/ booksmarks management url bookmarks can be right-mouse clicked to copy urls finally, urls can be pasted into Notepad++ and saved as a file unfortunately, saving as .html file fails to generate html file with clickable web links Notepad++ keeps urls active, selectable but not ready to be opened in Firefox so I need to learn how to make Notepad++ or another editor to save urls as html file BTW Selecting all opened tabs I get 1,000+ active urls (opened web pages ), so something must be wrong -- https://mail.python.org/mailman/listinfo/python-list
Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?
On 3/27/2023 3:07 PM, a a wrote: On Monday, 27 March 2023 at 19:19:41 UTC+2, Thomas Passin wrote: On 3/27/2023 10:07 AM, a a wrote: Ok, I know, I need to switch to Windows 10 run on another PC next to me. I need to learn how to copy and move every web page opened in Firefox as a reference to social media, web sites for Python, chat and more (about 50 web pages live opened 😉 This sounds like you mean when you get a new Windows 10 PC, you will want to move your open tabs to the new machine. I see several possibilities for this. 1. Copy your Firefox profile folder to the new computer, and tell Firefox to use it as the default profile. I *think* this will include the open tabs, but I haven't tried it. Saving that folder is useful for backup anyway. (If you use Thunderbird for email, you really *must* back up its profile folder because all your email with its folder structure is there. BTW, you can even copy the profile over to a Linux machine that has Thunderbird, and presto, all your email will be there. The Firefox profile would probably transfer just as well). 2. Bookmark all your open tabs under a new heading "open tabs", then export the bookmarks. In the new machine, import them into Firefox there. They won't open in tabs, but it will be easy to find them and open them when you want to. You probably will want to copy over your bookmarks anyway, so this adds little effort. 3. There may be a specific record of open tabs that you can copy or export. I don't know about this but an internet search should help. Good luck. a nice solution comes from How to Copy URLs of All Open Tabs in Firefox https://www.howtogeek.com/723921/how-to-copy-urls-of-all-open-tabs-in-firefox/ right clicking opened tab, all opened tabs can be selected moving via menu to bookmarks/ booksmarks management url bookmarks can be right-mouse clicked to copy urls finally, urls can be pasted into Notepad++ and saved as a file unfortunately, saving as .html file fails to generate html file with clickable web links Don't go pasting urls into a text file one by one. Instead, do my #2 above. That will import all the bookmarks, including the tabs you saved as bookmarks. Then import the exported bookmark file into the new browser. There's no reason to fuss around trying to get text copies of urls to open. For that matter, the exported bookmarks file is an HTML file and can be opened directly in a browser, with clickable links. -- https://mail.python.org/mailman/listinfo/python-list
Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?
On 3/27/2023 4:02 PM, Thomas Passin wrote: On 3/27/2023 3:07 PM, a a wrote: On Monday, 27 March 2023 at 19:19:41 UTC+2, Thomas Passin wrote: On 3/27/2023 10:07 AM, a a wrote: Ok, I know, I need to switch to Windows 10 run on another PC next to me. I need to learn how to copy and move every web page opened in Firefox as a reference to social media, web sites for Python, chat and more (about 50 web pages live opened 😉 This sounds like you mean when you get a new Windows 10 PC, you will want to move your open tabs to the new machine. I see several possibilities for this. 1. Copy your Firefox profile folder to the new computer, and tell Firefox to use it as the default profile. I *think* this will include the open tabs, but I haven't tried it. Saving that folder is useful for backup anyway. (If you use Thunderbird for email, you really *must* back up its profile folder because all your email with its folder structure is there. BTW, you can even copy the profile over to a Linux machine that has Thunderbird, and presto, all your email will be there. The Firefox profile would probably transfer just as well). 2. Bookmark all your open tabs under a new heading "open tabs", then export the bookmarks. In the new machine, import them into Firefox there. They won't open in tabs, but it will be easy to find them and open them when you want to. You probably will want to copy over your bookmarks anyway, so this adds little effort. 3. There may be a specific record of open tabs that you can copy or export. I don't know about this but an internet search should help. Good luck. a nice solution comes from How to Copy URLs of All Open Tabs in Firefox https://www.howtogeek.com/723921/how-to-copy-urls-of-all-open-tabs-in-firefox/ right clicking opened tab, all opened tabs can be selected moving via menu to bookmarks/ booksmarks management url bookmarks can be right-mouse clicked to copy urls finally, urls can be pasted into Notepad++ and saved as a file unfortunately, saving as .html file fails to generate html file with clickable web links Don't go pasting urls into a text file one by one. Instead, do my #2 above. That will import all the bookmarks, including the tabs you saved as bookmarks. Then import the exported bookmark file into the new browser. There's no reason to fuss around trying to get text copies of urls to open. For that matter, the exported bookmarks file is an HTML file and can be opened directly in a browser, with clickable links. All right, I think I've got the easiest way to go. You *can* bookmark all the tabs at once - see below. Then, as I already proposed, export the bookmarks and import them into Firefox on the new computer. To save the tabs, right click any one of them and select the "Select All Tabs" item. They will all highlight. Right click on one of them and select the "Bookmark Tabs" item. A dialog box will open with an entry lone for the Name to use (like "Tabset1") and a location - a bookmark folder - for them to go into. CAREFUL - if you just click "Save", you may not be able to find them. Use the dropdown arrow to save them in one of the top level folders, like "Bookmarks Toolbars". -- https://mail.python.org/mailman/listinfo/python-list
What kind of "thread safe" are deque's actually?
A while ago I chose to use a deque that is shared between two threads. I did so because the docs say: "Deques support thread-safe, memory efficient appends and pops from either side of the deque with approximately the same O(1) performance in either direction.” (https://docs.python.org/3.11/library/collections.html?highlight=deque#collections.deque) Earlier today, looking through some server logs I noticed that from time to I’m getting a RuntimeError: deque mutated during iteration I guess this surprised me. When I see “thread safe”, I don’t expect to get errors. 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 using, a statistics.median(). Apparently the kind of iteration done in a mean, is more conflict prone than a median? I’ve got a couple ways I can work around this. But I was surprised. -- https://mail.python.org/mailman/listinfo/python-list
Re: What kind of "thread safe" are deque's actually?
On Tue, 28 Mar 2023 at 12:26, Travis Griggs wrote: > > A while ago I chose to use a deque that is shared between two threads. I did > so because the docs say: > > "Deques support thread-safe, memory efficient appends and pops from either > side of the deque with approximately the same O(1) performance in either > direction.” > > (https://docs.python.org/3.11/library/collections.html?highlight=deque#collections.deque) > > Earlier today, looking through some server logs I noticed that from time to > I’m getting a > > RuntimeError: deque mutated during iteration > > I guess this surprised me. When I see “thread safe”, I don’t expect to get > errors. > I'd like to see your code, but here's an example with no threads whatsoever that has the same error: >>> from collections import deque >>> q = deque([1, 2, 3, 4]) >>> for item in q: ... if item % 2: q.append(item * 2) ... print(item) ... 1 Traceback (most recent call last): File "", line 1, in RuntimeError: deque mutated during iteration This error comes from having an active iterator, then mutating the deque, then continuing to iterate. That MAY be a result of threading, but it isn't necessarily. For threaded usage, I would recommend restricting yourself to append/appendleft/pop/popleft (the standard mutators), with any operations on the entire queue being done on a copy instead (either q.copy() or list(q) depending on what you need). The act of taking a copy should itself be thread-safe, and obviously anything done on a separate copy will be independent of changes to the original. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: What kind of "thread safe" are deque's actually?
On 2023-03-28, Travis Griggs wrote: > A while ago I chose to use a deque that is shared between two threads. I did > so because the docs say: > > "Deques support thread-safe, memory efficient appends and pops from > either side of the deque with approximately the same O(1) > performance in either direction.” > > (https://docs.python.org/3.11/library/collections.html?highlight=deque#collections.deque) > > Earlier today, looking through some server logs I noticed that from > time to I’m getting a > > RuntimeError: deque mutated during iteration > > I guess this surprised me. When I see “thread safe”, I don’t expect > to get errors. Well, I guess it doesn't say that iteration of a deque is thread safe. It only claims that appends and pops from either end are thread safe. It doesn't even claim that inserts, removes, clear, copy, or any other operations are thread-safe. -- Grant -- https://mail.python.org/mailman/listinfo/python-list
Re: What kind of "thread safe" are deque's actually?
On 2023-03-27 at 18:25:01 -0700, Travis Griggs wrote: > "Deques support thread-safe, memory efficient appends and pops from > either side of the deque with approximately the same O(1) performance > in either direction.” > (https://docs.python.org/3.11/library/collections.html?highlight=deque#collections.deque) [...] > I guess this surprised me. When I see “thread safe”, I don’t expect to > get errors. Even without threads, mutating a collection while iterating over it usually results in bad things happening. $ python Python 3.10.10 (main, Mar 5 2023, 22:26:53) [GCC 12.2.1 20230201] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import collections >>> x = collections.deque() >>> x.append(44) >>> x.append(55) >>> x.append(66) >>> x.append(77) >>> x deque([44, 55, 66, 77]) >>> for y in x: x.pop() 77 Traceback (most recent call last): File "", line 1, in RuntimeError: deque mutated during iteration Concurrency just increases the likeliness of mutating while iterating. -- https://mail.python.org/mailman/listinfo/python-list
Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?
On Tuesday, 28 March 2023 at 02:07:43 UTC+2, Thomas Passin wrote: > On 3/27/2023 4:02 PM, Thomas Passin wrote: > > On 3/27/2023 3:07 PM, a a wrote: > >> On Monday, 27 March 2023 at 19:19:41 UTC+2, Thomas Passin wrote: > >>> On 3/27/2023 10:07 AM, a a wrote: > Ok, I know, I need to switch to Windows 10 run on another PC next to > me. > > I need to learn how to copy and move every web page opened in > Firefox as a reference to social media, web sites for Python, chat > and more (about 50 web pages live opened 😉 > >>> > >>> This sounds like you mean when you get a new Windows 10 PC, you will > >>> want to move your open tabs to the new machine. I see several > >>> possibilities for this. > >>> > >>> 1. Copy your Firefox profile folder to the new computer, and tell > >>> Firefox to use it as the default profile. I *think* this will include > >>> the open tabs, but I haven't tried it. Saving that folder is useful for > >>> backup anyway. (If you use Thunderbird for email, you really *must* > >>> back up its profile folder because all your email with its folder > >>> structure is there. BTW, you can even copy the profile over to a Linux > >>> machine that has Thunderbird, and presto, all your email will be there. > >>> The Firefox profile would probably transfer just as well). > >>> > >>> 2. Bookmark all your open tabs under a new heading "open tabs", then > >>> export the bookmarks. In the new machine, import them into Firefox > >>> there. They won't open in tabs, but it will be easy to find them and > >>> open them when you want to. You probably will want to copy over your > >>> bookmarks anyway, so this adds little effort. > >>> > >>> 3. There may be a specific record of open tabs that you can copy or > >>> export. I don't know about this but an internet search should help. > >>> > >>> Good luck. > >> > >> a nice solution comes from > >> > >> How to Copy URLs of All Open Tabs in Firefox > >> > >> https://www.howtogeek.com/723921/how-to-copy-urls-of-all-open-tabs-in-firefox/ > >> > >> > >> right clicking opened tab, all opened tabs can be selected > >> moving via menu to bookmarks/ booksmarks management > >> url bookmarks can be right-mouse clicked to copy urls > >> finally, urls can be pasted into Notepad++ > >> and saved as a file > >> unfortunately, saving as .html file > >> fails to generate html file with clickable web links > >> > > > > Don't go pasting urls into a text file one by one. Instead, do my #2 > > above. That will import all the bookmarks, including the tabs you saved > > as bookmarks. Then import the exported bookmark file into the new > > browser. There's no reason to fuss around trying to get text copies of > > urls to open. > > > > For that matter, the exported bookmarks file is an HTML file and can be > > opened directly in a browser, with clickable links. > All right, I think I've got the easiest way to go. You *can* bookmark > all the tabs at once - see below. Then, as I already proposed, export > the bookmarks and import them into Firefox on the new computer. > > To save the tabs, right click any one of them and select the "Select All > Tabs" item. They will all highlight. Right click on one of them and > select the "Bookmark Tabs" item. A dialog box will open with an entry > lone for the Name to use (like "Tabset1") and a location - a bookmark > folder - for them to go into. CAREFUL - if you just click "Save", you > may not be able to find them. Use the dropdown arrow to save them in > one of the top level folders, like "Bookmarks Toolbars". I can select All Opened Tabs (as from the given link) and get 1,000+ Opened Tabs ( I am afraid, this is s number of all saved bookmarks in the past) I go to menu, Bookmarks, Manage Boomarks and copy Tabs and https://www.textfixer.com/html/convert-url-to-html-link.php does the job, converting text urls into clickable web links I copy the result and past into Notepad++ to save file as html and what I get is web page of clickable Opened Tabs since icon and page name are lost I would prefer another solution already ofered by Firex to generate web page of recently visited web pages, unfortunately coming with limits on the number of visited web pages, so I contacted Firefox, Notepad++ for help -- https://mail.python.org/mailman/listinfo/python-list
Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?
On 3/27/2023 8:37 PM, a a wrote: To save the tabs, right click any one of them and select the "Select All Tabs" item. They will all highlight. Right click on one of them and select the "Bookmark Tabs" item. A dialog box will open with an entry lone for the Name to use (like "Tabset1") and a location - a bookmark folder - for them to go into. CAREFUL - if you just click "Save", you may not be able to find them. Use the dropdown arrow to save them in one of the top level folders, like "Bookmarks Toolbars". I can select All Opened Tabs (as from the given link) and get 1,000+ Opened Tabs ( I am afraid, this is s number of all saved bookmarks in the past) I go to menu, Bookmarks, Manage Boomarks and copy Tabs and https://www.textfixer.com/html/convert-url-to-html-link.php does the job, converting text urls into clickable web links I copy the result and past into Notepad++ to save file as html and what I get is web page of clickable Opened Tabs since icon and page name are lost I don't understand this. You don't really have 1000 tabs open at the same time, do you? If you select all the open tabs - I think you wrote that you only have 50 - then you can save them as bookmarks under a folder name you choose. That folder will contain the 50 open links. I tried it this evening, so I know that's how it works. (It happens that I'm working on my own bookmark manager just now, so I've been messing around with importing, exporting, and reading the bookmark files). Then you can export them and import the same bookmark file into another browser on another computer. Whenever you want to reopen some of those tabs, you would navigate to that part of the bookmarks and open the tabs you want. Maybe you have something else in mind? Do you want to send the links of the opened tab set to someone else, but not all your bookmarks? Please explain more carefully what you want to do. -- https://mail.python.org/mailman/listinfo/python-list
Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?
On 3/27/2023 8:37 PM, a a wrote: I can select All Opened Tabs (as from the given link) and get 1,000+ Opened Tabs ( I am afraid, this is s number of all saved bookmarks in the past) I go to menu, Bookmarks, Manage Boomarks and copy Tabs and https://www.textfixer.com/html/convert-url-to-html-link.php does the job, converting text urls into clickable web links I copy the result and past into Notepad++ to save file as html and what I get is web page of clickable Opened Tabs You can get that directly in Notepad++. Load Firefox's HTML format bookmark file into Notepad++. View it in a browser using the "View/View Current File In" menu item. True, you could have opened it directly in the browser, but now you can edit the file and cut out the parts you don't need, and check to make sure you get what you intended. The structure of the HTML is very regular. If you have saved your set of opened links under a distinctive heading near the top of the collection - as I suggested earlier - it should be easy to find the start and end points of their HTML elements, and delete all the ones you don't want. You could import this shortened bookmark file into another installation of Firefox and this would add them to the bookmarks in the other browser, all grouped by your custom heading. -- https://mail.python.org/mailman/listinfo/python-list