On Thu, Dec 27, 2012 at 5:50 PM, Ranting Rick
wrote:
> Every keyword, syntactical structure, style, etc, etc, should be based
> on logical foundations; not adolescent fads or propagating more
> idiotic cultural traditions. You piss and moan about language X and
> how asinine the language is, them
On Dec 26, 11:02 pm, Steven D'Aprano wrote:
> On Wed, 26 Dec 2012 20:07:53 -0800, Rick Johnson wrote:
> > My specific point is that the English word "variable" is unambiguous
>
> I'm sorry, do you mean "variable" the noun, or "variable" the adjective?
> [snip: sliding down the rabbit hole of a pol
On Wed, 26 Dec 2012 20:07:53 -0800, Rick Johnson wrote:
> My specific point is that the English word "variable" is unambiguous
I'm sorry, do you mean "variable" the noun, or "variable" the adjective?
If you mean the adjective, do you mean something which naturally changes,
in the sense that the
On Wednesday, December 26, 2012 2:29:13 AM UTC-6, Steven D'Aprano wrote:
> [snip]
I won't reply to your last post on a line-by-line basis because i feel we are
straying from my general point: which is that we should NEVER re-interpret
existing words (in an illogical manner) whilst transforming t
On 12/25/2012 04:42 PM, Rick Johnson wrote:
> With that accurate definition in mind you can now understand how
> Python classes CAN and DO have variables, just as Python modules have
> variables; psst: they're called "global variables"!
Nice ascii graphic, but citation needed. What CS text book a
On 12/25/2012 04:42 PM, Rick Johnson wrote:
> What IS a variable Dennis?
> #
>
> #Variable (ComputerScience)#
>
Found the reference you are quot
On Tue, 25 Dec 2012 16:19:21 -0800, Rick Johnson wrote:
> On Tuesday, December 25, 2012 4:56:44 PM UTC-6, Steven D'Aprano wrote:
>
>> Rick, what makes you think that this is logically inconsistent?
>> "Method" is the accepted name for functions attached to classes. They
>> report themselves as "m
On 26 Dec, 09:42, Rick Johnson wrote:
> Python classes CAN and DO have variables, just as Python modules
> have variables; psst: they're called "global variables"!
Actually, they're called "module attributes", but don't let the facts
get in the way of your little rant. You never have before.
--
On Tuesday, December 25, 2012 4:56:44 PM UTC-6, Steven D'Aprano wrote:
> Rick, what makes you think that this is logically inconsistent?
> "Method" is the accepted name for functions attached to classes. They
> report themselves as "methods":
> [...]
> There are two built-ins for creating differen
On Tuesday, December 25, 2012 3:08:21 PM UTC-6, Dennis Lee Bieber wrote:
> Only that many of us don't believe Python has /variables/, the use
> of instance/class as a modifier is thereby moot.
What IS a variable Dennis?
#
#
On Tue, 25 Dec 2012 12:16:16 -0800, Rick Johnson wrote:
> On Tuesday, December 25, 2012 11:10:49 AM UTC-6, Dave Angel wrote:
>
>> We all make mistakes, like my referring to class methods when I meant
>> instance methods.
>
> This mistake reminded of how people in this group (maybe not you in
> p
On Tuesday, December 25, 2012 11:10:49 AM UTC-6, Dave Angel wrote:
> We all make mistakes, like my referring to class methods when I
> meant instance methods.
This mistake reminded of how people in this group (maybe not you in particular)
happily accept the terms "instance method" and "class me
By the way i haven't add the Title because it's a german only book named
"Python 3: Das umfangreiche Handbuch, Published by Galileo Computing"
and also, because I've registered to first check if the Autor has allready
published a update. Too many information's could ocurre in an avalanche
I se
On 12/25/2012 09:41 AM, prilisa...@googlemail.com wrote:
> Hello Steven,
>
> to "learn python" I've bought a book, and it's not a "thin" one :-) it's more
> a 788p. long documentation about python.
>
> BUT! I have to say: The autor started using the "self." argument at the
> chapter classes.
Hello Steven,
to "learn python" I've bought a book, and it's not a "thin" one :-) it's more a
788p. long documentation about python.
BUT! I have to say: The autor started using the "self." argument at the
chapter classes. So You've shown me the book descr. non "correct" way. Better
using t
On Mon, 24 Dec 2012 00:19:18 -0500, Dave Angel wrote:
> Nobody's going to be able to understand your code if you persist in
> using self in unpythonic ways. It's used as the first argument of a
> class method. Period.
To be pedantic, "self" is the conventional argument for *instance*
methods, n
Hey :-P I think I should rename the threads name into a new "Doc" project,
I'm sure It won't take much time to fill a book with our knowledge.
Thanks to Rick, you have Posted exactly what I wanted to ask. I know the that
__variable = 'xyz'
_variable = 'xyz'
are used to make them private, but I
On Dec 24, 9:48 am, Dave Angel wrote:
> Pep8 recommends a particular style within a function name, separating
> 'words of a name by underscore. I happen to loathe that style, so I'm
> clearly not the one who would critique someone for not following the
> guideline. I say getFile(), the pep says
(Part 3 of my dissertation; I hope it's useful for you in particular)
Up to now in my discussion, it wasn't usually important to know that
everything is a class. You just know that everything has attributes,
and that you use the dot notation to get at an attribute. So what if
"%x".format() is
Python is a flexible language, but manages to let one write readable
code even while using that flexibility. It does, however, require that
one gets a grasp of some concepts that may differ greatly, either in
implementation or in name, from other languages. Every language has its
quirks and const
On 12/24/2012 03:23 AM, prilisa...@googlemail.com wrote:
> Hello Dave,
>
> Thank you, for your help, I'll try my best.
>
> To all others, PLEASE be pleasant with my nescience, I'll tried to describe
> not a specific error at my Program. I'll tried to get rid of that missing
> link this sample is
At this point I think i could just refer to my other 2 postings and urge
you to read them again. They offer the idea of encapsulating the
function QuerySqlite into a method of an object that can be passed over
to some object (possibly throu the __init__-method) and store it in an
attribute of that
On 24Dec2012 00:23, prilisa...@googlemail.com wrote:
| To all others, PLEASE be pleasant with my nescience, I'll tried to
| describe not a specific error at my Program.
If you don't describe specific errors, you won't get specific advice.
If you're after stylistic and technique advice, please of
Hello Dave,
Thank you, for your help, I'll try my best.
To all others, PLEASE be pleasant with my nescience, I'll tried to describe not
a specific error at my Program. I'll tried to get rid of that missing link this
sample is only theoretic, but the code really exists and is over 1000 lines
lo
On 12/23/2012 04:42 PM, prilisa...@googlemail.com wrote:
> Okay, I try to publish this sample, and yes it's not a working piece of code,
> but I try to "draw" my problem that way. As you will see, I load modules,
> create cursor,... in the main.py. In the lower section you see, that the
> module
Hi there,
On Sun, Dec 23, 2012 at 01:42:14PM -0800, prilisa...@googlemail.com wrote:
> […] In the lower section you see, that the modules should execute
> sqls. In case It could occur that two queries occur at the same
> time. PS: IT IS NOT A QUESTION ABOUT SQL, etc. I do not understand,
> how I
On 12/23/2012 4:32 AM, prilisa...@googlemail.com wrote:
By the way, I think I have found the correct "wording". for my
understood, the "handover" of objects to imported modules doesn't
work because, e.g. trying to hand-over an SQLite connection into a
imported module, can't work because the "attr
On Sun, 23 Dec 2012 21:42:14 -, wrote:
Okay, I try to publish this sample, and yes it's not a working piece of
code, but I try to "draw" my problem that way.
So instead of telling us what your problem is, you're going to give us an
artist's impression of your code and leave us to guess
Okay, I try to publish this sample, and yes it's not a working piece of code,
but I try to "draw" my problem that way. As you will see, I load modules,
create cursor,... in the main.py. In the lower section you see, that the
modules should execute sqls. In case It could occur that two queries oc
In article ,
prilisa...@googlemail.com wrote:
> Thanks to all your answers, I have read a lot about namespaces, but still
> there's something I do not understood. I have tried your example but as I
> expected:
>
> line 13, in HandoverSQLCursor
> curs.execute("SELECT * FROM lager")
> Attrib
prilisa...@googlemail.com wrote:
> Thanks to all your answers, I have read a lot about namespaces, but still
> there's something I do not understood. I have tried your example but as I
> expected:
>
> line 13, in HandoverSQLCursor
> curs.execute("SELECT * FROM lager")
> AttributeError: 'built
Thanks to all your answers, I have read a lot about namespaces, but still
there's something I do not understood. I have tried your example but as I
expected:
line 13, in HandoverSQLCursor
curs.execute("SELECT * FROM lager")
AttributeError: 'builtin_function_or_method' object has no attribute
On 22Dec2012 12:43, prilisa...@googlemail.com wrote:
| I Think I describe my Situation wrong, the written Project is a
| Server, that should store sensor data, perfoms makros on lamps according
| a sequence stored in the DB and Rule systems schould regulate home devices
and plan scheduler jobs so
secondly, it is absolutely not bad meaned, but, why does people post, their
personal meaning, but nothing about the "Posters" Problem?
Everybody is free to read or not, but correcting the WWW could became a very
very big task, (maybe it's easier to climb the 7 summits)
Best Regards.
--
http://
By the way, I think I have found the correct "wording".
for my understood, the "handover" of objects to imported modules doesn't work
because, e.g. trying to hand-over an SQLite connection into a imported module,
can't work because the "attributes" are not transfered.
I'm sorry for my bad engli
On 12/22/2012 03:43 PM, prilisa...@googlemail.com wrote:
>
> I Think I describe my Situation wrong, the written Project is a
> Server, that should store sensor data, perfoms makros on lamps
> according a sequence stored in the DB and Rule systems schould
> regulate home devices and plan scheduler
Am 22.12.2012 21:43, schrieb prilisa...@googlemail.com:
> I Think I describe my Situation wrong, the written Project is a
> Server, that should store sensor data, perfoms makros on lamps according
> a sequence stored in the DB and Rule systems schould regulate home devices
> and plan scheduler job
On 12/22/2012 7:45 AM, prilisa...@googlemail.com wrote:
Am Samstag, 22. Dezember 2012 13:38:11 UTC+1 schrieb prili...@googlemail.com:
Am Samstag, 22. Dezember 2012 12:43:54 UTC+1 schrieb Peter Otten:
wrote:
Hello, to all,
And my mail reader text window is fille
Am Samstag, 22. Dezember 2012 20:29:49 UTC+1 schrieb Alexander Blinne:
> Am 22.12.2012 19:10, schrieb:
>
> > It's for me a view of top side down, but how could the midlevel comunicate
> > to each oter... "not hirachical"
>
>
>
> You could use something like the singleton pattern in order to ge
Am 22.12.2012 19:10, schrieb prilisa...@googlemail.com:
> It's for me a view of top side down, but how could the midlevel comunicate to
> each oter... "not hirachical"
You could use something like the singleton pattern in order to get a
reference to the same datastore-object every time Datastore.
Am Samstag, 22. Dezember 2012 18:26:43 UTC+1 schrieb Alexander Blinne:
> Am 22.12.2012 13:45, schrieb:
>
> > Ps.: The Socket, the DB has to be kept allways open, because of it's Server
> > functionality, A lot of Sensors, Timers, User interaction, must recived ,
> > Calculated, etc so a reaction
Am 22.12.2012 13:45, schrieb prilisa...@googlemail.com:
> Ps.: The Socket, the DB has to be kept allways open, because of it's Server
> functionality, A lot of Sensors, Timers, User interaction, must recived ,
> Calculated, etc so a reaction must be send in about 16~100 ms, different
> modules o
Am Samstag, 22. Dezember 2012 14:54:27 UTC+1 schrieb Peter Otten:
> wrote:
>
>
>
> > I don't know, Python allways looks for me like a one script "File". But
>
> > there are big projects. like the the "Model of an SQL Server", using
>
> > coordinators no problems running threads and exchange Da
prilisa...@googlemail.com wrote:
> I don't know, Python allways looks for me like a one script "File". But
> there are big projects. like the the "Model of an SQL Server", using
> coordinators no problems running threads and exchange Data through a
> Backbone. I have searched a lot, but I havent f
Am Samstag, 22. Dezember 2012 13:38:11 UTC+1 schrieb prili...@googlemail.com:
> Am Samstag, 22. Dezember 2012 12:43:54 UTC+1 schrieb Peter Otten:
>
> > wrote:
>
> >
>
> >
>
> >
>
> > > Hello, to all,
>
> >
>
> > >
>
> >
>
> > > I hope I can describe me problem correctly.
>
> >
>
Am Samstag, 22. Dezember 2012 12:43:54 UTC+1 schrieb Peter Otten:
> wrote:
>
>
>
> > Hello, to all,
>
> >
>
> > I hope I can describe me problem correctly.
>
> >
>
> > I have written a Project split up to one Main.py and different modules
>
> > which are loaded using import and here is a
prilisa...@googlemail.com wrote:
> Hello, to all,
>
> I hope I can describe me problem correctly.
>
> I have written a Project split up to one Main.py and different modules
> which are loaded using import and here is also my problem:
>
> 1. Main.py executes:
> 2. Import modules
> 3. One of the
Hello, to all,
I hope I can describe me problem correctly.
I have written a Project split up to one Main.py and different modules which
are loaded using import and here is also my problem:
1. Main.py executes:
2. Import modules
3. One of the Modules is a SqliteDB datastore.
4. A second module c
48 matches
Mail list logo