8,285 reputation
73145
bio website zopatista.com
location Cambridge, United Kingdom
age 42
visits member for 2 years, 11 months
seen 13 hours ago

Invisible framework coding ninja


Apr
21
comment Is this a race condition?
A race condition is a situation where parallel processes can produce different outcomes depending on how they are interleaved. Who's last to the post is only part of that process.
Apr
10
comment Tips on Converting a C program to Pure Python
Sorry, I am doing what? I didn't vote, I gave feedback. I know CPython is not the same thing as Cython. Cython is a extension that lets you compile Python code, with some additional annotations and syntax, to machine code. I'm not sure anymore what you think I am saying here.
Apr
10
comment Tips on Converting a C program to Pure Python
The majority of Python users are not aware of there being any other implementations. Pure Python usually means: only written in Python, without using any C extensions. The OP even qualifies it as such here (not to Cython, IronPython, etc.). That they lumped IronPython with Cython here is sorta-interesting in that they seem to think the latter is some form of non-pure-python.
Apr
10
comment Tips on Converting a C program to Pure Python
But the bulk of your answer is about memory management for variants of Python other than CPython. If your point was that you don't have to worry about memory allocation you certainly managed to distract from that.
Apr
10
comment Tips on Converting a C program to Pure Python
So how does this apply to the C code that the OP is converting?
Apr
10
comment Tips on Converting a C program to Pure Python
This doesn't adresses any of the questions about reading the C application, though. While IronPython and Jython object creation strategies are interesting, I doubt they have any bearing on this specific scenario; it is almost certain that the OP is using CPython as otherwise they'd have known to mention they don't.
Mar
29
comment How come javascript, being a prototype based language, doesn't have an easy way to access the prototype?
You are not answering the question however; which is why JS didn't have that right from the start. Eric's answer addresses that, including when <object>.constructor.prototype is available. And unless your post adds significantly to answering the why question, I don't think we need more answers here.
Mar
25
comment How do regular expressions actually work?
Those that say that regular expressions are not fast are qualifying their answer. Like Regular expressions are not always faster than a simple search. It all depends on context. Then go on to actually answer the question posted. If you have seem to have a specific situation; you could talk about that specific situation (provided it is novel and adds something new to the context here), but take into account that this question has already been thoroughly answered. 7 answers is quite enough.
Mar
20
comment Python, namespace vs module with underscores
So you identified several very specific issues that limit how you can use namespaces. I never ran into the pip issue (I never install packages as editable with pip as I use buildout for that usecase). Don't use a shared namespace in that case, you are not forced to. That has little to do with performance however.
Mar
20
comment Python, namespace vs module with underscores
So? That doesn't make a difference to how you import them.
Mar
20
comment Python, namespace vs module with underscores
Not sure what you mean by but on pypi, independent packages are saved in different location.. Can you please elaborate on that?
Mar
18
comment Ordering of methods in class
There are no short-cuts. Use what you feel aids reading comprehension.
Mar
15
comment Most MVC-strict php framework
I understand this post is year old, which is ironically the reason I am posting this response. The question is actually now considered off-topic and I have voted to close it as such. One of the reasons that we now consider such posts as off-topic is precisely because the information is outdated so easily.
Mar
14
comment Is modifying an object's __dict__ to set its properties considered Pythonic?
@skyler: note that that only mentions the module namespace. The globals() function returns the same namespace, and there are usually better ways to solve problems than setting globals dynamically, hence the warning.
Feb
22
comment Why don't terminals support standard keyboard shortcuts?
The OS X terminal conforms to the readline standard used in just about all POSIX shells, which is based on Emacs line editing commands. Windows is just being Windows in that it marches to its own beat and doesn't think a console is worth having proper keyboard shortcuts.
Feb
21
comment How does the Zope Component Architecture (ZCA) relate to Service Component Architecture (SCA)?
Plone is a huge project that's built on top of Zope and heavily relies on the ZCA. Pyramid hides their use of the ZCA somewhat; configurations mostly happen transparently.
Feb
21
comment How does the Zope Component Architecture (ZCA) relate to Service Component Architecture (SCA)?
I'm trying to work out a clear way of addressing your question; I think it is mostly a case of giving you a more concrete example. Have you looked at how Plone and Pyramid use the ZCA?
Feb
21
comment How does the Zope Component Architecture (ZCA) relate to Service Component Architecture (SCA)?
I've never used the term SCA in context of the ZCA; a quick glance at the WP description tells me SCA is far higher level (and includes support for the components to be implemented in different languages).
Feb
21
comment Do I have to learn html and javascript to create web applications?
This question already has 10 answers, it didn't need an eleventh one stating the same things in different words. Please don't add answers to questions already thoroughly answered unless you have something completely new to say.
Feb
13
comment How to implement Facebook leaderboard game for mobile?
This post reads more like a link promotion for a blog than an answer. Can you please put the information here, with the blog post at best being used as a source to quote from (sparingly)? Also see the help center section on self-promotion; without disclosure I am going to assume that you wrote that blog post or have a stake in its promotion.