Steven D'Aprano wrote:
"Side-effect" has the technical meaning in functional languages of any
change of state that isn't the creation and return of a function result.
Actually, the term has that meaning for all programming
languages. The main distinguishing feature of functional
languages is t
On Thu, 02 Oct 2008 18:52:58 +1300, Lawrence D'Oliveiro wrote:
> In message <[EMAIL PROTECTED]>,
> Steven D'Aprano wrote:
>
>> On Wed, 01 Oct 2008 22:14:49 +1300, Lawrence D'Oliveiro wrote:
>>
>>> In message
>>> <[EMAIL PROTECTED]>,
>>> Aaron "Castironpi" Brady wrote:
>>>
Do you ever want
In message
<[EMAIL PROTECTED]>,
Aaron "Castironpi" Brady wrote:
> On Oct 2, 12:52 am, Lawrence D'Oliveiro <[EMAIL PROTECTED]
> central.gen.new_zealand> wrote:
>
>> In message <[EMAIL PROTECTED]>,
>> Steven
>>
>> D'Aprano wrote:
>> > On Wed, 01 Oct 2008 22:14:49 +1300, Lawrence D'Oliveiro wrote:
>>
On Oct 2, 12:52 am, Lawrence D'Oliveiro <[EMAIL PROTECTED]
central.gen.new_zealand> wrote:
> In message <[EMAIL PROTECTED]>, Steven
>
> D'Aprano wrote:
> > On Wed, 01 Oct 2008 22:14:49 +1300, Lawrence D'Oliveiro wrote:
>
> >> In message
> >> <[EMAIL PROTECTED]>,
> >> Aaron "Castironpi" Brady wrote:
In message <[EMAIL PROTECTED]>, Steven
D'Aprano wrote:
> On Wed, 01 Oct 2008 22:14:49 +1300, Lawrence D'Oliveiro wrote:
>
>> In message
>> <[EMAIL PROTECTED]>,
>> Aaron "Castironpi" Brady wrote:
>>
>>> Do you ever want to scream from the rooftops, "'append' operates by
>>> side-effect!"?
>>
>>
On Wed, 01 Oct 2008 22:14:49 +1300, Lawrence D'Oliveiro wrote:
> In message
> <[EMAIL PROTECTED]>,
> Aaron "Castironpi" Brady wrote:
>
>> Do you ever want to scream from the rooftops, "'append' operates by
>> side-effect!"?
>
> No. It's an effect, not a side-effect.
"Side-effect" has the techni
In message
<[EMAIL PROTECTED]>,
Aaron "Castironpi" Brady wrote:
> Do you ever want to scream from the rooftops, "'append' operates by
> side-effect!"?
No. It's an effect, not a side-effect.
--
http://mail.python.org/mailman/listinfo/python-list
> On Sep 28, 7:13 pm, alex23 <[EMAIL PROTECTED]> wrote:
>> The problem is with this:
>>
>> > lines = lines.append(inLine)
>>
>> The append method of a list modifies the list in-place, it doesn't
>> return a copy of the list with the new element appended. In fact, it
>> returns None, which i
"Aaron \"Castironpi\" Brady" <[EMAIL PROTECTED]> wrote:
> Do you ever want to scream from the rooftops, "'append' operates by
> side-effect!"?
"I'm mad as hell, and I'm not going to mutate in-place anymore!"
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 28, 7:13 pm, alex23 <[EMAIL PROTECTED]> wrote:
> The problem is with this:
>
> > lines = lines.append(inLine)
>
> The append method of a list modifies the list in-place, it doesn't
> return a copy of the list with the new element appended. In fact, it
> returns None, which it then at
The problem is with this:
> lines = lines.append(inLine)
The append method of a list modifies the list in-place, it doesn't
return a copy of the list with the new element appended. In fact, it
returns None, which it then attaches the label 'lines' to, so the next
iteration through it trie
11 matches
Mail list logo