New keyword is so expensive?
And why special case for 'then' is better than special case for 'take'?
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
Guido van Rossum wrote:
It has always been my choice to *only* use XXX. I hope there aren't
any developers contributing to the Python core who use any others?
[Python-2.4.1]$ grep FIXME */*.c */*.py | wc -l
12
[Python-2.4.1]$ grep TODO */*.c */*.py | wc -l
17
[Python-2.4.1]$ grep XXX
Hello,
I've come to a problem with pty.spawn() as it states on its source code:
# Bugs: No signal handling. Doesn't set slave termios and window size.
As I need this feature working, I want to fix this bug. Does someone
have any idea on how to fix it?
(My problem: I want to launch ncurses
At 11:18 AM 9/27/2005 -0600, Bruce Eckel wrote:
Yes, defining an class as active would:
1) Install a worker thread and concurrent queue in each object of that
class.
2) Automatically turn method calls into tasks and enqueue them
3) Prevent any other interaction other than enqueued messages
#3 is
Phillip J. Eby wrote:
Well, you could pickle and unpickle the objects you send from one function
to another, and for cross-process communication, you'll need to do
something like that anyway, or else use that shared-memory objects
thing. PySHM? I don't remember its name, but it's an
The attached patch calls ioctl() to set master_fd win size.
I use fcntl and struct modules, I have hardcoded values from termios
since this module is deleted.
Is it ok?
--
Gustavo Sverzut Barbieri
---
Computer Engineer 2001 - UNICAMP
GPSL - Grupo Pro Software
Please read/comment/vote. This circulated as a pre-PEP proposal
submitted to c.l.py on August 10, but has changed quite a bit since
then. I'm reposting this since it is now Open (under consideration)
at http://www.python.org/peps/pep-0350.html.
Thanks!
--
Micah Elliott mde at tracos.org
At 03:35 PM 9/26/2005 -0700, Micah Elliott wrote:
Please read/comment/vote. This circulated as a pre-PEP proposal
submitted to c.l.py on August 10, but has changed quite a bit since
then. I'm reposting this since it is now Open (under consideration)
at http://www.python.org/peps/pep-0350.html.
Gustavo J. A. M. Carneiro wrote:
More realistic example:
def greet(person=None):
print Hello %s % (if person is None: World else: person)
Not as compact as C's ?:, but more readable and intuitive. It's just
like an if-else construct, but on a single line and () around to
Nick Coghlan wrote:
PEP 342's yield expressions can probably be used to help address that
problem,
though:
class SomeAO(ActiveObject):
def processSomeMessage(self):
msg = yield
# Do something with the message
next_msg = yield makeSomeBlockingCall(self)
On 9/28/05, Greg Ewing [EMAIL PROTECTED] wrote:
Nick Coghlan wrote:
PEP 342's yield expressions can probably be used to help address that
problem,
though:
class SomeAO(ActiveObject):
def processSomeMessage(self):
msg = yield
# Do something with the message
Oops. I forgot to add that to the list. Yes, in the working example
of Active Objects that I've written in Java J2SE5, when you send a
message to an active object, you get back a FutureReturnType, which
I suspect would be the same as your Deferred.
Tuesday, September 27, 2005, 7:41:27 PM,
The Python 2.4.2 documentation is now online in the main documentation area
(as opposed to just the /dev/ area) for both www.python.org and
docs.python.org. The 2.4 and 2.4.1 documentation areas have been updated to
link to the 2.4.2 documentation as the preferred documentation for all 2.4.x
13 matches
Mail list logo