[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Please be more specific. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread David Edelsohn
David Edelsohn added the comment: How is this ready for release? The patch does not work on numerous POSIX systems. -- ___ Python tracker ___ ___

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: I'll track that separately: http://bugs.python.org/issue19291 For now, PEP 3156 has a lot of information. (But the PEP also needs to be updated to track recent developments.) -- ___ Python tracker

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread STINNER Victor
STINNER Victor added the comment: 2013/10/19 Guido van Rossum : > Ready for release! > > resolution: -> fixed > status: open -> closed The new module has no documentation at all. Do you plan to open a new issue for the documentation? Or maybe you don't plan to add documentation? :-) --

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Ready for release! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pyth

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: I've landed a bunch of stuff, and now I am pretty happy. It's also soon going to be weekend, which means family time, so I really hope everyone else is also happy. :-) A summary of what changed since the initial asyncio checkin: - Rename the logger to plain

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Relaxed a bunch of timeouts. No news on the --without-threads case, that will have to happen post-alpha-4 I expect. -- ___ Python tracker ___

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread koobs
koobs added the comment: @Guido, another expected delay test failure: == FAIL: test_run_until_complete (test.test_asyncio.test_events.KqueueEventLoopTests) --

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread David Edelsohn
David Edelsohn added the comment: AIX buildbot is experiencing a similar failure: [276/382/4] test_asyncio Timeout (1:00:00)! Thread 0x0001: File "/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/selectors.py", line 265 in select File "/home/shager/cpython-buildarea/3.x

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe adding something that returns [] from suite() if therea re no threads in test/test_asyncio/__init__.py would help? I don't have time to test this, but go ahead and commit something if it's a release blocker. Even better would or course be to fix async

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Stefan Krah
Stefan Krah added the comment: The --without-threads buildbot fails, so I guess all tests need to be skipped in that case: http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/5333/steps/test/logs/stdio -- nosy: +skrah

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: I fixed the easy one (the expected delay in test_call_later). I could use some hands with the rest -- I suspect there are similar race conditions. I'm tracking this now in http://code.google.com/p/tulip/issues/detail?id=75 -- ___

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: @Koobs: I'll look into these, but in the future it's better to report bugs "upstream" for now, i.e. at http://code.google.com/p/tulip/ -- they will get my immediate attention. @Antoine: while most of the timing-related tests use a simulated clock, there are

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > == > FAIL: test_call_later > (test.test_asyncio.test_events.SelectEventLoopTests) > -- > Traceback (most recent call last): >

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread koobs
Changes by koobs : Added file: http://bugs.python.org/file32200/koobs-freebsd9-py3x-build182.log ___ Python tracker ___ ___ Python-bugs-list m

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread koobs
koobs added the comment: Summary of 4 test failures below, will attach the complete buildbot logs for detail. == FAIL: test_call_later (test.test_asyncio.test_events.SelectEventLoopTests) ---

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread koobs
Changes by koobs : Added file: http://bugs.python.org/file32199/koobs-freebsd9-py3x-build180.log ___ Python tracker ___ ___ Python-bugs-list m

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread koobs
koobs added the comment: There are 5 unique test failures that have come up in the koobs-freebsd* buildbots post the test_asyncio import. Would we prefer to create a meta issue to track them, or put them here? -- nosy: +koobs ___ Python tracker

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 30f33e6a04c1 by Ned Deily in branch 'default': Issue #19262: Install asyncio and test_asyncio directories. http://hg.python.org/cpython/rev/30f33e6a04c1 -- nosy: +python-dev ___ Python tracker

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-17 Thread Guido van Rossum
Guido van Rossum added the comment: OK, no more giant patches. It's checked in. I've also solved the regrtest issues by adding some code in __init__.py and __main__.py. I expect to iterate a bit over the next few days. -- ___ Python tracker

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-17 Thread Guido van Rossum
Changes by Guido van Rossum : -- keywords: +needs review -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-17 Thread Larry Hastings
Larry Hastings added the comment: If its breakage is restricted to itself (and its tests) then you have my blessing to check it in. (Sorry, can't help you with the test expertise.) -- ___ Python tracker _

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-17 Thread Guido van Rossum
Guido van Rossum added the comment: It doesn't break anything AFAICT. (It's a pure addition except for one new extension module on Windows). However I just discovered that apparently regrtest doesn't automatically run tests in a subdirectory of the test package. I'm guessing I'll need to add som

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-17 Thread Larry Hastings
Larry Hastings added the comment: Does it break anything? (Besides, possibly, itself?) -- ___ Python tracker ___ ___ Python-bugs-list

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-17 Thread Guido van Rossum
Guido van Rossum added the comment: Another day, another patch. I'd rather like to commit this (and then iterate as needed), it makes my workflow for porting to Windows a little easier. Larry??? -- Added file: http://bugs.python.org/file32158/asyncio8.patch __

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: You can skip classes with skipIf as a class decorator. -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-16 Thread Guido van Rossum
Guido van Rossum added the comment: Yup, that works! Not uploading a new patch right now but this is in the tulip repo now. -- ___ Python tracker ___ __

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-16 Thread Richard Oudkerk
Richard Oudkerk added the comment: I think at module level you can do if sys.platform != 'win32': raise unittest.SkipTest('Windows only') -- ___ Python tracker ___

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-16 Thread Guido van Rossum
Guido van Rossum added the comment: I'd have to decorate a lot of tests. Is there a way to fix this at the module or at least class level? (I'd be willing to move the imports around.) -- ___ Python tracker ___

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-16 Thread Richard Oudkerk
Richard Oudkerk added the comment: On 16/10/2013 8:14pm, Guido van Rossum wrote: > (2) I get this message -- what does it mean and should I care? > 2 tests altered the execution environment: > test_asyncio.test_base_events test_asyncio.test_futures Perhaps threads from the ThreadExecutor ar

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-16 Thread Ned Deily
Ned Deily added the comment: 2) See class saved_test_environment in regrtest.py. I wouldn't worry too much about it initially but it should be looked at and tidied up before release. -- ___ Python tracker ___

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-16 Thread Ned Deily
Ned Deily added the comment: 1) The test case decorator perhaps: @unittest.skipIf(sys.platform == "win32", "Does not apply to Windows") -- nosy: +ned.deily ___ Python tracker __

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-16 Thread Guido van Rossum
Guido van Rossum added the comment: I could use some help for two issues with the tests: (1) How do I stop regrtest.py from running the windows tests? (These import _winapi.) 2 tests failed: test_asyncio.test_windows_events test_asyncio.test_windows_utils (2) I get this message -- what d

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-16 Thread Guido van Rossum
Guido van Rossum added the comment: New patch, mostly SSL hardening IIRC. -- Added file: http://bugs.python.org/file32145/asyncio7.patch ___ Python tracker ___ __

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-16 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: PS. There's some garbage at the start of pcbuild.sln (perhaps a BOM mark?). I'm not going to re-upload the patch for now, but please note this. -- ___ Python tracker ___

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum
Changes by Guido van Rossum : Removed file: http://bugs.python.org/file32139/winasyncio.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Here's a full new patch, with Windows project/solution changes included, and updated from the latest Tulip asyncio branch. -- Added file: http://bugs.python.org/file32140/asyncio6.patch ___ Python tracker

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Here's a partial patch for Windows. (Mostly for myself; I need to integrate this into the main patch.) -- Added file: http://bugs.python.org/file32139/winasyncio.diff ___ Python tracker

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: Turns out there were other uses of the sample key/cert pair. The easiest solution is to just have the code try both locations if necessary. Here's a new patch to review. -- Added file: http://bugs.python.org/file32134/asyncio5.patch

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Found the cause of the ssl test failure -- the location of the ssl > test key and cert are different. Here's a new patch with a quick > fix (#4), but I think the correct solution is to either have the > certificates inline in the source and write them to a tem

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: Found the cause of the ssl test failure -- the location of the ssl test key and cert are different. Here's a new patch with a quick fix (#4), but I think the correct solution is to either have the certificates inline in the source and write them to a temp f

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: OK, here's a new patch that includes tests. To run the tests, I use: ./python.exe Lib/test/regrtest.py --fromfile Lib/test/test_asyncio/tests.txt --verbose There are a total of 4 individual test failures, all having to do with SSL: ssl.SSLEOFError: EOF oc

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > asyncio/test/*_test.py > asyncio/test/test_*.py > test/test_asyncio/ Personally I have a preference for test/test_asyncio/test_*.py, because putting all tests in test/ makes them easier to find. However, other packages such as unittest have their dedicated te

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: What I need help with most right now is a suggestion of where the unittests should go. There are too many of them to all put in one file. Some options: asyncio/test/*_test.py asyncio/test/test_*.py test/test_asyncio/ What's the best current practice? (I als

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: Here's an updated patch that doesn't botch the selectors imports. -- keywords: +patch Added file: http://bugs.python.org/file32125/asyncio2.patch ___ Python tracker _

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-14 Thread Georg Brandl
Georg Brandl added the comment: If you need help with docs, let me know. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: Add asyncio (tulip, PEP 3156) to stdlin -> Add asyncio (tulip, PEP 3156) to stdlib ___ Python tracker ___ ___