Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: CPython


In the News (Thu 4 Dec 08)

  
  Differences between CPython and Jython
CPython and Jython are two different implementations of the Python language.
CPython should be fixed, but don't hold your breath.
Be aware though currently neither Jython nor CPython are completely consistent.
www.jython.org /docs/differences.html   (1271 words)

  
 CPython - Wikipedia, the free encyclopedia
CPython (or "Classic Python") is the default, most-widely used implementation of the Python programming language.
In addition to CPython, there are two other production-quality Python implementations, Jython, written in Java, and IronPython, which is written for the Common Language Runtime, as well as several experimental implementations.
It has a foreign function interface with several languages including C, in which one must explicitly write bindings in a language other than Python.
en.wikipedia.org /wiki/CPython   (116 words)

  
 Timeout sockets for jython   (Site not responding. Last check: 2007-10-16)
The API implemented should be identical to the cpython 2.3 API, so you should use the cpython 2.3 socket module documentation.
This module is derived mostly from the socket test module from cpython 2.3: I copied a lot of that code, and added a couple of new tests.
Because socket timeouts were only introduced into cpython in version 2.3, there was no cpython 2.1 API for jython 2.1 to copy or implement.
www.xhaus.com /alan/python/timeout.html   (755 words)

  
 October 2005 (dirtSimple.org)
CPython is basically a glue language for assembling programs from C libraries, and to the extent that Jython and IronPython are successful, it's because they're glue languages for assembling Java or CLR components.
If the value of CPython comes from all the things that work with it today, then CPython is very close to being at a dead-end for further performance improvement.
But arguably the single biggest mistake in the CPython platform as it exists today is the lack of a foreign function interface, defined by the language and expressable by Python code.
dirtsimple.org /2005/10/programming.html   (2288 words)

  
 [No title]
