Re: [Twisted-Python] PDF I thought may be of interest

2008-12-13 Thread Tristan Seligmann
* Manlio Perillo [2008-12-13 11:54:05 +0100]: > gl...@divmod.com ha scritto: > >> For another, the paper arbitrarily redefines the word "threads" to mean >> "this cool thing that doesn't exist yet", rather than existing things >> that people call "threads". It specifically mentions the defici

Re: [Twisted-Python] python properties in twisted don't work

2008-12-18 Thread Tristan Seligmann
* Alec Flett [2008-12-18 11:03:48 -0800]: > > On Dec 18, 2008, at 6:04 AM, Drew Smathers wrote: > >> Protocol is an old-style class - doesn't inherit from object - so >> property won't work in that context. This won't be a problem in >> python 3 - old-style/new-style classes are consolidated. >>

Re: [Twisted-Python] Plugins in files with hyphenated names found in 2.5.0 but not in 8.1.0

2009-01-20 Thread Tristan Seligmann
* Terry Jones [2009-01-20 12:23:26 +0100]: > We just upgraded to Twisted 8.1 from 2.5 and discovered that > twisted.plugin.getPlugins no longer finds our plugins. > > After much head scratching, Esteve noticed that the plugins were not being > returned because the are in files that have hyphens

Re: [Twisted-Python] Consistent interfaces to asynchronous partially-available services using Deferreds and state machines (was Re: Another approach to allowing __init__ to work with Deferreds)

2009-05-20 Thread Tristan Seligmann
On Tue, May 12, 2009 at 1:39 PM, Terry Jones wrote: > If Python allowed me to return a deferred from __init__, my problem would > vanish.  That's not going to happen though, I know :-) Well, if you /really/ want to, you can implement that; something like: from twisted.internet import defer

Re: [Twisted-Python] http.Request and JSON

2009-06-30 Thread Tristan Seligmann
On Tue, Jun 30, 2009 at 10:44 AM, Reza Lotun wrote: > To be safer, I do a request.content.getvalue() since content is a > cStringIO object and you can never be sure if somewhere along the > chain of processing someone hasn't done a .read and forgot to do a > .seek(0,0). You should probably do the

Re: [Twisted-Python] sleeping in inlineCallbacks

2009-10-29 Thread Tristan Seligmann
On Thu, Oct 29, 2009 at 8:38 PM, Brian Granger wrote: > One question though - can someone explain the need/usage cases for > task.Clock and the other things in task? Clock is a "fake" IReactorTime implementation; as the docstring says, it is intended for writing unit tests where you want control

Re: [Twisted-Python] HTML shoudl not be baked into twisted.web HTTPimplementation

2009-12-10 Thread Tristan Seligmann
On Thu, Dec 10, 2009 at 3:10 AM, Jared Gisin wrote: > It's unambiguously the correct default if you incorrectly assume that > you're always dealing with a web browser client, which is an invalid > assumption. Web browser clients are the most common case, at least at this point in time. On the fli

Re: [Twisted-Python] A pseudo-deferred class that can be canceled

2010-01-05 Thread Tristan Seligmann
On Tue, Jan 5, 2010 at 6:29 AM, Terry Jones wrote: > - Once someone has made a function call, gotten a deferred, added >  call/errbacks to it, etc., it's gone. It's in flight. Forget about it. The thing is, this attitude isn't always reasonable. Deferred is not necessarily the place to implement

Re: [Twisted-Python] 9.0.0 question

2010-01-22 Thread Tristan Seligmann
On Sat, Jan 23, 2010 at 1:40 AM, Mikhail Terekhov wrote: > So why reactor never stops if it was never run? What it is doing? You call reactor.stop(); this does nothing but produce a delayed exception. You then call reactor.run(), which runs the reactor. You then never call reactor.stop() again, a

Re: [Twisted-Python] understanding deferreds

2010-01-28 Thread Tristan Seligmann
On Fri, Jan 29, 2010 at 12:39 AM, wrote: > There are at least three ways you can have a single callback and > errback: > >   d.addCallback(cb) >   d.addErrback(eb) > > or > >   d.addErrback(eb) >   d.addCallback(cb) Just to expand on exarkun's answer a little, it might help to understand that ad

Re: [Twisted-Python] Lore to Sphinx Conversion Progress Report 5

2010-02-05 Thread Tristan Seligmann
On Fri, Feb 5, 2010 at 10:18 PM, Kevin Horn wrote: > After looking at this some more, it looks as though "izip_longest" is the > culprit...introduced in 2.6. > > Why its giving a syntax error, though, is beyond me. The problem is the function call syntax: >>>row_lines = list(izip_longes

Re: [Twisted-Python] python3 story?

2010-02-25 Thread Tristan Seligmann
On Thu, Feb 25, 2010 at 8:50 PM, K. Richard Pixley wrote: > Does twisted have a python3 story? http://stackoverflow.com/questions/172306/how-are-you-planning-on-handling-the-migration-to-python-3/214601#214601 -- mithrandi, i Ainil en-Balandor, a faer Ambar _

Re: [Twisted-Python] autoincrement in axiom

2010-02-28 Thread Tristan Seligmann
On Mon, Mar 1, 2010 at 1:31 AM, code prophecy wrote: > Is there a way to use autoincrement in axiom ? I need a property in my model > that reflects the last  row id after every insert operation. There isn't currently any way to have an autoincrement attribute. However, the storeID attribute is un

Re: [Twisted-Python] Is AMP secure enough for the internet?

2010-02-28 Thread Tristan Seligmann
On Sat, Feb 27, 2010 at 11:59 PM, Attila Nagy wrote: > What would I like to do: > 1. authenticate and authorize connecting clients with their SSL certificates > 2. securely transfer arbitrary (binary and json) data from and to the > clients (both the server and client would be twisted) If you're

Re: [Twisted-Python] SQLAlchemy and Twisted

2010-05-07 Thread Tristan Seligmann
On Fri, May 7, 2010 at 12:53 PM, Konrads Smelkovs wrote: > If you want an ORM in Twisted look for STORM twisted integration. Overall, > it works (I tried). Some quirks are there, e.g. without twisted you would do > something like resultset[10:20].sort(Sort.ASC) but with twsited you have to > do (a

Re: [Twisted-Python] making Screwtape (Tim Allen) a committer

2010-06-24 Thread Tristan Seligmann
On Thu, Jun 24, 2010 at 1:14 PM, Michael Hudson-Doyle wrote: > On 9 June 2010 23:25, Glyph Lefkowitz wrote: >> I think we should give screwtape an SVN account and make him an official >> reviewer.  He's been doing a lot of work on the distutils code which would >> be made easier by that, and he

Re: [Twisted-Python] 10.1 release follow-up

2010-07-05 Thread Tristan Seligmann
On Tue, Jul 6, 2010 at 5:08 AM, Glyph Lefkowitz wrote: > I would *like* to accelerate the schedule for this release if we can get > certain important features in which missed the last release (documentation > for endpoints, documentation for cancellation, endpoint string parsing, > endpoint plugin

Re: [Twisted-Python] Client/Server upload problem

2010-07-21 Thread Tristan Seligmann
On Wed, Jul 21, 2010 at 7:37 AM, Sean Dugan wrote: > When I run this, it returns “Failure: twisted.protocols.ftp.CommandFailed: > ['550 FtpUpload.txt: Permission denied']”. I can download a file, and view > the files in a folder, I just can't upload a file. Also if I log-in as one > the users in t

Re: [Twisted-Python] help with Deferreds

2010-08-26 Thread Tristan Seligmann
On Thu, Aug 26, 2010 at 11:47 AM, Sergey Magafurov wrote: > How to rewrite this regular function with Deferred-style? > Conditions: > 1. 'cache.open' and 'item.read' become deffered > 2. 'item.obsolete()' and 'renew(data)' are not deferred I would probably write it something like this: def getC

Re: [Twisted-Python] help with Deferreds

2010-08-26 Thread Tristan Seligmann
On Thu, Aug 26, 2010 at 12:23 PM, Sergey Magafurov wrote: > I ask this question because I am confusing with this ugly slice of code: > > try: >     ... > except: >     item.release() >     raise If you don't like that construct, perhaps this one is nicer: from twisted.internet.defer import maybe

Re: [Twisted-Python] Weekly Bug Summary

2011-01-23 Thread Tristan Seligmann
On Sun, Jan 23, 2011 at 7:36 AM, Tom Davis wrote: >> >> Mean open ticket age: 1032 days >> >> Mean time between ticket creation and ticket resolution: 238 days >> >> Mean time spent in review: 83 days > > > Wow. Adding "reduce these by at least one order of magnitude" to my todo > list. Gotta hav

Re: [Twisted-Python] A Python enum library with a Twist

2011-01-31 Thread Tristan Seligmann
On Mon, Jan 31, 2011 at 3:15 PM, Itamar Turner-Trauring wrote: > On Mon, 2011-01-31 at 12:31 +0200, Jonathan Jacobs wrote: > >> The current code is hosted on Launchpad [2] and the source code is >> viewable on the web [3]. > > One comment unrelated to the actual code: we prefer people don't prefix

[Twisted-Python] Retiring buildslaves

2015-02-02 Thread Tristan Seligmann
Hi buildbot infrastructure maintainers, I am intending to retire my buildslaves (bot-idnar-debian and bot-idnar-debian64) upon release of jessie (Debian 8.0). The proximate cause for this is planned changes for the machines currently hosting the slaves; but given the current situation of Twisted's

[Twisted-Python] ANN: Axiom 0.7.3

2015-02-07 Thread Tristan Seligmann
I'm pleased to announce the release of Axiom 0.7.3. Axiom is an in-process object-relational database for Python, built on SQLite. This release is a bug fix release to correct another important issue; anyone using Axiom on PyPy should upgrade as soon as possible to avoid potential data loss in the

Re: [Twisted-Python] Specifying ciphers in ssl.optionsForClientTLS

2015-02-17 Thread Tristan Seligmann
On 17 February 2015 at 04:19, Jason J. W. Williams wrote: >> Some browsers won’t — Firefox refuses to use RC4 :) > > I saw that on Firefox's wiki, but in reality Firefox 35 still does > allow RC4: http://www.screencast.com/t/AuMRylAV IIUC, Firefox 36 will only allow RC4 as a fallback (but not dis

Re: [Twisted-Python] __nonzero__ for Deferred

2015-03-18 Thread Tristan Seligmann
On 19 March 2015 at 00:03, Glyph Lefkowitz wrote: > I'd like to deprecate and remove __nonzero__ on Deferreds. By "remove" do you mean "add an implementation that raises an exception"? (It seems like this must be what you meant, I just wanted to be clear since this is a slightly subtle issue) I'

Re: [Twisted-Python] Unhandled Error in python 3 test suite

2015-03-23 Thread Tristan Seligmann
On 23 March 2015 at 16:25, HawkOwl wrote: > It's not really a bug -- it's just that the stderr isn't being captured like > real Trial does. Twisted will reraise errors so they show up in logs, but > will actually handle them (I think, anyway). The traceback formatting just > says it's an unhand

[Twisted-Python] [ANN] clj-amp 0.9.0

2015-04-01 Thread Tristan Seligmann
I am pleased to announce the release of clj-amp 0.9.0[1][2], a Clojure implementation of the AMP[3] protocol (a reference implementation of which is found in Twisted). While slightly off-topic for this list, this project may be of interest to anyone with AMP services they would like to interoperate

Re: [Twisted-Python] Fwd: Adding callbacks using loop variables

2015-05-06 Thread Tristan Seligmann
On 6 May 2015 at 10:26, Saoili wrote: > Eg. code BEFORE > for loop_var in a_dict['loop_vars']: > d = self.returns_a_deferred(loop_var["x"]) > d.addCallback( > lambda ret_val: self.do_another_thing( > other_para

Re: [Twisted-Python] INCOMPATIBLE CHANGE: Removing PAM support from Twisted

2015-05-10 Thread Tristan Seligmann
On 11 May 2015 at 06:35, Glyph wrote: > I'm very much in favor of an outright removal in this case, so consider me > signed off. Given the gnarly security implications of this thing I would > take the unusual step of continuing to approve of removal even if we have a > real-life user who might

Re: [Twisted-Python] Multiple plugins in "twistd"

2015-05-21 Thread Tristan Seligmann
On 21 May 2015 at 04:31, Moshe Zadka wrote: > [2a] Since the docstrings do refer to the parent attribute, and since I > would be surprised if services just implemented the interface without > inheriting from "Service", I wonder if people object *too* much if I "fix" > it by documenting the parent

Re: [Twisted-Python] broken buildbots

2015-06-06 Thread Tristan Seligmann
On Sun, 7 Jun 2015 at 03:43 Glyph wrote: > > On Jun 6, 2015, at 6:40 PM, Glyph wrote: > > https://buildbot.twistedmatrix.com/buildslaves/hawkowl-debian7-py34 - > which is apparently maintained by "Your Name Here < > admin@youraddress.invalid>" - is presently failing all its builds because > it i

Re: [Twisted-Python] An error occurred with twisted 15.2.1 & python 3.4.3 on windows

2015-07-28 Thread Tristan Seligmann
On Mon, 27 Jul 2015 at 13:18 Gelin Yan wrote: > Is it a bug? > Yes; see https://twistedmatrix.com/trac/ticket/7626 for more details. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/tw

Re: [Twisted-Python] HTTP/2 and Twisted

2015-11-13 Thread Tristan Seligmann
On Thu, 12 Nov 2015 at 12:46 Cory Benfield wrote: > However, this may not work: in particular, some of the other classes in > twisted.web may know altogether too much about HTTP/1.X: in particular, if > they have the nerve to write directly to a transport we’ve got a real > problem with this appr

Re: [Twisted-Python] Streaming HTTP

2015-11-14 Thread Tristan Seligmann
On Sat, 14 Nov 2015 at 17:45 Cory Benfield wrote: > A similar approach should be taken with sending data: we should assume > that users want to chunk it if they do not provide a content-length. An > extreme position to take (and I do) is that this should be sufficiently > easy that most users act

Re: [Twisted-Python] Suggested plan for GitHub migration

2015-11-30 Thread Tristan Seligmann
On Mon, 30 Nov 2015 at 16:50 Amber "Hawkie" Brown wrote: > The migration will have a handful of policy changes that we will have to > resolve -- such as ensuring that all merges have a topfile -- which aren't > possible under a GitHub based system. You could make master/trunk/whatever a protect

[Twisted-Python] Debian unstable builder

2016-01-31 Thread Tristan Seligmann
Working on tickets such as #8180[1] and #8187[2] suggests that it would be useful to have a builder running on Debian unstable (and/or other "bleeding edge" distributions, most of them have something similar) in order to pick up problematic changes like this sooner. #8180 is just a case of a newer

[Twisted-Python] A little present for emacs / flycheck users

2016-02-08 Thread Tristan Seligmann
You may find this to be of use: https://gist.github.com/mithrandi/15fca4367e878b6b88cd Is there somewhere I should be submitting this as a PR or something? (I guess I could release the checker as an emacs package, it's somewhat specific though) ___ Twis

Re: [Twisted-Python] A little present for emacs / flycheck users

2016-02-09 Thread Tristan Seligmann
sted-emacs is the best I could find re > PRs. > > Do you have a way to make this conditional? There's precisely one Python > project where I care about using the twistedchecker linter :) > > > On Tue, 9 Feb 2016 at 07:12 Tristan Seligmann > wrote: > &

[Twisted-Python] Intended semantics of IReactorTime.seconds

2016-03-26 Thread Tristan Seligmann
Currently, as far as I can tell, all implementations of `IReactorTime.seconds()` (excluding twisted.internet.task.Clock, obviously) are just `time.time()`; IOW, the return value is the number of seconds since the beginning of the UNIX epoch in UTC. Are these the intended semantics? The interface do

Re: [Twisted-Python] where can I find twisted.application.internet.ClientService?

2016-03-26 Thread Tristan Seligmann
On Sun, 27 Mar 2016 at 04:17 Gelin Yan wrote: > > > https://twistedmatrix.com/documents/16.0.0/api/twisted.application.internet.ClientService.html > Unfortunately ClientService did not make it in time for 16.0.0, but it will be in the upcoming 16.1.0 release :) __

[Twisted-Python] [ANN] txacme 0.9.0, zero-configuration HTTPS for your Twisted app!

2016-04-09 Thread Tristan Seligmann
txacme[0][1] provides a TLS endpoint to automatically issue (and renew) certificates via the Let's Encrypt CA, allowing you to effortlessly turn on HTTPS for your application. A brief demonstration can be seen here: https://asciinema.org/a/41758 In support of this, txacme also includes a client im

Re: [Twisted-Python] [ALL OK] [INFRASTRUCTURE OUTAGE] Moving from SVN to Git

2016-05-10 Thread Tristan Seligmann
On Tue, 10 May 2016 at 20:38 Paweł Miech wrote: > Hello Amber, > > > we've moved to https://github.com/twisted/twisted as our > "authoritative" mirror. > > are there any consequences of this for Twisted users and/or casual > contributors? I used github source for a while not knowing it was not >

Re: [Twisted-Python] overview: new review queue venue

2016-05-22 Thread Tristan Seligmann
On Sun, 22 May 2016 at 10:12 Ralph Meijer wrote: > On May 22, 2016 9:36:28 AM GMT+02:00, Glyph > wrote: > >[..] > >(Please nobody try to do the clever thing where you configure buildbot > >to automatically pull all PRs, that would effectively negate any > >security protections...) > > > >I've be

Re: [Twisted-Python] overview: new review queue venue

2016-05-22 Thread Tristan Seligmann
Note that even without the bot, I believe you can just create a new PR for the same branch, so it's not *too* bad, but definitely a little clunky. On Mon, 23 May 2016 at 06:59 Amber "Hawkie" Brown wrote: > Mark has been working on a bot which would reopen it with a comment: > https://github.com/

Re: [Twisted-Python] Twisted Challenge Coins!

2016-06-15 Thread Tristan Seligmann
I'll take 5 coins. I'm in South Africa, but I have a US forwarding address (in Florida) that can be used to simplify logistics. On Wed, 15 Jun 2016 at 03:46 Ashwini Oruganti wrote: > Hello! > > We are planning to get us some challenge coins, which is exciting! You > should also be excited with u

Re: [Twisted-Python] two minor things

2016-06-22 Thread Tristan Seligmann
On Wed, 22 Jun 2016 at 10:05 Glyph wrote: > > If we are going to change this, I would really appreciate it if someone in > favor of the change would write a script to re-name the literally thousands > of outstanding branches to the new convention, so we don't have a random > mix. Luckily git mak

Re: [Twisted-Python] Coverage exceptions

2016-07-03 Thread Tristan Seligmann
The tests directories can simply be excluded in coverage.py (or codecov), I don't think there's any need to do something more complicated than that. While I agree that 100% test coverage is an ideal worth aspiring to, I think getting there from the current state is going to be a large amount of wo

Re: [Twisted-Python] dropping old pyOpenSSL versions

2016-07-07 Thread Tristan Seligmann
On Thu, 7 Jul 2016 at 23:07 Clayton Daley wrote: > I don't object to this specific change (we're on shiny new code), but want > to offer some food-for-thought: > > 1) Is newer really better in cryptography? Heartbleed affected 1.0.1, but > not 1.0.0 and there are a bunch of vulnerabilities that

Re: [Twisted-Python] Twisted 16.3.0 Prerelease 2 Announcement

2016-07-12 Thread Tristan Seligmann
On Tue, 12 Jul 2016 at 09:43 Cory Benfield wrote: > For that reason, you should adjust your code to use > OpenSSLCertificateOptions or, even better, use the TLS endpoint directly. > > The exported name of this class is actually just "CertificateOptions", fwiw.

Re: [Twisted-Python] New users cannot subscribe to mailing list

2016-07-15 Thread Tristan Seligmann
On Fri, 15 Jul 2016 at 20:06 Craig Rodrigues wrote: > Is anyone working on fixing this? > I believe this email explains things: http://twistedmatrix.com/pipermail/twisted-python/2016-March/030233.html ___ Twisted-Python mailing list Twisted-Python@twis

Re: [Twisted-Python] RFC: IPv6 multicast join/ticket 6597

2016-08-04 Thread Tristan Seligmann
On Thu, 4 Aug 2016 at 18:04 Jason Litzinger wrote: > I did try specifying the loopback index, however, I received a > "Network Unreachable" error. I didn't have time to dig into whether > it was possible to do what I wanted with the loopback interface last > night. > By default, the "multicast"

Re: [Twisted-Python] INCOMPATIBLE CHANGE: twisted.python.dist renamed to twisted.python._setup

2016-08-07 Thread Tristan Seligmann
+1 from me On Mon, 8 Aug 2016 at 02:35 Craig Rodrigues wrote: > > I understand the motivation, but the time to have done this was when > dist.py > was originally reviewed. > > There are real problems in the Twisted code, and in the Twisted > infrastructure. > Focusing on something like this inst

Re: [Twisted-Python] Twisted 16.3.1 Prerelease 1 Announcement

2016-08-15 Thread Tristan Seligmann
On Wed, 10 Aug 2016 at 14:48 Amber "Hawkie" Brown wrote: > I've just uploaded the first prerelease of Twisted 16.3.1, a security & > critical bug fix release of the 16.3 series. It contains: > FWIW my $DAYJOB test suite passes against 16.3.1rc1. ___ Tw

Re: [Twisted-Python] Twisted 16.4.0 Prerelease 1 Announcement

2016-08-15 Thread Tristan Seligmann
On Sat, 13 Aug 2016 at 08:19 Amber "Hawkie" Brown wrote: > In a rare Twisted release double feature right after 16.3.1, I bring you > the first prerelease of Twisted 16.4.0. > FWIW my $DAYJOB test suite passes against 16.4.0rc1. ___ Twisted-Python mail

[Twisted-Python] Endpoint composition syntax

2016-09-06 Thread Tristan Seligmann
I'm kicking off this discussion on the mailing list as I don't have anything well-formed enough to take to the bug tracker, and I am hoping to get some more engagement on the matter. Currently there is no way to explicitly compose Twisted endpoints, but several endpoint implementations have arisen

Re: [Twisted-Python] Twisted 16.6.0rc1 Release Candidate Announcement

2016-11-22 Thread Tristan Seligmann
On Tue, 22 Nov 2016 at 23:37 Glyph Lefkowitz wrote: > > This is the part that I'm worried about. It kinda seems like we're moving > toward "native string" being the type used in IRCClient, and *that* is > capital-W Wrong. Native strings are for Python-native types only, i.e. > docstrings and me

Re: [Twisted-Python] Twisted 16.6.0rc1 Release Candidate Announcement

2016-11-22 Thread Tristan Seligmann
On Wed, 23 Nov 2016 at 01:26 Tristan Seligmann wrote: > if PY3: > Argh, the above should be if PY2 of course. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twisted 16.6.0rc1 Release Candidate Announcement

2016-11-22 Thread Tristan Seligmann
On Wed, 23 Nov 2016 at 01:14 Tristan Seligmann wrote: > On Tue, 22 Nov 2016 at 23:37 Glyph Lefkowitz > wrote: > > > This is the part that I'm worried about. It kinda seems like we're moving > toward "native string" being the type used in IRCClient, an

Re: [Twisted-Python] AWS Auth v4 for Twisted?

2016-12-29 Thread Tristan Seligmann
On Fri, 30 Dec 2016 at 02:30 Steve Morin wrote: > Mark, > Did you get confirmation from your work? > It seems like he did; see https://github.com/twisted/txaws/pull/16 for more details. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com

Re: [Twisted-Python] treq POST abborting with: err: ('Could not adapt', '{"....", "..."} )

2017-01-06 Thread Tristan Seligmann
On Fri, 6 Jan 2017 at 21:21 steven meiers wrote: > glyph (without seeing the the code or backtrace) suggested that: > "I think the issue might be that it doesn't support bytes() on py3, > it's registered against str() or something" > Actually, the problem is the reverse of this; only bytes is su

Re: [Twisted-Python] treq POST abborting with: err: ('Could not adapt', '{"....", "..."} )

2017-01-06 Thread Tristan Seligmann
On Sat, 7 Jan 2017 at 03:23 Glyph Lefkowitz wrote: > > Even if we do this though - is there any way to convince json.dumps to > behave consistently between 2/3 for the purposes of examples? > As far as I know, the only way to handle this is with an if PY3 or if isinstance(…). I don't know of a w

Re: [Twisted-Python] treq POST abborting with: err: ('Could not adapt', '{"....", "..."} )

2017-01-06 Thread Tristan Seligmann
On Sat, 7 Jan 2017 at 03:23 Glyph Lefkowitz wrote: > > Maybe we should support unicode for the body as well. We can set the > charset in the mime-type and everything so that it will be properly > intelligible by the server, which doesn't happen if the user manually > encodes like this. > Oh, fo

Re: [Twisted-Python] treq POST abborting with: err: ('Could not adapt', '{"....", "..."} )

2017-01-08 Thread Tristan Seligmann
On Sun, 8 Jan 2017 at 01:57 Glyph Lefkowitz wrote: > > I see you your standards pedantry, and raise you! > > MIME defines content-type to always have a charset: > > *https://tools.ietf.org/html/rfc1521#section-4 > * > RFC 1521 is obsoleted by RFC 20

Re: [Twisted-Python] understanding twisted, better error handling

2017-01-10 Thread Tristan Seligmann
On Wed, 11 Jan 2017 at 02:26 steven meiers wrote: > True, but since python 2.x is still shipped with debian testing for > example there will be some people running into this issue. > Just to make twisted more approachable this could he handled. > The b'GET' syntax for byte strings works on Pytho

Re: [Twisted-Python] Twisted 17.1 Release Announcement

2017-02-11 Thread Tristan Seligmann
On Sat, 11 Feb 2017 at 12:04 Amber Hawkie Brown wrote: > - Lots of deprecated code removals, to make a sleeker, less confusing > Twisted. > Something perhaps not obvious from the release notes: String endpoint descriptions, as used by twist/twistd among other things, for listening on tcp ports

Re: [Twisted-Python] Twisted 17.1 Release Announcement

2017-02-12 Thread Tristan Seligmann
On Sun, 12 Feb 2017 at 03:45 Glyph Lefkowitz wrote: > > Yeah, this is a lack of test coverage for the 'default' case. Technically > it *is* a regression, but it's probably pretty unusual to use the > default; point being, I don't think we need an emergency release here. > The functionality that

Re: [Twisted-Python] Hanging SFTP client operations on server disconnection

2017-02-15 Thread Tristan Seligmann
On Wed, 15 Feb 2017 at 08:56 Glyph Lefkowitz wrote: > > PS: There is a stray release notes fragment in conch > > https://github.com/twisted/twisted/blob/trunk/src/twisted/conch/8791.feature > > > Oops! > > Wait; why do you say this is "stray"? > It appears to be in the wrong directory (should be

Re: [Twisted-Python] Twisted 17.1 Release Announcement

2017-02-15 Thread Tristan Seligmann
On Wed, 15 Feb 2017 at 15:23 Jean-Paul Calderone wrote: > > I wonder about the details of how treq's failures went unnoticed. Is > development sufficiently inactive that no one looked at CI between the > breakage and the release? Wasn't that a period of several months? Or does > it have a Twis

Re: [Twisted-Python] Test coverage requirements

2017-02-27 Thread Tristan Seligmann
On Mon, 27 Feb 2017 at 21:54 Glyph Lefkowitz wrote: > That said, it has been *improving* and if it keeps improving at the rate > it has been, I expect that we'd be able to put that coverage blocker back > in in another 3-4 months. Perhaps something to talk about at PyCon. > I think at least one

Re: [Twisted-Python] HTTP Agent persistent connections not closed for some HTTPS sites

2017-03-05 Thread Tristan Seligmann
On Sun, 5 Mar 2017 at 15:36 Adi Roiban wrote: > I have observed this while running some end to end tests in which the > pool.closeCachedConnections() deferred was not called, even after a > generous amount of seconds :) > The code to abort an HTTP client connection is here: https://github.com/t

[Twisted-Python] twistedmatrix.com TLS certificate

2017-03-05 Thread Tristan Seligmann
twistedmatrix.com's current certificate is issued by StartCom Certification Authority; for certificates issued by this CA prior to 2016-09-21, the domain must be on a Chrome whitelist for it to be accepted. As of Chrome 58.0.3026.3 (canary/dev channel only, currently, but eventually this will presu

Re: [Twisted-Python] non-merge commits to trunk & "review" keyword

2017-03-06 Thread Tristan Seligmann
On Tue, 7 Mar 2017 at 06:38 Glyph Lefkowitz wrote: > > This is definitely bad, forbidden by existing policy, etc. In fact I > remember adjusting the settings so that the 'merge' button would always > create a merge commit; in fact, the configuration is still set that way. > Rebase merging was a

Re: [Twisted-Python] non-merge commits to trunk & "review" keyword

2017-03-07 Thread Tristan Seligmann
On Tue, 7 Mar 2017 at 09:56 Glyph Lefkowitz wrote: > On Mar 6, 2017, at 9:02 PM, Tristan Seligmann > wrote: > > On Tue, 7 Mar 2017 at 06:38 Glyph Lefkowitz > wrote: > > > This is definitely bad, forbidden by existing policy, etc. In fact I > remember adjusting the

Re: [Twisted-Python] new core contributor

2017-04-22 Thread Tristan Seligmann
On Sat, 22 Apr 2017 at 09:48 Glyph Lefkowitz wrote: > As per our previously documented entirely arbitrary[1] and ad-hoc[2] > process, I'd like to welcome - should he choose to accept it - Tom Most to > be a member of the Twisted project. You've probably seen him around on > IRC, as 'twm'. Tom's

Re: [Twisted-Python] process manager for twisted daemons?

2017-05-03 Thread Tristan Seligmann
On Thu, 4 May 2017 at 01:21 jonathan vanasco wrote: > Is anyone deploying their twisted services with something other than > Supervisor? If so, I'd love to know. > It sounds like systemd has what you want here, and should work fine for your Twisted services, assuming you don't have other constr

Re: [Twisted-Python] Question regarding patch submission

2017-06-25 Thread Tristan Seligmann
On Mon, 26 Jun 2017 at 05:34 Jason Litzinger wrote: > However, after incorporating review comments in new commits and, > force-pushing the feature branch, is it expected that the review comments > may > be damaged? > I think this is expected; this is just an unfortunate shortcoming of GitHub PR

Re: [Twisted-Python] WebSockets and QUIC for Twisted

2017-07-05 Thread Tristan Seligmann
On Thu, 6 Jul 2017 at 04:58 Glyph wrote: > Why are you interested in QUIC? My understanding was that Google used this > protocol as an experiment, but HTTP/2 is the successful termination of the > experiment, and nobody should really be using it. (For http2 support, `pip > install twisted[tls,ht

[Twisted-Python] Nevow 0.14.3rc1 released

2017-07-26 Thread Tristan Seligmann
Hi all, I've uploaded a prerelease of Nevow 0.14.3 to PyPI[1]. This contains a fix for some Athena client-side timeout behaviour (or more specifically, the lack of one) and removes use of FilePath.getmtime. If you are using Athena, please a) let me know! and b) give this prerelease a try to see i

Re: [Twisted-Python] Nevow 0.14.3rc1 released

2017-07-26 Thread Tristan Seligmann
On Wed, 26 Jul 2017 at 21:36 Werner Thie wrote: > Aloha Tristan > > still using Athena in production, will be able to test tomorrow. > Great! Note that there's an rc2 now, because there were some problems with the version number handling in rc1; pip install --pre nevow should get you the latest

Re: [Twisted-Python] Weird PyPY twisted.internet.defer.TimeoutError ERROR*12 during full test run

2017-08-04 Thread Tristan Seligmann
On Sat, 5 Aug 2017 at 00:44 Daniel Sutcliffe wrote: > For the buildbot: > https://buildbot.twistedmatrix.com/builders/ubuntu16.04-pypy5/ > they seem to pretty much consistently happen during: > twisted.protocols.test.test_tls.TLSMemoryBIOTests.test_hugeWrite_TLSv1_1 > but running in my own envi

Re: [Twisted-Python] Is there a nice way to write transport-agnostic protocols and servers/clients?

2017-08-16 Thread Tristan Seligmann
On Wed, 16 Aug 2017 at 13:53 Jarosław Fedewicz wrote: > One thing that is also notably missing from the puzzle is that there is no > support for datagram endpoints. > The lack of datagram endpoint abstractions is definitely just a "we haven't gotten around to it yet"; stream endpoints were the i

Re: [Twisted-Python] Is there a nice way to write transport-agnostic protocols and servers/clients?

2017-08-16 Thread Tristan Seligmann
On Wed, 16 Aug 2017 at 15:28 Kevin Conway wrote: > Maybe I misunderstand the issue, but I believe the Endpoints API solves > for this. > https://twistedmatrix.com/documents/16.4.1/core/howto/endpoints.html > > This abstracts the transport and allows you to focus on only interpreting > the bytes t

Re: [Twisted-Python] trial.unitest-specific segfault with lxml

2017-08-17 Thread Tristan Seligmann
On Fri, 18 Aug 2017 at 00:47 Phil Mayers wrote: > SSCCE - well, hopefully correct - here: > > https://gist.github.com/philmayers/387597c7407ab98f159426cea5f44a69 > Note that I don't think you're allowed to catch GeneratorExit like this; normally doing so will crash your program with a RuntimeErr

Re: [Twisted-Python] Nevow 0.14.3rc1 released

2017-08-19 Thread Tristan Seligmann
On Wed, 26 Jul 2017 at 20:46 Tristan Seligmann wrote: > I've uploaded a prerelease of Nevow 0.14.3 to PyPI[1]. This contains a fix > for some Athena client-side timeout behaviour (or more specifically, the > lack of one) and removes use of FilePath.getmtime. > I've uploade

Re: [Twisted-Python] Required tests for a PR to be merged

2017-10-02 Thread Tristan Seligmann
On Mon, 2 Oct 2017 at 13:36 Adi Roiban wrote: > Will it trigger the Buidlbot stable builders? > > From what I can see in the code, it only creates the branch. > I believe buildbot will trigger a build on the branch being pushed, no need for a separate PR. Then, because GitHub commit statuses are

Re: [Twisted-Python] body producer bug in agent?

2017-11-11 Thread Tristan Seligmann
On Sun, 12 Nov 2017 at 09:33 Glyph wrote: > I attempted to draw some attention to this with github mentions: > > https://github.com/twisted/treq/issues/185#issuecomment-331856235 > > > but it looks like that didn't work. > > Hopefully by posting it here I can motivate someone to look at it? I >

Re: [Twisted-Python] How do recommend I run epytext?

2018-08-03 Thread Tristan Seligmann
On Fri, 3 Aug 2018 at 16:25 Barry Scott wrote: > The tox checking does not cover the epytext checks it seems. > > How do you recommend I have epytext checked for a patch? > Twisted uses pydoctor for generating API documentation; I believe tox -e apidocs is what you want to run it: https://githu

Re: [Twisted-Python] Switch Protocols mid Connection

2018-09-16 Thread Tristan Seligmann
On Sun, 16 Sep 2018 at 16:02, Randall Smith wrote: > and make 16+ calls to transfer a single file. So I need to switch to a > more appropriate (not yet determined) protocol for the transfer, and > then back to AMP. AMP provides a protocol switch command, which is > great, but then I'd need to sw

Re: [Twisted-Python] prerelease preview predocumentation

2011-03-27 Thread Tristan Seligmann
On Mon, Mar 28, 2011 at 4:19 AM, Glyph Lefkowitz wrote: > On Mar 27, 2011, at 10:09 PM, Tim Allen wrote: > > > I'm not sure if it's not finished yet, or I did something stupid, but > > I tried to test out the search system by picking a word I figured would > > be common in Twisted code ("addCallba

Re: [Twisted-Python] Deferred documentation.

2011-03-30 Thread Tristan Seligmann
On Tue, Mar 29, 2011 at 5:08 PM, Christopher Armstrong wrote: > I probably use addCallbacks once for every 30-100 addCallback or addErrback > calls I do (counted by lines of code, not times they're executed). But > that's just an off-the-cuff estimate. For interest's sake, I just ran the numbers

Re: [Twisted-Python] Deferred documentation.

2011-03-30 Thread Tristan Seligmann
On Wed, Mar 30, 2011 at 7:20 PM, Glyph Lefkowitz wrote: > However, in my experience, a novice's understanding of addCallbacks() is > critically important to understanding other uses of Deferred as well; in > particular, the "one chain of pairs of callback and errback" concept makes a > lot of the

Re: [Twisted-Python] Persisted protocol?

2011-04-06 Thread Tristan Seligmann
On Wed, Apr 6, 2011 at 1:32 PM, Laurens Van Houtven <_...@lvh.cc> wrote: > On Wed, Apr 6, 2011 at 1:27 PM, Tim Allen wrote: >> The difference between Pickle and SQLite is that a SQLite database has >> probably had some thought put into its schema, and is much less likely >> to accidentally scoop u

Re: [Twisted-Python] Twisted Plugins - Implementation Discussion

2011-04-06 Thread Tristan Seligmann
On 7 Apr 2011 06:56, "Glyph Lefkowitz" wrote: >>- Each section blah blah terrible user interface stuff about 'sections' and other misfeatures of ini files. > > > I don't want a solution that is hard-coded to deal with the metadata that 'twistd' specifically needs, as Twisted plugins are alread

Re: [Twisted-Python] WaitForMultipleObjects socket limitation

2011-04-07 Thread Tristan Seligmann
On Fri, Apr 8, 2011 at 4:52 AM, Kevin Horn wrote: > Note that you can wait on more than 64 objects at a time, just not using a > single WaitForMultipleObjects call.  The MSDN page Glyph pointed out has a > little more info. The proposed solutions, however, seem rather unsatisfactory. If you're go

Re: [Twisted-Python] WaitForMultipleObjects socket limitation

2011-04-09 Thread Tristan Seligmann
On Sat, Apr 9, 2011 at 3:43 AM, Pavel Pergamenshchik wrote: > Also, how much do we care that win32er can be used without a compiler, > but iocpreactor needs one to build the API wrapper? I suspect it's not terribly important, since Windows users can just use the binary distributions where somebod

Re: [Twisted-Python] Understanding deferred and error handling

2011-04-20 Thread Tristan Seligmann
On Wed, Apr 20, 2011 at 12:15 PM, Jason Rennie wrote: >> >>     def log_error(failure): >> >>         log.err(failure.printTraceback()) >>         return failure >>     d.addErrback(log_error) >>     d.addBoth(_stop) > > Use d.addCallbacks(_stop, log_error) instead of addBoth/addErrback.  Also, >

Re: [Twisted-Python] a problem about iocp and callInThread

2011-05-15 Thread Tristan Seligmann
On Sun, May 15, 2011 at 6:10 PM, Dfgqq Dfgqq wrote: >            reactor.callLater(self.wait, reactor.callInThread, self.Execute) I believe this should be: reactor.callFromThread(reactor.callLater, self.wait, reactor.callInThread, self.Execute) Execute is not being called in the reactor thread,

[Twisted-Python] Deferred flow control examples

2011-06-26 Thread Tristan Seligmann
When trying to help people understand how to use Deferred.add{Callback,Errback,Callbacks,Both} I've found it useful on a number of occasions to illustrate flow control with Deferreds by comparison with synchronous code. I realised there wasn't really anyway that a "complete" set of examples was col

Re: [Twisted-Python] jQuery.Deferred - why did they have to go and change the interface?

2011-06-28 Thread Tristan Seligmann
On Mon, Jun 27, 2011 at 11:53 PM, Richard Wall wrote: > I'm in the process of switching some of my Javascript code from > MochiKit.Async.Deferred to the recently introduced jQuery.Deferred. > > Does anyone else hate the confusing new method names they've chosen? > Why couldn't they just stick with

  1   2   >