<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Decorate on a Dime</title>
	<atom:link href="http://www.j5live.com/2005/05/12/decorate-on-a-dime/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.j5live.com/2005/05/12/decorate-on-a-dime/</link>
	<description>Where the urethane hits the pavement</description>
	<lastBuildDate>Mon, 10 Oct 2011 13:34:18 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: J5</title>
		<link>http://www.j5live.com/2005/05/12/decorate-on-a-dime/comment-page-1/#comment-1616</link>
		<dc:creator>J5</dc:creator>
		<pubDate>Thu, 11 Aug 2005 13:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=62#comment-1616</guid>
		<description>hey Manik. The API changed quite a bit.  Where did you get the examples from?  YOu can check out the tutorial on the dbus wiki - http://www.freedesktop.org/Software/dbus

bus = dbus.SystemBus()
remote_object = bus.get_object(&quot;org.freedesktop.DBus&quot;, &quot;/org/freedesktop/DBus&quot;)
iface = dbus.Interface(remote_object, &quot;org.freedesktop.DBus&quot;)

iface.method()

</description>
		<content:encoded><![CDATA[<p>hey Manik. The API changed quite a bit.  Where did you get the examples from?  YOu can check out the tutorial on the dbus wiki &#8211; <a href="http://www.freedesktop.org/Software/dbus" rel="nofollow">http://www.freedesktop.org/Software/dbus</a></p>
<p>bus = dbus.SystemBus()<br />
remote_object = bus.get_object(&#8221;org.freedesktop.DBus&#8221;, &#8220;/org/freedesktop/DBus&#8221;)<br />
iface = dbus.Interface(remote_object, &#8220;org.freedesktop.DBus&#8221;)</p>
<p>iface.method()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manik</title>
		<link>http://www.j5live.com/2005/05/12/decorate-on-a-dime/comment-page-1/#comment-1614</link>
		<dc:creator>Manik</dc:creator>
		<pubDate>Wed, 10 Aug 2005 10:12:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=62#comment-1614</guid>
		<description>Hi,

I need to interface with some code using DBus, and I&#039;d ideally like to use Python for this task.  Sadly I don&#039;t see a documented API and the examples you speak of in CVS don&#039;t quite tell me how to do what I am trying to do.

Basically the sample python client code provided by the third party component uses:

remote_bus=dbus.SystemBus()
remote_bus.get_service(&#039;org.freedesktop.DBus&#039;)

But the interpreter complains about get_service not being a method on SystemBus.

Using python 2.4.1 and dbus 0.33 on FC4... 

Any ideas/pointers?

Thanks,
Manik</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I need to interface with some code using DBus, and I&#8217;d ideally like to use Python for this task.  Sadly I don&#8217;t see a documented API and the examples you speak of in CVS don&#8217;t quite tell me how to do what I am trying to do.</p>
<p>Basically the sample python client code provided by the third party component uses:</p>
<p>remote_bus=dbus.SystemBus()<br />
remote_bus.get_service(&#8217;org.freedesktop.DBus&#8217;)</p>
<p>But the interpreter complains about get_service not being a method on SystemBus.</p>
<p>Using python 2.4.1 and dbus 0.33 on FC4&#8230; </p>
<p>Any ideas/pointers?</p>
<p>Thanks,<br />
Manik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J5</title>
		<link>http://www.j5live.com/2005/05/12/decorate-on-a-dime/comment-page-1/#comment-1452</link>
		<dc:creator>J5</dc:creator>
		<pubDate>Sun, 15 May 2005 14:02:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=62#comment-1452</guid>
		<description>I plan on writting up documentation while I&#039;m at GUADEC at the end of this month.  Other than that it is really easy to use the python bindings.  Take a look at the exmple code in CVS.</description>
		<content:encoded><![CDATA[<p>I plan on writting up documentation while I&#8217;m at GUADEC at the end of this month.  Other than that it is really easy to use the python bindings.  Take a look at the exmple code in CVS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy</title>
		<link>http://www.j5live.com/2005/05/12/decorate-on-a-dime/comment-page-1/#comment-1447</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Sun, 15 May 2005 10:38:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=62#comment-1447</guid>
		<description>I&#039;d love to do some cool dbus-in-python coding, but I&#039;ve found no documentation. Have you found any documentation or are you using the source to find your way?</description>
		<content:encoded><![CDATA[<p>I&#8217;d love to do some cool dbus-in-python coding, but I&#8217;ve found no documentation. Have you found any documentation or are you using the source to find your way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomasz Torcz</title>
		<link>http://www.j5live.com/2005/05/12/decorate-on-a-dime/comment-page-1/#comment-1446</link>
		<dc:creator>Tomasz Torcz</dc:creator>
		<pubDate>Fri, 13 May 2005 23:08:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=62#comment-1446</guid>
		<description>So it looks like C# ones are primitive rather :)</description>
		<content:encoded><![CDATA[<p>So it looks like C# ones are primitive rather <img src='http://www.j5live.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J5</title>
		<link>http://www.j5live.com/2005/05/12/decorate-on-a-dime/comment-page-1/#comment-1445</link>
		<dc:creator>J5</dc:creator>
		<pubDate>Fri, 13 May 2005 14:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=62#comment-1445</guid>
		<description>This explains the relationship of C#&#039;s attributes to Python&#039;s decorators from &lt;a href=&quot;http://www.aminus.org/rbre/python/pydec.html&quot; rel=&quot;nofollow&quot;&gt;http://www.aminus.org/rbre/python/pydec.html&lt;/a&gt;:

&lt;blockquote&gt;
Similarly, the previous []-before-def syntax was inspired by Microsoft&#039;s C# language. But C# also limits the expressivity of what it calls &quot;attributes&quot;. They are similar to Python decorators in the sense that both involve what appear to be expressions as opposed to statements; however, .Net attributes really are non-statements; they do not modify their referents so much as attach themselves to them. Microsoft often calls attributes &quot;declarative&quot; as opposed to &quot;imperative&quot; 19. Further, they are required to be commutative 20, a requirement which would cripple many uses of Python decorators 21.
&lt;/blockquote&gt;

Java annotations are somewhat similar but  a bit more different than C# attributes:

&lt;blockquote&gt;
The current @-decorator syntax is inspired by Java&#039;s &quot;annotations&quot;. In fact, the authors of the Java annotation feature state that the @-symbol is a mnemonic for annotation type. However, Python decorators differ significantly from Java&#039;s use of that syntax. Most importantly, &quot;annotations&quot; are limited to attributes and other non-transformative operations in Java. From the JDK 1.5 specification:

    &quot;This facility allows developers to define custom annotation types and to annotate fields, methods, classes, and other program elements with annotations corresponding to these types. These annotations do not directly affect the semantics of a program.&quot; 18 (emphasis added)

Java annotations provide semantic transparency; the referent is not modified. One may use &quot;interceptor&quot; functions like @trace, but the annotated function is not wrapped. In Java, function transformations continue to be provided by keywords such as static.
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>This explains the relationship of C#&#8217;s attributes to Python&#8217;s decorators from <a href="http://www.aminus.org/rbre/python/pydec.html" rel="nofollow">http://www.aminus.org/rbre/python/pydec.html</a>:</p>
<blockquote><p>
Similarly, the previous []-before-def syntax was inspired by Microsoft&#8217;s C# language. But C# also limits the expressivity of what it calls &#8220;attributes&#8221;. They are similar to Python decorators in the sense that both involve what appear to be expressions as opposed to statements; however, .Net attributes really are non-statements; they do not modify their referents so much as attach themselves to them. Microsoft often calls attributes &#8220;declarative&#8221; as opposed to &#8220;imperative&#8221; 19. Further, they are required to be commutative 20, a requirement which would cripple many uses of Python decorators 21.
</p></blockquote>
<p>Java annotations are somewhat similar but  a bit more different than C# attributes:</p>
<blockquote><p>
The current @-decorator syntax is inspired by Java&#8217;s &#8220;annotations&#8221;. In fact, the authors of the Java annotation feature state that the @-symbol is a mnemonic for annotation type. However, Python decorators differ significantly from Java&#8217;s use of that syntax. Most importantly, &#8220;annotations&#8221; are limited to attributes and other non-transformative operations in Java. From the JDK 1.5 specification:</p>
<p>    &#8220;This facility allows developers to define custom annotation types and to annotate fields, methods, classes, and other program elements with annotations corresponding to these types. These annotations do not directly affect the semantics of a program.&#8221; 18 (emphasis added)</p>
<p>Java annotations provide semantic transparency; the referent is not modified. One may use &#8220;interceptor&#8221; functions like @trace, but the annotated function is not wrapped. In Java, function transformations continue to be provided by keywords such as static.
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: J5</title>
		<link>http://www.j5live.com/2005/05/12/decorate-on-a-dime/comment-page-1/#comment-1443</link>
		<dc:creator>J5</dc:creator>
		<pubDate>Fri, 13 May 2005 13:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=62#comment-1443</guid>
		<description>I don&#039;t know if more primitive is the word but I just read up on C# metadata and you are correct in saying they are similar.  Hopefully the DBus C# bindings will use them in the same way we use them in Python.  I&#039;ll have to talk to Joe about that.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know if more primitive is the word but I just read up on C# metadata and you are correct in saying they are similar.  Hopefully the DBus C# bindings will use them in the same way we use them in Python.  I&#8217;ll have to talk to Joe about that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomasz Torcz</title>
		<link>http://www.j5live.com/2005/05/12/decorate-on-a-dime/comment-page-1/#comment-1442</link>
		<dc:creator>Tomasz Torcz</dc:creator>
		<pubDate>Fri, 13 May 2005 13:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.martianrock.com/?p=62#comment-1442</guid>
		<description>So those &quot;decorators&quot; are basically more primitive version of C# metadata?</description>
		<content:encoded><![CDATA[<p>So those &#8220;decorators&#8221; are basically more primitive version of C# metadata?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

