Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Filter by
Sorted by
Tagged with
5 votes
1 answer
343 views

I know standard CPython has a limit on recursion depth, less than 1000 I think, so the below example code will fail with a "maximum recursion depth exceeded" error. def rec_add(x): if x == 0: ...
hellopeach's user avatar
  • 1,084
1 vote
2 answers
3k views

I have a really weird problem with embedding python. If I don't specify PYTHONPATH, Py_Initialize fails with ImportError: No module named site. If I set PYTHONPATH in cmd and then run my program, it ...
toster-cx's user avatar
  • 2,397
3 votes
1 answer
483 views

I need to run some parallel computations in python. The only compatible approach I can think of is the multiprocess/fork model, which is less than ideal for several reasons: from what I understand, ...
user19087's user avatar
  • 2,131
1 vote
1 answer
1k views

I am trying to install stackless python. I have tried pip install stackless-python easy_install stackless-python python -m pip install stackless-python I have done all these and also the same with an ...
user avatar
1 vote
0 answers
108 views

I am having a wicked problem with exposing a polymorphic class hierarchy via a factory. I have created an example that demonstrates the problem. This is all being hosted in a executable with an ...
Robert Babiak's user avatar
0 votes
0 answers
235 views

I have a program that runs multiple tasklets using stackless python, and my problem is that though it is fast, I do notice a slowdown if I start one or more processes that run the same code. For ...
Jack's user avatar
  • 23
1 vote
1 answer
62 views

How the below program execute my member A.fun without calling stackless.run() in the program? import stackless class A: def __init__(self,name): self.name = name self.ch = ...
Ravi's user avatar
  • 303
3 votes
1 answer
135 views

Working on a git fork of someone's code, I came across the following, there to halt the master thread until such a time as all the sub-threads are done: while(True): if not any([thread.isAlive() ...
Aviator45003's user avatar
1 vote
0 answers
67 views

In python, you can expand a sequence into discrete function arguments with the star operator: args = [2, 3] print(pow(*args)) # same as `print(pow(2, 3))` There's even a nice idiom for transposing a ...
alexis's user avatar
  • 50.4k
1 vote
1 answer
170 views

Just starting with Stackless Python. I'm trying to create some tasklets at run time, that is, after calling stackless.run(). I thought this function wouldn't block the main thread, so I would be able ...
cdonts's user avatar
  • 9,711
2 votes
0 answers
51 views

I'm trying to use stackless python for a heroku app, but they don't support the runtime: ! Requested runtime (stackless-3.3.5) was not found. This is surprising, since stackless-3.3.5 was ...
Enucatl's user avatar
  • 507
3 votes
2 answers
265 views

I've made a huge google research about Stackless Python's tasklets. Every source mentions it as a thread stackless.com : Microthreads: tasklets wrap functions allowing them to be launched as ...
Krzysztof Wende's user avatar
0 votes
2 answers
129 views

import stackless class MyTasklet(stackless.tasklet): def __init__(self, func, msg): pass def foo(): pass msg = 'hello' MyTasklet(foo, msg)() I am using stackless python, this code ...
user435657's user avatar
1 vote
0 answers
513 views

I am using PyCharm 3 on OS X. I've configured a Python Stackless binary in virtual env to be used as a project interpreter. It runs okay, and imports stackless module, but in the editor it is showed ...
DataGreed's user avatar
  • 13.9k
0 votes
2 answers
761 views

It seems like on Windows I have to uninstall Python before installing stackless (http://stackless.com/wiki/Download). I have Python 2.7 installed, a solution may be installing Stackless Python 3.2, ...
cdonts's user avatar
  • 9,711

15 30 50 per page
1
2 3 4 5 6