Re: [Boost-bugs] [Boost C++ Libraries] #1181: [boost.python] can modify enum value

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1181: [boost.python] can modify enum value
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-06-26 21:25:55


#1181: [boost.python] can modify enum value
-------------------------------------------+--------------------------------
  Reporter: qiaozhiqiang_at_[hidden] | Owner: dave
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: Python
   Version: Boost 1.34.0 | Severity: Problem
Resolution: | Keywords: enum modify
-------------------------------------------+--------------------------------
Changes (by dave):

  * status: new => assigned

Comment:

 This seems reasonable enough, since we can use properties to make read-
 only attributes, but it will take some doing. As described in
 http://www.python.org/download/releases/2.2/descrintro/#property, "The get
 method won't be called when the property is accessed as a class attribute
 {{{(C.x)}}} instead of as an instance attribute {{{(C().x)}}}." This will
 remain a low-priority until I (or someone else -- '''hint, hint''')
 figures out how to appropriately "override the {{{__get__}}} operation for
 properties used as a class attribute" (in pure python code) as described
 on that page.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1181#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC