📄 skype4py.utils.cached-class.html
字号:
<?xml version="1.0" encoding="ascii"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <title>Skype4Py.utils.Cached</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type="text/javascript" src="epydoc.js"></script></head><body bgcolor="white" text="black" link="blue" vlink="#204080" alink="#204080"><!-- ==================== NAVIGATION BAR ==================== --><table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0"> <tr valign="middle"> <!-- Home link --> <th> <a href="Skype4Py-module.html">Home</a> </th> <!-- Tree link --> <th> <a href="module-tree.html">Trees</a> </th> <!-- Index link --> <th> <a href="identifier-index.html">Indices</a> </th> <!-- Help link --> <th> <a href="help.html">Help</a> </th> <!-- Project homepage --> <th class="navbar" align="right" width="100%"> <table border="0" cellpadding="0" cellspacing="0"> <tr><th class="navbar" align="center" ><a class="navbar" target="_top" href="https://developer.skype.com/wiki/Skype4Py">Skype4Py</a></th> </tr></table></th> </tr></table><table width="100%" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="100%"> <span class="breadcrumbs"> <a href="Skype4Py-module.html">Package Skype4Py</a> :: <a href="Skype4Py.utils-module.html">Module utils</a> :: Class Cached </span> </td> <td> <table cellpadding="0" cellspacing="0"> <!-- hide/show private --> <tr><td align="right"><span class="options" >[<a href="frames.html" target="_top">frames</a >] | <a href="Skype4Py.utils.Cached-class.html" target="_top">no frames</a>]</span></td></tr> </table> </td> </tr></table><!-- ==================== CLASS DESCRIPTION ==================== --><h1 class="epydoc">Class Cached</h1><p class="nomargin-top"><span class="codelink"><a href="Skype4Py.utils-pysrc.html#Cached">source code</a></span></p><pre class="base-tree">object --+ | <strong class="uidshort">Cached</strong></pre><dl><dt>Known Subclasses:</dt><dd> <ul class="subclass-list"><li><a href="Skype4Py.application.IApplication-class.html">application.IApplication</a></li><li>, <a href="Skype4Py.application.IApplicationStream-class.html">application.IApplicationStream</a></li><li>, <a href="Skype4Py.chat.IChat-class.html">chat.IChat</a></li><li>, <a href="Skype4Py.chat.IChatMember-class.html">chat.IChatMember</a></li><li>, <a href="Skype4Py.chat.IChatMessage-class.html">chat.IChatMessage</a></li><li>, <a href="Skype4Py.voicemail.IVoicemail-class.html">voicemail.IVoicemail</a></li><li>, <a href="Skype4Py.sms.ISmsChunk-class.html">sms.ISmsChunk</a></li><li>, <a href="Skype4Py.sms.ISmsMessage-class.html">sms.ISmsMessage</a></li><li>, <a href="Skype4Py.sms.ISmsTarget-class.html">sms.ISmsTarget</a></li><li>, <a href="Skype4Py.user.IGroup-class.html">user.IGroup</a></li><li>, <a href="Skype4Py.user.IUser-class.html">user.IUser</a></li><li>, <a href="Skype4Py.call.ICall-class.html">call.ICall</a></li><li>, <a href="Skype4Py.call.IConference-class.html">call.IConference</a></li><li>, <a href="Skype4Py.call.IParticipant-class.html">call.IParticipant</a></li><li>, <a href="Skype4Py.client.IPluginEvent-class.html">client.IPluginEvent</a></li><li>, <a href="Skype4Py.client.IPluginMenuItem-class.html">client.IPluginMenuItem</a></li><li>, <a href="Skype4Py.filetransfer.IFileTransfer-class.html">filetransfer.IFileTransfer</a></li> </ul></dd></dl><hr /><p>Base class for all cached objects.</p> <p>Every object is identified by an Id specified as first parameter of the constructor. Trying to create two objects with same Id yields the same object. Uses weak references to allow the objects to be deleted normally.</p><hr /><div class="fields"> <p><strong>Warning:</strong> <code>__init__()</code> is always called, don't use it to prevent initializing an already initialized object. Use <code>_Init()</code> instead, it is called only once. </p></div><!-- ==================== INSTANCE METHODS ==================== --><a name="section-InstanceMethods"></a><table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"><tr bgcolor="#70b0f0" class="table-header"> <td align="left" colspan="2" class="table-header"> <span class="table-header">Instance Methods</span></td></tr><tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type"> </span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a name="__copy__"></a><span class="summary-sig-name">__copy__</span>(<span class="summary-sig-arg">self</span>)</span></td> <td align="right" valign="top"> <span class="codelink"><a href="Skype4Py.utils-pysrc.html#Cached.__copy__">source code</a></span> </td> </tr> </table> </td> </tr> <tr> <td colspan="2" class="summary"> <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: <code>__delattr__</code>, <code>__format__</code>, <code>__getattribute__</code>, <code>__hash__</code>, <code>__init__</code>, <code>__reduce__</code>, <code>__reduce_ex__</code>, <code>__repr__</code>, <code>__setattr__</code>, <code>__sizeof__</code>, <code>__str__</code>, <code>__subclasshook__</code> </p> </td> </tr></table><!-- ==================== STATIC METHODS ==================== --><a name="section-StaticMethods"></a><table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"><tr bgcolor="#70b0f0" class="table-header"> <td align="left" colspan="2" class="table-header"> <span class="table-header">Static Methods</span></td></tr><tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">a new object with type S, a subtype of T</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a href="Skype4Py.utils.Cached-class.html#__new__" class="summary-sig-name">__new__</a>(<span class="summary-sig-arg">cls</span>, <span class="summary-sig-arg">Id</span>, <span class="summary-sig-arg">*args</span>, <span class="summary-sig-arg">**kwargs</span>)</span></td> <td align="right" valign="top"> <span class="codelink"><a href="Skype4Py.utils-pysrc.html#Cached.__new__">source code</a></span> </td> </tr> </table> </td> </tr></table><!-- ==================== CLASS VARIABLES ==================== --><a name="section-ClassVariables"></a><table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"><tr bgcolor="#70b0f0" class="table-header"> <td align="left" colspan="2" class="table-header"> <span class="table-header">Class Variables</span></td></tr><tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type"> </span> </td><td class="summary"> <a name="_cache_"></a><span class="summary-name">_cache_</span> = <code title="<WeakValueDictionary at 35097976>"><WeakValueDictionary at 35097976></code> </td> </tr></table><!-- ==================== PROPERTIES ==================== --><a name="section-Properties"></a><table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"><tr bgcolor="#70b0f0" class="table-header"> <td align="left" colspan="2" class="table-header"> <span class="table-header">Properties</span></td></tr> <tr> <td colspan="2" class="summary"> <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: <code>__class__</code> </p> </td> </tr></table><!-- ==================== METHOD DETAILS ==================== --><a name="section-MethodDetails"></a><table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"><tr bgcolor="#70b0f0" class="table-header"> <td align="left" colspan="2" class="table-header"> <span class="table-header">Method Details</span></td></tr></table><a name="__new__"></a><div><table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"><tr><td> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr valign="top"><td> <h3 class="epydoc"><span class="sig"><span class="sig-name">__new__</span>(<span class="sig-arg">cls</span>, <span class="sig-arg">Id</span>, <span class="sig-arg">*args</span>, <span class="sig-arg">**kwargs</span>)</span> <br /><em class="fname">Static Method</em> </h3> </td><td align="right" valign="top" ><span class="codelink"><a href="Skype4Py.utils-pysrc.html#Cached.__new__">source code</a></span> </td> </tr></table> <dl class="fields"> <dt>Returns: a new object with type S, a subtype of T</dt> <dt>Overrides: object.__new__ <dd><em class="note">(inherited documentation)</em></dd> </dt> </dl></td></tr></table></div><br /><!-- ==================== NAVIGATION BAR ==================== --><table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0"> <tr valign="middle"> <!-- Home link --> <th> <a href="Skype4Py-module.html">Home</a> </th> <!-- Tree link --> <th> <a href="module-tree.html">Trees</a> </th> <!-- Index link --> <th> <a href="identifier-index.html">Indices</a> </th> <!-- Help link --> <th> <a href="help.html">Help</a> </th> <!-- Project homepage --> <th class="navbar" align="right" width="100%"> <table border="0" cellpadding="0" cellspacing="0"> <tr><th class="navbar" align="center" ><a class="navbar" target="_top" href="https://developer.skype.com/wiki/Skype4Py">Skype4Py</a></th> </tr></table></th> </tr></table><table border="0" cellpadding="0" cellspacing="0" width="100%%"> <tr> <td align="left" class="footer"> Generated by Epydoc 3.0.1 on Wed Nov 05 14:55:00 2008 </td> <td align="right" class="footer"> <a target="mainFrame" href="http://epydoc.sourceforge.net" >http://epydoc.sourceforge.net</a> </td> </tr></table><script type="text/javascript"> <!-- // Private objects are initially displayed (because if // javascript is turned off then we want them to be // visible); but by default, we want to hide them. So hide // them unless we have a cookie that says to show them. checkCookie(); // --></script></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -