Re: [Python-Dev] Accept just PEP-0426

2012-11-20 Thread Vinay Sajip
what, whereas with Python distributions, there's no central authority that has this function? Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail

Re: [Python-Dev] Keyword meanings [was: Accept just PEP-0426]

2012-12-06 Thread Vinay Sajip
, this data is not considered reliable - for example, pip runs egg_info on downloaded packages to get updated information when determining dependencies to be downloaded. If the Requires-Dist info in PKG-INFO can't be relied on, surely less critical information such as Obso

Re: [Python-Dev] Keyword meanings [was: Accept just PEP-0426]

2012-12-06 Thread Vinay Sajip
read the file contents. Regards, Vinay Sajip ___ 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] Keyword meanings [was: Accept just PEP-0426]

2012-12-06 Thread Vinay Sajip
16K, due to the possible presence of a pathologically large comment in the end record. Regards, Vinay Sajip ___ 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] question about packaging

2012-12-29 Thread Vinay Sajip
t is intended to be possible to build packaging systems on top of it. Compared to distutils2, distlib aims to make it easier to transition from existing packaging infrastructure and tools (distutils, setuptools/distribute). Some of the PEPs are still in flux

Re: [Python-Dev] question about packaging

2012-12-29 Thread Vinay Sajip
:O Actually the BitBucket repo is more active and readthedocs has the latest docs, but I do periodically update the above repo on hg.python.org. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/lis

Re: [Python-Dev] Why no venv in existing directory?

2013-01-07 Thread Vinay Sajip
Christian Tismer stackless.com> writes: > Anything I'm missing here? The use case was missed during PEP and patch review, so the feature didn't make it into 3.3. Issue #15776 raised the problem; it has been resolved and the feature should appear in Python 3.4. Regar

Re: [Python-Dev] fork or exec?

2013-01-10 Thread Vinay Sajip
s additional parameters to GnuPG, and they might use these esoteric GnuPG options. Regards, Vinay Sajip [1] http://www.gnupg.org/documentation/manuals/gnupg-devel/GPG-Esoteric-Options.html ___ Python-Dev mailing list Python-Dev@python.org http://m

Re: [Python-Dev] fork or exec?

2013-01-10 Thread Vinay Sajip
xample where fds other than 0, 1 and 2 might be used by design in not-uncommonly-used programs. From a discussion I had with Barry Warsaw a while ago, I seem to remember that there was other software which relied on these features. See [1] for details. Regards, Vinay

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

2013-02-03 Thread Vinay Sajip
t supported by PEPs, hence the interest in getting the 3 > wheel PEPs (of which the metadata PEP is the first) accepted. Likewise, I will look at the possibility of providing wheel support in distlib, once it has been accepted as a standard and the open issues (such as signature scheme) have been

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

2013-02-03 Thread Vinay Sajip
ed that distutils2/packaging also failed to make sufficient progress for the same reason. Certainly, with distlib I've tried to incorporate a lot of the setuptools functionality which developers find useful - in-package data, package exports (entry points), wrapping callables with scripts and

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

2013-02-03 Thread Vinay Sajip
27;t have the ability to build pure-Python distributions and distributions including C libs and extensions, with the ability to extend easily by third-party tools. It just needs to be done in a way which is easy to build on, so the included battery stays small and simple. Easier said than done, I k

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

2013-02-03 Thread Vinay Sajip
David is just being self-deprecating, but what if he isn't? Or perhaps that part of the page is out of date, and needs updating? I can certainly agree with the "Weak documentation" part of the assessment, but this makes it hard to assess the package as a whole. Note that I'm not s

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

2013-02-03 Thread Vinay Sajip
David Cournapeau gmail.com> writes: > You are putting the words out of the context in which those were > written: it is stated that the focus is on the general architecture OK, no offence was meant. Thanks for the clarification. Regards, Vi

[Python-Dev] Re: logging class submission

2005-01-12 Thread Vinay Sajip
There is already a TimedRotatingFileHandler which will do backups on a schedule, including daily. The correct way of doing what you want is to submit a patch via SourceForge. If the patch is accepted, then your code will end up in Python. Thanks, Vinay Sajip

Re: [Python-Dev] Stdlib Logging questions (PEP 337 SoC)

2006-06-06 Thread Vinay Sajip
ny other handlers in the stdlib itself, leaving that to user code. With this approach, by default stdlib code will behave as it does now. Even the verbose setting of DEBUG on the "py" logger will not produce any output unless user code sets its propa

Re: [Python-Dev] StreamHandler eating exceptions

2005-10-31 Thread Vinay Sajip
Gustavo Niemeyer niemeyer.net> writes: > > The StreamHandler available under the logging package is currently > catching all exceptions under the emit() method call. In the > Handler.handleError() documentation it's mentioned that it's > implemented like that because users do not care about erro

[Python-Dev] Proposed additional keyword argument in logging calls

