summaryrefslogtreecommitdiffstats
path: root/Python/pystrcmp.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2010-02-24 00:10:48 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2010-02-24 00:10:48 (GMT)
commit72aee3dcabf98a0b8a7a60cccab4fbd1ef63fbd2 (patch)
tree4d0065384cc092413d520a5d0b6a7774be930a45 /Python/pystrcmp.c
parent640cacbffe62ac3ee806e61fbd00ec242fdfa2a8 (diff)
downloadcpython-72aee3dcabf98a0b8a7a60cccab4fbd1ef63fbd2.zip
cpython-72aee3dcabf98a0b8a7a60cccab4fbd1ef63fbd2.tar.gz
cpython-72aee3dcabf98a0b8a7a60cccab4fbd1ef63fbd2.tar.bz2
Merged revisions 78393 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78393 | amaury.forgeotdarc | 2010-02-24 00:19:39 +0100 (mer., 24 févr. 2010) | 2 lines #4852: Remove dead code in every thread implementation, unused for many years. ........
Diffstat (limited to 'Python/pystrcmp.c')
0 files changed, 0 insertions, 0 deletions
>** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 2.1 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 2.1 requirements ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Nokia gives you certain ** additional rights. These rights are described in the Nokia Qt LGPL ** Exception version 1.1, included in the file LGPL_EXCEPTION.txt in this ** package. ** ** If you have questions regarding the use of this file, please contact ** Nokia at qt-info@nokia.com. ** ** ** ** ** ** ** ** ** $QT_END_LICENSE$ ** ****************************************************************************/ //! [0] foo(20.5, "hello", new Object()) //! [0] //! [1] QScriptValue Person_prototype_fullName(QScriptContext *context, QScriptEngine *engine) { QScriptValue self = context->thisObject(); QString result; result += self.property("firstName").toString(); result += QLatin1String(" "); result += self.property("lastName").toString(); return result; } //! [1] //! [2] QScriptValue myInclude(QScriptContext *ctx, QScriptEngine *eng) { QString fileName = ctx->argument(0).toString(); QString contents = readTheFile(fileName); ctx->setActivationObject(ctx->parentContext()->activationObject()); ctx->setThisObject(ctx->parentContext()->thisObject()); return eng->evaluate(contents, fileName); } //! [2]