Re: [Twisted-Python] Twisted 21.7.0 Pre-Release Announcement

2021-07-18 Thread Richard van der Hoff

On 16/07/2021 20:27, Glyph wrote:


One particular problem I came across was the type annotation on 
inlineCallbacks. I've filed 
https://twistedmatrix.com/trac/ticket/10231 about it - would 
appreciate thoughts.


This definitely looks wrong; there should be a TypeVar in there.  Adi, 
I'd go so far as to say that this should be a release blocker, 
although the change should be fairly minimal.


Richard, could you please make a proper PR for this to get CI kicked 
off and make sure the new annotation doesn't cause any failures?

Done, in the form of https://github.com/twisted/twisted/pull/1632.

___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


[Twisted-Python] Error using "python -m twisted.conch.stdio" command in command prompt

2021-07-18 Thread Melanie Molifie
Hi guys

I'm new to twisted and would appreciate some beginner guidance.

I'm trying to use the "python -m twisted.conch.stdio" command in command
prompt but it does not work and gives the following error:

C:\WINDOWS\system32>python -m twisted.conch
C:\Users\Melanie\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe:
No module named twisted.conch.*main*; 'twisted.conch' is a package and
cannot be directly executed

*I'm hoping that this will solve the rest of the error messages I'm having.
I want to eventually be ably to run :*

>>> from twisted.names import client
>>> client.getHostByName('www.example.com')

>>> _


>>> client.lookupMailExchange('twistedmatrix.com')

>>> _
], [], [])>

*The aim is to get the deferred responses as shown in previous code, but
all I get is:*

>>> from twisted.names import client
>>> client.getHostByName('www.example.com')

>>> _

>>> client.lookupMailExchange('twistedmatrix.com')

>>> _


Please help. I'm trying to send this to the twisted mailing group. If I'm
wrong please nudge me in the right direction.

Thanks in advance.

M

On Mon, Jul 19, 2021 at 12:43 AM Richard van der Hoff 
wrote:

> On 16/07/2021 20:27, Glyph wrote:
> >
> >> One particular problem I came across was the type annotation on
> >> inlineCallbacks. I've filed
> >> https://twistedmatrix.com/trac/ticket/10231 about it - would
> >> appreciate thoughts.
> >>
> > This definitely looks wrong; there should be a TypeVar in there.  Adi,
> > I'd go so far as to say that this should be a release blocker,
> > although the change should be fairly minimal.
> >
> > Richard, could you please make a proper PR for this to get CI kicked
> > off and make sure the new annotation doesn't cause any failures?
> Done, in the form of https://github.com/twisted/twisted/pull/1632.
>
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python