Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python list negative indexing not working #151

Closed
nwinter opened this issue Sep 30, 2015 · 1 comment
Closed

Python list negative indexing not working #151

nwinter opened this issue Sep 30, 2015 · 1 comment
Labels

Comments

@nwinter
Copy link
Contributor

nwinter commented Sep 30, 2015

See this thread:

This doesn't work:

self.summon("archer")
decoy = self.built[-1]
self.say(decoy)

But this does:

self.summon("archer")
indices = [0]
decoy = self.built[indices[-1]]
self.say(decoy)

Perhaps indices has the right Python runtime stuff added to it and self.built doesn't?

@nwinter nwinter added the bug label Sep 30, 2015
differentmatt referenced this issue in differentmatt/filbert Oct 19, 2015
@nwinter
Copy link
Contributor Author

nwinter commented May 22, 2016

Works now, maybe Esper did it!

@nwinter nwinter closed this as completed May 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant