Re: [Python-Dev] [Python-checkins] cpython (2.6): #14984: only import pwd on POSIX.

2013-09-18 Thread R. David Murray
On Wed, 18 Sep 2013 21:38:48 -0400, Barry Warsaw wrote: > On Sep 18, 2013, at 03:00 PM, r.david.murray wrote: > > >http://hg.python.org/cpython/rev/fb3ad8a749c8 > >changeset: 85749:fb3ad8a749c8 > >branch: 2.6 > >parent: 85735:1b673e0fd8f3 > >

Re: [Python-Dev] Use an empty def as a lambda

2013-09-21 Thread R. David Murray
idea I've heard yet. Def is > already there; why break all existing code just for a word? Note that whatever happens with Python4, breaking of backward compatibility (by anything other than the deletion of cruft) is very unlikely to be part of it. --David ___

Re: [Python-Dev] Revert #12085 fix for __del__ attribute error message

2013-09-21 Thread R. David Murray
ral case). So the question is, is the bug in the user code, or the stdlib code? >From the issue, it sounds like it could be considered either (or most likely, both). --David ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org

Re: [Python-Dev] Best practice for documentation for std lib

2013-09-23 Thread R. David Murray
texts.[*] As with the question of NEWS items versus checkin messages, the intended audience, or in this case the mindset of the intended audience, is *different*, and so the text should very often be different as well[**]. --David [*] I posit that this is even *more* true for those who say they

Re: [Python-Dev] Revert #12085 fix for __del__ attribute error message

