Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python

Konrad Gołda
Konrad Gołda
735 Points

Collection or Tuples?

Hi!

I have a question, what means that Python Collection are retired? I saw there a few lessons with subject that was already done on this course with Craig, but here Craig is recommending this Collections as a next step, but when I move forward, I am getting a redirection to "Introducing Tuples". Should I forget about this collections and start Tuples right away? Thanks :)

Dan B
Dan B
6,155 Points

I suppose you are referring to this: https://teamtreehouse.com/library/python-collections-2016-retired-2019

Collections in Python are container datatypes. See here: https://docs.python.org/3/library/collections.html

After checking these videos and the Python documentation, my understanding is as what is written on the documentation here under the table of those datatypes:

"Deprecated since version 3.3, will be removed in version 3.9: Moved Collections Abstract Base Classes to the collections.abc module. For backwards compatibility, they continue to be visible in this module through Python 3.8."

It makes sense then that any of these videos will be removed from Team Treehouse as the next version of Python will have them removed.

In short, as the video redirects you, continue with what is mentioned. You could still learn about those datatypes if you are interested in learning about what will become 'legacy' datatypes (as you will be likely to see quite a few of them around). But if you are a new learner and want to just keep to what is in current use, it would be better to skip them.

I hope this makes sense.

1 Answer

Konrad Gołda
Konrad Gołda
735 Points

Oh I understand now, thanks Dan!

Dan B
Dan B
6,155 Points

My pleasure :)