[Python-Dev] smarter temporary file object (SF #415692)

2007-01-02 Thread dustin
cluding an additional chunk of documentation and a unit test. Dustin -cut-here- try: from cStringIO import StringIO except: from StringIO import StringIO class SpooledTemporaryFile: """Temporary file wrapper, specialized to switch from Str

Re: [Python-Dev] smarter temporary file object (SF #415692, #1630118)

2007-01-07 Thread dustin
ications or improvements anyone has in mind, please let me know. Dustin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Shortcut Notation for Chaining Method Calls

2007-02-03 Thread dustin
**kwargs) return self return wrap else: return rv mylist = [1, 2, 3] wrapcall(mylist).reverse().append(2).reverse() assert mylist == [2, 1, 2, 3] Dustin ___ Python-Dev mailing list Python-Dev@python.o

[Python-Dev] Trial balloon: microthreads library in stdlib

2007-02-10 Thread dustin
post a reasonable prototype soon (a PEP would also be in order at some point, correct?). Dustin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Trial balloon: microthreads library in stdlib

2007-02-10 Thread dustin
that far ahead yet. I expect #2 will be the hardest! Dustin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Trial balloon: microthreads library in stdlib

2007-02-10 Thread dustin
#x27;m having. Rather, I think that the new language features in PEP 342 cry out for a batteries-included library that makes asynchronous programming both natural and easy. Dustin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.

Re: [Python-Dev] Trial balloon: microthreads library in stdlib

2007-02-12 Thread dustin
tify of events on the objects in a standard way. > > +1. This sounds like an excellent idea. It's downright > silly having each thing that uses async I/O doing its > own thing. There should be a standard mechanism in the > stdlib that everything can use. I'm workin'

[Python-Dev] microthreading vs. async io

2007-02-14 Thread dustin
being built on top of those modules, seems to me to suggest a new "standard" implementation should be added to the standard library. I realize that I'm all talk and no code -- I've been busy, but I hope to rectify the imbalance tonight. Dustin [1] http://mail.python.org/pipermail/

Re: [Python-Dev] generic async io (was: microthreading vs. async io)

2007-02-15 Thread dustin
nly wait on 64 fd's, etc.) to the application for compatibility-checking purposes. Thoughts? Dustin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] microthreading vs. async io

2007-02-15 Thread dustin
s a consistent syntax for microthreaded code, so that I could write my function once and run it in *all* of those circumstances. Dustin P.S. For the record -- I've written lots of other apps in Twisted with great success; this one just wasn't a good fit. ___

Re: [Python-Dev] microthreading vs. async io

2007-02-15 Thread dustin
andardizing* that style so that it's the same in Twisted, my library, and anyone else's library that cares to follow the standard? Dustin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Uns

Re: [Python-Dev] generic async io (was: microthreading vs. async io)

2007-02-15 Thread dustin
ph. I think I'm most unclear about the meaning of "The 'threading' approach to asynchronous I/O"? Its opposite ("separating asynchronous I/O from threading") doesn't illuminate it much more. Could you elaborate? Dustin __

Re: [Python-Dev] generic async io (was: microthreading vs. async io)

2007-02-17 Thread dustin
threading" in a completely > different way than usual here, which may be causing some > confusion. According to subsequent clarification, the kind of IO Nick is talking about is the sort of thing described recently on kerneltrap: http://kerneltrap.org/node/7728 (althoug

Re: [Python-Dev] Another traceback idea [was: except Exception as err, tb]

2007-03-02 Thread dustin
lso looks a lot like the current syntax, but (unless I'm mistaken) ExceptionClass will be instantiated immediately right now. It seems best not to change the semantics of existing syntax if not necessary. I've been snoozing though this conver

Re: [Python-Dev] Encouraging developers

2007-03-06 Thread dustin
ct's idea of maintainers (although in Gentoo maintainers must be full developers). Dustin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Encouraging developers

2007-03-06 Thread dustin
On Tue, Mar 06, 2007 at 01:51:41PM -0600, [EMAIL PROTECTED] wrote: > > dustin> In summary, create a layer of volunteer, non-committing > dustin> maintainers for specific modules who agree to do in-depth > dustin> analysis of patches for their areas of expertise,

Re: [Python-Dev] Patch 1644818: Allow importing built-in submodules

2007-03-12 Thread dustin
>to do so, leaving my patch to rot only harms CPython, not me. Miguel, last week there was a lengthy conversation on this list on this exact topic. Your point of view, which I hold to be very common, came up a few times, but thanks for stating it so clearly! Dustin P.S. Please note I am *

Re: [Python-Dev] Rationale for NamedTemporaryFile?

2007-03-17 Thread dustin
immediately (to prevent other applications from modifying your temporary file). NamedTemporaryFile is inteded for use when you need access to the file by filename during the lifetime of the file. In either case, when the object goes, the file should too. Dustin __

Re: [Python-Dev] styleguide inconsistency

2007-04-23 Thread dustin
t, I don't see any contradiction here, and I don't see any reason to spend time updating the style guide. Dustin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.py

Re: [Python-Dev] whitespace normalization

2007-04-25 Thread dustin
patches, as Python does. Spurious whitespaces changes in the repo will generate patch rejections that will drive both maintainers (as they check in a patch) and submitters (as they try to refresh patches against head) mad. I'm very much interested in VC systems *not* driving develop

Re: [Python-Dev] 2.5 branch unfrozen

2007-04-25 Thread dustin
is counter to the Subversion Way. Also, you could accomplish what you want (a locked branch) with a pre-commit hook that just scans for paths in that branch. Dustin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listin

Re: [Python-Dev] svn logs

2007-05-08 Thread dustin
emote repository I've ever accessed. Dustin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] generators and with

2007-05-13 Thread dustin
roblem with this proposal, but I consider the snippet above to be fairly obscure Python already; the requirement to call g.close() is not a great burden on someone capable of using g.send() et al. Dustin ___ Python-Dev mailing list Python-Dev@python.org http

[Python-Dev] bpo-42819 PR review request

2021-02-08 Thread Dustin Rodrigues
Readline and affects both Linux and macOS. Thanks, Dustin ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https

Re: [Python-Dev] [Python-ideas] PEP 3156 - Asynchronous IO Support Rebooted

2013-01-04 Thread Dustin Mitchell
make sure that tracebacks looked reasonable, filtering out scheduler code[1]. I haven't looked closely at Tulip to see if that's a problem. Most of the "noise" in the tracebacks came from the lack of 'yield from', so it may not be an issue at all. Dustin [1]

Re: [Python-Dev] The docs, reloaded

2007-05-19 Thread Dustin J. Mitchell
an type 'php.net/array_search' to try to find out whether the needle comes before or after the haystack. Dustin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Decoding libpython frame information on the stack

2007-06-28 Thread Dustin J. Mitchell
worked on this subject: http://www.usenix.org/events/usenix01/full_papers/beazley/beazley_html/index.html Dustin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/m

Re: [Python-Dev] [Python-ideas] PEP 3156 - Asynchronous IO Support Rebooted

2013-01-12 Thread Dustin J. Mitchell
using 'write' in the name. FWIW, "half-closed" is, IMHO, a well-known term. It's not just a Twisted thing. Either name is better than "shutdown"! Dustin ___ Python-Dev mailing list Python-Dev@python.org http://mail.pyt