[issue29558] Provide run_until_complete inside loop

2017-02-15 Thread Javier Domingo
Javier Domingo added the comment: Yes, indeed it is. Would it be possible to reconsider this functionality? It plays a key role when trying to rewrite full applications to async. Rewriting the full stack of libraries at once is impossible, but the patching can easily be done in many cases

[issue29558] Provide run_until_complete inside loop

2017-02-14 Thread Javier Domingo
New submission from Javier Domingo: The current architecture of asyncio makes it really hard to combine both async and sync code. When porting a Thread based application to asyncio, the first step is usually to start merging threads to the main loop, by using `run_coroutine_threadsafe

[issue26467] Add async magic method support to unittest.mock.Mock

2016-12-19 Thread Javier Domingo
Javier Domingo added the comment: I found this while trying to test an async context manager. This is a critical feature to enable migrations to async code, as the impossibility to test something properly is not acceptable in many environments. Implementing it in a way that __call__ returns

[issue16890] minidom error

2013-01-08 Thread Javier Domingo
Javier Domingo added the comment: I know that is the problem, but that shouldn't happen! if you remove a item from a list, that doesn't happen. That is why I tagged the error as minidom's El 08/01/2013 04:24, Ezio Melotti rep...@bugs.python.org escribió: Ezio Melotti added the comment

[issue16890] minidom error

2013-01-08 Thread Javier Domingo
Javier Domingo added the comment: Ok, sorry then. Javier Domingo 2013/1/8 Ezio Melotti rep...@bugs.python.org Ezio Melotti added the comment: It happens with lists too: l = list(range(10)) for x in l: ... l.remove(x) ... l [1, 3, 5, 7, 9

[issue16890] minidom error

2013-01-07 Thread Javier Domingo
New submission from Javier Domingo: Hi I found something like a bug, I can't get this working: import xml.dom.minidom as minidom document=a b c / c / /b /a dom = minidom.parseString(document) dom.childNodes dom.childNodes[0].childNodes dom.childNodes[0].childNodes[1

[issue16798] DTD not checked

2012-12-28 Thread Javier Domingo
Javier Domingo added the comment: I am currently using a subprocess with a call to xmllint to make it create a temporal file that gets created on execution for xmllint use. I have seen about lxml, but I wondered if there is any place in the standard python to put xml validation

[issue16798] DTD not checked

2012-12-27 Thread Javier Domingo
New submission from Javier Domingo: Hi, I am trying to find any tip on how to use minidom or etree xml implementations to check the xml syntax. I just found that the only way to check xml syntax throught dtds is using lxml. Would it be possible to implement this in the minidom or ElementTree