2005-11-22 Thread Vinay Sajip
ouldn't go into the release24-maint branch.) Of course, if anyone can suggest a better way of doing it, I'm all ears :-) Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/py

Re: [Python-Dev] Proposed additional keyword argument in lo gging calls

2005-11-29 Thread Vinay Sajip
a key was present rather than absent) be thrown if one of the above attribute names is supplied as a key in the user-supplied dict. > Perhaps it makes sense to call it 'extra' instead of 'extra_info'? Fine - 'extra' it will be. > As a new feature it shoul

Re: [Python-Dev] Proposed additional keyword argument in lo gging calls

2005-12-02 Thread Vinay Sajip
re implementation details so I don't really want to encourage changing them. If you need to, it's easy enough to pick up the info from the source code for LogRecord.__init__(), which does all the setup. Regards, Vinay Sajip ___ Python-Dev mai

Re: [Python-Dev] Proposed additional keyword argument in logging calls

2005-12-02 Thread Vinay Sajip
r performance you can roll your own LogRecord subclass and do everything inline, as Skip has mentioned. And if one wants this functionality, and don't check on every call, when would be a good time to check? Regards, Vinay Sajip ___

Re: [Python-Dev] Proposed additional keyword argument in lo gging calls

2005-12-02 Thread Vinay Sajip
tom LogRecord initialiser with the same benefit as in the general case (I think). Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/opt

Re: [Python-Dev] Proposed additional keyword argument in lo gging calls

2005-12-04 Thread Vinay Sajip
ble to false to avoid expensive thread and process computations where not needed. The 'extra' mechanism will remain to provide additional diagnostic information where e.g. the same code is executed by multiple threads and there is a need to distinguish the different threads in the logging

Re: [Python-Dev] Logging enhancements

2006-01-09 Thread Vinay Sajip
example, http://docs.python.org/lib/module-logging.html has a list of 12 handlers, followed by a statement to the effect that all but StreamHandler and FileHandler are defined in the handlers module. In general, patches are gratefully received! If you don't want to invest

Re: [Python-Dev] Extension to ConfigParser

2006-01-29 Thread Vinay Sajip
inner" picked (I'm not sure who would do this, or when it would be done). I'll readily declare an interest - I've implemented an alternative hierarchical config module (which is in no way backward compatible with ConfigParser), see http://www.red-dove.com/python_config.html Rega

Re: [Python-Dev] Extension to ConfigParser

2006-01-31 Thread Vinay Sajip
#x27;t have to implement INI support. What I'd like to know is, what happens how? There are a whole lot of alternatives put forward in the ConfigParserShootout wiki page, but how do we move things forward from here? Regards, Vinay Sajip __

[Python-Dev] static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-20 Thread Vinay Sajip via Python-Dev
ule? After all, they seem for the most part to be well-known constant strings that don't need to be encapsulated in any particular C compilation unit. Regards, Vinay Sajip ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-20 Thread Vinay Sajip via Python-Dev
rget is very important for keeping public API as small as possible. I'm not suggesting that _Py_IDENTIFIERs become part of the public API. Surely it's not the case that any and every extern identifier becomes part of the public API? (I know people can misuse things and use unsuppo

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-20 Thread Vinay Sajip via Python-Dev
es this discipline/approach not apply to CPython? Regards, Vinay Sajip ___ 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

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Vinay Sajip via Python-Dev
> Moving some of the especially common identifier references into the > interpreter state struct may make sense. > Adding more process globals wouldn't be desirable though, as they're one of > the more common ways of breaking encapsulation between subinterpreters > (hence Eric's efforts to eliminat

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Vinay Sajip via Python-Dev
esumably, a PEP would be required, even though it's an implementation detail from the point of view of the language itself? Regards, Vinay Sajip ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Vinay Sajip via Python-Dev
s it's still work in progress - which is why I'm asking these questions. Regards, Vinay Sajip ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailm

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Vinay Sajip via Python-Dev
ef. I will check when I get a chance. Regards, Vinay Sajip ___ 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 archiv

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Vinay Sajip via Python-Dev
Ah - I checked, and it's there OK ... (head scratch) Regards, Vinay Sajip ___ 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.pytho

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Vinay Sajip via Python-Dev
OK - but that's just one I picked at random. There are others like it - what would be the process for deciding which ones need to be made private and moved? Should an issue be raised to track this? Regards, Vinay Sajip ___ Python-Dev mailing

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Vinay Sajip via Python-Dev
Fair enough. Pull request created: https://github.com/python/cpython/pull/16347 Regards, Vinay Sajip ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3

[Python-Dev] Passing contextual information when logging

2008-01-11 Thread Vinay Sajip at Red Dove
are, of course, garbage collected in the normal way and so impose no particular memory burden. I'll wait a few days for any comments/suggestions from this list, then (assuming no adverse comments) go ahead and add the LoggerAdapter class and

<    1   2   3   4   5