On Fri, Mar 28, 2014 at 5:48 PM, Daniel Stutzbach wrote:
> On Fri, Mar 28, 2014 at 2:54 PM, Marko Rauhamaa wrote:
>>
>> The blist implementation, which I have taken a quick glance at,
>>
>> buys cache locality at the price of block copying; I have no data to
>> decide if the tradeoff is a good on
This is a follow up of:
https://groups.google.com/forum/#!topic/python-tulip/91NCCqV4SFs
According to the information I collected so far it seems it's not possible
(or at least very hard) to cleanly shutdown a process pool and all its
workers in case of KeyboardInterrupt / SIGINT.
Literally, what I
On 29 March 2014 01:57, Stephen J. Turnbull wrote:
> Another way to put it is, we need a better way to fund support of
> "routine maintenance" (ie, the unfun parts) than negotiating it module
> by module.
Yes, yes we do, and there *are* people working on that (see
https://wiki.python.org/moin/Pyt
On 29 March 2014 02:25, Antoine Pitrou wrote:
> On Fri, 28 Mar 2014 12:31:59 +0400
> Andrey Ponomarenko wrote:
>> Hi,
>>
>> The libpython library has been added to the ABI tracker:
>> http://upstream-tracker.org/versions/python.html
>>
>> The page lists library versions and changes in API/ABI.
>
Marko Rauhamaa :
> For example, Jython would probably use SortedTree to implement it.
That word just keeps coming out of my keyboard. The Java class is of
course the TreeMap.
Marko
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.
On 03/27/2014 04:26 AM, Nick Coghlan wrote:
On 27 March 2014 20:47, Victor Stinner wrote:
The PEP 461 looks good to me. It's a nice addition to Python 3.5 and
the PEP is well defined.
+1 from me as well. One minor request is that I don't think the
rationale for rejecting numbers from "%s" is
On 28/03/2014 06:35 pm, Josiah Carlson wrote:
If it were me, I'd define three methods, with longer names to
clarify what they do, e.g.
proc.write_nonblocking(data)
data = proc.read_nonblocking()
data = proc.read_stderr_nonblocking()
Easily doable.
To implement write_nonbl
Greg Ewing :
> ISO 8601 doesn't seem to define a representation for
> negative durations, though, so it wouldn't solve the
> original problem.
XSD uses ISO 8601 durations and allows a sign before the initial "P".
It would appear PT1M means 60 or 61 seconds. P1D means 23, 24 or 25
hours. P1M mean
Raymond Hettinger :
> * An AVL balanced tree isn't the only solution or necessarily the best
> solution to the problem. Tree nodes tend to take more space than
> denser structures and they have awful cache locality (these are the
> same reasons that deques use doubly-linked blocks rather than a pl
On Fri, Mar 28, 2014 at 5:19 PM, Greg Ewing wrote:
> ISO 8601 doesn't seem to define a representation for
> negative durations, though, so it wouldn't solve the
> original problem.
Aside from the horribleness of the ISO 8601 notation for a duration, it's
best not to confuse the notions of duratio
If it makes you feel any better, I spent an hour this morning building a
2-function API for Linux and Windows, both tested, not using ctypes, and
not even using any part of asyncio (the Windows bits are in msvcrt and
_winapi). It works in Python 3.3+. You can see it here:
http://pastebin.com/0LpyQt
On Mar 26, 2014, at 1:31 PM, Marko Rauhamaa wrote:
> I have made a full implementation of a balanced tree and would like to
> know what the process is to have it considered for inclusion in Python
> 3.
>
> To summarize, the implementation closely parallels dict() features and
> resides in _coll
Le 28 mars 2014 21:59, "Terry Reedy" a écrit :
>
> On 3/28/2014 6:20 AM, Victor Stinner wrote:
>
>> Full example of asynchronous communication with a subprocess (the
>> python interactive interpreter) using asyncio high-level API:
>
> However, the code below creates a subprocess for one command an
Alexander Belopolsky wrote:
I meant ISO 8601 syntax for "durations" [1].
ISO 8601 doesn't seem to define a representation for
negative durations, though, so it wouldn't solve the
original problem.
--
Greg
___
Python-Dev mailing list
Python-Dev@python
On Fri, 28 Mar 2014 16:58:25 -0400
Terry Reedy wrote:
> On 3/28/2014 6:20 AM, Victor Stinner wrote:
>
> > Full example of asynchronous communication with a subprocess (the
> > python interactive interpreter) using asyncio high-level API:
>
> Thank you for writing this. As I explained in response
To be clear, the proposal for Idle would be to still use the RPC protocol,
but run it over a pipe instead of a socket, right?
On Fri, Mar 28, 2014 at 1:58 PM, Terry Reedy wrote:
> On 3/28/2014 6:20 AM, Victor Stinner wrote:
>
> Full example of asynchronous communication with a subprocess (the
On 3/28/2014 6:20 AM, Victor Stinner wrote:
Full example of asynchronous communication with a subprocess (the
python interactive interpreter) using asyncio high-level API:
Thank you for writing this. As I explained in response to Josiah, Idle
communicates with a python interpreter subprocess
On 3/28/2014 11:35 AM, Josiah Carlson wrote:
If it were me, I'd define three methods, with longer names to
clarify what they do, e.g.
proc.write_nonblocking(data)
data = proc.read_nonblocking()
data = proc.read_stderr_nonblocking()
Easily doable.
I'd appreciate being not
On Fri, Mar 28, 2014 at 12:42 PM, Terry Reedy wrote:
> On 3/28/2014 12:45 PM, Josiah Carlson wrote:
>
>> If it makes you feel any better, I spent an hour this morning building a
>> 2-function API for Linux and Windows, both tested, not using ctypes, and
>> not even using any part of asyncio (the
On 3/28/2014 12:45 PM, Josiah Carlson wrote:
If it makes you feel any better, I spent an hour this morning building a
2-function API for Linux and Windows, both tested, not using ctypes, and
not even using any part of asyncio (the Windows bits are in msvcrt and
_winapi). It works in Python 3.3+.
Am 27.03.2014 22:21, schrieb Ethan Furman:
> On 03/27/2014 01:44 PM, Guido van Rossum wrote:
>>
>> Accepted.
>
> Yay!
+1 for that Yay :)
Georg
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubs
On 2014-03-28 16:39, Paul Moore wrote:
On 28 March 2014 16:22, Tres Seaver wrote:
On 03/28/2014 12:18 PM, Tres Seaver wrote:
I'm mostly arguing the FLOSS project should feel free to ignore
high-maintenance-cost commercial concerns until those concerns bring
either blook (funded developer time)
On Fri, Mar 28, 2014 at 10:46 AM, Guido van Rossum wrote:
> On Fri, Mar 28, 2014 at 9:45 AM, Josiah Carlson
> wrote:
>
>>
>> If it makes you feel any better, I spent an hour this morning building a
>> 2-function API for Linux and Windows, both tested, not using ctypes, and
>> not even using any
Tres Seaver writes:
> On 03/27/2014 04:11 AM, Stephen J. Turnbull wrote:
>
> > Maybe. That depends on if you care about the convenience of folks
> > who have to get new modules past Corporate Security, but it's easier
> > to get an upgrade of the whole shebang. I don't think it's ever
> >
On 28 March 2014 13:46, Benjamin Peterson wrote:
> This was my fault, though maybe apache 2.2's weird virtual host
> selection rules can share some of the blame. Fixed now.
Thanks
Paul
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.pytho
And probably the block should be deindented
On Thu, Mar 27, 2014 at 6:48 PM, Antoine Pitrou wrote:
> On Thu, 27 Mar 2014 17:12:02 +0100 (CET)
> yury.selivanov wrote:
>>
>> +.. classmethod:: Signature.from_callable(obj)
>> +
>> + Return a :class:`Signature` (or its subclass) object for
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 03/28/2014 12:18 PM, Tres Seaver wrote:
> I'm mostly arguing the FLOSS project should feel free to ignore
> high-maintenance-cost commercial concerns until those concerns bring
> either blook (funded developer time) or treasure (pooled to pay for
On Fri, 28 Mar 2014 12:31:59 +0400
Andrey Ponomarenko wrote:
> Hi,
>
> The libpython library has been added to the ABI tracker:
> http://upstream-tracker.org/versions/python.html
>
> The page lists library versions and changes in API/ABI.
Thanks. Do note that most of these changes are on priva
On Fri, Mar 28, 2014 at 09:20:35AM +, Kristján Valur Jónsson wrote:
> I'll be willing to experiment with extending the heapq. methods to take an
> optional "map" argument.
> 'map' would be a dict, mapping objects in the heap to indices. If provided,
> each of the heapq methouds would
> take
On Fri, Mar 28, 2014 at 9:45 AM, Josiah Carlson wrote:
>
> If it makes you feel any better, I spent an hour this morning building a
> 2-function API for Linux and Windows, both tested, not using ctypes, and
> not even using any part of asyncio (the Windows bits are in msvcrt and
> _winapi). It wor
On Fri, 28 Mar 2014 10:45:01 -0400, Tres Seaver wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 03/27/2014 09:16 PM, Josiah Carlson wrote:
> > But here's the thing: I can build enough using asyncio in 30-40 lines
> > of Python to offer something like the above API. The problem is
On Fri, Mar 28, 2014 at 1:13 PM, Skip Montanaro wrote:
> Given that the timedelta has more than "a month's" worth of days, how
> would you describe it using the ISO8601 duration notation without
> referencing a specific point in time? Conversely, given your example,
> "P3Y6M4DT12H30M5S", how woul
*This* is the type of conversation that I wanted to avoid. But I'll answer
your questions because I used to do exactly the same thing.
On Fri, Mar 28, 2014 at 3:20 AM, Victor Stinner wrote:
> 2014-03-28 2:16 GMT+01:00 Josiah Carlson :
> > def do_login(...):
> > proc = subprocess.Popen(...)
>
On Fri, Mar 28, 2014 at 11:07 AM, Alexander Belopolsky
wrote:
>> Is it open to debate or is it now cast in stone?
>
> I think the barrier for changing str() is lower than that for changing
> repr(), but I would be against any changes in this area. (I may have had a
> different view if ISO 8601 sy
ACTIVITY SUMMARY (2014-03-21 - 2014-03-28)
Python tracker at http://bugs.python.org/
To view or respond to any of the issues listed below, click on the issue.
Do NOT respond to this message.
Issues counts and deltas:
open4534 (+23)
closed 28324 (+51)
total 32858 (+74)
Open issues wit
Andrew wrote:
> I meant ISO 8601 syntax for "durations" [1].
That's exactly what I was referring to. Consider this session:
>>> now = datetime.datetime.now()
>>> now
datetime.datetime(2014, 3, 28, 12, 4, 38, 517110)
>>> then = now - datetime.timedelta(days=57, hours=12, minutes=12, seconds=12)
>
On Fri, 28 Mar 2014 11:19:52 -0500
Skip Montanaro wrote:
> On Fri, Mar 28, 2014 at 11:07 AM, Alexander Belopolsky
> wrote:
> >> Is it open to debate or is it now cast in stone?
> >
> > I think the barrier for changing str() is lower than that for changing
> > repr(), but I would be against any ch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 03/28/2014 11:57 AM, Stephen J. Turnbull wrote:
> So, let me get this straight: you think that one user should pay Red
> Hat to vet the package for RHEL, and another user should pay to get
> it into Ubuntu, and another user to get it into SuSE? A
On Fri, Mar 28, 2014 at 12:19 PM, Skip Montanaro wrote:
> (*) As an aside (that is, this belongs in a separate thread if you
> want to discuss it), in my opinion, attempting to support ISO 8601
> formatting is pointless without the presence of an anchor datetime.
>
I meant ISO 8601 syntax for "d
On 28 March 2014 16:22, Tres Seaver wrote:
> On 03/28/2014 12:18 PM, Tres Seaver wrote:
>> I'm mostly arguing the FLOSS project should feel free to ignore
>> high-maintenance-cost commercial concerns until those concerns bring
>> either blook (funded developer time) or treasure (pooled to pay for
On Fri, Mar 28, 2014 at 7:03 AM, Steven D'Aprano
wrote:
> py> str(timedelta(0, -1))
> '-1 day, 23:59:59'
> ..
> Does anyone remember the rationale for this behaviour?
I don't recall any better rationale than what I wrote in the docs: "String
representations of timedelta objects are normalized si
On Fri, Mar 28, 2014, at 3:28, Paul Moore wrote:
> I'm not sure if this is a result of the recent website reorg, but
> www.jython.org seems to be redirecting to docs.python.org for me.
> Presumably this is an error - where do I report it and/or is it a
> known issue?
This was my fault, though mayb
Hi,
2014-03-28 9:31 GMT+01:00 Andrey Ponomarenko :
> The libpython library has been added to the ABI tracker:
> http://upstream-tracker.org/versions/python.html
>
> The page lists library versions and changes in API/ABI.
Nice!
By the way, would it be possible to add a second page for the stable
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 03/27/2014 04:11 AM, Stephen J. Turnbull wrote:
> Maybe. That depends on if you care about the convenience of folks
> who have to get new modules past Corporate Security, but it's easier
> to get an upgrade of the whole shebang. I don't think it'
Hi,
The libpython library has been added to the ABI tracker:
http://upstream-tracker.org/versions/python.html
The page lists library versions and changes in API/ABI.
--
Andrey Ponomarenko, NTC IT ROSA.
___
Python-Dev mailing list
Python-Dev@python.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 03/27/2014 09:16 PM, Josiah Carlson wrote:
> But here's the thing: I can build enough using asyncio in 30-40 lines
> of Python to offer something like the above API. The problem is that
> it really has no natural home. It uses asyncio, so makes no s
> -Original Message-
> From: Python-Dev [mailto:python-dev-
> bounces+kristjan=ccpgames@python.org] On Behalf Of Antoine Pitrou
> Sent: 27. mars 2014 15:53
> To: python-dev@python.org
> Subject: Re: [Python-Dev] collections.sortedtree
>
> On Thu, 27 Mar 2014 08:50:01 -0700
> Daniel S
On 28 March 2014 11:24, Donald Stufft wrote:
> Probably infrastructure-st...@python.org
OK, I've emailed them as well.
Paul
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.
On Mar 28, 2014, at 6:57 AM, Paul Moore wrote:
> On 28 March 2014 10:53, Nick Coghlan wrote:
>> I'm not sure where the responsibilities of the redesign team end and
>> those of the infrastructure team start, but since the switch to the
>> new site I've been adding anything related to the websit
On 28 March 2014 21:12, Antoine Pitrou wrote:
> On Thu, 27 Mar 2014 20:32:02 +1000
> Nick Coghlan wrote:
>>
>> Most of the time when I hear people say "the PEP process is too
>> difficult", I eventually find that what they really mean is "learning
>> the kinds of things that python-dev are likely
On Thu, 27 Mar 2014 20:32:02 +1000
Nick Coghlan wrote:
>
> Most of the time when I hear people say "the PEP process is too
> difficult", I eventually find that what they really mean is "learning
> the kinds of things that python-dev are likely to be worried about,
> and ensuring that the PEP adeq
On Thu, 27 Mar 2014 19:09:58 -0700
Ethan Furman wrote:
> On 03/27/2014 03:10 PM, Greg Ewing wrote:
> > R. David Murray wrote:
> >> I've done the 'landmark' thing as well, in the string context; that can be
> >> very useful when doing incremental test driven development. (Granted, you
> >> could d
There's a furious discussion going on at the python-list mailing list,
about negative timedelta strings:
py> str(timedelta(0, -1))
'-1 day, 23:59:59'
This is documented. It's even documented as being "somewhat unusual". I
found a tracker item for it, back in July 2010:
http://bugs.python.org/
On 28 March 2014 10:53, Nick Coghlan wrote:
> I'm not sure where the responsibilities of the redesign team end and
> those of the infrastructure team start, but since the switch to the
> new site I've been adding anything related to the website parts of
> python.org to https://github.com/python/py
I'm not sure where the responsibilities of the redesign team end and
those of the infrastructure team start, but since the switch to the
new site I've been adding anything related to the website parts of
python.org to https://github.com/python/pythondotorg/issues
If that's not the right place, the
On 28 March 2014 20:20, Victor Stinner wrote:
> 2014-03-28 2:16 GMT+01:00 Josiah Carlson :
>> def do_login(...):
>> proc = subprocess.Popen(...)
>> current = proc.recv(timeout=5)
>> last_line = current.rstrip().rpartition('\n')[-1]
>> if last_line.endswith('login:'):
>> pro
I'm not sure if this is a result of the recent website reorg, but
www.jython.org seems to be redirecting to docs.python.org for me.
Presumably this is an error - where do I report it and/or is it a
known issue?
Thanks,
Paul.
___
Python-Dev mailing list
P
2014-03-28 2:16 GMT+01:00 Josiah Carlson :
> def do_login(...):
> proc = subprocess.Popen(...)
> current = proc.recv(timeout=5)
> last_line = current.rstrip().rpartition('\n')[-1]
> if last_line.endswith('login:'):
> proc.send(username)
> if proc.readline(timeout=5).
On 28 March 2014 05:09, Josiah Carlson wrote:
> So yeah. Someone want to make a decision? Tell me to write the docs, I will.
> Tell me to go take a long walk off a short pier, I'll thank you for your
> time and leave you alone.
I had a need for this a few years ago. It's messy to do on Windows
(c
Chris Angelico writes:
> Don't forget, of course, that there is a middle ground. Something
> that's really REALLY awesome on PyPI but isn't in the stdlib might be
> packaged by various Linux distros.
Oh, agreed, and any organization that cares that much will already
have the RHEL or Ubuntu LTS
60 matches
Mail list logo