Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'val': 0.07; 'obj,': 0.09; 'subject:into': 0.09; 'url:github': 0.09; 'def': 0.10; 'pdb': 0.16; 'pdb;': 0.16; 'thanks,': 0.18; 'import': 0.21; 'bug?': 0.22; 'possibly': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'skip:_ 10': 0.29; 'class': 0.29; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:74.125': 0.36; 'limitation': 0.36; 'method': 0.36; 'to:addr:python.org': 0.39; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=iqQDwS/4obiOrTH4IAIsD78ICLQqAedWh9gUVhzvXfk=; b=f0K0JNFBF7JnTuCp9W7hELyS7rkkdetyU6o05C3epYe3FGeg06J66Ed/lyqZ3BSjy5 xOCTd1tn/A0aIP3EXs/zlWVSkHQgTJB7LTJrRQeBSoS0iFqn/hI22dxBQ9kGG6e71SRy K9lDOdM5BLhKOEBgm5LQAao9oyRwZtVJFp7aE0AQBBdo2akzsgaSdVHMGO1jtvQxNVm5 gJtM4UO5TQtNe/dxfRpF1cIknC5s+mvlQTe3G1kV7b+0cSqjCDk9FZ4jzKhxdOtgi+By m2kQ2nB0o2VoY7eBOINJ6yIhO7GGisUx21cf340TdYQmP0W4irfA+BsZdYHqC9qpBg+5 w4gQ== MIME-Version: 1.0 X-Received: by 10.14.175.129 with SMTP id z1mr19015654eel.7.1362072245026; Thu, 28 Feb 2013 09:24:05 -0800 (PST) Date: Thu, 28 Feb 2013 09:24:04 -0800 Subject: Breaking into descriptors From: Demian Brecht To: Python Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362072729 news.xs4all.nl 6930 [2001:888:2000:d::a6]:59574 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40143 class MyDescriptor(object): def __init__(self): self.foo = 'bar' def __get__(self, obj, type_): import pdb; pdb.set_trace() return self.do_something() def __set__(self, obj, val): self.foo = val class C(object): foo = MyDescriptor() C().foo pdb doesn't break into the descriptor's __get__ method on C().foo. Is this a known limitation of pdb, or possibly a(n) (un)known bug? Thanks, -- Demian Brecht http://demianbrecht.github.com