Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Organizing several similar classes with overlapping variables
Post: RE: Organizing several similar classes with overla...

Oh, sorry, so I would keep the nodes in a dictionary, but each node is a list. So the class graph would have a variable nodes what would be a dictionary, each node is a represented as a list, seqence ...
6hearts General Coding Help 7 1,329 May-07-2023, 02:00 PM
    Thread: Organizing several similar classes with overlapping variables
Post: RE: Organizing several similar classes with overla...

(May-07-2023, 03:45 AM)deanhystad Wrote: When graphing points or vertices, are they treated differently? Or are you making two classes because you think you need one graph class for each class of i...
6hearts General Coding Help 7 1,329 May-07-2023, 08:01 AM
    Thread: Organizing several similar classes with overlapping variables
Post: RE: Organizing several similar classes with overla...

At the moment they are all type dict, since I really do not have much functionality on them, except for storing data. And I mostly just need to lookup data, so dict was the natural choice. So you sugg...
6hearts General Coding Help 7 1,329 May-06-2023, 10:18 PM
    Thread: Organizing several similar classes with overlapping variables
Post: Organizing several similar classes with overlappin...

I am struggling for weeks now how to structarize a bunch of classes that have several similarities. Perhaps the best analogy would be a class representing a graph, e.g. a bunch of nodes that may be co...
6hearts General Coding Help 7 1,329 May-06-2023, 09:48 PM
    Thread: Structuring a large class: privite vs public methods
Post: RE: Structuring a large class: privite vs public m...

I Like the direction, but perhaps I was not completely clear. I am not calling private methods from the class, but outside of it: class A: def _private_spam_method(self): ... de...
6hearts General Coding Help 3 1,017 May-05-2023, 08:31 AM
    Thread: Structuring a large class: privite vs public methods
Post: Structuring a large class: privite vs public metho...

I am developing a bigger project that includes some data structures as classes and various functions/operations that computes with the structure of modifies them. My dilemma is the following: I have...
6hearts General Coding Help 3 1,017 May-05-2023, 06:56 AM
    Thread: pip installing package using c++ boost in windows
Post: RE: pip installing package using c++ boost in wind...

(Feb-16-2018, 05:54 PM)snippsat Wrote: There is a issue reported. Author @mrzv reply that he has not tested in Windows. In setup.py if platform.system() == "Windows": cmake_version = LooseVersi...
6hearts General Coding Help 2 4,351 Feb-16-2018, 06:09 PM
    Thread: pip installing package using c++ boost in windows
Post: pip installing package using c++ boost in windows

I'm trying to install the dionysus package in windows. I've installed Visual studio 2017 (to get the c++ compiler), I've installed boost and it works if I link the directory in the VS editor. But as ...
6hearts General Coding Help 2 4,351 Feb-16-2018, 03:38 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020