The Artima Developer Community
Sponsored Link

Python Buzz Forum
Understanding decorators

0 replies.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a flat view of this topic  Flat View
Previous Topic   Next Topic
Threaded View: This topic has 0 replies on 1 page
Shabda Raaj

Posts: 72
Nickname: shabda
Registered: Jul, 2007

Shabda Raaj is Owner of Usware Technologies, a Django Development Company.
Understanding decorators Posted: Jun 23, 2009 2:37 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Shabda Raaj.
Original Post: Understanding decorators
Feed Title: The Uswaretech Blog - Django/Python Web Development
Feed URL: http://feeds.feedburner.com/UswareBlog
Feed Description: Blog about building web applications using Django/Python/Jquery.
Latest Python Buzz Posts
Latest Python Buzz Posts by Shabda Raaj
Latest Posts From The Uswaretech Blog - Django/Python Web Development

If you used Django for any length of time, you would have come across the login_required decorator. You write @login_required before a view, and it magically becomes accessible only to authenticated users. Decorators were introduced in python 2.4. PEP 318 is the PEP describing it. At the simplest decorators are nothing but callables returning other callables, and the decorator syntax @decorator [...] Related posts:
  1. Dynamic forms with Django Newforms, (or forms now) are without doubt one of the...
  2. Understanding DateTime, tzinfo, timedelta & TimeZone Conversions in python In this post we will look at the common...

Read: Understanding decorators


Topic: Understanding decorators Previous Topic   Next Topic Topic: Yahoo BOSS python api

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use