2013-09-23 Thread R. David Murray
t; (i.e. the exception was automatically > > caught), without addressing the "why" (i.e. because there wasn't > > anything else useful the interpreter could do with it) > > Yes, but I agree with Greg that "unraisable" is wrong. After all, it > was raised,

Re: [Python-Dev] PEP 453 (pip bootstrapping) ready for pronouncement?

2013-09-27 Thread R. David Murray
the fact that an older version of Python is already installed. But the instructions they will find on the web for installing package X (once this change hits the field) will be to install the newest version of 2.7 (or 3) using the python.org installer, and then they will have the pip command

Re: [Python-Dev] Reduce memory footprint of Python

2013-10-08 Thread R. David Murray
trim a MB here and a MB there. I would have loved to have had his tools for doing that work! Trimming linecache was one of the early big wins, even though it made some aspects of development harder. We also cleared most of the other caches after startup (of a long running process). --David PS

Re: [Python-Dev] PEP 455: TransformDict

2013-10-08 Thread R. David Murray
rmdict, since email.message needs a list-with-case-insensitive-keyed-lookup, not a dict, because it also preserves the original *order* of the headers. And it couldn't use an orderedtransformdict, either, since it also has to preserve *duplicate* headers. --David [*] currently it loses whitesp

Re: [Python-Dev] Reduce memory footprint of Python

2013-10-08 Thread R. David Murray
On Tue, 08 Oct 2013 14:43:03 -0400, Benjamin Peterson wrote: > 2013/10/8 R. David Murray : > > PS: I have always thought it sad that the ready availability of memory, > > CPU speed, and disk space tends to result in lazy programs. I understand > > there is an effort/value

Re: [Python-Dev] lzma and 'x' mode open

2013-10-08 Thread R. David Murray
b" to the choices and now it > seems to work as I would like. Please file an enhancement request at bugs.python.org. --David ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] PEP 457: Syntax For Positional-Only Parameters

2013-10-09 Thread R. David Murray
signature lines to represent what Argument Clinic represents with the group notation. We don't currently have a doc solution for 'positional only' arguments. How about a variant on the '_' markup idea: range() range(, [, ]) This takes advantage of the fact that th

Re: [Python-Dev] Python startup time

2013-10-10 Thread R. David Murray
bunch of stuff, but they don't ;) --David ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().

2013-10-11 Thread R. David Murray
attern encouragement. It seems at first blush like using it with ExitStack would make that tendency worse, so I too would like to hear more about Nick's thoughts on the subject. --David ___ Python-Dev mailing list Python-Dev@python.org https://mail

Re: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().

2013-10-11 Thread R. David Murray
rint("hello world") print("goodbye world") This does not print anything, whereas for either intuitive meaning I can think of for "ignoring" the error, it ought to print something. You really can't *ignore* errors inside a with block. This incorrect intuition is exactly why this is an anti-pattern. 'ignore' is an attractive nuisance. This having occurred to me, I am now definitely -1. --David ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().

2013-10-11 Thread R. David Murray
with indifference_to(...): > > with nonchalance_regarding(...): > > with blithe_disdain_concerning(...): with an_immediate_exit_from_the_with_if_we_see(...): --David ___ Python-Dev mailing list Python-Dev@python.org https://m

Re: [Python-Dev] tracker/irc and development transparency (was: cpython: Rename contextlib.ignored ...)

2013-10-11 Thread R. David Murray
in the checkin header. (I note that the issue number was also missing from this particular commit message.) As the community referring to this stuff grows (and it has to, given that use of the language is still growing) and the history of the project becomes ever deeper, this kind of documentat

Re: [Python-Dev] Change PEP 399 import recommendation

2013-10-12 Thread R. David Murray
ly to make a large > enough difference to make up for the additional complexity due to the code > split. The impact on other implementations is: what if they write an accelerator that only replaces part of the module, whereas CPython's replaces the whole thing? But I think we could just postpone dealing with that until it actually comes up, just as we would if some other implementation writes an accelerator for a module for which CPython doesn't have one. --David ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().

2013-10-13 Thread R. David Murray
+1 to the below. I don't have a strong opinion about the feature itself. The number of times I can imagine using it in code is pretty close to zero, but might not actually turn out to *be* zero, you never know. But the name hurts my brain for the reasons PJ explains :) --David PS: I thin

Re: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().

2013-10-13 Thread R. David Murray
t be released until all those lines are done. try/except blocks with more than a couple lines of code are a code smell. with replaces try/finally, not try/except. I have no problem with Nick deciding that none of the arguments convince him and leaving it in. We'll see how it turns out in practi

Re: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().

2013-10-15 Thread R. David Murray
ssertRaises, which seems like a consistency bonus. And I could see it getting used. I think I've had code where the logic was: possibly trap an exception, stuff it in a variable, do some logic, check the variable to see if we had an exception earlier, and if so do something with it or otherwise branch the logic. I won't say this is common, and I won't say there wouldn't often be a better way to write it...but I can think that it might have utility. With that change, I'd be +1. With just suppress, I'm -0. --David ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().

2013-10-15 Thread R. David Murray
aises, which is our existing stdlib context manager that traps exceptions. I'd be happy with 'trap' or 'catch' without 'as' support, but the names make more sense if the exception is actually available after it is trapped/caught. --David __

Re: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().

2013-10-15 Thread R. David Murray
On Wed, 16 Oct 2013 09:24:11 +1000, Nick Coghlan wrote: > On 16 Oct 2013 01:54, "R. David Murray" wrote: > > With that change, I'd be +1. With just suppress, I'm -0. > > Please, please, please just let it drop. Even though it eventually > convinced me

Re: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().

2013-10-16 Thread R. David Murray
on on the CM so that the name 'trap' made sense, and so that it was clear that only one exception was ever caught, and so that the CM was parallel in functionality to the existing assertRaises CM. But none of this affects the code, because Nick isn't accepting the proposal, and that

Re: [Python-Dev] Proper way to specify that a method is not defined for a type

2016-06-07 Thread R. David Murray
For those interested in this topic, if you are not already aware of it, see also http://bugs.python.org/issue25958, which among other things has a relevant proposed patch for datamode.rst. On Tue, 07 Jun 2016 10:56:37 -0700, Guido van Rossum wrote: > Setting it to None in the subclass is the inte

Re: [Python-Dev] BDFL ruling request: should we block forever waiting for high-quality random bits?

2016-06-09 Thread R. David Murray
straints from time to time[*]. --David [*] Which I think the twisted folks at least would argue we shouldn't be doing :) ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.

Re: [Python-Dev] Why does base64 return bytes?

2016-06-14 Thread R. David Murray
o for backward compatibility reasons, which are consonant with its primary use case, it makes more sense for the encoder to produce bytes than string. If you need to transmit bytes over a unicode channel, you can decode it from ASCII. That is, unicode is the *exceptional* use case here, not the r

Re: [Python-Dev] Why does base64 return bytes?

2016-06-16 Thread R. David Murray
On Wed, 15 Jun 2016 11:51:05 +1200, Greg Ewing wrote: > R. David Murray wrote: > > The fundamental purpose of the base64 encoding is to take a series > > of arbitrary bytes and reversibly turn them into another series of > > bytes in which the eighth bit is not significant.

Re: [Python-Dev] Debugging Python scripts with GDB on OSX

2016-07-07 Thread R. David Murray
ologize if my choice of the mailing lists is not the best. I tried to do this a few weeks ago myself, with similar negative results. The only thing I tried that you don't mention (I didn't try everything you did) is a compile from raw gdb source...and that didn't support OSX for

