Re: [Python-Dev] Support for async read/write

2011-02-04 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 20/10/10 00:58, Antoine Pitrou wrote:
> It would be nice to know about the use case Jesus has in mind.

I am thinking about the cases where a request come, you do some disk
read in behalf of it and you reply.

If the read is "slow" (if not cached, you have to deal with a physical
harddisk), you stop the main-loop for a while, unless you use threads.

If, instead, I can schedule a read and keep processing other requests
(possibly queueing new reads), be notified when the read is done and
complete the reply, I think this is more simple and performing (and far
less memory hungry) that using threads.

I just opened a issue, assigned to me. I plan to do the implementation
myself, at least for Solaris and possibly (recent) Linux:
.

Some people say AIO OS implementations are flaky. Well, you must deal
with it, like you deal with other flaky OS corners, like exhausting
memory or whatever.

I would suppose that if Python exposes AIO and in some OS support is
underpar, the exposing would incentivate a better support for OS. Like
happened to threads and linux years ago.

- -- 
Jesus Cea Avion _/_/  _/_/_/_/_/_/
[email protected] - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
jabber / xmpp:[email protected] _/_/_/_/  _/_/_/_/_/
.  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTUwbeZlgi5GaxT1NAQK4uwP+J3PwGY1dvBi+OyBo9M9UWsma0khgzdUS
6ewHhCrCK+U5HK0e/g9cLbesBSsYvVfNjPe+fb9cQuwMBK0lpF3kOzfsEf82RIxR
NlsqOba31CE1tW9uS4wja0TddFDob3IImqgwSB7NptBOZTNVjDvB6k0V7KHqvPWX
9g01GqaQ9uQ=
=hx6M
-END PGP SIGNATURE-
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Summary of Python tracker Issues

2011-02-04 Thread Python tracker

ACTIVITY SUMMARY (2011-01-28 - 2011-02-04)
Python tracker at http://bugs.python.org/

To view or respond to any of the issues listed below, click on the issue.
Do NOT respond to this message.

Issues counts and deltas:
  open2585 (+18)
  closed 20314 (+52)
  total  22899 (+70)

Open issues with patches: 1102 


Issues opened (49)
==

#10918: **kwargs unnecessarily restricted in concurrent.futures 'submi
http://bugs.python.org/issue10918  reopened by bquinlan

#11023: pep 227 missing text
http://bugs.python.org/issue11023  reopened by r.david.murray

#11048: "import ctypes" causes segfault on read-only filesystem
http://bugs.python.org/issue11048  opened by Arach

#11049: add tests for test.support
http://bugs.python.org/issue11049  opened by brett.cannon

#11050: email.utils.getaddresses behavior contradicts RFC2822
http://bugs.python.org/issue11050  opened by Ivan.Egorov

#11051: system calls per import
http://bugs.python.org/issue11051  opened by pitrou

#11055: OS X IDLE 3.2 Save As menu accelerator opens two Save windows
http://bugs.python.org/issue11055  opened by ned.deily

#11056: 2to3 fails for inner __metaclass__ class definition
http://bugs.python.org/issue11056  opened by nw

#11062: mailbox fails to round-trip a file to a Babyl mailbox
http://bugs.python.org/issue11062  opened by r.david.murray

#11063: uuid.py module import has heavy side effects
http://bugs.python.org/issue11063  opened by Keith.Dart

#11067: Py_LIMITED_API breaks most PySomething_Check() functions
http://bugs.python.org/issue11067  opened by petere

#11071: What's New review comments
http://bugs.python.org/issue11071  opened by ncoghlan

#11072: Add MLSD command support to ftplib
http://bugs.python.org/issue11072  opened by giampaolo.rodola

#11074: fix tokenize so it can be reloaded
http://bugs.python.org/issue11074  opened by brett.cannon

#11076: Iterable argparse Namespace
http://bugs.python.org/issue11076  opened by vdupras

#11077: Tkinter is not thread safe
http://bugs.python.org/issue11077  opened by PythonInTheGrass

#11078: Have test___all__ check for duplicates
http://bugs.python.org/issue11078  opened by r.david.murray

#11079: Make OS X entry in Applications like that in Windows
http://bugs.python.org/issue11079  opened by rhettinger

#11085: expose _abcoll as collections.abc
http://bugs.python.org/issue11085  opened by rhettinger

#11086: add lib2to3/__main__.py
http://bugs.python.org/issue11086  opened by brett.cannon

#11087: Speeding up the interpreter with a few lines of code
http://bugs.python.org/issue11087  opened by jneb

#11088: IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw
http://bugs.python.org/issue11088  opened by ned.deily

#11089: ConfigParser 50x slower in 2.7
http://bugs.python.org/issue11089  opened by vlachoudis

#11090: Doc errors for unittest in Python 3.1
http://bugs.python.org/issue11090  opened by michael.foord

#11092: Setup.cfg isn't packaged when running sdist
http://bugs.python.org/issue11092  opened by Julien.Miotte

#11093: test_future - rename not-unittest files to make regrtest.NOTTE
http://bugs.python.org/issue11093  opened by sandro.tosi

#11096: Multiple turtle tracers
http://bugs.python.org/issue11096  opened by amcnerney13

#11097: MSI: Remove win32com dependency from installer generator
http://bugs.python.org/issue11097  opened by techtonik

#11100: test_fdopen: close failed in file object destructor
http://bugs.python.org/issue11100  opened by ekrauss

#11101: plistlib has no graceful way of handing None values
http://bugs.python.org/issue11101  opened by bobveznat

#11102: configure doesn't find "major()" on HP-UX v11.31
http://bugs.python.org/issue11102  opened by Oren_Held

#11103: Python 3.2 installer doesn't register file extensions on Windo
http://bugs.python.org/issue11103  opened by darren

#11104: distutils sdist ignores MANIFEST
http://bugs.python.org/issue11104  opened by jdennis

#11105: Compiling evil ast crashes interpreter
http://bugs.python.org/issue11105  opened by benjamin.peterson

#11107: Cache constant "slice" instances
http://bugs.python.org/issue11107  opened by scoder

#11109: socketserver.ForkingMixIn leaves zombies
http://bugs.python.org/issue11109  opened by jwark

#0: Py_DECREF->Py_XDECREF in Module/_sqlite/module.c
http://bugs.python.org/issue0  opened by brett.cannon

#2: UDPTimeoutTest derives from SocketTCPTest
http://bugs.python.org/issue2  opened by rmtew

#3: html.entities mapping dicts need updating?
http://bugs.python.org/issue3  opened by Brian.Jones

#4: TextIOWrapper.tell extremely slow
http://bugs.python.org/issue4  opened by Laurens

#6: mailbox and email errors
http://bugs.python.org/issue6  opened by sdaoden

#7: Implementing Async IO
http://bugs.python.org/issue7  opened by jcea

#1103350: send/recv SEGMENT_SIZE should be used more in socketmodule
http://bugs.python.org/issue1103350  reopened by r.david.murray

#11060: distutils2 sdist does not

Re: [Python-Dev] Finally fix installer to add Python to %PATH% on Windows

2011-02-04 Thread Chris Withers

On 28/01/2011 19:21, Michael Foord wrote:

I've helped quite a few "python newbies" on Windows who are also
surprised / frustrated on learning that "python" on the command line
doesn't work after installing python.


Yes, I've always found it a surprising disappointment that I have to 
manually munge the PATH and the installer doesn't *even* offer to do it 
for me.


But, since I don't know how to help fix the installer, I've just 
generally stfu'd on this issue...


Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com