Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70633 > unrolled thread

Re: Help with changes in traceback stack from Python 2.7 to Python 3.x

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2014-04-26 11:13 -0400
Last post2014-04-26 11:13 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Help with changes in traceback stack from Python 2.7 to Python 3.x Ian Kelly <ian.g.kelly@gmail.com> - 2014-04-26 11:13 -0400

#70633 — Re: Help with changes in traceback stack from Python 2.7 to Python 3.x

FromIan Kelly <ian.g.kelly@gmail.com>
Date2014-04-26 11:13 -0400
SubjectRe: Help with changes in traceback stack from Python 2.7 to Python 3.x
Message-ID<mailman.9519.1398525241.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

On Apr 26, 2014 8:12 AM, "Ned Batchelder" <ned@nedbatchelder.com> wrote:
> Looking at your code, I see:
>
>
>     tplArgs = map(None, lstVarNames, args)
>
> I didn't realize map accepted a callable of None (TIL!), but it no longer
does in Python 3.  You'll have to do this a different way.

The Python 3 replacement for map(None, ...) is itertools.zip_longest.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web