Re: [Python-Dev] dear core-devs

2018-10-01 Thread Tres Seaver
and to review larger ones, at least in part because *you* will have learned more about what is needed in terms of code style, documentation, test coverage, etc., and *they* will have learned to trust your judgement. I'm sorry it isn't easier, Tres. - -- ==

Re: [Python-Dev] Communication channels

2018-10-01 Thread Tres Seaver
munity? Tres. -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com ___ Python-Dev mailing list Pyt

Re: [Python-Dev] We cannot fix all issues: let's close XML security issues (not fix them)

2018-09-06 Thread Tres Seaver
ng up"? "help-wanted" Tres. -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com ___ Python-Dev mailing list Python-Dev@python.o

Re: [Python-Dev] PEP 572: A backward step in readability

2018-04-30 Thread Tres Seaver
s line breaks. Tres. -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] (name := expression) doesn't fit the narrative of PEP 20

2018-04-27 Thread Tres Seaver
es a good job with branch coverage. I haven't seen anything in this discussion which indicates that binding expressions will change that at all. Tres. -- === Tres Seaver +1 540-429-0999 tsea...@palladion

Re: [Python-Dev] Is it useful to update cgitb module?

2018-04-09 Thread Tres Seaver
itb.text()') which are used by non-CGI third-party libraries to render tracebacks for debugging purposes. Enhancing those methods seems pretty reasonable to me. Tres. -- ======= Tres Seaver +1 540-429-0999 tsea...@pal

Re: [Python-Dev] What's the status of PEP 505: None-aware operators?

2017-11-30 Thread Tres Seaver
r an explicit bare-except equivalent. > You would have to write: > > val = name.strip()[4:].upper() except Exception as -1 Wouldn't that really need to be this instead, for a true 'except:' equivalence: val = name.strip()[4:].upper() except BaseException as -1 Tres

Re: [Python-Dev] Tricky way of of creating a generator via a comprehension expression

2017-11-22 Thread Tres Seaver
should deprecate that syntax in 3.7, > remove in 3.8. Let's start with that? :) You guys are no fun: such a change would remove at least one evil "bwah-ha-ha" cackle from David Beazley's next PyCon talk. :) Tres. -- ======

Re: [Python-Dev] [python-committers] Enabling depreciation warnings feature code cutoff

2017-11-09 Thread Tres Seaver
your test suite exercising that imported code (which should run with all warnings enabled), but not when running the app. Seems like a reasonable choice to me. Tres. -- === Tres Seaver +1 540-429-0999 tsea...@pall

Re: [Python-Dev] Allow annotations using basic types in the stdlib?

2017-11-06 Thread Tres Seaver
k 1 eyeball is a lose. Tres. -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com ___ Pyt

Re: [Python-Dev] Translated Python documentation

2017-02-22 Thread Tres Seaver
the "Change > language: [...]" list at: > > http://php.net/echo > > I'm not asking you to take any technical decision here, I'm just > asking for an official general "support" of translated documentation. +1 for the idea. Tres. - --

Re: [Python-Dev] Constifying C API

2016-12-18 Thread Tres Seaver
be immutable) already had the fuse smoldering. FWIW I help maintain some *old* C extensions (fifteen+ years and counting), and am as likely to be affected as anyone. Tres - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladi

Re: [Python-Dev] Deprecate `from __future__ import unicode_literals`?

2016-12-16 Thread Tres Seaver
ddling, too. ;) Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQI

Re: [Python-Dev] Python 3.6 dict becomes compact and gets a private version; and keywords become ordered

2016-09-13 Thread Tres Seaver
ibrary authors have to straddle Python versions: consumers of those libraries only get to pick and choose when their code is at the "leaf" of the dependency tree (the application). Tres. - -- === Tres Seaver +1 54

Re: [Python-Dev] The devguide is now hosted on GitHub

2016-07-22 Thread Tres Seaver
rg/devguide which is on a cronjob). What is the RTD project name? Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladio

Re: [Python-Dev] PEP487: Simpler customization of class creation

2016-07-14 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/14/2016 02:10 PM, Brett Cannon wrote: > On Thu, 14 Jul 2016 at 11:05 Tres Seaver > wrote: > >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> >> On 07/14/2016 11:47 AM, Guido van Rossum wrote: >> >

Re: [Python-Dev] PEP487: Simpler customization of class creation

2016-07-14 Thread Tres Seaver
the owner/matintainer, anyway). Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQIcBAEBAgAGBQJXh9P8

Re: [Python-Dev] Proposal: explicitly disallow function/class mismatches in accelerator modules

2016-07-09 Thread Tres Seaver
kling semantics, sublcassability, etc.) might be important, too. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- V

Re: [Python-Dev] Bug in the DELETE statement in sqlite3 module

2016-06-15 Thread Tres Seaver
the wrong list" message by responding substantively to the OP's query. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"

Re: [Python-Dev] Challenge: Please break this! (a.k.a restricted mode revisited)

2016-04-10 Thread Tres Seaver
ssed the type. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQIcBAEBA

Re: [Python-Dev] async/await behavior on multiple calls

2015-12-16 Thread Tres Seaver
), which is why I hadn't written a patch for it. +1. That certainly tripped the switch for me. I wish more of the asyncio stuff would illuminate itself so smoothly. ;) Tres. - -- === Tres Seaver +1 540-429-09

Re: [Python-Dev] Status on PEP-431 Timezones

2015-07-28 Thread Tres Seaver
datetimes. Typically, the application used a "date interval" object (or a recurrence object) which generated date offsets without assuming that a "day" was 86400 seconds. Tres. - -- === Tres Seaver +1 540-4

Re: [Python-Dev] Status on PEP-431 Timezones

2015-07-27 Thread Tres Seaver
se cases, having the logged datetimes be incomparable to user-facing ones would make them less useful. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design&quo

Re: [Python-Dev] Status on PEP-431 Timezones

2015-07-27 Thread Tres Seaver
current does *not* help achieve her goal: it is an attractive nuisance she will have to learn to avoid. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEG

Re: [Python-Dev] Status on PEP-431 Timezones

2015-07-27 Thread Tres Seaver
eason: if "1 day" is the same for your usecase as "24 hours", then just do the math yourself. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Tres Seaver
t to adopt the PEP, but it I think it > would be a good reason to recommend against using such obscure syntax, > unless there's a good reason Heh, 2003 called, and they want their "list incomprehension" debate back. ;) Tres. - -- ====

Re: [Python-Dev] Overriding stdlib http package

2015-01-14 Thread Tres Seaver
What don't you simply monkeypatch sys.modules, e.g.: > > import myhttplib > > sys.modules['http'] = myhttplib > > or doesn't it work as desired? Doesn't that leave any prior imports broken (using the original module)? Tres. - -- ==

Re: [Python-Dev] PEP 481 - Migrate Some Supporting Repositories to Git and Github

2014-12-02 Thread Tres Seaver
. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAlR99X8ACgkQ+gerLs4ltQ7dpACgsGq7Rii7seJXHCOVMUymbOdL

Re: [Python-Dev] Status of C compilers for Python on Windows

2014-10-29 Thread Tres Seaver
oject. (Note that "having an MSDN subscription" is not the same as "knowing how to configure which compiler such that it can bulid extensions against an installed Python binary"). Tres. - -- ======= Tres Seaver +1

Re: [Python-Dev] Status of C compilers for Python on Windows

2014-10-29 Thread Tres Seaver
on Windows, who don't have the toolchain build their own C extensions. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.

Re: [Python-Dev] Status of C compilers for Python on Windows

2014-10-10 Thread Tres Seaver
ensions for numerical work? Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: Gnu

Re: [Python-Dev] Critical bash vulnerability CVE-2014-6271 may affect Python on *n*x and OSX

2014-09-25 Thread Tres Seaver
a "normal" linux system. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYF

Re: [Python-Dev] Bytes path support

2014-08-19 Thread Tres Seaver
; > Fair enough. I don't quite understand, though -- why is the "official > policy" to kill something that's "essential" on *nix? ISTM that the policy is based on a fantasy that "it looks like text to me in my use cases, so therefore it must be text for everyo

Re: [Python-Dev] PEP 469: Restoring the iterkeys/values/items() methods

2014-04-20 Thread Tres Seaver
uot;practicality beats purity". Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GN

Re: [Python-Dev] this is what happens if you freeze all the modules required for startup

2014-04-17 Thread Tres Seaver
did you create the zip file? > > > zip ../python35.zip -r . > > >> Any chance that you may have compressed the pyc files? I think you want 'zip -0' to avoid the compression. Tres. - -- ===

Re: [Python-Dev] Mercurial sluggishness (was: this is what happens if you freeze all the modules required for startup)

2014-04-15 Thread Tres Seaver
't (most users don't really care which Python is used to drive the standalone tool). Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design&qu

Re: [Python-Dev] Appeal for reviews

2014-04-12 Thread Tres Seaver
e merged. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Co

Re: [Python-Dev] arguments policy: **kwargs.pop()

2014-04-10 Thread Tres Seaver
z', bam='qux') bar: baz kw: {'bam': 'qux'} >>> mykw = {'bar': 'baz', 'bam': 'qux'} >>> foo(**mykw) bar: baz kw: {'bam': 'qux'} >>> mykw {'

Re: [Python-Dev] Python 4?

2014-04-03 Thread Tres Seaver
Amen! Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG

Re: [Python-Dev] collections.sortedtree

2014-03-29 Thread Tres Seaver
won't even be getting security releases from the core developers. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.co

Re: [Python-Dev] collections.sortedtree

2014-03-28 Thread Tres Seaver
-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 (poo

Re: [Python-Dev] collections.sortedtree

2014-03-28 Thread Tres Seaver
ame time) to the table to pay for them. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderb

Re: [Python-Dev] collections.sortedtree

2014-03-28 Thread Tres Seaver
cluded module based on its customers' paid-for needs. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE---

Re: [Python-Dev] Status of PEP 3145 - Asynchronous I/O for subprocess.popen

2014-03-28 Thread Tres Seaver
PyPI module. Seems perfect for the Cheesehop to me. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP S

Re: [Python-Dev] PEP 466: Proposed policy change for handling network security enhancements

2014-03-22 Thread Tres Seaver
e. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Commen

Re: [Python-Dev] Intricacies of calling __eq__

2014-03-18 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/18/2014 07:18 AM, Steven D'Aprano wrote: > Nevertheless, an __eq__ with side-effects is legal Python and may in > fact be useful. E.g., for an LRU usecase. Tres. - -- =

Re: [Python-Dev] default hg.python.org/cpython is now 3.5

2014-03-17 Thread Tres Seaver
itle&id=&%40columns=id&stage=4&creation=&creator=&activity=&%40columns=activity&%40sort=activity&actor=&nosy=&type=&components=&versions=17&dependencies=&assignee=&keywords=&priority=3&%40group=priority&status=1&%40columns

Re: [Python-Dev] Requesting pronouncement on PEP 463: Exception-catching expressions

2014-03-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/12/2014 04:49 PM, Chris Angelico wrote: > You can use hasattr() in place of AttributeError I use: getattr(subject, attrname, default)? *all the time*. Tres. - -- === T

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Tres Seaver
n altogether. > I'm neither averse to, nor in favour of, a Python 4 compatibility > break in due course I am. I don't think the community can stand another such break. Tres. - -- === Tres Seaver +1 540-429-0999

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Tres Seaver
. "Guido hates them" isn't an argument: its a ukase. Version numbers are tuples, not decimal fractions. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "

Re: [Python-Dev] cpython: whatsnew: 'U' mode deprecation (#15204).

2014-03-10 Thread Tres Seaver
Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with

Re: [Python-Dev] BugFix for "time" native module in Python 2.7

2014-02-03 Thread Tres Seaver
tails: http://docs.python.org/devguide/ Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comm

Re: [Python-Dev] Quick poll: should help() show bound arguments?

2014-01-24 Thread Tres Seaver
pec. +1 for A: it is how you would actually call the object on which 'help()' is being called. The fact that self will be passed silently is irrelevant to the caller. Tres. - -- ======= Tres Seaver +1 540-429

Re: [Python-Dev] Argument Clinic: what to do with builtins with non-standard signatures?

2014-01-24 Thread Tres Seaver
of the arguments accepted by the existing signature. > (This is being discussed right now in issue #19145.) I can't imagine justifying such an API design in the first place, but sometimes things "jest grew", rather than being designed. I'm in favor of # 1, in any case. If real backward compatibility is not feasible for some reason, then I

Re: [Python-Dev] AC Derby and accepting None for optional positional arguments

2014-01-16 Thread Tres Seaver
#3, especially in a new "major" release (w/ sufficient documentation of the change). Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"

Re: [Python-Dev] AC Derby and accepting None for optional positional arguments

2014-01-16 Thread Tres Seaver
ntation and a C extension). Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuP

Re: [Python-Dev] PEP 460: allowing %d and %f and mojibake

2014-01-14 Thread Tres Seaver
ested? Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) C

Re: [Python-Dev] Changing Clinic's output

2014-01-07 Thread Tres Seaver
needed). Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird

Re: [Python-Dev] Backward-incompatible change to random.randrange in 2.7.6

2013-12-17 Thread Tres Seaver
ss the 'int' or 'default' arguments" goes back to at least the 'whrandom.py' module in 1.5.2. ;) Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion So

[Python-Dev] Backward-incompatible change to random.randrange in 2.7.6

2013-12-17 Thread Tres Seaver
ong values when straddling Python 2.x / Python 3.x. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/

Re: [Python-Dev] unicode Exception messages in py2.7

2013-11-14 Thread Tres Seaver
backward-compatibility guarantees in Python. Or code which explicitly works around the breakage could fail (urlparse changes between 2.7.3 and 2.7.4, anyone?d( Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@pall

Re: [Python-Dev] The pysandbox project is broken

2013-11-13 Thread Tres Seaver
rk he put into the idea. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version:

Re: [Python-Dev] Checking in Argument Clinic early?

2013-10-15 Thread Tres Seaver
US this year: Guido blessed the resulting spec. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNAT

Re: [Python-Dev] Checking in Argument Clinic early?

2013-10-15 Thread Tres Seaver
Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREC

Re: [Python-Dev] Offtopic: OpenID Providers

2013-09-05 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/05/2013 04:33 PM, Glenn Linderman wrote: > On 9/5/2013 1:30 PM, Tres Seaver wrote: >> +1 for supporting Persona as an alternative to OpenID on all >> *.python.org servers. > > Is there a Python implementation of Persona I

Re: [Python-Dev] Offtopic: OpenID Providers

2013-09-05 Thread Tres Seaver
Mozilla Identity" blog: - - https://webmaker.org/ - - http://bornthiswayfoundation.org/ - - http://firebase.com/ - - https://orionhub.org/ - - http://ting.com/ - - http://www.gnu.org/software/mailman/ - - http://discourse.org/ - - https://dailycred.com/ Tres. - -- ==

Re: [Python-Dev] Offtopic: OpenID Providers

2013-09-05 Thread Tres Seaver
passwords for every site you visit. Whether a given site chooses to authroize an authenticated-but-otherwise-unknown user to do anything meaningful is logically distinct. +1 for supporting Persona as an alternative to OpenID on all *.python.org servers. Tres. - -- ======

Re: [Python-Dev] Coverity Scan Spotlight Python

2013-08-29 Thread Tres Seaver
re Python code, and 368,474 are ANSI C. That defect rate would imply 4 open defects in Python itself. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by

Re: [Python-Dev] please back out changeset f903cf864191 before alpha-2

2013-08-26 Thread Tres Seaver
se' make much more sense for a parser API, as well has having the benefit of long usage. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"

Re: [Python-Dev] PyPy3 2.1 beta 1 released

2013-07-30 Thread Tres Seaver
Linux 32/64, Mac OS X 64 or > Windows 32. Also this release supports ARM machines running Linux > 32bit - anything with ``ARMv6`` (like the Raspberry Pi) or ``ARMv7`` > (like Beagleboard, Chromebook, Cubieboard, etc.) that supports > ``VFPv3`` should work. Wow -- congratulations!

Re: [Python-Dev] Tweaking PEP 8 guidelines for use of leading underscores

2013-07-16 Thread Tres Seaver
an anything else PEP8 proscribes. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU

Re: [Python-Dev] PEP 446: Add new parameters to configure the inherance of files and for non-blocking sockets

2013-07-04 Thread Tres Seaver
inheritance" -- "inherence" is a valid term[1], but would a good deal stranger notion to apply to a file descriptor. ;) [1] https://en.wikipedia.org/wiki/Inherence Platonic'ly, Tres. - -- ======= Tres Seaver

Re: [Python-Dev] backported Enum

2013-06-15 Thread Tres Seaver
screw anybody already using the existing distributions pretty badly. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEG

Re: [Python-Dev] Clean way in python to test for None, empty, scalar, and list/ndarray? A prayer to the gods of Python

2013-06-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/15/2013 04:11 PM, Terry Reedy wrote: > On 6/15/2013 8:53 AM, Tres Seaver wrote: > >> In fifteen years of Python programming, I have literally *never* >> wanted to iterate over 'str' (or now 'bytes'). >

Re: [Python-Dev] Clean way in python to test for None, empty, scalar, and list/ndarray? A prayer to the gods of Python

2013-06-15 Thread Tres Seaver
e up. You could if '__iter__' raised an error ('NotIterable', maybe) which defeated the '__getitem__'/'__len__'-based fallback. Tres. - -- ======= Tres Seaver +1 540-429-0999

Re: [Python-Dev] Clean way in python to test for None, empty, scalar, and list/ndarray? A prayer to the gods of Python

2013-06-15 Thread Tres Seaver
w" on the underlying string) a wart and a serious bug magnet. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com

Re: [Python-Dev] Bilingual scripts

2013-05-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/28/2013 05:52 PM, R. David Murray wrote: > On Tue, 28 May 2013 12:17:49 -0400, Tres Seaver > wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> >> On 05/28/2013 11:41 AM, R. David Murray wrote: >>>

Re: [Python-Dev] Bilingual scripts

2013-05-28 Thread Tres Seaver
/pip-1.3.1-pyX.Y.egg/EGG-INFO/entry_points.txt [console_scripts] pip = pip:main pip-X.Y = pip:main Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BE

Re: [Python-Dev] Purpose of Doctests [Was: Best practices for Enum]

2013-05-20 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/19/2013 07:22 PM, Mark Janssen wrote: > On Sun, May 19, 2013 at 1:13 PM, Tres Seaver > wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> >> On 05/19/2013 10:48 AM, Guido van Rossum wrote: >>> Anyw

Re: [Python-Dev] Purpose of Doctests [Was: Best practices for Enum]

2013-05-19 Thread Tres Seaver
uot;renoormalizing" the output: https://github.com/zopefoundation/zope.testing/blob/master/src/zope/testing/renormalizing.txt Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"

Re: [Python-Dev] Purpose of Doctests [Was: Best practices for Enum]

2013-05-19 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/19/2013 10:48 AM, Guido van Rossum wrote: > Anyway, if you're doing arithmetic on enums you're doing it wrong. Hmm, bitwise operations, even? Tres. - -- ======

Re: [Python-Dev] Mysterious Python pyc file corruption problems

2013-05-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/17/2013 12:26 PM, Barry Warsaw wrote: > On May 16, 2013, at 11:48 PM, Tres Seaver wrote: > >> I can confirm at least that I have seen this problem within the last >> two weeks on Ubuntu boxes unrelated to the thw Debian

Re: [Python-Dev] Mysterious Python pyc file corruption problems

2013-05-16 Thread Tres Seaver
the last two weeks on Ubuntu boxes unrelated to the thw Debian / Ubuntu build infrastruction. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"h

Re: [Python-Dev] Mysterious Python pyc file corruption problems

2013-05-15 Thread Tres Seaver
y that kind of practice. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuP

Re: [Python-Dev] PEP-435 reference implementation

2013-05-01 Thread Tres Seaver
p hypothetical purity. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.

Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013-04-25 Thread Tres Seaver
p existing instances. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Com

Re: [Python-Dev] Why can't I encode/decode base64 without importing a module?

2013-04-25 Thread Tres Seaver
hen using Python 3 > for encoding/decoding bytestrings. There's no way around it. WHat does that snark have to do with this discussion? base64 has no more to do with character set encodings than it does the moon. It would be a "transform" (bytes -> bytes), not an "en

Re: [Python-Dev] Why can't I encode/decode base64 without importing a module?

2013-04-24 Thread Tres Seaver
transmission via e-mail. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://ww

Re: [Python-Dev] The end of 2.7

2013-04-08 Thread Tres Seaver
ng against the ported librarties wouldn't break, even on Python2: but is was *not* a trivial effort. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by

Re: [Python-Dev] Semantics of __int__(), __index__()

2013-04-03 Thread Tres Seaver
gt;> are callable, they return concrete instances of themselves. This is >> true for e.g. list, tuple, dict, bytes, str, and should also be true >> of int. Given that requirement, we still don't have to mandate that __int__ return an actual instance of the int type: the coerc

Re: [Python-Dev] Semantics of __int__(), __index__()

2013-04-03 Thread Tres Seaver
ing 'type(x) is int' rather than 'isinstance(x, int)' is speed. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http

Re: [Python-Dev] XML DoS vulnerabilities and exploits in Python

2013-02-20 Thread Tres Seaver
(not just the process parsing it) by sucking all available RAM. We are talking hard lockup, reboot-to-fix-it sorts of DOC here. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excel

Re: [Python-Dev] XML DoS vulnerabilities and exploits in Python

2013-02-20 Thread Tres Seaver
well) > > I want to be fairly conservative with 2.6.9. I believe that the same rationale should apply as that for adding hash randomization in 2.6.8: this is at least as bad a vulnerability, with many more vectors of attack. Tres - --

Re: [Python-Dev] XML DoS vulnerabilities and exploits in Python

2013-02-20 Thread Tres Seaver
eases shouldn't break those use cases, > which means the security features should be mostly opt-in for 2.7 and > 3.3. Two words: "hash randomization". If it applies to one, it applies to the other. Tres. - -- ==

Re: [Python-Dev] Fwd: PEP 426 is now the draft spec for distribution metadata 2.0

2013-02-19 Thread Tres Seaver
; 3.4 (assuming accelearated absorption) or even 3.5. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GN

Re: [Python-Dev] BDFL delegation for PEP 426 (PyPI metadata 1.3)

2013-02-03 Thread Tres Seaver
changeable, which is the only thing that makes distribute viable, in the ecosystem sense. Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"

Re: [Python-Dev] Ctypes bug fix for Solaris - too late for 2.7.3?

2013-01-27 Thread Tres Seaver
> Whoops, sorry. I thought I had remembered some recent discussion of > an upcoming 2.7 micro. Off-by-one error, or just brain freeze? :-) The upcoming micro you recall is 2.7.4. The 2.7.3 train left the station already. ;) Tres. - -- ======

Re: [Python-Dev] fork or exec?

2013-01-11 Thread Tres Seaver
volved? Tres. - -- ======= Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined

Re: [Python-Dev] fork or exec?

2013-01-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/10/2013 01:30 PM, Antoine Pitrou wrote: > On Thu, 10 Jan 2013 12:47:23 -0500 Tres Seaver > wrote: >> Why would we wander away from POSIX semantics here? There are good >> reasons not to close open descriptors (the &#x

Re: [Python-Dev] fork or exec?

2013-01-10 Thread Tres Seaver
-exec by default is probably a > reasonable decision. Why would we wander away from POSIX semantics here? There are good reasons not to close open descriptors (the 'pipe()' syscall, for instance), and there is no POSIXy way to ask for them *not* to be closed. Tres. - --

  1   2   3   4   >