Re: [Python-Dev] OpenIndiana and Solaris support

2016-09-23 Thread Stewart, David C
Illumos, OpenIndiana et al are open source forks of Solaris. Back before the acquisition by Oracle, Sun open sourced the Solaris OS, called it OpenSolaris and encouraged projects to use it as an OS for x86 and other architectures. But after the acquisition, the OpenSolaris project seemed to end

[Python-Dev] Version and Last-Modified headers are no longer required in PEPs.

2017-09-05 Thread R. David Murray
ional. --David ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] PEP 548: More Flexible Loop Control

2017-09-05 Thread R. David Murray
y improvement in the more general case, with examples taken from the standard library: https://www.python.org/dev/peps/pep-0548/ Unlike Larry, I don't have a prototype, and in fact if this idea meets with approval I'll be looking for a volunteer to do the actual implementation. --D

Re: [Python-Dev] PEP 548: More Flexible Loop Control

2017-09-06 Thread R. David Murray
On Wed, 06 Sep 2017 15:05:51 +1000, Chris Angelico wrote: > On Wed, Sep 6, 2017 at 10:11 AM, R. David Murray > wrote: > > I've written a PEP proposing a small enhancement to the Python loop > > control statements. Short version: here's what feels to me like a >

Re: [Python-Dev] PEP 548: More Flexible Loop Control

2017-09-06 Thread R. David Murray
cause) I made several mistakes. Sorry for wasting anyone else's time :( --David ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2021-10-18 Thread David Mertz, Ph.D.
On Mon, Oct 18, 2021 at 6:49 PM Paul Moore wrote: > On Mon, 18 Oct 2021 at 19:29, Guido van Rossum wrote: > > y = None # Default > > if config is not None: > > handler = config.get("handler") > > if handler is not None: > > parameters = handler.get("parameters") > > if parameters is

[Python-Dev] Semi-proposal: Tagged None

2021-10-21 Thread David Mertz, Ph.D.
On Thu, Oct 21, 2021 at 2:52 AM Steven D'Aprano wrote: > On Tue, Oct 19, 2021 at 05:09:42PM -0700, Michael Selik wrote: > > None and its ilk often conflate too many qualities. For example, is it > > missing because it doesn't exist, it never existed, or because we never > > received a value, desp

[Python-Dev] Re: Semi-proposal: Tagged None

2021-10-21 Thread David Mertz, Ph.D.
I've moved this to python-ideas where it is more appropriate, as Chris notes On Thu, Oct 21, 2021, 8:42 PM Chris Angelico wrote: > On Fri, Oct 22, 2021 at 3:23 AM David Mertz, Ph.D. > wrote: > > > > On Thu, Oct 21, 2021 at 2:52 AM Steven D'Aprano > wrote: >

[Python-Dev] Re: pre-PEP: Unicode Security Considerations for Python

2021-11-02 Thread David Mertz, Ph.D.
This is an amazing document, Petr. Really great work! I think I agree with Marc-André that putting it in the actual Python documentation would give it more visibility than in a PEP. On Tue, Nov 2, 2021, 1:06 PM Marc-Andre Lemburg wrote: > On 01.11.2021 13:17, Petr Viktorin wrote: > >> PEP:

[Python-Dev] Re: Having Sorted Containers in stdlib?

2021-11-10 Thread David Mertz, Ph.D.
I agree with Tim. Subject, of course, to the same caveat Tim mentions: does the creator want this? I haven't used the library much, but it's obviously top quality, and adding pure-Python code is less burden than C implementations. On Wed, Nov 10, 2021, 10:19 PM Tim Peters wrote: > [Bob Fang ] >

[Python-Dev] Re: Preventing Unicode-related gotchas (Was: pre-PEP: Unicode Security Considerations for Python)

2021-11-14 Thread David Mertz, Ph.D.
On Sun, Nov 14, 2021, 2:14 PM Christopher Barker > It's probably to deal with "é" vs "é", i.e. "\N{LATIN SMALL LETTER >> E}\N{COMBINING ACUTE ACCENT}" vs "\N{LATIN SMALL LETTER E WITH ACUTE}", >> which are different ways of writing the same thing. >> > > Why does someone that wants to use, .e.g.

[Python-Dev] Re: The current state of typing PEPs

2021-11-29 Thread David Mertz, Ph.D.
On Mon, Nov 29, 2021 at 8:17 PM Guido van Rossum wrote: > Why would it need to be reiterated? Are there really people who believe > that such code would become invalid? AFAIK *everybody* here agrees that > this should stay valid. So who would we be reiterating it for? > I'm certainly not alone,

[Python-Dev] Re: Python release announcement format

2021-12-19 Thread David Mertz, Ph.D.
On Sun, Dec 19, 2021, 11:49 AM Steven D'Aprano > And both the download and the webpage listing the checksum are over https. > If we don't trust https, the whole internet is broken and changing to a > stronger checksum won't help. A hypothetical MITM attacker capable of > breaking https and injecti

[Python-Dev] Re: Python 3.10 vs 3.8 performance degradation

2021-12-19 Thread David Mertz, Ph.D.
My guess is that this difference is predominantly different builds of NumPy. For example, the Intel optimized builds are very good, and a speed difference of the magnitude shown in this note are typical. E.g. https://www.intel.com/content/www/us/en/developer/articles/technical/numpyscipy-with-int

[Python-Dev] Re: Python 3.10 vs 3.8 performance degradation

2021-12-19 Thread David Mertz, Ph.D.
Not the version, but the build. Did you compile NumPy from source using the same compiler with both Python versions? If not, that remains my strong hunch about performance difference. Given what your programs do, it sure seems like the large majority of runtime is spent in supporting numeric libra

[Python-Dev] Re: Python 3.10 vs 3.8 performance degradation

2021-12-19 Thread David Mertz, Ph.D.
These are binary wheel installs though, no? Which means 3.8 version and 3.10 version were compiled at different times, even for the same NumPy version. Also for different platforms, I don't know which you are on. I haven't checked what's on PyPI for each version. I think PyFFT is largely using Num

[Python-Dev] Re: New PEP website is horrible to read on mobile device

2022-03-15 Thread David Mertz, Ph.D.
I get pretty much the same thing as the OP on Chrome 99.0.4844.58; Android 11; Pixel 2 XL; Build RP1A.201005.004.A1. However, it gets more readable if I force Desktop site and zoom a bit. These facts are pretty common for a lot of websites, and I never gave it much thought. But yes, the mobile ve

[Python-Dev] Re: About PEPs being discussed on Discourse

2022-04-07 Thread David Mertz, Ph.D.
FWIW, I find Discourse (and everything similar that I've seen), awkward, difficult to use, poorly organized, and in every way inferior to my mail client. Obviously, other people differ in opinion. Quite likely the majority of cpython developers disagree. I don't think I'm entirely alone in this ex

[Python-Dev] Re: Switching to Discourse

2022-07-21 Thread David Mertz, Ph.D.
I feel similarly as Steven. I'm even less important to the development of CPython than he is. But like him, switching to Discourse means I simply won't try to follow development. Mailing list are friendly and easily manageable. In the small amount I've used Discourse, it feels unwieldy and less fr

[Python-Dev] NEWLINE sentinel behavior in CPython's PEG grammar

2022-10-26 Thread David J W
I am writing a Rust version of Python for fun and I am at the parser stage of development. I copied and modified a PEG grammar ruleset from another open source project and I've already noticed some problems (ex Newline vs NL) with how they transcribed things. I am suspecting that CPython's gramma

[Python-Dev] Re: NEWLINE sentinel behavior in CPython's PEG grammar

2022-10-26 Thread David J W
o be sure is check the code unfortunately. > > Hope this helps. > > Regards from rainy London, > Pablo Galindo Salgado > > > On 26 Oct 2022, at 19:12, David J W wrote: > > > >  > > I am writing a Rust version of Python for fun and I am at the parser > stage

[Python-Dev] Re: NEWLINE sentinel behavior in CPython's PEG grammar

2022-11-03 Thread David J W
re problems, is Lib/symtable.py trustworthy as a way of building unit tests when I start implementing my own symbols graph/table? Thanks, David On Wed, Oct 26, 2022 at 11:57 PM Matthieu Dartiailh wrote: > If you look at pegen, that uses the stdlib tokenizer as input, you will > se

[Python-Dev] Re: PEP 638: Syntactic macros

2023-02-02 Thread David Mertz, Ph.D.
On Thu, Feb 2, 2023 at 12:46 PM Stéfane Fermigier wrote: > https://en.wikipedia.org/wiki/Mathematical_operators_and_symbols_in_Unicode > https://oeis.org/wiki/List_of_LaTeX_mathematical_symbols > NB: on a very basic level, I remember trying, a few years ago, to use the > Unicode "empty set" symbo

Re: [Python-Dev] Attention Bazaar mirror users

2009-02-25 Thread Scott David Daniels
zaar/ In particular: What do I need? * Bazaar 1.0 or newer. As of this writing (04-Nov-2008) Bazaar 1.8 is the most recent release. As Bazaar is written in Python (yay!), it is available for all major platforms, See the Bazaar home page for information about versions for your pl

Re: [Python-Dev] PEP 372 -- Adding an ordered directory to collections ready for pronouncement

2009-03-03 Thread Scott David Daniels
ike getfirst() would be worth while here? But you must decide if what you want really does LRU -- does accessing the oldest entry make it the most recent entry? --Scott David Daniels scott.dani...@acm.org ___ Python-Dev mailing list Python

[Python-Dev] BZR mirror and pushing to Launchpad

2009-03-08 Thread R. David Murray
wrong in my local bzr setup, or is this the expected behavior? -- R. David Murray http://www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org

Re: [Python-Dev] BZR mirror and pushing to Launchpad

2009-03-09 Thread R. David Murray
cond branch be the problem? I just did 'bzr branch trunk trunk-myfix'. Is there a way I can check if my branch is stacking capable? (I'm very new to bzr.) -- R. David Murray http://www.bitdance.com ___ Python-Dev mailing list

Re: [Python-Dev] BZR mirror and pushing to Launchpad

2009-03-09 Thread R. David Murray
On Mon, 9 Mar 2009 at 10:49, Barry Warsaw wrote: -BEGIN PGP SIGNED MESSAGE- On Mar 9, 2009, at 10:48 AM, R. David Murray wrote: On Mon, 9 Mar 2009 at 09:30, Barry Warsaw wrote: > On Mar 9, 2009, at 9:02 AM, R. David Murray wrote: > > On Mon, 9 Mar 2009 at 08:15, Barry War

Re: [Python-Dev] BZR mirror and pushing to Launchpad

2009-03-09 Thread R. David Murray
On Mon, 9 Mar 2009 at 11:23, R. David Murray wrote: On Mon, 9 Mar 2009 at 10:49, Barry Warsaw wrote: -BEGIN PGP SIGNED MESSAGE- On Mar 9, 2009, at 10:48 AM, R. David Murray wrote: > On Mon, 9 Mar 2009 at 09:30, Barry Warsaw wrote: > > On Mar 9, 2009, at 9:02 AM, R. Dav

Re: [Python-Dev] PyS60 - mailbox

2009-03-10 Thread R. David Murray
Symbian/S60 ? Any work around ? Many unix systems (especially laptops) now run with the 'noatime' option set on their file systems. On my system with noatime set, atime appears to be equal to mtime, so assuming you have mtime, returning that for atime would appear to be de facto s

Re: [Python-Dev] Ext4 data loss

2009-03-11 Thread Scott David Daniels
table for a single file should probably push back out to a full sync. This would be trickier to accomplish if the using code had to suss out how to get to the fp. Clearly I have plans for a ZipFile expansion, but this could only conceivably hit 2.7, and 2.8 / 3.2 is a lot more likely. --Scott

Re: [Python-Dev] wait time [was: Ext4 data loss]

2009-03-12 Thread R. David Murray
ggressive to be on flushing data to disk should be in the hands of the _user_, not the application. Of course, the application needs some way to enable the user to make that decision, which is what I presume we are talking about supporting here. -- R. David Murray http://www.bitdance

Re: [Python-Dev] wait time [was: Ext4 data loss]

2009-03-12 Thread R. David Murray
On Thu, 12 Mar 2009 at 20:25, Antoine Pitrou wrote: R. David Murray bitdance.com> writes: By the way, I would not like to see python programmers encouraged to make the same mistake that sqlite3 made. The decision about how aggressive to be on flushing data to disk should be in the hands

Re: [Python-Dev] wait time [was: Ext4 data loss]

2009-03-12 Thread R. David Murray
On Thu, 12 Mar 2009 at 17:01, Jim Jewett wrote: On 3/12/09, "Martin v. L?wis" wrote: It is starting to look as though flush (and close?) should take an optional wait parameter, to indicate how much re-assurance you're willing to wait for. Unfortunately, such a thing would be unimplementable

Re: [Python-Dev] wait time [was: Ext4 data loss]

2009-03-12 Thread R. David Murray
I have told my laptop to only sync to disk every five minutes (as I have at times done), and it crashes (eg: the battery runs out), then anything I did during those last five minutes will be lost. If the disk then spins up more often than I told it to, I get very annoyed.

Re: [Python-Dev] Python-Dev] wait time [was: Ext4 data loss

2009-03-12 Thread R. David Murray
d not be calling fsync unless it provides a way for that behavior to be controlled by the user. -- R. David Murray http://www.bitdance.com___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsub

Re: [Python-Dev] Python-Dev] wait time [was: Ext4 data loss

2009-03-12 Thread R. David Murray
On Fri, 13 Mar 2009 at 00:35, Antoine Pitrou wrote: R. David Murray bitdance.com> writes: Seriously, though, the point is that IMO an application should not be calling fsync unless it provides a way for that behavior to be controlled by the user. But whether an application does it or not

Re: [Python-Dev] Integrate BeautifulSoup into stdlib?

2009-03-13 Thread R. David Murray
h install process?! And without providing any way to script the answers, at least that I could find!) So I'm +1 for keeping the Python stdlib as comprehensive as sensible. (Please note that last word...I've no objection to pruning things that are no longer serving a useful purp

Re: [Python-Dev] Python-Dev] wait time [was: Ext4 data loss

2009-03-13 Thread R. David Murray
On Fri, 13 Mar 2009 at 14:27, Steven D'Aprano wrote: On Fri, 13 Mar 2009 01:02:26 pm R. David Murray wrote: On Fri, 13 Mar 2009 at 00:35, Antoine Pitrou wrote: R. David Murray bitdance.com> writes: Seriously, though, the point is that IMO an application should not be calling fsync u

Re: [Python-Dev] Python-Dev] wait time [was: Ext4 data loss

2009-03-13 Thread R. David Murray
On Fri, 13 Mar 2009 at 12:27, Antoine Pitrou wrote: R. David Murray bitdance.com> writes: You will note that what I suggested was that applications that _use the sync feature_ make it user controllable. I'm sorry, but if it has nothing to do with Python itself, perhaps we could s

[Python-Dev] python-3000 is still mentioned on the mailing lists page

2009-03-17 Thread R. David Murray
I just noticed that the python-3000 list is still mentioned on http://www.python.org/community/lists/. I searched around a bit but it isn't obvious to me where other than here I should report this, so I'm reporting it here :). -- R. David Murray http://www.bi

Re: [Python-Dev] Core projects for Summer of Code

2009-03-18 Thread R. David Murray
their work can be demonstrated. They're being paid for specific projects so "Spend the Summer How about improving 2to3? Seems like that could be an interesting, challenging, useful, and rewarding project :). -- R. David Murray http://w

Re: [Python-Dev] PEP 380 (yield from a subgenerator) comments

2009-03-22 Thread R. David Murray
d would make it less likely to be accepted?) -- R. David Murray http://www.bitdance.com ___ 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

