On 18/02/2014 23:28, Rotwang wrote:
[...]
I have music software that's a single 9K-line Python module, which I
edit using Notepad++ or gedit.
Incidentally, in the time since I wrote the above I've started using
Sublime Text 3, following somebody on c.l.p's recommendation (I
apologise that I
In article , Rotwang
wrote:
>On 18/02/2014 23:41, Rick Johnson wrote:
>> On Tuesday, February 18, 2014 5:28:21 PM UTC-6, Rotwang wrote:
>
>[snipped material restored for context]
>
>>> On 18/02/2014 21:44, Rick Johnson wrote:
[...]
Are you telling me you're willing to search throu
In article <53045df2$0$2788$c3e8da3$76491...@news.astraweb.com>,
Steven D'Aprano wrote:
> How do you know that the module tk_optionmenu.py contains the class
> OptionMenu? Perhaps it contains the function optionmenu. Or the class
> TK_OptionMenu.
Stuff like this is a really important issue o
On Wed, Feb 19, 2014 at 6:32 PM, Steven D'Aprano wrote:
> On Tue, 18 Feb 2014 13:44:47 -0800, Rick Johnson wrote:
>
>> Are you telling me you're willing to search through a single file
>> containing 3,734 lines of code (yes, Tkinter) ...
>
> For a mere 4000 lines of code, yes, I'd rather have it a
On Tue, 18 Feb 2014 15:41:32 -0800, Rick Johnson wrote:
> Heck, when a class gets too big i even export some of the methods to
> outside modules and load the methods dynamically at run-time just to cut
> down on the length. I suppose my detractors would find that surprising
> also!
Not in the lea
On Tue, 18 Feb 2014 13:44:47 -0800, Rick Johnson wrote:
> Are you telling me you're willing to search through a single file
> containing 3,734 lines of code (yes, Tkinter) looking for a method named
> "destroy" of a class named "OptionMenu" (of which three other classes
> contain a method of the s
On Wed, Feb 19, 2014 at 9:17 AM, Tim Chase
wrote:
> On 2014-02-19 08:49, Chris Angelico wrote:
>> > Are you telling me you're willing to search through a single
>> > file containing 3,734 lines of code (yes, Tkinter) looking
>> > for a method named "destroy" of a class named "OptionMenu"
>>
>> At
On 18/02/2014 23:41, Rick Johnson wrote:
On Tuesday, February 18, 2014 5:28:21 PM UTC-6, Rotwang wrote:
[snipped material restored for context]
On 18/02/2014 21:44, Rick Johnson wrote:
[...]
Are you telling me you're willing to search through a single
file containing 3,734 lines of code (ye
On 2014-02-18 23:28, Rotwang wrote:
On 18/02/2014 21:44, Rick Johnson wrote:
[...]
Are you telling me you're willing to search through a single
file containing 3,734 lines of code (yes, Tkinter) looking
for a method named "destroy" of a class named "OptionMenu"
(of which three other classes con
On Tuesday, February 18, 2014 5:28:21 PM UTC-6, Rotwang wrote:
> I have music software that's a single 9K-line Python module, which I
> edit using Notepad++ or gedit. If I wish to find e.g. the method "edit"
> of class "sequence" I can type
> class seqdef edit(https://mail.python.org/mailman
On 18/02/2014 21:44, Rick Johnson wrote:
[...]
Are you telling me you're willing to search through a single
file containing 3,734 lines of code (yes, Tkinter) looking
for a method named "destroy" of a class named "OptionMenu"
(of which three other classes contain a method of the same
exact name!
On Tuesday, February 18, 2014 4:17:48 PM UTC-6, Tim Chase wrote:
> On 2014-02-19 08:49, Chris Angelico wrote:
> > At my last job, I had a single C++ file of roughly 5K lines, and
> > it wasn't at all unmanageable. Probably wouldn't have been a
> > problem to have another order of magnitude on that.
On 2014-02-18, Tim Chase wrote:
> On 2014-02-19 08:49, Chris Angelico wrote:
>> > Are you telling me you're willing to search through a single
>> > file containing 3,734 lines of code (yes, Tkinter) looking
>> > for a method named "destroy" of a class named "OptionMenu"
>>
>> At my last job, I
On 2014-02-18, Chris Angelico wrote:
> On Wed, Feb 19, 2014 at 8:44 AM, Rick Johnson
> wrote:
>> Are you telling me you're willing to search through a single
>> file containing 3,734 lines of code (yes, Tkinter) looking
>> for a method named "destroy" of a class named "OptionMenu"
>
> Yeah, actual
On 2014-02-19 08:49, Chris Angelico wrote:
> > Are you telling me you're willing to search through a single
> > file containing 3,734 lines of code (yes, Tkinter) looking
> > for a method named "destroy" of a class named "OptionMenu"
>
> At my last job, I had a single C++ file of roughly 5K line
On 02/17/2014 06:01 AM, Nagy László Zsolt wrote:
> I have a class hierarchy like this:
>
> Widget <- VisualWidget <- BsWidget
>
> and then BsWidget has many descendants: Desktop, Row, Column, Navbar etc.
>
> Widgets can have children. They are stored in a tree. In order to manage
> the order of
On Wed, Feb 19, 2014 at 8:44 AM, Rick Johnson
wrote:
> Are you telling me you're willing to search through a single
> file containing 3,734 lines of code (yes, Tkinter) looking
> for a method named "destroy" of a class named "OptionMenu"
Yeah, actually I am. At my last job, I had a single C++ fil
On Tuesday, February 18, 2014 3:02:26 PM UTC-6, Chris Angelico wrote:
> On Wed, Feb 19, 2014 at 7:41 AM, Rick Johnson wrote:
> > # ui_main.py
> > from ui_mod1 import *
> > from ui_mod2 import *
> > from ui_mod3 import *
> > from ui_mod4 import *
> > At least by this method i can
On Wed, Feb 19, 2014 at 7:41 AM, Rick Johnson
wrote:
> # ui_main.py
> from ui_mod1 import *
> from ui_mod2 import *
> from ui_mod3 import *
> from ui_mod4 import *
>
> At least by this method i can maintain the code base without
> wearing-out my scroll finger and eventually loo
On Monday, February 17, 2014 1:40:41 PM UTC-6, Ben Finney wrote:
> Nagy László Zsolt ... writes:
> > > Use modules to group your class definitions conceptually. There is
> > > no need whatever to separate every class into a different module.
> > If there is a consensus, and it is really desireable
Nagy László Zsolt writes:
> > Use modules to group your class definitions conceptually. There is
> > no need whatever to separate every class into a different module.
> If there is a consensus, and it is really desireable to put all these
> related classes into the same module, then this is what
Terry Reedy Wrote in message:
> On 2/17/2014 8:01 AM, Nagy László Zsolt wrote:
>> I have a class hierarchy like this:
>>
>> Widget <- VisualWidget <- BsWidget
>>
>> and then BsWidget has many descendants: Desktop, Row, Column, Navbar etc.
>>
>> Widgets can have children. They are stored in a tr
Here is the problem: these methods should create instances of Row,
Column and Navbar. But this leads to circular imports.
It should not; Python is not Java.
Use modules to group your class definitions conceptually. There is no
need whatever to separate every class into a different module.
If t
On 2/17/2014 8:01 AM, Nagy László Zsolt wrote:
I have a class hierarchy like this:
Widget <- VisualWidget <- BsWidget
and then BsWidget has many descendants: Desktop, Row, Column, Navbar etc.
Widgets can have children. They are stored in a tree. In order to manage
the order of widgets, I need
Nagy László Zsolt wrote:
> I have a class hierarchy like this:
>
> Widget <- VisualWidget <- BsWidget
>
> and then BsWidget has many descendants: Desktop, Row, Column, Navbar etc.
>
> Widgets can have children. They are stored in a tree. In order to manage
> the order of widgets, I need methods
Nagy László Zsolt writes:
> I have a class hierarchy like this:
>
> Widget <- VisualWidget <- BsWidget
>
> and then BsWidget has many descendants: Desktop, Row, Column, Navbar
> etc.
None of this implies anything about which modules you place these in;
Python is not Java, and you should be putti
I have a class hierarchy like this:
Widget <- VisualWidget <- BsWidget
and then BsWidget has many descendants: Desktop, Row, Column, Navbar etc.
Widgets can have children. They are stored in a tree. In order to manage
the order of widgets, I need methods to append children. (And later:
insert
27 matches
Mail list logo