Op Tuesday 28 Apr 2015 10:06 CEST schreef Chris Angelico:
> In fact, it's not really your problem if someone gives you a length
> that isn't a simple integer. In the first place, they might give you
> a subclass of int, so a better check would be this:
>
> if not isinstance(length, int):
> raise V
Op Tuesday 28 Apr 2015 09:33 CEST schreef Cecil Westerhof:
> If I remember correctly you can not hide variables of a class or
> make them read-only?
>
> I want to rewrite my moving average to python. The init is:
> def __init__(self, length):
> if type(length) != int:
> raise ParameterError, 'Para
Op Tuesday 28 Apr 2015 09:56 CEST schreef Ethan Furman:
> On 04/28, Cecil Westerhof wrote:
>> If I remember correctly you can not hide variables of a class or
>> make them read-only?
>>
>> I want to rewrite my moving average to python. The init is:
>> def __init__(self, length):
>> if type(length)
On Wednesday 29 April 2015 16:13, Φώντας Λαδοπρακόπουλος wrote:
> Τη Τετάρτη, 29 Απριλίου 2015 - 8:57:25 π.μ. UTC+3, ο χρήστης Steven
> D'Aprano έγραψε:
>
>> Okay, I googled that error message and I think I understand what is
>> failing, even though I don't understand why it is failing.
>>
>> Fi
Op Monday 27 Apr 2015 22:35 CEST schreef Albert-Jan Roskam:
> - Original Message -
>> From: Peter Otten <__pete...@web.de>
>> To: python-list@python.org
>> Cc:
>> Sent: Monday, April 27, 2015 4:28 PM
>> Subject: Re: Wrote a memoize function: I do not mind feedback
>>
>> Cecil Westerhof wr
On Tue, 28 Apr 2015 at 19:16 Chris Angelico wrote:
> On Wed, Apr 29, 2015 at 11:55 AM, Yann Kaiser
> wrote:
> > I'm aware of the pattern, and I don't really like it, especially because
> it
> > gets weird when multiple modules are involved. You'd have to import
> modules
> > because they have a
On Wednesday 29 April 2015 12:50, Φώντας Λαδοπρακόπουλος wrote:
> The guide i followed is this one:
> https://devops.profitbricks.com/tutorials/install-python-3-in-centos-7/
>
> The actual command i used to install Python 3.3.2 was this one:
> "yum -y install python33"
>
> ==
On Mon, 27 Apr 2015 at 22:30 Ethan Furman wrote:
> On 04/28, Chris Angelico wrote:
>
> > That's a lot of separate pieces. Here's the docstringargs equivalent:
> >
> > https://github.com/Rosuav/snippets/blob/dsa/snippets.py
>
> Just for grins, here's that using Scription:
>
> -- 8< ---
On Mon, 27 Apr 2015 at 17:04 Chris Angelico wrote:
> On Mon, Apr 27, 2015 at 7:02 PM, Yann Kaiser
> wrote:
> > Hello everyone!
> >
> > After a few years in development, I am proud to say Clize is landing its
> > feet again and is now in beta for an upcoming release.
> >
> > You can try it out us
On Mon, 27 Apr 2015 at 20:28 Chris Angelico wrote:
> On Tue, Apr 28, 2015 at 12:45 PM, Yann Kaiser
> wrote:
> > On Mon, 27 Apr 2015 at 17:04 Chris Angelico wrote:
> >> Interesting. I've also been working on a simpler arg handling module;
> >> maybe we can work together. The goals for mine are:
> On 27 Apr 2015, at 10:21, Robin Becker wrote:
>
> I'm using the double fork exec model as exemplified in
>
> http://code.activestate.com/recipes/278731-creating-a-daemon-the-python-way/
>
> to run a django management command detached from any view. A database object
> is used to store/updat
On Monday, April 27, 2015 at 12:52:48 PM UTC+5:30, Chris Angelico wrote:
> On Mon, Apr 27, 2015 at 4:55 PM, Christian Gollwitzer wrote:
> > Am 27.04.15 um 01:06 schrieb Chris Angelico:
> >>
> >> On Mon, Apr 27, 2015 at 6:26 AM, Ben Finney
> >> wrote:
> >>>
> >>> It doesn't have to. By using the n
On Wed, Apr 29, 2015 at 11:55 AM, Yann Kaiser wrote:
> I'm aware of the pattern, and I don't really like it, especially because it
> gets weird when multiple modules are involved. You'd have to import modules
> because they have a side-effect of adding stuff to a list rather than import
> things s
On Wednesday, April 29, 2015 at 3:46:24 AM UTC+5:30, John Ladasky wrote:
> I thought that Patrick Grim's analysis was very interesting, showing that the
> Spatialized Iterated Prisoner's Dilemma (SIPD) could emulate the Wireworld
> cellular automaton, which is a Turing-complete system. Thus, th
On Tue, 28 Apr 2015 15:16:05 -0700 (PDT), John Ladasky
wrote:
>On Tuesday, April 28, 2015 at 1:10:14 PM UTC-7, Robert Kern wrote:
>> On 2015-04-28 07:58, Steven D'Aprano wrote:
>
>> I do believe he is trying to make a crude joke.
>
>I agree, that's what he's doing. And I find it ironic, since he
On Wed, 29 Apr 2015 05:26 am, Φώντας Λαδοπρακόπουλος wrote:
> Τη Τρίτη, 28 Απριλίου 2015 - 10:02:24 π.μ. UTC+3, ο χρήστης Φώντας
> Λαδοπρακόπουλος έγραψε:
>> First of all Steven thank youvery much for your detailed help.
>>
>> Secondly prior of seeing your post i tried to folowe a guid and isntal
On Tuesday, April 28, 2015 at 1:10:14 PM UTC-7, Robert Kern wrote:
> On 2015-04-28 07:58, Steven D'Aprano wrote:
> I do believe he is trying to make a crude joke.
I agree, that's what he's doing. And I find it ironic, since he started this
thread, and seemed to invite a serious discussion of th
On 2015-04-28 07:58, Steven D'Aprano wrote:
On Tuesday 28 April 2015 13:18, Seymore4Head wrote:
In the past, I have had some measure of success with the Toot for Tail
strategy.
I don't believe that is a standard name for an Iterated Prisoner's Dilemma
strategy. I've googled for it, using two
On Tue, Apr 28, 2015 at 1:18 PM, wrote:
> in the Python Language Specification, I've found the delimiter -> (cf.
> https://docs.python.org/3/reference/lexical_analysis.html#delimiters, last
> entry in the table´s second line). Could you please describe the effects of
> this delimiter? I read noth
Hi,
in the Python Language Specification, I've found the delimiter -> (cf.
https://docs.python.org/3/reference/lexical_analysis.html#delimiters,
last entry in the table´s second line). Could you please describe the
effects of this delimiter? I read nothing about -> by now. In addition,
help("
On Mon, Apr 27, 2015 4:55 PM CEST Steven D'Aprano wrote:
>On Mon, 27 Apr 2015 01:11 am, Φώντας Λαδοπρακόπουλος wrote:
>
>> Τη Κυριακή, 26 Απριλίου 2015 - 6:05:50 μ.μ. UTC+3, ο χρήστης Steven
>> D'Aprano έγραψε:
>> On Mon, 27 Apr 2015 01:00 am, Φώντας Λαδοπρακόπουλος w
On 2015-04-26, Cecil Westerhof wrote:
> I want to use a GUI for Python. When searching I found (beside some
> others) Tkinter and wxPython. From what I found it looks like Tkinter
> is slightly better. What would be the pros/cons of these two? Would
> there be a compelling reason to use another GU
I am a newbie in python. Right now I am working on this messaging app and I
would like to pass data from one protocol to another. I have been referencing
to other answers provided in other similar questions by trying to add a
variable storing the data from one factory then initiate another facto
Pure Body Elite very first thing you need to do is attempt to tell your
family and friends to alter their diet plan. That is not likely going to
work. So that you are probably Weight Loss Reviews likely to have to try and
dismiss them. Keep healthful snacks readily available so that once you see
so
Steven D'Aprano :
> The convention is, if the caller messes with your private attributes
> or variables, and their code breaks, they have nobody to blame but
> themselves, and we are allowed to laugh at them. We're consenting
> adults here.
I would take it further: as a rule, user code should not
On Tue, Apr 28, 2015 at 6:37 PM, Steven D'Aprano
wrote:
> The convention is, if the caller messes with your private attributes or
> variables, and their code breaks, they have nobody to blame but themselves,
> and we are allowed to laugh at them. We're consenting adults here.
>
> (The only excepti
On Tuesday 28 April 2015 17:33, Cecil Westerhof wrote:
> If I remember correctly you can not hide variables of a class or make
> them read-only?
In Python circles, the preferred terminology for class and instance members
is "attributes" rather than variables. "Variable" is reserved for module-
On Tue, Apr 28, 2015 at 5:54 PM, Steven D'Aprano
wrote:
> On Tuesday 28 April 2015 16:59, Chris Angelico wrote:
>
>> On Tue, Apr 28, 2015 at 4:43 PM, Steven D'Aprano
>> wrote:
>>> I don't think that choosing UCS-2 only is any worse than any other
>>> application feature like "support only jpegs,
On Tue, Apr 28, 2015 at 5:33 PM, Cecil Westerhof wrote:
> If I remember correctly you can not hide variables of a class or make
> them read-only?
>
> I want to rewrite my moving average to python. The init is:
> def __init__(self, length):
> if type(length) != int:
> raise
Am 28.04.15 um 09:54 schrieb Steven D'Aprano:
On Tuesday 28 April 2015 16:59, Chris Angelico wrote:
On Tue, Apr 28, 2015 at 4:43 PM, Steven D'Aprano
wrote:
I don't think that choosing UCS-2 only is any worse than any other
application feature like "support only jpegs, not every obscure image
On 04/28, Cecil Westerhof wrote:
> If I remember correctly you can not hide variables of a class or make
> them read-only?
>
> I want to rewrite my moving average to python. The init is:
> def __init__(self, length):
> if type(length) != int:
> raise ParameterError, 'Parame
On Tuesday 28 April 2015 16:59, Chris Angelico wrote:
> On Tue, Apr 28, 2015 at 4:43 PM, Steven D'Aprano
> wrote:
>> I don't think that choosing UCS-2 only is any worse than any other
>> application feature like "support only jpegs, not every obscure image
>> format GIMP supports" or "choose to u
If I remember correctly you can not hide variables of a class or make
them read-only?
I want to rewrite my moving average to python. The init is:
def __init__(self, length):
if type(length) != int:
raise ParameterError, 'Parameter has to be an int'
if n < 0:
Christian Gollwitzer wrote:
>Yes, the default theme is terrible on Linux (Mac & Windows uses native
>widgets). There are additional themes available, which are buried in
>some packages and a bit difficult to install, but give reasonable
>approximations to the QT look; I'm talking about plastik
On Tuesday 28 April 2015 13:18, Seymore4Head wrote:
> In the past, I have had some measure of success with the Toot for Tail
> strategy.
I don't believe that is a standard name for an Iterated Prisoner's Dilemma
strategy. I've googled for it, using two different search engines, and
neither com
On Tue, Apr 28, 2015 at 4:43 PM, Steven D'Aprano
wrote:
> I don't think that choosing UCS-2 only is any worse than any other
> application feature like "support only jpegs, not every obscure image format
> GIMP supports" or "choose to use floating point maths instead of some
> numeric type with un
36 matches
Mail list logo