Re: [Python-Dev] [Python-checkins] cpython (2.7): Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately.
I added some extra coverage for basic auth in the tests and I notice that in buildbots, some of them are throwing "error: [Errno 32] Broken pipe" error. I am looking into this and will fix this. Thanks, Senthil On Sat, Aug 16, 2014 at 2:19 PM, senthil.kumaran wrote: > http://hg.python.org/cpython/rev/e0510a3bdf8f > changeset: 92111:e0510a3bdf8f > branch: 2.7 > parent: 92097:6d41f139709b > user:Senthil Kumaran > date:Sat Aug 16 14:16:14 2014 +0530 > summary: > Fix Issue #8797: Raise HTTPError on failed Basic Authentication > immediately. Initial patch by Sam Bull. > > files: > Lib/test/test_urllib2_localnet.py | 86 ++- > Lib/urllib2.py| 19 +--- > Misc/NEWS | 3 + > 3 files changed, 90 insertions(+), 18 deletions(-) > > > diff --git a/Lib/test/test_urllib2_localnet.py > b/Lib/test/test_urllib2_localnet.py > --- a/Lib/test/test_urllib2_localnet.py > +++ b/Lib/test/test_urllib2_localnet.py > @@ -1,6 +1,8 @@ > +import base64 > import urlparse > import urllib2 > import BaseHTTPServer > +import SimpleHTTPServer > import unittest > import hashlib > > @@ -66,6 +68,48 @@ > > # Authentication infrastructure > > + > +class BasicAuthHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): > +"""Handler for performing Basic Authentication.""" > +# Server side values > +USER = "testUser" > +PASSWD = "testPass" > +REALM = "Test" > +USER_PASSWD = "%s:%s" % (USER, PASSWD) > +ENCODED_AUTH = base64.b64encode(USER_PASSWD) > + > +def __init__(self, *args, **kwargs): > +SimpleHTTPServer.SimpleHTTPRequestHandler.__init__(self, *args, > + **kwargs) > + > +def log_message(self, format, *args): > +# Supress the HTTP Console log output > +pass > + > +def do_HEAD(self): > +self.send_response(200) > +self.send_header("Content-type", "text/html") > +self.end_headers() > + > +def do_AUTHHEAD(self): > +self.send_response(401) > +self.send_header("WWW-Authenticate", "Basic realm=\"%s\"" % > self.REALM) > +self.send_header("Content-type", "text/html") > +self.end_headers() > + > +def do_GET(self): > +if self.headers.getheader("Authorization") == None: > +self.do_AUTHHEAD() > +self.wfile.write("No Auth Header Received") > +elif self.headers.getheader( > +"Authorization") == "Basic " + self.ENCODED_AUTH: > +SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self) > +else: > +self.do_AUTHHEAD() > +self.wfile.write(self.headers.getheader("Authorization")) > +self.wfile.write("Not Authenticated") > + > + > class DigestAuthHandler: > """Handler for performing digest authentication.""" > > @@ -228,6 +272,45 @@ > test_support.threading_cleanup(*self._threads) > > > +class BasicAuthTests(BaseTestCase): > +USER = "testUser" > +PASSWD = "testPass" > +INCORRECT_PASSWD = "Incorrect" > +REALM = "Test" > + > +def setUp(self): > +super(BasicAuthTests, self).setUp() > +# With Basic Authentication > +def http_server_with_basic_auth_handler(*args, **kwargs): > +return BasicAuthHandler(*args, **kwargs) > +self.server = > LoopbackHttpServerThread(http_server_with_basic_auth_handler) > +self.server_url = 'http://127.0.0.1:%s' % self.server.port > +self.server.start() > +self.server.ready.wait() > + > +def tearDown(self): > +self.server.stop() > +super(BasicAuthTests, self).tearDown() > + > +def test_basic_auth_success(self): > +ah = urllib2.HTTPBasicAuthHandler() > +ah.add_password(self.REALM, self.server_url, self.USER, > self.PASSWD) > +urllib2.install_opener(urllib2.build_opener(ah)) > +try: > +self.assertTrue(urllib2.urlopen(self.server_url)) > +except urllib2.HTTPError: > +self.fail("Basic Auth Failed for url: %s" % self.server_url) > +except Exception as e: > +raise e > + > +def test_basic_auth_httperror(self): > +ah = urllib2.HTTPBasicAuthHandler() > +ah.add_password(sel
Re: [Python-Dev] [Python-checkins] cpython (merge 3.4 -> default): Issue #22165: Fixed test_undecodable_filename on non-UTF-8 locales.
This change is okay and not harmful. But I think, It might still not fix the encoding issue that we encountered on Mac. [localhost cpython]$ hg log -l 1 changeset: 92128:7cdc941d5180 tag: tip parent: 92126:3153a400b739 parent: 92127:a894b629bbea user:Serhiy Storchaka date:Sun Aug 17 12:21:06 2014 +0300 description: Issue #22165: Fixed test_undecodable_filename on non-UTF-8 locales. [localhost cpython]$ ./python.exe -m test.regrtest test_httpservers [1/1] test_httpservers test test_httpservers failed -- Traceback (most recent call last): File "/Users/skumaran/python/cpython/Lib/test/test_httpservers.py", line 283, in test_undecodable_filename .encode(enc, 'surrogateescape'), body) AssertionError: b'href="%40test_5809_tmp%ED%B3%A7w%ED%B3%B0.txt"' not found in b'http://www.w3.org/TR/html4/strict.dtd";>\n\n\n\nDirectory listing for tmpj54lc8m1/\n\n\nDirectory listing for tmpj54lc8m1/\n\n\n@test_5809_tmp%E7w%F0.txt\ntest\n\n\n\n\n' 1 test failed: test_httpservers The underlying problem seems to be difference in which os.listdir() which uses C-API and os.fsdecode represent the decoded chars. Ref: http://bugs.python.org/issue22165#msg225428 On Sun, Aug 17, 2014 at 2:52 PM, serhiy.storchaka < python-check...@python.org> wrote: > http://hg.python.org/cpython/rev/7cdc941d5180 > changeset: 92128:7cdc941d5180 > parent: 92126:3153a400b739 > parent: 92127:a894b629bbea > user:Serhiy Storchaka > date:Sun Aug 17 12:21:06 2014 +0300 > summary: > Issue #22165: Fixed test_undecodable_filename on non-UTF-8 locales. > > files: > Lib/test/test_httpservers.py | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > > > diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py > --- a/Lib/test/test_httpservers.py > +++ b/Lib/test/test_httpservers.py > @@ -272,6 +272,7 @@ > @unittest.skipUnless(support.TESTFN_UNDECODABLE, > 'need support.TESTFN_UNDECODABLE') > def test_undecodable_filename(self): > +enc = sys.getfilesystemencoding() > filename = os.fsdecode(support.TESTFN_UNDECODABLE) + '.txt' > with open(os.path.join(self.tempdir, filename), 'wb') as f: > f.write(support.TESTFN_UNDECODABLE) > @@ -279,9 +280,9 @@ > body = self.check_status_and_reason(response, 200) > quotedname = urllib.parse.quote(filename, errors='surrogatepass') > self.assertIn(('href="%s"' % quotedname) > - .encode('utf-8', 'surrogateescape'), body) > + .encode(enc, 'surrogateescape'), body) > self.assertIn(('>%s<' % html.escape(filename)) > - .encode('utf-8', 'surrogateescape'), body) > + .encode(enc, 'surrogateescape'), body) > response = self.request(self.tempdir_name + '/' + quotedname) > self.check_status_and_reason(response, 200, > data=support.TESTFN_UNDECODABLE) > > -- > Repository URL: http://hg.python.org/cpython > > ___ > Python-checkins mailing list > python-check...@python.org > https://mail.python.org/mailman/listinfo/python-checkins > > ___ 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] Help with finding tutors for Python, Linux, R, Perl, Octave, MATLAB and/or Cytoscape for yeast microarray analysis, next generation sequencing and constructing gene interaction networ
On Saturday, January 3, 2015 at 7:06 PM, thomas hahn wrote: > Help with finding tutors for Python, Linux, R, Perl, Octave, MATLAB and/or > Cytoscape for yeast microarray analysis, next generation sequencing and > constructing gene interaction networks This is an inappropriate list to seek out for those folks. python-dev is dedicated to development of python language itself. Please ask python-us...@python.org -- Senthil Kumaran ___ 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] [python-committers] Cherry picker bot deployed in CPython repo
On Tue, Sep 5, 2017 at 6:10 PM, Mariatta Wijaya wrote: > Hi, > > The cherry picker bot has just been deployed to CPython repo, codenamed > miss-islington. > > miss-islington made the very first backport PR for CPython and became a > first time GitHub contributor: https://github.com/python/cpython/pull/3369 > > > Thanks Mariatta. This is an awesome contribution. It's going to extremely helpful. -- Senthil ___ 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] bugs.python.org updated
On Wed, Sep 27, 2017 at 6:54 PM, Ezio Melotti wrote: > > This update included ~300 changesets from upstream and required an > additional ~30 to update our instances and our fork of Roundup. A number > of features that we added to our fork over the years have been ported > upstream and they have now been removed from our fork, which is now -- > except for the github integration -- almost aligned with upstream. > > > P.S. Roundup started moving towards Python 3. > Thanks a lot for your work on this, Ezio! ___ 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 loves your Pull Requests" talk by Stéphane Wirtel
On Tue, Dec 5, 2017 at 6:25 AM, Victor Stinner wrote: > Stéphane Wirtel gave a talk last month at Pycon CA about CPython pull > requests. His slides: > >https://speakerdeck.com/matrixise/cpython-loves-your-pull-requests > > He produced interesting statistics that we didn't have before on pull > requests (PR), from February 2017 to October 2017: > > * total number of merged PR: 4204 > * number of contributors: 586 !!! (96%) > * number of core developers: 27 (4%) > * Time to merge a PR: 3 days in average, good! > * etc. > Plus, the slides were entertaining. Congrats and thanks for those stats, Stéphane. ___ 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] Guido's Python 1.0.0 Announcement from 27 Jan 1994
Someone in HackerNews shared the Guido's Python 1.0.0 announcement from 27 Jan 1994. That is, on this day, 20 years ago. https://groups.google.com/forum/?hl=en#!original/comp.lang.misc/_QUzdEGFwCo/KIFdu0-Dv7sJ It is very entertaining to read. * Guido was the release manager, which is now taken up by other core-dev volunteers. * Announcement highlighted *readable* syntax. * The announcement takes a dig at Perl and Bash. While Bourne shell is still very relevant and might continue for a long time, we recognize the difference is use cases for Bash and Python. * Documentation was LaTeX and PostScript. * Error-free builds on SGI IRIX 4 and 5, Sun SunOS 4 and Solaris 2, HP-UX, DEC Ultrix and OSF/1, IBM AIX, and SCO ODT 3.0. :-) We no longer have them. * You used WWW viewer to view the documentation and got the files via FTP. Fun times! Cheers to Guido and everyone contributing to Python. Thanks, Senthil ___ 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] [python-committers] Welcome the 3.8 and 3.9 Release Manager - Łukasz Langa!
Congrats, Łukasz. And Thank you, Ned, for managing the 3.6 and 3.7 Releases. -- Senthil On Sat, Jan 27, 2018 at 1:02 PM, Barry Warsaw wrote: > As Ned just announced, Python 3.7 is very soon to enter beta 1 and thus > feature freeze. I think we can all give Ned a huge round of applause for > his amazing work as Release Manager for Python 3.6 and 3.7. Let’s also > give him all the support he needs to make 3.7 the best version yet. > > As is tradition, Python release managers serve for two consecutive > releases, and so with the 3.7 release branch about to be made, it’s time to > announce our release manager for Python 3.8 and 3.9. > > By unanimous and enthusiastic consent from the Python Secret Underground > (PSU, which emphatically does not exist), the Python Cabal of Former and > Current Release Managers, Cardinal Ximénez, and of course the BDFL, please > welcome your next release manager… > > Łukasz Langa! > > And also, happy 24th anniversary to Guido’s Python 1.0.0 announcement[1]. > It’s been a fun and incredible ride, and I firmly believe that Python’s > best days are ahead of us. > > Enjoy, > -Barry > > [1] https://groups.google.com/forum/?hl=en#!original/comp. > lang.misc/_QUzdEGFwCo/KIFdu0-Dv7sJ > > > ___ > python-committers mailing list > python-committ...@python.org > https://mail.python.org/mailman/listinfo/python-committers > Code of Conduct: https://www.python.org/psf/codeofconduct/ > > ___ 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 (merge 3.4 -> default): null merge with 3.4
On Sunday, June 14, 2015 at 6:43 PM, Ned Deily wrote: > Senthil, > > There is now an active 3.5 branch, so the correct current order of > merging is: > > 3.4 -> 3.5 > 3.5 -> default > > I've checked in a couple of null merges to try to fix things. Oh! Missed that. Sorry, for the trouble. I will update my local branches and follow the process. 3.4 -> 3.5 3.5 -> default Thank you! Senthil ___ 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] How far to go with user-friendliness
On Tue, Jul 14, 2015 at 5:06 AM, Dima Tisnek wrote: > https://bugs.python.org/issue21238 introduces detection of > missing/misspelt mock.assert_xxx() calls on getattr level in Python > 3.5 It was controversial when it got committed too. Discussions happened in python-committers and IRC. Michael is the BDFL of mock and felt alright with the change. The sad part is once introduced and released, deprecation takes more time. ___ 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] Code formatter bot
On Tue, Jan 19, 2016 at 12:59 PM, francismb wrote: > Pros, Cons, where could be applicable (new commits, new workflow, it > doesn't make sense), ... > -1. formatting should be done by humans (with the help of tools) before committing. It should not be left to a robot to make automatic changes. We already some pre-commit hooks which do basic checks. If anything more automated is desirable then enhancement to the pre-commit hooks could be the place to look for. As far as I know, none of the core devs have expressed any complaints the pre-commit hooks. -- Senthil ___ 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] Very old git mirror under github user "python-git"
> On Feb 27 2016, at 2:47 pm, Ian Leewrote: > > Perhaps the better / easier solution is to promote the *real* “Sem-official read-only mirror of the Python Mercurial repository” [1] ? And perhaps this goes away entirely (in time) with PEP-512 [2]? We will be working to promote the github repo, once the migration and PEP-512 is complete. Promoting semi-official repo in the interim (as opposed the active one in hg.python.org) does not seem like a good idea. This thread about claiming ownership of look-alike repo and we could concentrate our discussion on that alone. FWIW, that old look-alike (python-dev) repo as been in existence for years now and it has not caused any confusion. Once python moves to github, I think, we can ask for some logo or some kind of validation that will help users easily identify the originality. Thanks, Senthil ___ 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] The next major Python version will be Python 8
On Thu, Mar 31, 2016 at 2:40 PM, Victor Stinner wrote: > For example, rename utils.py to utils_noqa.py. A side > effect is that you have to update all imports. For example, replace > "import django" with "import django_noqa". After a study of the PSF, > it's a best option to split again the Python community and make sure > that all users are angry. > We have a huge production code base, lacking tests, running successfully against python2.4. We would like to upgrade our code base to python 8 as we consider it as most sensible update the python developers have ever done till date. Is there is setuptools addition that can automatically change our imports to _noqa ? Thank you! Senthil ___ 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] Most 3.x buildbots are green again, please don't break them and watch them!
On Wed, Apr 13, 2016 at 4:40 AM, Victor Stinner wrote: > Last months, most 3.x buildbots failed randomly. Some of them were > always failing. I spent some time to fix almost all Windows and Linux > buildbots. There were a lot of different issues. > > So please try to not break buildbots again and remind to watch them > sometimes: > Piling in my thanks again, Victor. This is a great gesture from you to fix all the build bots. Keeping them stable is a proper thing to do and should be expected from all committers. -- Senthil ___ 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] Tracker Etiquette
On Sat, May 7, 2016 at 4:17 PM, MRAB wrote: > I think you shouldn't delete them. It would be better just to say that > you've changed your mind and explain why. > I support this. Please leave your new comments correcting previous one and support your current stance. I think, it is alright to make revisions in comments. -- Senthil ___ 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] urllib2.HTTPBasicAuthHandler doesn't work with GitHub API
On Mon, Nov 4, 2013 at 6:11 AM, Matěj Cepl wrote: > I am not sure how widespread is this breaking of RFC, but it seems to me > that quite a lot (e.g., http://stackoverflow.com/a/9698319/164233 which > just en passant expects urllib2 authentication stuff to be useless), and > the question is whether it shouldn't be documented somehow and/or > urllib2.HTTPBasicAuthHandler shouldn't be modified to try add > Authenticate header first. > > Any suggestions? > Please file a bug report at bugs.python.org stating this. urllib2 tries to follow the RFC as much as possible, but ofcourse consider's de-facto standards and adopts to it. This can be documented for 2.x and can be 'fixed in 3.4. HTH, Senthil ___ 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] [Python-checkins] cpython (3.3): Issue #19092 - Raise a correct exception when cgi.FieldStorage is given an
On Sat, Jan 11, 2014 at 11:53 PM, Nick Coghlan wrote: > You may want to tweak the tracker so the comment ends up on the > appropriate issue (#19092 is something else entirely) > Yes. This was supposed to be #19097. My bad. ___ 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] death to 2.7; long live 2.7
On Wed, Apr 9, 2014 at 9:22 PM, Benjamin Peterson wrote: > Instead dealing 2.7 will just be completely optional for core > developers. (The much anticipated vendor support arrives at this point.) > Could you clarify your thoughts a bit on the "completely optional" part. What if vendors take a really long time to come to support the latest minor release? AFAIK, the discussion centered around keep it "alive", for some definition of alive. We did not define what do we mean by 'alive'. Bringing back all the security related enhancement features seem ok. Guido's last email talks about all the other compatibility goodies /tools targeting 2.7 that may or may not go with 2.7 code base itself. -- Senthil ___ 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] death to 2.7; long live 2.7
On Wed, Apr 9, 2014 at 10:02 PM, Benjamin Peterson wrote: > I consider the security enhancement/feature question to be in the domain > of PEP 466. If security stuff lands in the 2.7 branch, it will get > released eventually is all I'm saying. > Thanks for the response. >> Instead dealing 2.7 will just be completely optional for core developers I was worried about this part, that if bug-fixes are optionally back-ported, then we may end up a inconsistent, undesirable state. Instead it could be that bug-fixes fixes will be back-ported as long as it is alive (and folks seem be excited about keep it alive for a long long term). -- Senthil ___ 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] Language Summit notes
Here are my notes that I jotted down from the back row. Forgive me for any mistakes. (As I shared in the intro, I am trying to get back and keep up. :)) Python Release Process: * Larry Hastings goes for vote for shortend release process. But Guido does not seem to be excited about it. Would go for go for email based voting. PyPy: * Alex Gaynor mentioned about the 7th iteration of STM - Software Transactional Memory that is being worked on. * PyPy is targetting go from 2.7.3 to 2.7.6 and Brett teases about STM enabled CPython interpreter? Iron Python: * Dino gave an updated on IronPython, 2.7.5 is under development, 3.x is under development (/will be under development soon) * Contributions from community has grown recently. MaL encouraged them to submit for a funding proposal. Jython: * Support for Buffer Protocol, For Python 3 support. cffi backend for Python is coming up. Discussion about splitting the standard library: * IronPython, Pypy say that it is not a priority request for them. Packaging: * Nick Coghlan shares his experience on how difficult is get the packing right. Every agrees and kind of recognize that recent efforts are in the right direction. Mentioned about https://pypi-preview.a.ssl.fastly.net/ and wheels packaging format. * Well maintained docs at http://packaging.python.org/en/latest/ - Python packaging user guide. * The focus/goal is not get new users easy to understand python ecosystem and use python packages. Pyston: * Kevin shared his ideas and updates on Pyston. Folks suggested about using the speed.pypy.org benchmarks to measure the effort. MyPy: * The optional static typing using functional annotations demonstrated by MyPy interested a number of developers. Few felt that it would be a nice to have feature in Python 3.5 It basically means identify what's lacking in current function annotations and work on enhancing it. * Thomos Wouters suggested to Larry Hastings that Argument clinic could be enhanced to support such a feature. * Interested parties should get together on a python type checking mailing list. Features we care about 3.5: ☐ bytes formatting redux ☐ Binary mode cleanup ☐ Type Annotations. ☐ Improved tooling AI based tooling to convert 2.x code to 3.x and provide better error messages. (Sounds exciting!) On Wed, Apr 9, 2014 at 9:08 PM, Guido van Rossum wrote: > To anyone who took notes at the language summit at PyCon today, even if > you took them just for yourself, would you mind posting them here? It would > be good to have some kind of (informal!) as soon as possible, before we > collectively forget. You won't be held responsible for correctness. > > Here are some of my own recollections (I didn't take notes but I have a > decent memory): > > - Packaging sucks, but we're improving, and we're actually doing better > than other dynamic languages. > > - Kevin Modzelewski answered questions about Pyston, a new (very early > stage) Python VM based on the new LLVM JIT engine (which is much different > from what defeated Unladen Swallow). Alex Gaynor seemed unconcerned. :-) > > - Jukka Lehtosalo gave a talk and answered questions about mypy, his > design and implementation of pragmatic type annotations (no new syntax > required, uses Python 3 function annotations). See mypy-lang.org. In > response, Greg P Smith pointed people to a similar project from Google, > https://github.com/google/pytypedecl, which has annotations in a separate > file (hence amenable to Python 2). Larry Hastings brought up that Argument > Clinic (a new way of specifying signatures for C extensions), released as > part of 3.4) encodes similar information in the docstring of C functions. > > - Maybe this is should be the year when we start getting agreement on a > standard use of function annotations to specify argument and return types, > now that we seem to have a somewhat critical mass of experience with > annotations. > > - We should make an effort to publicize that we're NOT sunsetting Python > 2.7 just yet; support will continue (hopefully with ample support from > distro vendors), and someone should update PEP 373. (Unclear what the new > EOL is but we should definitely rescind the currently published schedule.) > > - We (I) still don't want to do a 2.8 release, and I don't want to > accelerate 3.5, but I do think we should make things better for people who > have to straddle Python 2 and 3 in a single codebase, by developing more > tools, and by security and possibly installer updates to 2.7 (PEP 466). > > - Some suggestions that were made: PSF financial support for tool > development and/or porting, add more "-3" warnings to a future Python 2.7 > release, additional 2to3 fixers to help convert Python-2-only code to > Python-2-and-3-single-source code, a separate linter, a sumo 2.7 > distribution that includes all known backported-from-Python-3-stdlib > packages, adding ensure_pip to the 2.7.7 stdlib, and several more
[Python-Dev] Season of Docs
Hello Python Developers, Google is running a program called Season of Docs ( https://developers.google.com/season-of-docs/) to encourage technical writers to improve the documentation of Open Source Projects. As Python-Dev, and Python Software Foundation, do you think: a) We should participate? b) If yes to a), are you willing to be a mentor and identify project ideas? If you are willing to mentor and have project ideas, please let us know and we can think about the next steps. The deadline for org application is April 23, 2019. This discussion started here https://discuss.python.org/t/will-python-apply-for-season-of-docs-and-allow-suborgs/ Thank you, Senthil ___ 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] [python-committers] PEP 581 (Using GitHub issues for CPython) is accepted
On Wed, May 15, 2019 at 6:44 PM Ezio Melotti wrote: > > I share the same concerns: 1) the PEP contains several factual errors. I pointed this out during > the core-sprints last year and more recently Berker pointed out some > on GitHub: https://github.com/python/peps/pull/1013 ; > 4) Berker is/was writing a competing PEP, in order to address the > problems of PEP 581 more effectively since his comments on GitHub > haven't been addressed; > This concerns me a bit. The PEP/announcement acknowledges the work Ezio and Berker. However, it does not express if the PEP had addressed their review comments or had the current maintainers on-board with the proposal. I was of the assumption that if the current maintainers (/domain experts) were on-board, then it will be easier for the rest of us to adopt the new changes. ___ 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: When to remove BytesWarning?
On Sat, Oct 24, 2020 at 6:18 AM Christian Heimes wrote: > > > In my experience it would be useful to keep the bytes warning for > implicit representation of bytes in string formatting. It's still a > common source of issues in code. > I am with Christian here. Still notice a possibility of people running into this because all the Python2 code is not dead yet. Perhaps this warning might stay for a long time. > BytesWarning has maintenance costs. It is not huge, but significant. Should we know by how much so that the proposal of `-b` switch can be weighted against? Thank you, Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/Z62L5ABNQK5AYPEE6I3KTZMKEY3BC65R/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: My thoughts on Pattern Matching.
On Fri, Nov 6, 2020 at 7:05 AM Thomas Wouters wrote: > > The primary reason I care about the integration with the rest of Python is > because it limits the future expansion of the language. > I did not think as deeply as you have done on this subject here. My exposure to pattern matching was in Scala and I didn't notice/observe that this feature was considered a limitation in future expansion or language or even usage in ecosystem. Also, for the examples that you mentioned, I thought, those would be an _extreme cases_ (?) of writing some really hard to comprehend code by the developer? Because in most common cases in Scala that I could come across, the pattern matching was used mostly in routing logic based on the decision. Seldom on complex assignments. But, my exposure is limited. If you augment your arguments by sharing some example code base evolutions in languages that have already supported pattern matching, it might help us understand further. Thanks for sharing the context of this email with SC standings. Thank you, Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/ZALNYEYRGV6I3ZZHGTNESBPVXV73O626/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Remove formatter module
+1 vote on removal. No concerns. It's been deprecated for a long time now (since 3.4). On Tue, Nov 24, 2020 at 3:54 AM Victor Stinner wrote: > Since importing the module emits a DeprecationWarning at runtime since > Python 3.4 and the deprecation is properly documented, IMO it's fine > to remove it right now: > https://docs.python.org/dev/library/formatter.html > > I never used this module, I don't know what it is. > > "Formatter objects transform an abstract flow of formatting events > into specific output events on writer objects." > > Victor > > Le mar. 24 nov. 2020 à 06:42, Dong-hee Na a écrit > : > > > > A few days ago, Terry J. Reedy created the issue about the formatter > module. > > (https://bugs.python.org/issue42299) > > > > The issue is mainly about testing code but also discussing the removal > of the module. > > I noticed that the formatter module was deprecated in 3.4 and it was > originally scheduled to be removed in 3.6. But the removal was delayed > until 2.7 EOL. > > > > Now 2.7 is EOL and there is no usage in stdlib. > > So IMHO, it is good to remove the formatter module in 3.10 > > > > So before removing it, I would like to hear the concern. > > > > Regards, > > Dong-hee > > > > > > ___ > > Python-Dev mailing list -- python-dev@python.org > > To unsubscribe send an email to python-dev-le...@python.org > > https://mail.python.org/mailman3/lists/python-dev.python.org/ > > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/ZEDIBBYCWI34GVOXDEUYXQY3LYXOFHA2/ > > Code of Conduct: http://python.org/psf/codeofconduct/ > > > > -- > Night gathers, and now my watch begins. It shall not end until my death. > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/CG7C333BJADUZPNRPZH7FKYJ2VP5ZTK7/ > Code of Conduct: http://python.org/psf/codeofconduct/ > ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/P2C64ZQSKYBHUB5I7CUHYD5INMNLDSCS/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Dusting off PEP 533?
Hi Paul, > Per PEP 525, I can call aclose coroutine method to cleanup the generator, but > it requires the code iterating to be aware that that closing the generator is > necessary. How about treating this as a bug for the specific use case that you mentioned, rather than a complete addition of " PEP 533 -- Deterministic cleanup for iterators". I am not certain why PEP 533 was deffered. I'd also suggest a documentation update if the details of aclose requirement is mentioned only in a PEP and not in the documentation. Thank you, Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/EPKMYH7DH5G6YR3AQHZTQKHBQF46YXLC/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Bumping minimum Sphinx version to 3.2 for cpython 3.10?
On Tue, Jan 12, 2021 at 08:38:17PM +, Julien Palard via Python-Dev wrote: > - Some functions declarations are lacking a backslash, like >print(*objects, sep=' ', end='n', ... > > Which is bad. Wouldn't this a bug with Sphinx? Why would that be special cased with a flag (strip_signature_backslash)? > For the moment this is where we go, but if +1. Keeping the documentation dependency updated I noticed that you suggested not to backport this PR https://github.com/python/cpython/pull/24142 * Would that mean we have to careful not to use/merge sphinx features like `no-trim-doctest-flags` to older docs? * What would it take to keep all active versions of Cpython docs build at the same min version (possibly 3.2)? As Cpython developer, I see nothing bad, but platform maintainers seem to have some concerns, and it will be good to see points against this. Thank you, Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/KSMNZLNDTNOIKADXBCAGXFE5MTQTF42Q/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Bumping minimum Sphinx version to 3.2 for cpython 3.10?
On Wed, Jan 13, 2021 at 12:28:42AM +0100, Victor Stinner wrote: > The alternative is to keep Sphinx 2 support, use > strip_signature_backslash and don't use :no-trim-doctest-flags: ? +1. :no-trim-doctest-flags: was introduced to python docs only recently, so not using that is a reasonable suggestion. I support keeping same Sphinx version across all the supported python versions. -- Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/HS2OYF7QMSOEQDDYTXGEA7HRQDCYF6X6/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Bumping minimum Sphinx version to 3.2 for cpython 3.10?
On Wed, Jan 13, 2021 at 02:53:30AM +0300, Ivan Pozdeev via Python-Dev wrote: > > I support keeping same Sphinx version across all the supported python > > versions. > > This is not a sustainable route since this way, there's no way to change the > version at all. > By supported, I mean the active versions that we backport patches to. Same as what Victor said. -- Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/YF7KWOG4L7AEJWMP3WY7YCXAICC63LDL/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Bumping minimum Sphinx version to 3.2 for cpython 3.10?
On Fri, Jan 15, 2021 at 08:24:54AM +, Julien Palard via Python-Dev wrote: > I think the best way to handle this is to make the three next releases > (3.10, 3.11, 3.12) Sphinx 2 and Sphinx 3 compatible, this would gather > requiered benefits: > > If this plan is OK for everyone, I'll try a PR soon™ to make this > compatibility with Sphinx2/3 land in 3.10. > This sounds great. It makes one less thing to worry about from a CPython developer perspective. -- Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/SATCMWFM7WKW7A2V2TXR4ICX52ZZ6DRG/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Upcoming 3.7.10 and 3.6.13 Security Releases
On Wed, Jan 20, 2021 at 7:22 PM Ned Deily wrote: > > > In the meantime, another potential security issue has arisen that might > impact 3.7 and 3.6 so I'm going to continue to hold off on the releases > until we have a resolution of that. > > https://bugs.python.org/issue42967 > > And another security issue was brought up to our attention here (today): https://bugs.python.org/issue42987 ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/GICSB5JVN5EJ3CUOCUSZV5JPXY7P3N7Z/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: New sys.module_names attribute in Python 3.10: list of all stdlib modules
On Mon, Jan 25, 2021 at 06:46:51PM +0300, Ivan Pozdeev via Python-Dev wrote: > There's a recurring error case when a 3rd-party module > overrides a standard one if it happens to have the same name. Any argument and expectation is off in this case. We shouldn't worry about such scenarios. -- Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/OA6HOHTGG2I7QGP7QRMCYRHGOKWZL6D4/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: [python-committers] [ Release ] Python 3.10a5 and release blockers
Hi Pablo, Looks like alpha 5 was scheduled for today. I am willing to take care of this issue - https://bugs.python.org/issue42967 The patch is reasonable, but the changes are backwards incompatible. Since it is with an underlying parsing library, the decision here is tricky one way or the other. I will let you know if I decide it for 3.10, an easier decision than backport. I just have to see how other libraries took care of this issue. But if for some reason, we couldn't include in -alpha5, we should plan -alpha6. Thanks, Senthil On Mon, Feb 1, 2021 at 11:48 AM Pablo Galindo Salgado wrote: > Hi everyone, > > I am prepared to start the release process for Python 3.10 a5 but there > are several > issues marked as release blockers that affect 3.10: > > * https://bugs.python.org/issue38302 > * https://bugs.python.org/issue42634 > * https://bugs.python.org/issue41490 > * https://bugs.python.org/issue42967 > * https://bugs.python.org/issue42899 > > Although release blockers mainly apply to important releases, there are > two are security issues and some > of the rest involve changes in bytecode or the tracing machinery, so I > would prefer if these issues are addressed > before making a new release as many maintainers are waiting for the next > alpha to test again the bugs that they > reported. > > Please, if you are involved in any of these issues try to see if is > possible to address them or if you think > is ok to release the alpha without a fix, please, drop me an email stating > so. > > Thanks, > > Regards from cloudy London, > Pablo Galindo Salgado > ___ > python-committers mailing list -- python-committ...@python.org > To unsubscribe send an email to python-committers-le...@python.org > https://mail.python.org/mailman3/lists/python-committers.python.org/ > Message archived at > https://mail.python.org/archives/list/python-committ...@python.org/message/ZVOFYB5K6UZZLQXQCCCWAJNLTMBF5Z63/ > Code of Conduct: https://www.python.org/psf/codeofconduct/ > ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/CMHC46SZZGJ37UAYWLPG6OAFVXAK3WWF/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Python 0.9.1
On Tue, Feb 16, 2021 at 1:58 PM Skip Montanaro wrote: > > I then pushed the result to a Github repo: > > https://github.com/smontanaro/python-0.9.1 > Wow. Was white-space not significant in this release of Python? I see the lack of indentation in the first Python programs. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/OBWWV3HP7GI24SL6NDN7UPUFTHRKJFXZ/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Happy 30th Birthday, Python!
On Sun, Feb 21, 2021 at 12:05 AM Larry Hastings wrote: > I guess we forgot to observe it yesterday, but: February 19, 1991, was the > day Guido first posted Python 0.9.1 to alt.sources: > > https://groups.google.com/g/alt.sources/c/O2ZSq7DiOwM/m/gcJTvCA27lMJ > > Happy 30th birthday, Python! Happy 30th Birthday, Python. Congrats to Guido. The way software was distributed then seems incredible. It's been an exciting journey for all of us. -- Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/KAZXZNP7RC7K4B7W5VIRJWBYJCBNIK7Z/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Requesting Review of Pull Request
Hello Nathan, The PR is merged. Thank you for contributing and following up here. -- Senthil On Tue, Mar 02, 2021 at 07:50:13PM +, Nathan Beals wrote: > Good Afternoon Python Devs, > > I'm requesting that someone review the pull request linked to this issue: > https://bugs.python.org/issue42994 (github PR: https://github.com/python/ > cpython/pull/24287). > > I'm following the contributing guidelines instructions to email this address > if > the PR hasn't been addressed in a month (+1 week after pinging it again). > Thankfully this PR is tiny, at 9 lines total (and even then, it's just 9 new > entries to a dictionary). > > Thank you for your time, > Nathan Beals > > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/4RKSXPPL3PTTYQAI5PG7EFPGPA5PUMHF/ > Code of Conduct: http://python.org/psf/codeofconduct/ ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/TMM462KMKSC3XTHIZ2ANRUWYQS2UMNEY/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Suggestion About Python Syntax
Hello Anthony, Welcome to this list. :) Python is written in C, and developers use semicolons and branches in C. However, when Guido designed Python, he specifically wanted white-space indented language. The idea was it will be less intimidating to beginners and more readables. It seems to have been a great decision and as the design is still going strong and is unlikely to change in future. On Wed, Mar 3, 2021 at 9:48 AM Anthony Farino wrote: > > I love the Python scripting language, but there’s something that would make > it much better. Almost every other programming language uses curly braces to > enclose blocks of code and semicolons after the lines of code. That means > that: > > You can have as much white space as you want. > > You don’t need to worry about indentation, and you can indent whenever you > want. > > I hope that you consider these issues and fix them in Python 4 (if you ever > make it). > > Sincerely, Anthony, age 10. > > > > -- >mmm# >## m mm mm#mm # mmmmm m mm m m > # # #" ###" # #" "# #" # "m m" > #mm# # ### # # # # # #m# > ## # #"mm # # "#m#" # # "# > m" >"" > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/RZR2O3Y6Z6RCAXW72Y4WPWZ6HN3MYVFJ/ > Code of Conduct: http://python.org/psf/codeofconduct/ ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/DZC4DZIASQJKZSAYV3VJP5WRZKEGMRFC/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Requesting Review for GH-24118 (Fix for bpo-27820)
On Sat, Mar 06, 2021 at 02:08:05PM +0700, Pandu Poluan wrote: > I have submitted a PR, GH-24118 > (https://github.com/python/cpython/pull/24118), > on January 5. > > It's a relatively simple patch that fixes smtplib.SMTP logic for AUTH LOGIN, > alongside a fix for the test for that class. I've reviewed it. I have a question on the change, and once that is addressed, we could move forward with this. The premise of the PR looks right. Thanks, Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/OPW2XHJU343RWKTK4HOIATD7EDEPTQS5/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Merge Request Review Reminder
On Mon, Feb 15, 2021 at 8:36 AM Faisal Mahmood wrote: > > Hello, > > I hope you are all well, I currently have an issue / merge request that has > become stale and as per the guidelines I am sending this e-mail to request > someone to review it for me please. > > Issue Number: 42861 (https://bugs.python.org/issue42861) > Pull Request: 24180 (https://github.com/python/cpython/pull/24180) > Could you share some motivation references that could help explain why this next_network method will be helpful? Is this common enough to warrant a method in the stdlib IP-Address module? If there is prior-art in other external libraries or libraries of other languages, that will be helpful to know and review too. I had looked at this a month ago when you pinged for review, but I could not immediately determine the benefit of having this method in stdlib, irrespective of implementation correctness or API Signature. I also lack extensive experience with ipv6. Thanks, Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/OABKRDE2JH2J42DIM2HAIRFDHDF6WFOA/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Merge Request Review Reminder
Given this discussion, I am motivated to review this and merge this into stdlib. The conversation was helpful to me to understand for utility value of the method introduced by the patch. I had stated in the PR as well. Thank you, both, Faisal and Jakub. On Mon, Mar 22, 2021 at 5:40 PM Jakub Stasiak wrote: > > > > > On 22 Mar 2021, at 13:07, Faisal Mahmood wrote: > > > > Thanks Jakub, I wasn't aware of the netaddr library but just gave it a play > > and it does seem very similar and I think it's very useful and completely > > valid. > > > > I think the subtle difference is also that my implementation allows you to > > specify the next prefix as well, so it won't just find the next prefix of > > the same size. This is a common use case when you are trying to find free > > address spaces, you will need to look for networks of different sizes > > depending on what you are doing. > > > > Currently, you could say that you were given a network of 10.200.20.0/24 > > and asked to split this network into a bunch of /26 networks, you can do > > this easily using the subnets method: > > >>> list(IPv4Network("10.200.20.0/24").subnets(prefixlen_diff=2)) > > [IPv4Network('10.200.20.0/26'), IPv4Network('10.200.20.64/26'), > > IPv4Network('10.200.20.128/26'), IPv4Network('10.200.20.192/26')] > > > > That is very simple and effective, but not a very realistic example of how > > you would split networks up. Given how limited the IPv4 address space is, > > normally you may have to use that /24 block for multiple things, so can't > > just simply split it up into /26's, you may need to instead get two /30's, > > one /27 and one /25. Currently, I don't think there is any straightforward > > way to do this without a 'next_network' method that I have implemented. > > > > Example, given a network of 10.200.20.0/24, to get two /30's out of it, one > > /27 and one /25, I would do the following with my method: > > >>> first_network = IPv4Network("10.200.20.0/30") > > # first_network = IPv4Network("10.200.20.0/30") > > > > Then get the next one (note not specifying prefix just gives me another /30 > > - i.e. same prefix size): > > >>> second_network = first_network.next_network() > > # second_network = IPv4Network("10.200.20.4/30") > > > > Then I would need to get the /27, so do this: > > >>> third_network = second_network.next_network(new_prefixlen=27) > > # third_network = IPv4Network("10.200.20.32/27) > > > > Finally the /25: > > >>> fourth_network = third_network.next_network(new_prefixlen=25) > > # fourth_network = IPv4Network("10.200.20.128/25) > > > > When you are dealing with the same prefix size for each new network, I > > think it's just a simple case of adding 1 to the broadcast address each > > time, but when you have different prefix sizes it's a bit more complicated. > > > > On Sat, 20 Mar 2021 at 22:04, Jakub Stasiak wrote: > > > > > > > > I don’t know if this is gonna support Faisal’s cause (“It’s used in a third > > party library in the wild, that means stdlib could use it!”) or the exact > > opposite (“it’s provided by a third party library, so may as well use third > > party library and stdlib doesn’t necessarily need this”) but the quite > > popular netaddr library that I’m a maintainer of does have IPNetwork.next() > > and IPNetwork.previous() methods[1][2]. The main difference is that in > > netaddr: > > > > * next() and previous() can produce networks arbitrary number of steps > > away, not just the first closest network forwards or backwards > > * going from a network to its supernetwork or subnetwork is done through a > > separate set of supernet() and subnet() methods[3][4] > > > > I can’t say how many library users actually consume this particular section > > of the API, of course, but I expect this API to be used and it seems rather > > useful. > > > > Best, > > Jakub > > > > [1] https://netaddr.readthedocs.io/en/latest/api.html#netaddr.IPNetwork.next > > [2] > > https://netaddr.readthedocs.io/en/latest/api.html#netaddr.IPNetwork.previous > > [3] > > https://netaddr.readthedocs.io/en/latest/api.html#netaddr.IPNetwork.subnet > > [4] > > https://netaddr.readthedocs.io/en/latest/api.html#netaddr.IPNetwork.supernet > > Thank you for the explanation – now I understand better how that prefix > parameter is useful. > > It’s not *that* difficult to emulate this using netaddr, there’s an extra > switch-to-supernet or switch-to-subnet step but that’s about it: > > >>> from netaddr import IPNetwork > >>> first_network = IPNetwork("10.200.20.0/30") > >>> second_network = first_network.next() > >>> second_network > IPNetwork('10.200.20.4/30') > >>> third_network = second_network.supernet(27)[0].next() > >>> third_network > IPNetwork('10.200.20.32/27') > >>> fourth_network = third_network.supernet(25)[0].next() > >>> fourth_network > IPNetwork('10.200.20.128/25’) > > That said, if merging this into the Python stdlib doesn’t work out I’m open > to improving netaddr’s interface to b
[Python-Dev] Re: bz2.BZ2File doesn't support name?
There is an open bug report https://bugs.python.org/issue24258 I guess it was overlooked. It could be a good task for someone interested. Please add me as a reviewer if you submit a patch, I can help review and move it forward. On Mon, Apr 26, 2021 at 9:22 PM wrote: > I was surprised recently to discover that BZ2File (at least in 3.7) > doesn't have a name attribute. Is there some fundamental reason name > couldn't be supported, or is it just a bug that it wasn't implemented? > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/N3Q7AN5ISRGKS76GT4YSJX2SV6BNQIWM/ > Code of Conduct: http://python.org/psf/codeofconduct/ > ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/NCGH6EYRIDFANEAWDQ3KVE6LFXNS4ROV/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: bz2.BZ2File doesn't support name?
Hello Hasan, Thank you. Please submit your patch as a PR in Github. https://devguide.python.org/pullrequest/ Also, why did you have a self.filename and (getter?) as name. You could set the attribute as name. Thank you, Senthil On Tue, Apr 27, 2021 at 12:32 AM Hasan Diwan wrote: > I just added the .name property to bz2.Bzip2File and added a test to > verify it. -- H > > On Mon, 26 Apr 2021 at 21:40, Senthil Kumaran wrote: > >> There is an open bug report https://bugs.python.org/issue24258 >> >> I guess it was overlooked. It could be a good task for someone >> interested. >> Please add me as a reviewer if you submit a patch, I can help review and >> move it forward. >> >> On Mon, Apr 26, 2021 at 9:22 PM wrote: >> >>> I was surprised recently to discover that BZ2File (at least in 3.7) >>> doesn't have a name attribute. Is there some fundamental reason name >>> couldn't be supported, or is it just a bug that it wasn't implemented? >>> ___ >>> Python-Dev mailing list -- python-dev@python.org >>> To unsubscribe send an email to python-dev-le...@python.org >>> https://mail.python.org/mailman3/lists/python-dev.python.org/ >>> Message archived at >>> https://mail.python.org/archives/list/python-dev@python.org/message/N3Q7AN5ISRGKS76GT4YSJX2SV6BNQIWM/ >>> Code of Conduct: http://python.org/psf/codeofconduct/ >>> >> ___ >> Python-Dev mailing list -- python-dev@python.org >> To unsubscribe send an email to python-dev-le...@python.org >> https://mail.python.org/mailman3/lists/python-dev.python.org/ >> Message archived at >> https://mail.python.org/archives/list/python-dev@python.org/message/NCGH6EYRIDFANEAWDQ3KVE6LFXNS4ROV/ >> Code of Conduct: http://python.org/psf/codeofconduct/ >> > > > -- > OpenPGP: https://hasan.d8u.us/openpgp.asc > If you wish to request my time, please do so using > *bit.ly/hd1AppointmentRequest > <http://bit.ly/hd1AppointmentRequest>*. > Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest > <http://bit.ly/hd1AppointmentRequest>*. > > <https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1>Sent > from my mobile device > Envoye de mon portable > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/B3CCQRW7UKPK3GD7A6ZSRYNRV3CVXG6V/ > Code of Conduct: http://python.org/psf/codeofconduct/ > ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/EHDAR5JN2NIV4NEQXWJG525XUPZYNYTQ/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: expanduser('~other') reliability and future
On Wed, Apr 28, 2021 at 05:44:06PM +0100, Barney Gale wrote: > From a bit of googling, Python seems to be an outlier in having a function to > retrieve another user’s home directory. > Any views on this? Is expanduser(‘~other’) fixable and worth fixing? If not, > should we deprecate this functionality? Or something else? +1 to deprecate this functionality. This does not seem to be common usecase to be present in stdlib, and reliablity across platform seems difficult. -- Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/CGVRT4A7XUOEVWHZY3ZX32CABD7OKR2A/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: change of behaviour for '.' in sys.path between 3.10.0a7 and 3.10.0b1
On 3 Jun 2021, at 09:31, Robin Becker wrote: > ReportLab has quite a large codebase and I think it would be hard to > get a concise test of this behaviour change. I would be glad if this > is an expected change a7-->b1 and if the use of '.' in this way has > become somehow wrong. To me, this sounds like an excellent candidate for git bisect to help and figure out which exact commit caused this behavior change. Was it possible for you to detect that? Thank you, Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/CW2SAOGIO5EIXU7GJZIN26MLF6AC2HD5/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: change of behaviour for '.' in sys.path between 3.10.0a7 and 3.10.0b1
On Thu, Jun 03, 2021 at 09:55:57AM -0700, Guido van Rossum wrote: > Maybe this? > > 04732ca993 bpo-43105: Importlib now resolves relative paths when creating > module spec objects from file locations (GH-25121) Likely!. But https://github.com/python/cpython/commit/04732ca993fa077a8b9640cc77fb2f152339585a was supposed to a platform specific bug fix. I didn't a sense that reportlab regression detected was platform specific one. The behavior change is an interesting one though. More interesting thing for me was developers running large test suites between alpha and beta releases, and reporting bugs! :-) -- Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/GJWGQQGZNUWYIX3UX6T4H5VN7IE4YGN6/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Proposal: declare "unstable APIs"
On Thu, Jun 03, 2021 at 10:10:53AM -0700, Guido van Rossum wrote: > This is not a complete thought yet, but it occurred to me that while we have > deprecated APIs (which will eventually go away), and provisional APIs (which > must mature a little before they're declared stable), and stable APIs (which > everyone can rely on), it might be good to also have something like *unstable* > APIs, which will continually change without ever going away or stabilizing. The first grey area will between Provisional API vs Unstable API. Do developers consider provisional APIs as stable and start relying upon heavily? I am not sure. I also lack the experience for the use-cases that you are thinking about. -- Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/XOMDLGMXWFRBETG7FWI5PB2Y5YNGNXP3/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: change of behaviour for '.' in sys.path between 3.10.0a7 and 3.10.0b1
On Thu, Jun 03, 2021 at 07:08:06PM +0100, Robin Becker wrote: > The regression may well be a platform issue. I am by no means an expert at > building python; I followed a recipe from the ARCH PKGBUILD of some time I meant the change in the diff we were suspecting was supposed to be "Windows" specific. But interesting that it was observed in ARCH. The non-windows piece of changes were probably responsible > You guys can certainly develop language changes faster than us maintainers > can use them; the dead hand of past usage is a real handicap. I was thinking in terms of Bug-Fix (https://bugs.python.org/issue43105) that is causing an interesting behavior change (still not certain to call this a regression). > I have managed a smaller example which breaks for me in arch linux latest. > > The self contained code is here > > https://www.reportlab.com/ftp/timport-310b1.py > > I switched to using importlib.import_module as I think that can now always be > used in the versions we support. Thanks for this report, Robin. I will reference this in the issue43105, which has probably has the context to this. -- Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/DGR6DEWZJRN5IDOZPC4LAHP5J3EIQ55X/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Why list.sort() uses mergesort and not timsort?
On Sun, Jun 06, 2021 at 04:07:57PM -0700, Dan Stromberg wrote: > I've got a comparison of sort algorithms in both Cython and Pure Python (your > choice) at: > https://stromberg.dnsalias.org/~strombrg/sort-comparison/ > ...including a version of timsort that is in Cython or Pure Python. > Interesting! timsort get's to near-linear in your benchmark. -- Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/PK2CURNB67WNDEQJQISAYNGRMB4BQ26N/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Towards removing asynchat, asyncore and smtpd from the stdlib
On Wed, Jun 23, 2021 at 10:49:04PM +0100, Irit Katriel via Python-Dev wrote: > The next step is to add deprecation warnings, so that we can eventually delete > them. There is also the issue that some of the stdlib tests are still using > these libraries, but this does not need to block removing them from the stdlib > because we can move them to test.support until those tests are rewritten. This is a very good idea. I also read in another discussion that offering these as pip installable external packages could be considered, either by the core-dev or by community, just in case there is a reliance on these packages in production code and the developers don't want those the break and aren't ready to upgrade or migrate. Thank you, Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/AXWLKUFE7RGRNWPBWC3GYMXYDWDRK3LE/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Python3 OSF/1 support?
On Wed, Jul 14, 2021 at 04:30:33AM +, Jay K wrote: > Hi. I have an Alpha/OSF machine up and running. > It is little slow, but it works ok. > > I would like to run Python3 on it. > > I have it "compiling and working". It was easy enough so far. > https://github.com/python/cpython/pull/27063 > > Admitted, I haven't figured out what is happening with the posixsubprocess > module. > > Yes? No? Maybe? > > I can possibly provide ongoing "support" (I don't expect it will be much) and > a > buildbot (if really required), > if I can get it working a bit more, if this is approved, etc. I haven't looked It is difficult to maintain support for less commonly used systems. If you maintain it personally (like using a cron) and look at the results over time, you could see the difficulty in maintaining the support. Personally, my vote is a -1 here. In the PR, another core-dev, Ronald had commented that support for explicitly removed a few years ago. -- Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/QQOYHF77AFRZZ3ZPYZDNIPBGC2AEE7HN/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Windows buildbots may be broken
On Fri, Jul 30, 2021 at 02:28:08PM +, Jason R. Coombs wrote: > If you run such a buildbot, please consider running this command on > your repo to bypass the issue: > > git rm -r :/ ; git checkout HEAD -- :/ > > You may want to consider adding this command after every update to the > repo to avoid the stale state. What does this do? Especially the first command. Is this Windows specific? -- Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/KCMP3NZ4QXGR3R6KYRLAL4N72DVYGIMZ/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: PEP-535 (Rich comparison chaining) Discussion?
On Tue, Aug 31, 2021 at 8:57 AM Angus Hollands wrote: > Should look more like > ```python > x = np.array(...) > y = x[2 < x < 8] > ``` > Is there any interest in pushing this PEP along? > My personal opinion is, it is worth discussing again. I could see the benefits this brings to Numpy Arrays. The PEP itself was deferred based on boolean overload dislike than the short-circuit or chaining operator preference. -- Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/ENJYFXADZXDU7RZBD5RJTPS6ZE7YFNMN/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: API's to interface python with Eclipse to execute and debug C/C++ Source files.
On Thu, Aug 19, 2021 at 04:27:19AM +, Chandrakant Shrimantrao wrote: > Hi, > We would like to know if there is any option available to execute and debug( > setting break point and delete break point) C/C++ Source files Python API's > inside Eclipse IDE after interfacing Pydev with Eclipse. This is a good question for PyDev Eclipse Plugin. As far as I know, tI have not seen breakpoints for C/C++ with Pydev Eclipse, but I am not regular use of PyDev. For debugging Python's C Source files, I found Visual Studio Code's support for Makefile, C and Python to be useful. Thanks, Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/LVCGHVRPODLI3SFXTNF6A537F5PVLM66/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Is anyone relying on new-bugs-announce/python-bugs-list/bugs.python.org summaries
> > As part of PEP 588, migrating bugs.python.org issues to Github, there > are two current mailing list related items that need a replacement or > need to be turned down. > > 1. Weekly summary emails with bug counts and issues from the week, > example: > https://mail.python.org/archives/list/python-dev@python.org/thread/JRFJ4QH7TR35HFRQWOYPPCGOYRFAXK24/ > > 2. Emails sent to the new-bugs-announce and python-bugs-list for new > issues and comments to existing issues. > I occasionally rely on these. Those weren't noise to me. I assume new instructure might bring other benefits, so we won't be certain if we will need these new-bugs-announcements emails. Or those might be replaced with something better. Thank you, Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/OARW5EZTBABBAZLBS2U3FX3RXKJSETFR/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: RFC: New/update the Docs Sphinx theme: responsive, edit page links,
Replying to Python-Dev. I hope you found the list and got feedback from the documentation maintainers. Python devguide https://devguide.python.org/ was using an updated theme, and I assume that docs will get updated soon a responsive. There have been plenty discussions on this front. Thank you, Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/XIJ7KMLDAVMVCGILH5TJY2IPOANV7TW6/ Code of Conduct: http://python.org/psf/codeofconduct/
Re: [Python-Dev] [Python-checkins] cpython: ../bug-fixes/http_error_interface/.hg/last-message.txt
Looks like I used hg commit -m /path/to/.hg/last-message.txt instead of hg commit -l /path/to/.hg/last-message.txt I have amended it, merged it and pushed it again. On Tue, Mar 19, 2013 at 12:04 PM, senthil.kumaran wrote: > http://hg.python.org/cpython/rev/4f2080e9eee2 > changeset: 82765:4f2080e9eee2 > parent: 82763:4c6463b96a2c > user: Senthil Kumaran > date:Tue Mar 19 12:07:43 2013 -0700 > summary: > ../bug-fixes/http_error_interface/.hg/last-message.txt > > files: > Lib/test/test_urllib2.py | 39 +-- > 1 files changed, 19 insertions(+), 20 deletions(-) > > > diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py > --- a/Lib/test/test_urllib2.py > +++ b/Lib/test/test_urllib2.py > @@ -1387,6 +1387,10 @@ > > class MiscTests(unittest.TestCase): > > +def opener_has_handler(self, opener, handler_class): > +self.assertTrue(any(h.__class__ == handler_class > +for h in opener.handlers)) > + > def test_build_opener(self): > class MyHTTPHandler(urllib.request.HTTPHandler): pass > class FooHandler(urllib.request.BaseHandler): > @@ -1439,10 +1443,22 @@ > self.assertEqual(b"1234567890", request.data) > self.assertEqual("10", request.get_header("Content-length")) > > +def test_HTTPError_interface(self): > +""" > +Issue 13211 reveals that HTTPError didn't implement the URLError > +interface even though HTTPError is a subclass of URLError. > > -def opener_has_handler(self, opener, handler_class): > -self.assertTrue(any(h.__class__ == handler_class > -for h in opener.handlers)) > +>>> msg = 'something bad happened' > +>>> url = code = fp = None > +>>> hdrs = 'Content-Length: 42' > +>>> err = urllib.error.HTTPError(url, code, msg, hdrs, fp) > +>>> assert hasattr(err, 'reason') > +>>> err.reason > +'something bad happened' > +>>> assert hasattr(err, 'headers') > +>>> err.headers > +'Content-Length: 42' > +""" > > class RequestTests(unittest.TestCase): > > @@ -1514,23 +1530,6 @@ > req = Request(url) > self.assertEqual(req.get_full_url(), url) > > -def test_HTTPError_interface(): > -""" > -Issue 13211 reveals that HTTPError didn't implement the URLError > -interface even though HTTPError is a subclass of URLError. > - > ->>> msg = 'something bad happened' > ->>> url = code = fp = None > ->>> hdrs = 'Content-Length: 42' > ->>> err = urllib.error.HTTPError(url, code, msg, hdrs, fp) > ->>> assert hasattr(err, 'reason') > ->>> err.reason > -'something bad happened' > ->>> assert hasattr(err, 'headers') > ->>> err.headers > -'Content-Length: 42' > -""" > - > def test_main(verbose=None): > from test import test_urllib2 > support.run_doctest(test_urllib2, verbose) > > -- > Repository URL: http://hg.python.org/cpython > > ___ > Python-checkins mailing list > python-check...@python.org > http://mail.python.org/mailman/listinfo/python-checkins > ___ 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] PyCon Sprints - Thank you
Thanks Daniel, for all the patches and improving the test coverage. Hope you had a good time and will you enjoy contributing further. Happy touring SF. -- Senthil On Wed, Mar 20, 2013 at 12:24 PM, R. David Murray wrote: > Thank you for your contributions, and we look forward to anything else > you may choose to contribute! > > --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] The end of 2.7
On Sat, Apr 6, 2013 at 2:02 PM, Benjamin Peterson wrote: > juncture 5 total years of maintenance is reasonable. This means there > will be approximately 4 more 2.7 releases. That's good. From the subject of the email, I though you were announcing "This is the end of 2.7.x releases". 2 more year with 6 month cycle seem to be a good one. Thank you! Senthil ___ 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] End of the mystery "@README.txt Mercurial bug"
On Tue, Jun 25, 2013 at 5:58 PM, Benjamin Peterson wrote: > 2013/6/25 Victor Stinner : > > And then I ran "make distclean"... > > You've left us hanging... > > Yeah, the final part is here: http://bz.selenic.com/show_bug.cgi?id=3954#c4 But still I have question as why hg complained about @README in the first place. Also, I hope make distclean is not working "inside" .hg folder. -- Senthil ___ 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] [Python-checkins] cpython (merge 3.3 -> default): Fix http.server's request handling case on trailing '/'.
On Fri, Sep 13, 2013 at 7:49 AM, Eric V. Smith wrote: >> Patch contributed by Vajrasky Kok. Addresses Issue #17324 > >> +trailing_slash = True if path.rstrip().endswith('/') else False > > Wouldn't this be better just as: > trailing_slash = path.rstrip().endswith('/') I noticed this email late. Corrected it now. Thanks, Senthil ___ 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 (merge 3.3 -> default): merge from 3.3
On Wed, Sep 11, 2013 at 11:14 PM, Antoine Pitrou wrote: > On Thu, 12 Sep 2013 07:57:25 +0200 (CEST) > senthil.kumaran wrote: >> >> +<<< local >> Optional argument random is a 0-argument function returning a >> random float in [0.0, 1.0); if it is the default None, the >> standard random.random will be used. >> +=== >> +Optional arg random is a 0-argument function returning a random >> +float in [0.0, 1.0); by default, the standard random.random. >> + >> +Do not supply the 'int' argument. >> +>>> other > > Can you fix this? Had done it earlier. (http://hg.python.org/cpython/rev/1398dfb59fd9 ) I missed responding back. Sorry for the trouble. Thanks, Senthil ___ 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] Fwd: Cssdbpy is a simple SSDB client written on Cython. Faster standart SSDB client.
On Tue, Sep 13, 2016 at 12:01 PM, Yurij Alexandrovich wrote: > > Cssdbpy is a simple SSDB client written on Cython. Faster standart SSDB > client. > > https://github.com/deslum/cssdbpy > Congrats. You should post this in python-annouce@ list. This list python-dev is about CPython development. Thank you, Senthil ___ 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] IRC logs via BotBot.me
On Wed, Jan 4, 2017 at 3:27 PM, INADA Naoki wrote: > I wonder if #python-dev is logged by BotBot.me. > > I'm sorry if it had rejected already. I don't think so, but channel ops could request it. Also, I found (https://www.irccloud.com) to be helpful to look at IRC logs when away. (You can also permanently stay connected for a paid service, afaict, they have put some interesting work into IRC over web). -- Senthil ___ 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] GitHub migration scheduled for Friday
On Tue, Feb 7, 2017 at 11:38 PM, Victor Stinner wrote: > I know that different people have different expectation on GitHub. I > would like to take the opportunity of migrating to Git to use the > "author" and "committer" fields. If the author is set to the real > author, the one who proposed the change on the bug tracker or someone > else, we will be able to compute statistics on most active > contributors to more easily detect them and promote them to core > developers. > > What do you think? I am +1 to this idea. The intention behind this idea is also good one. * When the patches come from Github PRs, the contribution authors are automatically tracked. The comitter would be merging the changes from the authors. * When contribution comes via Patches/ or for many existing patches, setting the author is a good idea. I have one question. If we disallow direct push to branches and the core-dev has to create a PR to merge the changes in, I guess it is still possible to have author information in the commit. ___ 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] Reports on my CPython contributions
On Fri, Feb 24, 2017 at 3:50 PM, Victor Stinner wrote: > Recently, I wrote reports of my CPython contributions since 1 year > 1/2. Some people on this list might be interested, so here is the > list. They are prolific! Thanks for keeping a log and sharing. -- Senthil ___ 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: compiled python3.10 is unable to find _ssl
Your configure script did pick up openssl as the support version was not found. What is your operating system? Make sure you have supported version of ssl. Python requires openssl 1.1.1 or higher. On Mac, I had to use brew to install it and --with-openssl flag. On some linux machines, I have had to download openssl, compile it, and point my the configure script to (location I compiled openssl). CFLAGS="-I$HOME/openssl/include" LDFLAGS="-L$HOME/openssl/lib" Thank you, Senthil On Mon, Oct 18, 2021 at 08:16:01PM +0530, Sandeep Gupta wrote: > I am having compilation issues again with python3.10 with ssl . > > The ./configure was invoked with ssl options and ssl modules seems to > be build successfully. > > """ > The following modules found by detect_modules() in setup.py, have been > built by the Makefile instead, as configured by the Setup files: > _abc _hashlib _ssl > pwd time > """ > > However, when I do import ssl from python, I get the error: > Traceback (most recent call last): > File "", line 1, in > File "/home/shared/Builds/Python-3.10.0/lib/python3.10/ssl.py", line > 98, in > import _ssl # if we can't import it, let the error propagate > ModuleNotFoundError: No module named '_ssl' > > I can't find _ssl.so in build or install directory. > > Thanks > -S > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/IIFABHN7DOTCXMRQ72SLJSU4VDWRM2HB/ > Code of Conduct: http://python.org/psf/codeofconduct/ ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/JN6FB7675WTRB23HXD5CGBF4NUCZKSOD/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: It's now time to deprecate the stdlib urllib module
On Sun, Feb 06, 2022 at 03:08:40PM +0100, Victor Stinner wrote: > I propose to deprecate the urllib module in Python 3.11. It would emit > a DeprecationWarning which warn users, so users should consider better > alternatives like urllib3 or httpx: well known modules, better > maintained, more secure, support HTTP/2 (httpx), etc. > > I don't propose to schedule its removal. Let's discuss the removal in > 1 or 2 years. I am not certain if we can deprecate/remove the whole 'urllib' module without any good plan for replacement of its facilities within the stdlib. There is heavy usage of urllib.parse in multiple projects (including in urllib3), and parse is semi-maintained. > Let's come back to urllib: > * It's API is too complicated > * It doesn't support HTTP/2 nor HTTP/3 > * It's barely maintained: there are 121 open issues including 3 security > issues! I agree with all of these. I think that removing the old cruft code, might lead to us to closing a number of open issues. > The 3 open security issues: Just because if something marked 'security' doesn't make it actionable too. For instance the last one asks for urllib to maintain client state to be safe against a scenario, which it never did. I don't think it is time to deprecate the urllib module. It will be too disruptive IMO. SO, -1. Right now, I don't have a solution. My suggestion will be we close old bugs, and remove old code (aka maintain a bit, and it falls on me too). Then we can probably chart out a deprecation / replacement path in a non-disruptive manner. -- Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/ORQEJXJTZDYYV53MHKXTJ3Q6W72AUSGA/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: urllib: addressing inflexibility in scheme-based joining
On Thu, Feb 10, 2022 at 10:23:59PM -0700, Lincoln Auster wrote: > This is a follow-up RFC on PR #30520 (BPO 46337) with regard to urllib's ... > It's been about a month since I wrote that PR, and it was marked stale a > day or two ago. Would anyone be willing to give it a look for feedback > and a potential merge? Thanks for bringing this up. https://github.com/python/cpython/pull/30520 I will review it. If any other core-dev reviews earlier than me, I am good with it too. Thank you, Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/T73EN4OG5FOC53F2NHFSBDUJQMKJPA5X/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: Retiring this mailing list ?
On Mon, Nov 13, 2023 at 2:21 AM Marc-Andre Lemburg wrote: > Question: Should we retire and archive this mailing list ? > (I'm asking as one of the maintainers of the ML) +1 to retiring and archiving. Less overhead for maintainers and information concentrated at a single source, that is, discuss.python.org . Thanks, Senthil ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/ZAGR7F6V6SKAYEBYGQIWHZKEFVGTBFBY/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: [python-committers] Please welcome our next Release Manager, Pablo!
Congratulations, Pablo! Thank you for taking care of buildbots, and donning this new role. On Tue, May 19, 2020 at 3:54 PM Barry Warsaw wrote: > In light of the release of Python 3.9b1, let’s take a moment to celebrate > all the great work that our Python 3.8 and 3.9 release manager Łukasz has > done. The role of Python Release Manager is hugely important to each > successful release, and it can be a lot of work, often unseen and thankless > to shepherd a new Python version through its first alpha release to its > last security release. With all of your immeasurable help, the Release > Manager ensures solid, feature-full releases that the entire Python > community eagerly awaits. > > Łukasz carries on the fine tradition of all of our past release managers, > and now that his second release has entered beta phase, I’m very happy to > announce our next Release Manager, for Python 3.10 and 3.11: Pablo Galindo > Salgado! > > Since becoming a core developer in 2018, Pablo has contributed > significantly to Python. With the change to an annual release cycle (PEP > 602, authored by Łukasz), the time commitment for release managers has been > reduced as well, and we will continue to look for ways to make the > selection process for release managers more transparent and accessible. I > know that in addition to admirably managing the releases for 3.10 and 3.11, > Pablo will also help to continually improve the process of selecting and > serving as release manager. > > Please join me in welcoming Pablo in his new role! > > Cheers, > -Barry > > ___ > python-committers mailing list -- python-committ...@python.org > To unsubscribe send an email to python-committers-le...@python.org > https://mail.python.org/mailman3/lists/python-committers.python.org/ > Message archived at > https://mail.python.org/archives/list/python-committ...@python.org/message/44TLJO5YX6XYM4ICWSHMBMCKPBBQQP5S/ > Code of Conduct: https://www.python.org/psf/codeofconduct/ > ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/6I2IJ332M7NKAFV5O7C46NVWR2M2226M/ Code of Conduct: http://python.org/psf/codeofconduct/
Re: [Python-Dev] Tracker archeology
On Thu, Feb 12, 2009 at 4:11 AM, Daniel (ajax) Diniz wrote: > > Now will I'll start verifying, adding tests, updating or closing as > needed the recently changed old issues, until I've taken a good look > at these. Then, if there's still time left before Saturday, I'll focus > on verifying/flagging more ancient ones. > > during-bug-season-every-day-is-bug-day-ly y'rs, For urllib,urllib2 and urlparse related, please add me (orsenthil) to nosy list. I should already there. I shall test and provide patches. Thanks, Senthil ___ 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] Python wins Linux New Media Award for Best Open Source Programming Language
On Fri, Mar 6, 2009 at 6:34 PM, Michael Foord wrote: > The prize was Martin von Löwis of the Python Foundation on behalf of the > Python community itself. This is a funny translation from German-to-English. :-) But yeah, a good one and the prize was presented by Kluas Knooper of Knoppix. Congratulations! -- Senthil ___ 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] [issue3609] does parse_header really belong in CGI module?
http://bugs.python.org/issue3609 requests to move the function parse_header present in cgi module to email package. The reasons for this request are: 1) The MIME type header parsing methods rightly belong to email package. Confirming to RFC 2045. 2) parse_qs, parse_qsl were similarly moved from cgi to urlparse. The question here is, should the relocation happen in Python 2.7 as well as in Python 3K or only in Python 3k? If changes happen in Python 2.7, then cgi.parse_header will have DeprecationWarning just in case we go for more versions in Python 2.x series. Does anyone have any concerns with this change? -- Senthil ___ 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] [Python-ideas] Proposed addtion to urllib.parse in 3.1 (and urlparse in 2.7)
On Mon, Apr 13, 2009 at 5:31 PM, Antoine Pitrou wrote: > Say you are filtering or sorting data based on some URL parameters. If the > user > wants to remove one of those filters, you have to remove the corresponding > query > parameter. This is a use-case and possibly a hypothetical one which a programmer might do under special situations. There are lots of such use cases for which urllib.parse or urlparse has been used for. But my thoughts with this proposal is do we have a good RFC specfications to implementing this? If not and if we go by just go by the practical needs, then eventually we will end up with bugs or feature requests in this which will take a lot of discussions and time to get fixed. Someone pointed out to read HTML 5.0 spec instead of RFC for this request. I am yet to do that, but my opinion with respect to additions to url* module is - backing of RFCs would be the best way to go and maintain. -- Senthil ___ 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] version for blender Vista
From: http://mail.python.org/mailman/listinfo/python-dev About Python-Dev ***Do not post general Python questions to this list. For help with Python please see the Python help page.*** On this list the key Python developers discuss the future of the language and its implementation. Topics include Python design issues, release mechanics, and maintenance of existing releases. On Fri, Apr 24, 2009 at 7:04 PM, Yuma Scott wrote: > > Can you tell me which installer of Python I need to work with > Blender and Windows Vista Home Premium? > Thanks! > Yuma Scott > ___ > 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/orsenthil%40gmail.com > > -- -- Senthil ___ 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] Survey on DVCS usage and experience
On Wed, May 27, 2009 at 06:02:57PM -0600, Brian de Alwis wrote: > With Python having recently chosen to switch to Mercurial, I hoped > that any developers who've used a DVCS (and who are over 18 years > old) might like to participate in our survey and share your Just curious. Why is this age restriction? You might miss out few key developers... -- Senthil ___ 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] Backporting HTTPS via Proxy Support in urllib2
Issue: http://bugs.python.org/issue1424152 mentions about HTTPS Support via proxy in urllib2. This is fixed in the trunk (Revision 72880), but there has been number of valid requests to backport it Python 2.6. While I agree and ready to backport to Python 2.6, I would like to ask here if there are any objections in this front. I am ready with the Python 3.x patch as well (with tests passed and tested under proxy setup). I shall apply that too, which is pending for a while now. :( -- Senthil Wad some power the giftie gie us To see oursels as others see us. -- R. Burns ___ 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] eggs now mandatory for pypi?
On Mon, Oct 05, 2009 at 10:43:22AM +0200, Fredrik Lundh wrote: > it's revews like this that makes me wonder if releasing open source is > a good idea: >no egg - worst seen ever, remove it from pypi or provide an egg > (jensens, 2009-10-05, 0 points) > Greetings effbot. :) As you might already know, "eggs" are not mandatory for pypi. No where in the documentation it mentions so. Also many good packages in pypi are not eggs (MaL's egenix packages for e.g) and we have known his dislike for that particular format too. But still, sometimes people have found eggs to be convenient. That was a particularly harsh comment from jensens, should be ignored or he should be corrected that eggs are not mandatory. But, i have a feeling that this is going to open up the well known, can-of-worms on what is the best distribution format for python packages debate. -- Senthil No one may kill a man. Not for any purpose. It cannot be condoned. -- Kirk, "Spock's Brain", stardate 5431.6 ___ 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] contributor to committer
> On Wed, Feb 24, 2010 at 7:13 AM, Florent Xicluna > > Hello, > > > > I am a semi-regular contributor for Python: I have contributed many patches > > since end of last year, some of them were reviewed by Antoine. > > Lately, he suggested that I should apply for commit rights. > > Another +1. :) -- Senthil Every living thing wants to survive. -- Spock, "The Ultimate Computer", stardate 4731.3 ___ 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] Release blocker: urllib2 issue 7540
On Thu, Mar 4, 2010 at 3:45 AM, Fred Drake wrote: > Regarding: http://bugs.python.org/issue7540 > > The proper response to this issue for Python 2.6 is to make no code > changes (though a documentation enhancement may be in order). > > This change should be reverted from all branches. > > Python 2.6.5 should be blocked until this is done. I have commented on that issue. Ready to revert the change from the branches and keep a doc fix and a warning. -- Senthil ___ 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] Code coverage metrics
On Tue, Apr 06, 2010 at 12:40:35PM +0300, anatoly techtonik wrote: > Where can I find public reports with Python tests code coverage? Here: http://coverage.livinglogic.de/ -- Senthil ___ 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] OS information, tags
On Mon, Apr 12, 2010 at 07:06:29PM +0530, Anand Balachandran Pillai wrote: > I am surprised to see that the bug-tracker > doesn't have an OS classifier or ability to add > tags ? Since a number of issues reported seem to There is one. In the Components you can do a multiple select and it has Macintosh , Windows as options. > I am not sure which software is being used by > bug tracker so excuse me if this has been already > discussed in this form. A quick search in my gmail > archives yielded no such discussion. It is Roundup developed by Richard (Pygame ??). There is tracker bug list too, which you can find referenced in the bugs.python.org page. -- Senthil "Elves and Dragons!" I says to him. "Cabbages and potatoes are better for you and me." -- J. R. R. Tolkien ___ 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] OS information, tags
On Thu, Apr 15, 2010 at 02:31:23PM +, Antoine Pitrou wrote: > We already have "Macintosh" and "Windows" in the multi-select component field. > It would be nice if the bug interface didn't grow more complicated than it > already is. +1 There isn't any need for yet another classification. -- Senthil Your life would be very empty if you had nothing to regret. ___ 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] urlparse - to parse IPv6 URL in 2.7 b2 ?
http://bugs.python.org/issue2987 This deals with a feature request of parsing an IPv6 URL according to standards. The patch is pretty complete and we have good test coverage too. Is it okay to include this in Python 2.7 b2 release? It would be a worthy addition. -- Senthil ___ 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] urlparse - to parse IPv6 URL in 2.7 b2 ?
On Fri, Apr 16, 2010 at 11:03:30AM +, Antoine Pitrou wrote: > > It shouldn't have been committed to 3.1, though. Could you revert? Yeah, I had this doubt. Okay, I shall revert it from 3.1 branch. -- Senthil ___ 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] Enhanced tracker privileges for dangerjim to do triage.
On Sun, Apr 25, 2010 at 10:18:47PM +, Antoine Pitrou wrote: > > I don't think Antoine is questioning Sean's judgement but rather that we > > should get into the habit of giving some people "shortcuts" through the > > regular process. > > Yes, exactly. > If we often take shortcuts with our own process, it can appear unfair and > demotivating to regular people (who must go through the normal process). I agree with Antoine's point here. As much as I respect Sean and his contributions, it is important to consider the implications as it may appear to others. If you look at Daniel Diniz, who has enhanced tracker privileges, he started off by using the normal tracker privilege commenting on bugs, patches and within *weeks*, he started triaging bugs with enhanced privs. That kind of seems to me a middle-way, as in you start off triaging in a normal mode with a backing of mentor, it becomes a easy way to upgrade very soon. -- Senthil Man must shape his tools lest they shape him. -- Arthur R. Miller ___ 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] argparse suggestion
On Mon, Apr 26, 2010 at 08:20:10AM -0400, Neal Becker wrote: > steven.beth...@gmail.com made a very nice module for me to enhance argparse > called argparse_bool.py, which contains ConfigureAction. This will allow a Would not it be a feature enhancement request against argparse.py itself? In that case, you might just file a bug against argparse at bugs.python.org. -- Senthil BOFH excuse #138: BNC (brain not connected) ___ 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] urlparse.urlunsplit should be smarter about +
On Sat, May 8, 2010 at 8:19 AM, David Abrahams wrote: > > This is a bug report. bugs.python.org seems to be down. Tracked here: http://bugs.python.org/issue8656 > >>> urlunsplit(urlsplit('git+file:///foo/bar/baz')) Is 'git+file' a valid protocol? Or was it just your example? I don't see any reason for it to be invalid but I don't find authoritative references either. -- Senthil ___ 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] urlparse.urlunsplit should be smarter about +
On Sun, May 09, 2010 at 03:19:40PM -0600, David Abrahams wrote: > John Arbash Meinel wrote: > > Don't you need to register the "git+file:///" url for urlparse to > > properly split it? > > Yes. But the question is whether urlparse should really be so fragile > that every hierarchical scheme needs to be explicitly registered. > Surely ending with “+file” should be sufficient to have it recognized > as a file-based scheme Not all urls have the 'authority' component after the scheme. (sip based urls for e.g) urlparse differentiates those by maintaining a list of scheme names which will follow the pattern of parsing, and joining for the urls which have a netloc (or authority component). This is in general according to RFC 3986 itself. Yes,'+' is a valid char in url schemes and svn, svn+ssh will be as per your expectations. But git and git+ssh was missing in there and I attached a patch in issue8657 to include the same. It is rightly a bug in the module. But for any general scheme and assuming '+file' would follow valid authority component, is not something I am sure that should be in urlparse's expected behavior. -- Senthil Do not seek death; death will find you. But seek the road which makes death a fulfillment. -- Dag Hammarskjold ___ 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] urlparse.urlunsplit should be smarter about +
On Mon, May 10, 2010 at 05:11:12PM +0900, Stephen J. Turnbull wrote: > > Not all urls have the 'authority' component after the scheme. (sip > > based urls for e.g) urlparse differentiates those by maintaining a > > list of scheme names which will follow the pattern of parsing, and > > joining for the urls which have a netloc (or authority component). > > This is in general according to RFC 3986 itself. > > This actually quite at variance with the RFC. The grammar in section I should have said, 'treatment of urls with authority' and 'treatment of urls without authority' in terms of parsing and joining is as per RFC. How it is doing practically is by maintaining a list of urls with known scheme names which use_netloc. -- Senthil Many Myths are based on truth -- Spock, "The Way to Eden", stardate 5832.3 ___ 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] urlparse.urlunsplit should be smarter about +
On Mon, May 10, 2010 at 05:56:29PM +0900, Stephen J. Turnbull wrote: > Senthil Kumaran writes: > > > I should have said, 'treatment of urls with authority' and 'treatment > > of urls without authority' in terms of parsing and joining is as per > > RFC. How it is doing practically is by maintaining a list of urls > > with known scheme names which use_netloc. > > Why do that if you can get better behavior based purely on syntactic > analysis? For the cases for just parsing and splitting, the syntactic behaviours are fine enough. I agree with your comments and reinstatement of RFC rules in the previous emails. The problem as we know off, comes while unparsing and joining, ( also I have not yet looked at the relative url joining behaviour where redundant /'s can be ignored). As you may already know, when the data is ParseResult(scheme='file', netloc='', path='/tmp/junk.txt', params='', query='', fragment='') You might expect the output to be file:///tmp/junk.txt Original might be same too. But for: ParseResult(scheme='x', netloc='', path='/y', params='', query='', fragment='') One can expect a valid output to be: x:/y Your suggestion of netloc/authority being differentiate by '' and None seems a good one to analyze. Also, by keeping a registry of valid schemes, are you not proposing something very similar to uses_netloc? But with a different API to handle parsing based on registry values. Is my understanding of your proposal correct? FWIW, I looked at the history of uses_netloc list and it seems that it been there from the first version when urlparse module followed different rfc specs for different protocols (telnet, sip etc), so any changes should be carefully incorporated as not to break the existing solutions. -- Senthil ___ 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] moving issues from argparse tracker to python tracker?
On Sun, May 23, 2010 at 08:52:19PM -0700, Steven Bethard wrote: > requests, etc. for argparse, and I was planning to just copy them over > to the Python bug tracker (and close them on the Google code tracker). I think, this is a good idea. +1 from me. There is only one module, bsddb, which is maintained outside due to release constraints and other issues, but other than anything part of stdlib, better be tracked through python tracker. An additional advantage of moving to python tracker is, people who are subscribed to python-bugs will be notified and can pitch in their ideas/efforts too. -- Senthil OK, enough hype. -- Larry Wall in the perl man page ___ 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] urllib2/urllib incompatibility?
On Mon, May 24, 2010 at 08:49:56AM +, Vinay Sajip wrote: > I encountered what seems like an incompatibility between urllib and urllib2 in > the way they handle file:// URLs, is this a bug? I had a look on the bug > tracker > >>> s = 'file:tmp/hello.txt' > >>> f1 = urllib.urlopen(s) The actual (and Valid) file:// url in your case is 'file:///tmp/hello.txt' And this was fine and consistent. >>> s = 'file:///tmp/hello.txt' >>> import urllib2 >>> import urllib >>> o1 = urllib.urlopen(s) >>> o2 = urllib2.urlopen(s) The extra '/' is making it in invalid url in urllib2, I think that be tracked as bug at least to show a consistent behaviour. The local file open methods of urllib2 and urllib are different. -- Senthil You may my glories and my state dispose, But not my griefs; still am I king of those. -- William Shakespeare, "Richard II" ___ 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] Future of 2.x.
On Wed, Jun 9, 2010 at 9:28 AM, Alexandre Vassalotti wrote: > Is there is any plan for a 2.8 release? If not, I will go through the > tracker and close outstanding backport requests of 3.x features to You mean, simply mark them as Wont-Fix and close. I doubt, if this is desirable action to take. Even thought they are new features, it would still be a good idea to introduce some of them in minor releases in 2.7. I know, this deviating from the process, but it could be an option considering that 2.7 is the last of 2.x release. This is just my opinion. -- Senthil ___ 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] Future of 2.x.
On Thu, Jun 10, 2010 at 6:40 AM, Alexandre Vassalotti wrote: > On Wed, Jun 9, 2010 at 1:23 PM, "Martin v. Löwis" wrote: >> Closing the backport requests is fine. For the feature requests, I'd only >> close them *after* the 2.7 release (after determining that they won't apply >> to 3.x, of course). >> >> There aren't that many backport requests, anyway, are there? >> > > There is only a few requests (about five) I get your point. It is the 'back-ports' that you have tagged. These were designed for 3.x and implemented in 3.x in the first place. I was concerned that there will be policy drawn or a practice that will close any/every existing Feature Request in Python 2.7. There are some cases (in stdlib) which can debated on the lines of feature request vs bug-fix and those will get hurt in the process. Thanks, Senthil ___ 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] Release manager/developer (10 years + experience) would like to help and volunteer time if needed
Welcome! You might just want to hook on to the process mentioned at http://www.python.org/dev That's it. -- Senthil On 16 Jun 2010 16:44, "Mart" wrote: Hi, I have worked 10 years at Adobe Systems as a Release Developer for the LiveCycle ES team and am now employed as a Release Manager (for a team of one, me ;) ) at Nuance Communications since last March. I have put lots of effort to keep Python alive and well at Adobe by providing complete build/release solutions & processes, automation and tooling in my favourite language, Python. I have been promoting, planning and implementing a completely new build/release infrastructure at Nuance, where my expectation is have a 100% python shop to manage builds and releases. I would very like to offer any help you may require, provided I am a good fit. I can provide references, resume, etc. if requested. In hopes of pursuing further discussions, please accept my best regards, Martin Senecal Gatineau (Quebec) Canada ___ 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/orsenthil%40gmail.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] Mercurial
On Sat, Jun 19, 2010 at 01:51:04PM +0200, Antoine Pitrou wrote: > FWIW, the EOL extension is now part of Mercurial: > http://mercurial.selenic.com/wiki/EolExtension Should we all move soon now? Any target date you have in mind, Antoine? -- Senthil ___ 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] docs - Copy
On Thu, Jun 24, 2010 at 09:05:09PM -0400, Alexander Belopolsky wrote: > On Thu, Jun 24, 2010 at 8:51 PM, Rich Healey wrote: > > http://docs.python.org/library/copy.html > > > > Just near the bottom it reads: > > > > """Shallow copies of dictionaries can be made using dict.copy(), and > > of lists by assigning a slice of the entire list, for example, > > copied_list = original_list[:].""" > > > > > > Surely this is a typo? To my understanding, copied_list = > > original_list[:] gives you a clean copy (slicing returns a new > > object) > > > > the same thing. I agree that the language can be improved, though. > There is no need to bring in assignment to explain that a[:] makes a > copy of list a. Please create a documentation issue at Better still, add your doc change suggestion (possible explanation) to this issue: http://bugs.python.org/issue9021 -- Senthil ___ 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] bytes / unicode
On Mon, Jun 28, 2010 at 08:28:45PM +1200, Greg Ewing wrote: > A thought on this poly_str type: perhaps it could be > called "ascii", since that's what it would have to be > restricted to, and have > > a'xxx' > > as a literal syntax for it, seeing as literals seem to > be one of its main use cases. This seems like a good idea. > > Thinking way outside the square, and probably the pale > as well, maybe @ could be pressed into service as an > infix operator, with > > s...@i > > being equivalent to > > s[i:i+1] > And this is way beyond being intuitive. -- Senthil ___ 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] Mailbox module - timings and functionality changes
On Tue, Jun 29, 2010 at 09:56:11AM -0400, Steve Holden wrote: > Can someone who is set up to do easily just do a timing of test_mailbox > under 2.6 and 3.2, to verify they see the same disparity as me? The test Actually, No. Python 2.7b2+ (trunk:81685M, Jun 4 2010, 21:52:06) Ran 274 tests in 27.231s OK real0m27.769s user0m1.110s sys 0m0.440s Python 3.2a0 (py3k:82364M, Jun 29 2010, 19:37:27 Ran 268 tests in 24.444s OK real0m25.126s user0m2.810s sys 0m0.270s 07:39 PM:senthil@:~/python/py3k This is under Ubuntu 64 Bit. Perhaps, the problem you are observing is Windows Only? -- Senthil Banectomy, n.: The removal of bruises on a banana. -- Rich Hall, "Sniglets" ___ 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