On Tue, 18 Feb 2014 14:34:51 -0600, Jonno wrote:
> There is an existing module I want to use which has a class we'll call
> *Existing Class*.
>
> I want to create a python module which allows me to create *new_objects*
> with the following properties:
>
>- The new_objects have all the attrib
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
Marcio,
The wheezy.web framework (http://bitbucket.org/akorn/wheezy.web) supplies
documentation, tutorials, quick starts and benchmark for you. Due to modular
architecture, it is being developed in several independent loosely coupled
libraries under wheezy.*. The source code is easy to read, th
On Mon, 16 Dec 2013 11:30:13 +0800
liuerfire Wang wrote:
> Just like below:
>
> In [1]: a = ([], [])
>
> In [2]: a[0].append(1)
>
> In [3]: a
> Out[3]: ([1], [])
>
> In [4]: a[0] += [1]
> ---
> TypeError
Jonno writes:
> I tried to explain the necessary properties in the requirements below.
What you've described is a bunch of abstract behaviour.
But as I said, I'm suspecting this is a poor design; and I can't know
better until you explain what all this is *for*.
What is the purpose of the code
Ben,
Thanks for your reply. I'll try to ellaborate a little more in the comments
below.
On Tue, Feb 18, 2014 at 2:47 PM, Ben Finney wrote:
> Jonno writes:
>
> > I'm not sure if this list is a suitable place to ask for this kind of
> > help so if it's not please just suggest another forum which
I'm working with the ast module to do some analysis on Python
codebases, and once I've found what I'm looking for, I want to print
something out. The file name I'm hanging onto externally, so that
works; and the nodes all have a lineno. So far so good. But how do I
"reconstitute" a subtree into som
Hi.
I stumbled upon Wheezy.web and I got interested into learn more about it.
After googling I didn't find that many information about it: only docs and
samples from its web site.
I didn't find a mailing list nor user groups and no tutorials from its
users.
Is Wheezy.web been actively developed
==
>BREAKING NEWS
==
>
SMITHSONIAN FINALLY SHUT DOWN AFTER YEARS OF CENSORSHIP, SCAMS AND CON ARTISTRY.
>
THRINAXODON BLEW DOWN THE BUILDINGS, LIT IT ON FIRE AND HAD THE ASSHOLES
ARRESTED.
>
R. DAWKINS WAS THROWN IN THE DOGHOUSE, ONLY TO GET KILLED BY ANGRY FELONS WHO
WANT
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
In article ,
Terry Reedy wrote:
> On 2/18/2014 11:47 AM, Chris Angelico wrote:
> > I call this "Russian Exception Roulette". It came about because of
> > some discussions on python-ideas regarding the new PEP 463 and
> > exception handling.
> >
> > try:
> > exc = getattr(__builtins__,random
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 8:10 AM, Rick Johnson
wrote:
> Beyond that this code (either conscientiously or unconsciously)
> exposes the onerous and obfuscation of a language design
> that coddles a global function nightmare paradigm over the
> elegance of true OOP -- talk about cutting off your nose
On Tue, Feb 18, 2014 at 11:35 PM, MRAB wrote:
> Where I'm from, Rubik's Cubes are, well, cubes, thus 3x3x3,
> etc.
For some reason, they're often referred to in just two dimensions. I
have no idea why. A so-called "3x3" cube is standard, and has 3x3x3
small cubes (well, actually, the standard eng
On Tuesday, February 18, 2014 10:47:15 AM UTC-6, Chris Angelico wrote:
> I call this "Russian Exception Roulette". It came about because of
> some discussions on python-ideas regarding the new PEP 463 and
> exception handling.
> try:
>
> exc = getattr(__builtins__,random.choice(list(filter(lam
On Wed, Feb 19, 2014 at 7:41 AM, Terry Reedy wrote:
> On 2/18/2014 11:47 AM, Chris Angelico wrote:
>>
>> I call this "Russian Exception Roulette". It came about because of
>> some discussions on python-ideas regarding the new PEP 463 and
>> exception handling.
>>
>> try:
>> exc = getattr(__bu
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
Jonno writes:
> I'm not sure if this list is a suitable place to ask for this kind of
> help so if it's not please just suggest another forum which might be
> more suitable.
Welcome! Asking for help with writing Python code is definitely suitable
here.
> I'm looking for help/suggestions how to
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
On 2/18/2014 11:47 AM, Chris Angelico wrote:
I call this "Russian Exception Roulette". It came about because of
some discussions on python-ideas regarding the new PEP 463 and
exception handling.
try:
exc = getattr(__builtins__,random.choice(list(filter(lambda x:
x.endswith("Error"),dir(__bu
I'm not sure if this list is a suitable place to ask for this kind of help
so if it's not please just suggest another forum which might be more
suitable.
I'm looking for help/suggestions how to architect a module (perhaps just a
class).
There is an existing module I want to use which has a class
On 2014-02-18 10:30, kjaku...@gmail.com wrote:
> So let's say I have a file and it looks like this:
> Title 1: item
> Title 2: item
> etc
>
> Is it possible to use a dictionary for something like the input
> above? Because I want to be able to use the input above to delete
> the "Title 1" and "T
So let's say I have a file and it looks like this:
Title 1: item
Title 2: item
etc
Is it possible to use a dictionary for something like the input above? Because
I want to be able to use the input above to delete the "Title 1" and "Title 2"
but still show the items (on separate lines).
Basical
I call this "Russian Exception Roulette". It came about because of
some discussions on python-ideas regarding the new PEP 463 and
exception handling.
try:
exc = getattr(__builtins__,random.choice(list(filter(lambda x:
x.endswith("Error"),dir(__builtins__)
f()
except exc:
print("You
On 2014-02-16, Sam wrote:
> I would like to learn and try out functional programming (FP).
> I love Python and would like to use it to try FP. Some have
> advised me to use Haskell instead because Python is not a good
> language for FP. I am sort of confused at the moment. Is Python
> a dysfunctio
On Tuesday, February 18, 2014 6:26:51 PM UTC+3:30, eglows...@gmail.com wrote:
> The next adventure in Python was to install Python 3 into a Windows XP
> machine. I had a previous 2.7 installation that I uninstalled and carefully
> removed all traces of from the directory and the registry.
>
>
>
The next adventure in Python was to install Python 3 into a Windows XP machine.
I had a previous 2.7 installation that I uninstalled and carefully removed all
traces of from the directory and the registry.
I got the 'python-3.3.3.msi' from Python.org and installed it. From a command
window I ca
On 2014-02-18 03:09, Chris Angelico wrote:
On Tue, Feb 18, 2014 at 1:52 PM, Steven D'Aprano wrote:
On Mon, 17 Feb 2014 16:57:34 -0800, Physics wrote:
Does ANYONE have a clue how to do this? I understand that it is hard but
geez...
Absolutely no clue what your question is. You seem to assum
39 matches
Mail list logo