This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jonathandaniel
Recipients jonathandaniel, rhettinger
Date 2018-01-19.09:08:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CA+imcT--Za3VdLc9s+=Bxcdkf6waHuDW79MQ6tjdCxfU1hJA-A@mail.gmail.com>
In-reply-to <1516307269.36.0.467229070634.issue32595@psf.upfronthosting.co.za>
Content
Hello,

I dont know why but yesterday when i appended it behaved like extend.
I should sleep more.

2018-01-18 20:27 GMT+00:00 Raymond Hettinger <report@bugs.python.org>:

>
> Raymond Hettinger <raymond.hettinger@gmail.com> added the comment:
>
> Sorry Jonathan, this is the way the python containers work if they take an
> iterable input.  In the case of a str, it is not possible for us to know
> whether you mean for deque('abc') to go it as three arguments or as one.
>
> FWIW, if you don't what to put the single element in a list, the API
> provides the append() method for adding scalars and extend() method for
> adding iterables:
>
>    d = deque()
>    d.append('abc')
>    d.extend('abc')
>
> Note that lists behave the same way.
>
> ----------
> resolution:  -> not a bug
> stage:  -> resolved
> status: open -> closed
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue32595>
> _______________________________________
>
History
Date User Action Args
2018-01-19 09:08:46jonathandanielsetrecipients: + jonathandaniel, rhettinger
2018-01-19 09:08:45jonathandaniellinkissue32595 messages
2018-01-19 09:08:45jonathandanielcreate