[Python-Dev] issue 2170 review

2009-03-22 Thread R. David Murray
workflow/ document, I would be happy to go through and triage issues for which that hasn't yet been done, if I can be given permission to do so. -- R. David Murray http://www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] Non-Core project: IDLE

2009-03-23 Thread Scott David Daniels
g for). In any case, even a charter of "unit tests to 50% coverage" of Idle would be a huge improvement. I've run after specific bugs in Idle, but don't really know the lay of the land. --Scott David Daniels scott.dani...@acm.org __

Re: [Python-Dev] tracker status options

2009-03-23 Thread R. David Murray
y' (and I just used it that way). It sounds like that is indeed correct but not universally known, and thus I would suggest that at a minimum this status be changed to 'close pending' to make it clearer. -- R. David Murray http://www.bitdance.com _

[Python-Dev] tracker status options

2009-03-24 Thread R. David Murray
being considered for addition to a release candidate or final release, perhaps we need an additional stage 'core review' that would come after 'patch review'. Then triage could promote issues from 'patch review' to 'core review' if triage thinks it is ready fo

Re: [Python-Dev] Integrate BeautifulSoup into stdlib?

2009-03-24 Thread R. David Murray
t been packaged for my distribution, I typically will either not use it, or I will install it somewhere other than the system default location. -- R. David Murray http://www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org http://

Re: [Python-Dev] Integrate BeautifulSoup into stdlib?

2009-03-24 Thread R. David Murray
ssues in the relatively short time I worked with it, but I could feel those issues looming in the background and it made my skin crawl :( I'm very happy that Gentoo keeps the libraries separate when it packages Java applications. -- R. David Murray http://www.bi

Re: [Python-Dev] tracker status options

2009-03-24 Thread R. David Murray
hink I would be comfortable with the current workflow, with the expectation that I would need to call for assistance less and less frequently over time, and ultimately only for those things where discussion among the devs really is needed. Hmm. Maybe I should write a short "guide

Re: [Python-Dev] tracker status options

2009-03-24 Thread R. David Murray
r than I was expecting, and I'll just have to step up the bar and learn to use it appropriately :) -- R. David Murray http://www.bitdance.com___ 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] GPython?

2009-03-27 Thread Scott David Daniels
Nick Coghlan wrote: Collin Winter wrote: That would be a bikeshed discussion of such magnitude, you'd have to invent new colors to paint the thing. Octarine. Definitely octarine :) I'm not so sure of the color itself, but its name should definitely rhyme with "orange.&

[Python-Dev] Are buffer overflows in modules deleted in py3k ignorable?

2009-03-28 Thread R. David Murray
icy is before doing that since it is a 'security' bug. -- R. David Murray http://www.bitdance.com ___ 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] Are buffer overflows in modules deleted in py3k ignorable?

2009-03-29 Thread R. David Murray
On Sun, 29 Mar 2009 at 08:35, Gregory P. Smith wrote: It'd be worthy of fixing in 2.6 since the module exists. Though honestly... who cares about Irix? Guido commented on the ticket and closed it, so I closed the other two like it. -- R. David Murray http://www.bitdanc

Re: [Python-Dev] CMake Evaluation

2009-03-30 Thread R. David Murray
:) -- R. David Murray http://www.bitdance.com ___ 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

[Python-Dev] regrtest behavior change

2009-03-31 Thread R. David Murray
py3k as well, but there will be no backport. -- R. David Murray http://www.bitdance.com ___ 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] 3.1a2

2009-03-31 Thread R. David Murray
a difference on all platforms. -- R. David Murray http://www.bitdance.com___ 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] CSV, bytes and encodings

2009-04-01 Thread R. David Murray
like the 2.6 _csv module should be handling that, and certainly intended to handle it. --David ___ 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] issue5578 - explanation

2009-04-01 Thread R. David Murray
mory is good, that's from the _socketobject class in socket.py. --David ___ 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] CSV, bytes and encodings

2009-04-01 Thread R. David Murray
to trunk that seem to indicate this case is handled correctly in terms of preserving the data. Maybe you didn't write the file such that the fields with the newlines were quoted? And of course how non-Excel applications handle that data on import can be