After realizing that CPython can be implemented without the C stack involved, I was sure that it *must* be implemented this way; everything else looks insane to me. CPython already pays for the overhead of frame objects, but it throws all their freedom away by tying them to the C stack.
Vice versa: If CPython would translate directly into C code instead of using its frames, we would be in the same Dilemma as Java is, since C doesn't support continuations, which means switching stacks.
The CPython extension writer has to explicitly increment and decrement the reference counts, and this can lead to memory leaks or crashes if not done properly (fortunately CPython's reference counting rules are explicitly spelled out).
gnosis.cx /download/charming_python_10_outtakes.html   (5466 words)

  
 Implementing the select module in jython
As mentioned on the cpython Poll objects documentation page, poll objects are superior to the select function call, since they only require listing the file descriptors of interest, while select() builds a bitmap, turns on bits for the fds of interest, and then afterward the whole bitmap has to be linearly scanned again.
In the cpython model, a channel is registered with a watcher, whereas in java the channel registers itself with the watcher, returning a SelectionKey representing the registration.
Cpython uses the POLLIN flag to represent two events that are represented by separate flags in java: OP_ACCEPT and OP_READ.
xhaus.com /alan/python/jynio/select.html   (2918 words)

  
 OSNews.com
CPython uses Ascii by default, and only supports Unicode recently as a special type of String.
CPython will not compile such a file in any case.
In some respects, IronPython is a better version than CPython, particularly if you want people outside of the English-speaking world to use your applications.
www.osnews.com /subthread.php?news_id=15747&comment_id=159791   (493 words)

  
 [No title]   (Site not responding. Last check: 2007-10-16)
Stackless is a patch to the CPython interpreter which changing it from reflecting the Python stack on the C stack, to reflecting it on the heap.
The CPython interpreter (which is the one on www.python.org and which everyone thinks of as Python) is written in C and it is so written that function calls in Python cause a new plate (or two) to be put on the processor managed stack.
Generators are feature in the vanilla CPython which allows a returning function to save its frame so that it can be resumed later.
www.imperialviolet.org /stackless   (512 words)

  
 import clue: PyPy Musings   (Site not responding. Last check: 2007-10-16)
This is for a battery of tests that runs in CPython in 25 seconds.
This is a bit nasty, because you've got to implement things a few times over, so there's a new way based on ctypes that's completely awesome.
[1] CPython is the name used to unambiguously refer to Python implemented in C, and to distinguish it from Jython, PyPy, IronPython or Stackless Python.
shiny.thorne.id.au /shiny/2006/07/pypy-musings.html   (558 words)

  
 Blog for lupus
What propmted this entry, though, is an interesting result while profiling the eclipse startup running with ikvm: 30% of the time is spent in the garbage collector but about 16% of the time is spent doing exception handling.
A few days after we knew about the issue, I committed some changes to reduce the overhead to more sane levels (we are now about 8 times slower in that particular sub-benchmark and again most of the time is spent gathering stack trace info).
In his slides he mentions Mono 1.0 was 23 times slower than CPython (2 times slower if the exception-handling bench is not considered).
www.advogato.org /person/lupus/diary.html?start=14   (3277 words)

  
 Python for .NET
Python’s parser is built-in to the CPython runtime, and the existing Python2C project[5] had infrastructure we could borrow.
The definition of this interface is almost identical to the existing CPython type object, which is the object primarily responsible for object semantics in CPython.
CPython allows these library modules to be written in Python, or in C/C++ where they are compiled as DLLs.
word-to-html.com /convertions/Python_for_NET.html   (3892 words)

  
 AOLserver/PyWX: Embedding Python in a Threaded Web Server
For CPython developers, the PyWX project is noteworthy because it embeds CPython within a multi-threaded C application and make extensive use of the CPython interpreter manipulation interface.
CPython has a single, global module table which is used to cache the module symbols across interpreters, presumably for reasons of efficiency.
Thus, when a new interpreter does an import of a module that was previously imported by a different interpreter, the code for that module is retrieved from the module cache.
www.idyll.org /~t/python9/pywx.html   (2842 words)

  
 Page 4 - How Python Runs Programs
CPython is the standard implementation; all the others have very specific purposes and roles.
Jython’s goal is to allow Python code to script Java applications, much as CPython allows Python to script C and C++ components.
Because Jython is slower and less robust than CPython, it is usually seen as a tool of interest primarily to Java developers.
www.devshed.com /c/a/Python/How-Python-Runs-Programs/3   (1441 words)

  
 JPython: The Felicitous Union of Python and Java | Linux Journal   (Site not responding. Last check: 2007-10-16)
In CPython, Python objects are divided into two kinds of types: built-in types, such as integers, strings, file objects, etc., and instance and class objects.
It means that, unlike in CPython, you don't have to worry about creating cyclic references which CPython's reference-counting garbage collector won't reclaim--in Java, those will be reclaimed.
The slowness is not too surprising, given the slowness of the underlying Java platform; still, it is a noticeable change from CPython's speed.
www.linuxjournal.com /article/3840   (2528 words)

  
 Allegra » Blog Archive » Gunfight at the Async Corral
CPython is designed to prototype, test and apply C libraries.
Reimplementing the dynamics allready provided by the CPython VM is a complete waiste of time and a sure way to prevent any further optimization.
Because whatever cannot be optimized further in Python may be optimized in a C module, as classes and functions.
laurentszyster.be /blog/gunfight-at-the-async-corral   (2421 words)

  
 IronPython: .NET *is* a good platform for dynamic languages - GameDev.Net Discussion Forums   (Site not responding. Last check: 2007-10-16)
Obviously, it was slower than CPython at some things; the "eval" function in particular(which is also pretty slow in JPython).
I'd be interested to see how much of that performance benefit comes from the CLR and how much merely comes from a different approach to the implementation.
Python is faster with memory operations because is does have a number of specialized allocators, whereas the CLR need to cover the general case.
www.gamedev.net /community/forums/viewreply.asp?ID=1397598   (1133 words)

  
 PyPy | Lambda the Ultimate
It is not that PyPy still needs the CPython runtime to execute the PyPy interpreter encoded in the standard objectspace and the interpreter package but the interpreter is already translated to low-level code of C and LLVM backends (I don't know if it is completed for the latter yet).
Most of these features are likely to be added via transformations of the flow graph and thus removed from C backend.
The goal would be not only to be faster then CPython but also plain C. Arman Rigo has a nice old post to python-dev concerning Psyco's JIT speed up over here.
lambda-the-ultimate.org /node/1260   (1806 words)

  
 [Python-Dev] proto-pep: How to change CPython's bytecode
OK, latest update with all suggest revisions (mention this is for CPython, section for known previous bytecode work).
As such, knowing how to add, remove, or change the bytecode is important to do properly when changing the abilities of the Python language.
This PEP covers how to accomplish this in the CPython implementation of the language (referred to as simply "Python" for the rest of this PEP).
mail.python.org /pipermail/python-dev/2005-January/050753.html   (690 words)

  
 JpyDbg plugin for NETBEANS and JEDITuser's guide
A running version of CPython is requested (2.2, 2.3 or 2.4 version are acceptable) see http://www.python.org for details.
A python counterpart module, used for the backend part of debugger is also provided in source format using a standard python module distribution, so a separate complementary jpydaemon-xxx.zip (where xxx represents the current version number of the module) is provided and need to be downloaded as well, unzipped into a work directory (/tmp).
The choice between a CPython debugging session and a Jython one must be made before the debugging session starts, as soon as the debugger is active the JPython/CPython toggle button is disabled until the end of the debugging session.
jpydbg.sourceforge.net   (4023 words)

  
 Charming Python: Inside JPython and Python for .NET   (Site not responding. Last check: 2007-10-16)
He gets a bit of the inside scoop on Microsoft development from Mark (all within the limits of his non-disclosure contract, of course), and grills Finn and Barry on JPython and their upcoming Jython project.
Although Python is commonly equated with CPython, its specification has been implemented elsewhere several times, including in applications for Java and.NET.
CPython 2.0 has features such as augmented assignments and extended print (with list comprehensions coming soon).
www-106.ibm.com /developerworks/library/l-jpython.html?dwzone=linux   (2747 words)

  
 Ted Leung on the air : Backdoor dynamic languages
The bigger threat to CPython is the dotnet libraries themselves.
Python programs developed in a dotnet environment would not easily port to CPython because the library support is so different.
CPython's libraries are no match for the CLR framework libraries.
www.sauria.com /blog/2004/08/23   (2008 words)

  
 Jython FAQ
We strive to ensure that Jython remains as compatible with CPython as possible.
Current status is that CPython 2.3 on Windows2000 is about twice as fast as Jython 2.1 on JDK1.4 on Windows2000.
As in CPython, "a = foo.bar" calls the __findattr__ method on foo, "foo.bar = 'baz'" calls the __setattr__ method on foo, and "delattr(foo, 'bar')" calls the __delattr__ method on foo.
www.jython.org /Project/userfaq.html   (2743 words)

  
 XML.com: PyCon 2004: Making Python Faster and Better
IronPython's performance relative to CPython is not 40% faster in every aspect.
In Hugunin's view, IronPython is faster than CPython when it is possible to use native CLR bits, since the CLR is very highly optimized, with hundreds of person-years of programmer attention.
Oh, one more thing: Salib claims that Starkiller is sixty (60!) faster than CPython for the very contrived, "pathological" benchmark of calling fibonacci and factorial functions repeatedly in a loop.
www.xml.com /pub/a/2004/03/31/pycon.html   (2784 words)

  
 JMS for CPython via JPype?
It seems that JMS is going to become a standard for (java-based) MOM, so as an excellent middleware language it should be possible for CPython to somehow "talk" (and understand) JMS...
It seems that JMS is going to become a > standard for (java-based) MOM, so as an excellent middleware language it > should be possible for CPython to somehow "talk" (and understand) JMS...
BTW, I don't detect any noticable slowdown in the python versions from the Java versions (probably because of the strightforward conversion of python strings to Java Strings).
www.codecomments.com /message311362.html   (1144 words)

  
 [No title]
Pyrex is a great bridge to the PyPy project in that it already embodies some of the key ideas of that project and in that PyPy could easily interpret Pyrex code and even use something like "ctypes" to handle calls out to C functions.
Many of the standard library modules have "inner loops" that could be implemented in Pyrex without hurting the readability and maintainability of the module.
For the purposes of this discussion I will describe this code as "non-portable" even though it works on any platform that CPython does, because it is not even theoretically portable to an implementation of Python with a different interal API.
www.prescod.net /python/pyrexopt/pre-pep.txt   (933 words)

  
 Implementations of Python
Python has a good advantaga in having a well specified syntax and behaviour, even via unit tests, wich nearly relieves from the need of a standardization (as in ISO), but we can't tell (yet) that there are different implementations.
CPython - a full-fledged Python implemention, of course.
If you don't hold compatibility with CPython as the measure for "pythoness", it's very difficult to talk meaningfully about Python implementations.
weblog.hotales.org /view/python/2004/07/29/4   (558 words)

  
 InfoQ: IronPython 1.0 Released
According to Jim Hugunin of JPython fame, it also means Python programs can run of approximately 1.7 times faster over that of CPython, the native C++ implementation.
Because IronPython doesn't support C++ extensions like CPython, the existing GUI frameworks such as wkPython or Win32All will probably not be available.
More information on known issues and CPython compatibility can be found in the Differences and FAQ documents.
www.infoq.com /news/IronPython   (560 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.