Professional IronPython


Missing CPython Libraries



Download 20,35 Mb.
Pdf ko'rish
bet431/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   427   428   429   430   431   432   433   434   ...   453
Missing CPython Libraries
 

 
423


The maximum recursion limit is unlimited in IronPython by default. You can call
sys.setrecursionlimit()
to set an appropriate value. As an alternative to coding the 
recursion change, you can use the 
–X:MaxRecursion 1000
command line switch to give 
IronPython behavior similar to that of CPython.


IronPython tends to be more lenient about the use of keyword arguments in many cases. For 
example, IronPython will accept 
[].append.__call__(item=’abc’)
as usable code, but 
CPython will raise an error. In fact, IronPython is less restrictive in a number of ways. The 
following code raises an error in CPython but works fine in IronPython.
x = ‘’
x.center(1, fillchar=’*‘)


The address returned by the 
socket.socket()
method differs between IronPython and 
CPython. Given an address of 0.0.0.0, IronPython returns 0.0.0.0 and CPython returns 0.
There are many other differences between IronPython and CPython that you can read about at 
http://ironpython.codeplex.com/wikipage?title=Differences
. Make sure you check the dif-
ferences for each IronPython version because the Web site doesn’t relist differences. In addition, some 
of the difference entries aren’t complete. The version 2.0.x page at 
http://ironpython.codeplex 
.com/wikipage?title=IPy2.0.xCPyDifferences&referringTitle=Differences
is an example.
mISSINg cPyTHoN lIBrArIES
IronPython isn’t a full implementation of CPython. Yes, it has most of the pieces, but some pieces are 
missing. A few of these pieces are written in C. IronPython relies heavily on pure Python modules, 
so the C modules don’t appear in IronPython unless someone has written an alternative for them. 
In some cases, the IronPython team simply hasn’t written the required module yet, but will in the 
future. Table A-1 provides a list of the missing CPython libraries and what they do for you.
The IronPython team is constantly adding new functionality to IronPython. 
This section lists the missing CPython libraries at the time of this writing (using 
IronPython version 2.6.10920.0), but the IronPython team will add at least 
some of these modules in the future.

Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   427   428   429   430   431   432   433   434   ...   453




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish