I can't understand the meaning of the word 'enclosure' in the context: "This client reads one or more RSS feeds, queues up the enclosures for download, and processes several downloads in parallel using threads.". Can you explain me please the meaning of it.

I read it in the python docs - https://pymotw.com/2/Queue/#using-queues-with-threads

  • The analogy is to an old-fashioned "snail mail" letter: In addition to the letter itself you might have several "enclosures" -- additional pages that are not part of the letter but are information the recipient might want to refer to while/after reading the letter. – Hot Licks May 14 '16 at 21:30

In general, enclosure means more-or-less what it sounds like: something that is enclosed in something else. It usually referred to anything included in a letter or package. If you put a lock of hair in a love-note, the hair would be the enclosure.

In your example, it is a term of art specific to the definition of an RSS feed. An enclosure is a media-item (such as an image or a video) sent along with an entry in the feed.

  • Thank you for response, Malvolio. It helps me. I haven't enough rating to vote up your answer. – discort May 14 '16 at 20:05
  • @discort -- we don't do it for the fame. You are quite welcome. – Malvolio May 14 '16 at 20:09
  • @discort - I've given an upvote on your behalf! – Prof Yaffle May 14 '16 at 20:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.