Re: [Python-Dev] CSV, bytes and encodings

2009-04-01 Thread R. David Murray
OK, Antoine, having merged my newline tests to py3k and having them work when lineend is set to '', as you suggested on the ticket, I'm inclined to agree with you that this is a doc bug. Skip? --David ___ Python-Dev mailing list Python

Re: [Python-Dev] CSV, bytes and encodings

2009-04-01 Thread R. David Murray
On Thu, 2 Apr 2009 at 07:23, Antoine Pitrou wrote: Le mercredi 01 avril 2009 ?? 18:22 -0400, R. David Murray a ??crit : I just added some tests to trunk that seem to indicate this case is handled correctly in terms of preserving the data. Maybe you didn't write the file such that the f

Re: [Python-Dev] Getting values stored inside sets

2009-04-03 Thread R. David Murray
ically, there's nothing saying that a "reversed" version is tried. a == b So, python calls a.__eq__(b) Now, that function does: a.key == b Since b is an object with an __eq__ method, python calls b.__eq__(a.key). That function does: a.key == b.key ie: the OP's code is ineff

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-06 Thread R. David Murray
On Mon, 6 Apr 2009 at 12:00, Jesse Noller wrote: On Mon, Apr 6, 2009 at 9:26 AM, Barry Warsaw wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Apr 6, 2009, at 9:21 AM, Jesse Noller wrote: On Thu, Apr 2, 2009 at 4:33 PM, M.-A. Lemburg wrote: On 2009-04-02 17:32, Martin v. L?wis wrot

Re: [Python-Dev] Evaluated cmake as an autoconf replacement

2009-04-07 Thread Scott David Daniels
s, and tools to strip whitespace off the end of lines as information-destroying. --Scott David Daniels scott.dani...@acm.org ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.pyt

Re: [Python-Dev] Test failures on Python 2.7 (trunk)

2009-04-11 Thread R. David Murray
d, but the tests were not updated to match. I haven't yet gotten as far as figuring out why the changes were made, but svn blames josiah.carlson for the changes (or at least the most recent ones). --David ___ Python-Dev mailing list Python-Dev@pyt

Re: [Python-Dev] headers api for email package

2009-04-13 Thread R. David Murray
es'.decode('utf-8') ...because only you know what encoding those bytes use! So you're saying that __setitem__() should not accept raw bytes? If I'm understanding things correctly, if it did accept bytes the person using that interface would need to do whatever encod

Re: [Python-Dev] [Email-SIG] Dropping bytes "support" in json

2009-04-13 Thread R. David Murray
On Tue, 14 Apr 2009 at 11:28, Greg Ewing wrote: Barry Warsaw wrote: For an Originator or Destination address, what does str(header) return? It should be an error, I think. That doesn't make sense to me. str() should return _something_. --

Re: [Python-Dev] Why does read() return bytes instead of bytearray?

2009-04-15 Thread R. David Murray
n, not the 'file and directory access section', which makes it a little harder to find when what you think you want to know about is file access...I think this is a doc bug but I'm completely unsure what would be a good fix. --David ___ Pytho

Re: [Python-Dev] Python-Dev Digest, Vol 69, Issue 143

2009-04-17 Thread Scott David Daniels
e, it's non-associative, which is a much rarer and more surprising thing. We do at least have ('1' + '2') + '3' == '1' + ('2' + '3') But we don't have: (1e40 + -1e40) + 1 == 1e40 + (-1e40 + 1) Non-associativity is

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-22 Thread R. David Murray
-platform on a VCS is a major PITA, and py3k is currently not helping the situation. You're concerns are valid, but I don't see anything in the PEP about removing the bytes APIs. Yeah, but IIRC a complete set of bytes APIs doesn't exist yet in

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-22 Thread R. David Murray
On Wed, 22 Apr 2009 at 21:21, "Martin v. L?wis" wrote: Yeah, but IIRC a complete set of bytes APIs doesn't exist yet in py3k. Define complete. I'm not aware of any interfaces wrt. file IO that are lacking, so which ones were you thinking of? Python doesn't currently provide a way to access env

<    9   10   11   12   13   14   15   16   17   18   >