Re: [Python-Dev] Fix Unicode-disabled build of Python 2.7

2014-06-24 Thread Terry Reedy
On 6/24/2014 4:22 AM, Serhiy Storchaka wrote: I submitted a number of patches which fixes currently broken Unicode-disabled build of Python 2.7 (built with --disable-unicode configure option). I suppose this was broken in 2.7 when C implementation of the io module was introduced. http://bugs.pyt

Re: [Python-Dev] PEP 471 -- os.scandir() function -- a better and faster directory iterator

2014-06-30 Thread Terry Reedy
On 6/30/2014 9:44 PM, Ethan Furman wrote: On 06/30/2014 06:28 PM, Ben Hoyt wrote: I suppose the exact behavior is still under discussion, as there are only two or three fields one gets "for free" on Windows (I think...), where as an os.stat call would get everything available for the platform.

Re: [Python-Dev] buildbot.python.org down again?

2014-07-06 Thread Terry Reedy
On 7/6/2014 7:54 PM, Ned Deily wrote: As of the moment, buildbot.python.org seems to be down again. Several hours later, back up. > Where is the best place to report problems like this? We should have, if not already, an automatic system to detect down servers and report (email) to appropria

Re: [Python-Dev] == on object tests identity in 3.x

2014-07-07 Thread Terry Reedy
On 7/7/2014 7:22 AM, Andreas Maier wrote: While discussing Python issue #12067 (http://bugs.python.org/issue12067#msg222442), I learned that Python 3.4 implements '==' and '!=' on the object type such that if no special equality test operations are implemented in derived classes, there is a defau

Re: [Python-Dev] Bluetooth 4.0 support in "socket" module

2014-07-14 Thread Terry Reedy
On 7/14/2014 9:57 AM, Tim Tisdall wrote: 2 questions not answered yet. Also, is there a method to test changes against all the different *nix variations? We have a set of buildbots. https://www.python.org/dev/buildbot/ Is Bluez the standard across the different *nix variations? No idea.

Re: [Python-Dev] sum(...) limitation

2014-08-01 Thread Terry Reedy
On 8/2/2014 1:57 AM, Allen Li wrote: On Fri, Aug 01, 2014 at 02:51:54PM -0700, Guido van Rossum wrote: No. We just can't put all possible use cases in the docstring. :-) On Fri, Aug 1, 2014 at 2:48 PM, Andrea Griffini wrote: help(sum) tells clearly that it should be used to sum numbers

Re: [Python-Dev] class Foo(object) vs class Foo: should be clearly explained in python 2 and 3 doc

2014-08-09 Thread Terry Reedy
On 8/9/2014 2:44 PM, John Yeuk Hon Wong wrote: Hi. Referring to my discussion on [1] and then on #python this afternoon. A little background would help people to understand where this was coming from. 1. I write Python 2 code and have done zero Python-3 specific code. 2. I have always been usi

Re: [Python-Dev] python2.7 infinite recursion when loading pickled object

2014-08-11 Thread Terry Reedy
On 8/11/2014 5:10 AM, Schmitt Uwe (ID SIS) wrote: Python usage questions should be directed to python-list, for instance. I discovered a problem using cPickle.loads from CPython 2.7.6. The problem is your code having infinite recursion. You only discovered it with pickle. The last line i

Re: [Python-Dev] sum(...) limitation

2014-08-11 Thread Terry Reedy
On 8/11/2014 8:26 AM, Ben Hoyt wrote: It seems to me this is something of a pointless discussion -- I highly doubt the current situation is going to change, and it works very well. Even if not perfect, sum() is for numbers, sep.join() for strings. However, I will add one comment: I'm overall

Re: [Python-Dev] Reviving restricted mode?

2014-08-13 Thread Terry Reedy
On 8/13/2014 12:19 PM, matsjoyce wrote: Unless you remove all the things labelled "keep away from children". I wrote this sandbox to allow python to be used as a "mods"/"add-ons" language for a game I'm writing, hence the perhaps too strict nature. About the crashers: as this is for games, its "

Re: [Python-Dev] Fwd: PEP 467: Minor API improvements for bytes & bytearray

2014-08-18 Thread Terry Reedy
On 8/18/2014 12:04 PM, Chris Barker wrote: On Sun, Aug 17, 2014 at 2:41 PM, Barry Warsaw mailto:ba...@python.org>> wrote: I think the biggest API "problem" is that default iteration returns integers instead of bytes. That's a real pain. what is really needed for this NOT to be a p

[Python-Dev] https:bugs.python.org -- Untrusted Connection (Firefox)

2014-08-18 Thread Terry Reedy
Firefox does not want to connect to https:bugs.python.org. Plain bugs.python.org works fine. Has the certificate expired? -- Terry Jan Reedy ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscr

Re: [Python-Dev] Bytes path support

2014-08-20 Thread Terry Reedy
On 8/20/2014 9:01 AM, Antoine Pitrou wrote: Le 20/08/2014 07:08, Nick Coghlan a écrit : It's not just the JVM that says text and binary APIs should be separate - it's every widely used operating system services layer except POSIX. The POSIX way works well *if* everyone reliably encodes things a

Re: [Python-Dev] PEP 4000 to explicitly declare we won't be doing a Py3k style compatibility break again?

2014-08-21 Thread Terry Reedy
On 8/20/2014 8:27 PM, Joseph Martinot-Lagarde wrote: The pain was even bigger because in addition to the change in underlying types, the names of the types were not compatible between the python versions. I often try to write compatible code between python2 and 3, and I can't use "str" because i

Re: [Python-Dev] https:bugs.python.org -- Untrusted Connection (Firefox)

2014-08-21 Thread Terry Reedy
On 8/21/2014 10:41 AM, Armin Rigo wrote: Hi, On 18 August 2014 22:30, Oleg Broytman wrote: Aha, I see now -- the signing certificate is CAcert, which I've installed manually. I don't suppose anyone is particularly annoyed by this fact? I noticed the issue, and started this thread, beca

Re: [Python-Dev] https:bugs.python.org -- Untrusted Connection (Firefox)

2014-08-21 Thread Terry Reedy
On 8/21/2014 7:25 PM, Nick Coghlan wrote: On 22 Aug 2014 04:45, "Benjamin Peterson" mailto:benja...@python.org>> wrote: > > Perhaps some board members could comment, but I hope the PSF could just > pay a few hundred a year for a proper certificate. That's exactly what we're doing - MAL remin

Re: [Python-Dev] Bytes path support

2014-08-26 Thread Terry Reedy
On 8/26/2014 9:11 AM, R. David Murray wrote: On Sun, 24 Aug 2014 13:27:55 +1000, Nick Coghlan wrote: As some examples of where bilingual computing breaks down: * My NFS client and server may have different locale settings * My FTP client and server may have different locale settings * My SSH c

Re: [Python-Dev] PEP 477: selected ensurepip backports for Python 2.7

2014-08-31 Thread Terry Reedy
On 8/31/2014 6:00 PM, Nick Coghlan wrote: Earlier versions of PEP 453 proposed bootstrapping pip into a Python 2.7 maintenance release in addition to including it with Python 3.4. That part of the proposal proved to be controversial, so we dropped it from the original PEP in order to focus on me

Re: [Python-Dev] https:bugs.python.org -- Untrusted Connection (Firefox)

2014-09-02 Thread Terry Reedy
On 9/2/2014 1:49 AM, Oleg Broytman wrote: Hi! On Mon, Sep 01, 2014 at 08:32:27PM -0500, Skip Montanaro wrote: I got the same in Chrome on my Mac. Skip On Sep 1, 2014 8:00 PM, "John Wong" wrote: As of today I still am getting untrusted cert thought I would re-ping to see if there is an ETA

Re: [Python-Dev] PEP 476: Enabling certificate validation by default!

2014-09-02 Thread Terry Reedy
On 9/2/2014 7:47 PM, Glyph Lefkowitz wrote: On Sep 2, 2014, at 4:28 PM, Nick Coghlan mailto:ncogh...@gmail.com>> wrote: On 3 Sep 2014 09:08, "David Reid" mailto:dr...@dreid.org>> wrote: > Clearly this change should be backported to Python2. Proposing to break backwards compatibility in a m

Re: [Python-Dev] 3.5 release schedule PEP

2014-09-26 Thread Terry Reedy
On 9/26/2014 1:03 PM, Chris Barker wrote: On Thu, Sep 25, 2014 at 5:38 PM, Donald Stufft mailto:don...@stufft.io>> wrote: 2) Switch to —user based on if the user has permission to write to the site-packages or not. ouch -- no. Why not a clear error message if p

[Python-Dev] 3.4.2rc1 online docs: cannot access tkinter, idle pages

2014-10-05 Thread Terry Reedy
I can access every page I have tried except for the tkinter and idle pages, which either give interminable 'Connecting...' or in one try, 404. https://docs.python.org/3/library/tkinter.html https://docs.python.org/3/library/idle.html This is true from the index, previous/next from adjacent pages

Re: [Python-Dev] 3.4.2rc1 online docs: cannot access tkinter, idle pages

2014-10-05 Thread Terry Reedy
On 10/5/2014 11:13 PM, Chris Angelico wrote: On Mon, Oct 6, 2014 at 6:49 AM, Terry Reedy wrote: I can access every page I have tried except for the tkinter and idle pages, which either give interminable 'Connecting...' or in one try, 404. https://docs.python.org/3/library/tkinter.

Re: [Python-Dev] Review tool not detecting all changed files

2014-10-14 Thread Terry Reedy
On 10/14/2014 8:24 PM, Saimadhav Heblikar wrote: Hi, We were working on IDLE related issue [1] , when I noticed that the review tool does not detect all affected files for the cfg-ext-34-2.diff patch uploaded by Terry Reedy. Version 1 of the same patch does not have this issue - the only

[Python-Dev] Half the 'stable' buildbots are not running.

2014-10-18 Thread Terry Reedy
4 offline, 2 not compiling, 1 not compiling completely (no _ctypes == venv fail) -- Terry Jan Reedy ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/opt

[Python-Dev] https://docs.python.org/3/using/index.html not linking correctly

2014-10-20 Thread Terry Reedy
If I go to https://docs.python.org/3/using/index.html and click on any of the TOC entries, I get 'connecting' indefinitely. This problem seems unique to this file. I tried several other index files and clicking am entry brings up the corresponding page almost immediately. -- Terry Jan Reedy

Re: [Python-Dev] https://docs.python.org/3/using/index.html not linking correctly

2014-10-20 Thread Terry Reedy
On 10/20/2014 7:29 PM, MRAB wrote: On 2014-10-21 00:09, Eli Bendersky wrote: On Mon, Oct 20, 2014 at 1:01 PM, Terry Reedy mailto:tjre...@udel.edu>> wrote: If I go to https://docs.python.org/3/using/index.html and click on any of the TOC entries, I get 'connecting' ind

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

2014-10-25 Thread Terry Reedy
On 10/25/2014 5:11 PM, Chris Angelico wrote: It might fragment the community to have multiple different binary distributions. But it ought to be possible for any person/organization to say "We're going to make our own build of Python, with these extension modules, built with this compiler, targe

Re: [Python-Dev] results of id() and weakref.getweakrefs() sometimes break on object resurrection

2014-10-27 Thread Terry Reedy
On 10/27/2014 12:23 PM, Stefan Richthofer wrote: You mean Jython deletes instance attributes before calling __del__ ? No. I think the term of "object resurrection" usually does not mean bringing back a deleted object in the sense that memory was already freed. I think it rather means that not

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

2014-10-29 Thread Terry Reedy
On 10/29/2014 4:05 PM, Paul Moore wrote: On 29 October 2014 15:31, Nathaniel Smith wrote: You can use Express editions of Visual Studio. IIUC, the express edition compilers are 32-bit only, and what you actually want are the "SDK compilers": https://github.com/cython/cython/wiki/64BitCythonEx

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

2014-10-29 Thread Terry Reedy
On 10/29/2014 11:37 AM, Steve Dower wrote: My ideal target (Utopia refined to be achievable) is for python-dev to handle the Python binaries themselves (already done) and to make them easy to bundle with applications/etc (I'm working on this for 3.5), and for PyPI to include pre-built wheels for

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

2014-10-30 Thread Terry Reedy
On 10/30/2014 8:59 AM, R. David Murray wrote: On Wed, 29 Oct 2014 23:33:06 -0400, Terry Reedy wrote: The devguide needs to be kept up to date. If you open a tracker issue, put me as nosy to review and commit. The devguide is about building python itself. Paul is talking about building

[Python-Dev] problem with hg.python.org?

2014-11-01 Thread Terry Reedy
My normally dependable pull.bat script has 3 times given me this. F:\Python\dev>hg --repository F:\Python\dev\5\py35 pull --verbose --config ui.merge=internal:merge ssh://h...@hg.python.org/cpython pulling from ssh://h...@hg.python.org/cpython searching for changes all local heads known remotel

Re: [Python-Dev] problem with hg.python.org?

2014-11-01 Thread Terry Reedy
On 11/1/2014 11:03 PM, Donald Stufft wrote: On Nov 1, 2014, at 10:37 PM, Terry Reedy wrote: abort: data/Doc/howto/webservers.rst.i@5f4ad429ae9f: unknown parent! remote: Unable to write to standard output: The pipe is being closed. The internet suggests trying hg verify, does that do

Re: [Python-Dev] OneGet provider for Python

2014-11-14 Thread Terry Reedy
On 11/14/2014 7:12 PM, Vincent Povirk wrote: If anyone has questions about OneGet generally, you should probably ask them directly (see https://github.com/OneGet/oneget), as I am not a definitive source of information on the project. No subscription needed to follow a thread. Python-dev is mi

Re: [Python-Dev] Windows Dedicated Mailing List

2014-11-15 Thread Terry Reedy
On 11/15/2014 3:01 AM, Shorya Raj wrote: Fair enough. Like I said, I wanted to see what the consensus was, and it seems to be shifting towards not making another list. Agreed. The traffic here is not high enough to need a split. Most OS specific issues that need a patch end up as a specific

Re: [Python-Dev] Problem displaying the warning symbol

2014-11-16 Thread Terry Reedy
On 11/16/2014 11:49 AM, R. David Murray wrote: On Sun, 16 Nov 2014 11:23:41 +0100, Stefano Borini wrote: I report a finding (bug?) about the warning unicode symbol, as reported here http://stackoverflow.com/questions/26919799/cannot-make-warning-sign-visible-on-osx-terminal Stefano, the rig

Re: [Python-Dev] Static checker for common Python programming errors

2014-11-17 Thread Terry Reedy
On 11/17/2014 9:49 AM, Stefan Bucur wrote: I'm developing a Python static analysis tool that flags common programming errors in Python programs. The tool is meant to complement other tools like Pylint (which perform checks at lexical and syntactic level) by going deeper with the code analysis and

Re: [Python-Dev] PEP 479: Change StopIteration handling inside generators

2014-11-20 Thread Terry Reedy
On 11/20/2014 5:04 PM, Guido van Rossum wrote: On Thu, Nov 20, 2014 at 12:13 PM, Serhiy Storchaka mailto:storch...@gmail.com>> wrote: On 20.11.14 21:58, Antoine Pitrou wrote: To me "generator_return" sounds like the addition to generator syntax allowing for return st

Re: [Python-Dev] PEP 479: Change StopIteration handling inside generators

2014-11-20 Thread Terry Reedy
On 11/20/2014 2:36 PM, Guido van Rossum wrote: There's still a lively discussion on python-ideas; Steven D'Aprano has dug up quite a bit of evidence that StopIteration is used quite a bit in ways that will break under the new behavior, and there also seems to be quite a bit of third-party inform

Re: [Python-Dev] PEP 479: Change StopIteration handling inside generators

2014-11-22 Thread Terry Reedy
On 11/22/2014 2:49 PM, Ron Adam wrote: On 11/22/2014 08:31 AM, Nick Coghlan wrote: I'm definitely coming around to the point of view that, even if we wouldn't design it the way it currently works given a blank slate, the alternative design doesn't provide sufficient benefit to justify the cos

Re: [Python-Dev] PEP 479: Change StopIteration handling inside generators

2014-11-23 Thread Terry Reedy
On 11/22/2014 5:23 PM, Chris Angelico wrote: On Sun, Nov 23, 2014 at 8:03 AM, Ron Adam wrote: Making comprehensions work more like generator expressions would, IMO, imply making the same change to all for loops: having a StopIteration raised by the body of the loop quietly terminate the loop.

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

2014-11-30 Thread Terry Reedy
On 11/30/2014 2:33 PM, Donald Stufft wrote: So a goal of mine here is to sort of use these as a bit of a test bed. Moving CPython itself is a big and drastic change with a lot of implications, but moving the “support” repositories is not nearly as much, especially with a read only mirror on hg.p

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

2014-11-30 Thread Terry Reedy
On 11/30/2014 1:05 PM, Guido van Rossum wrote: I don't feel it's my job to accept or reject this PEP, but I do have an opinion. ... - I am basically the only remaining active PEP editor, so I see most PEP contributions by non-core-committers. Almost all of these uses github. Not bitbucket, not

Re: [Python-Dev] Unicode decode exception

2014-11-30 Thread Terry Reedy
On 11/30/2014 3:07 AM, balaji marisetti wrote: Hi, When I try to iterate through the lines of a file("openssl-1.0.1j/crypto/bn/asm/x86_64-gcc.c"), I get a UnicodeDecodeError (in python 3.4.0 on Ubuntu 14.04). But there is no such error with python 2.7.6. What could be the problem? Questions ab

Re: [Python-Dev] advice needed: best approach to enabling "metamodules"?

2014-11-30 Thread Terry Reedy
On 11/30/2014 2:27 PM, Ethan Furman wrote: On 11/30/2014 11:15 AM, Guido van Rossum wrote: On Sun, Nov 30, 2014 at 6:15 AM, Brett Cannon wrote: On Sat, Nov 29, 2014, 21:55 Guido van Rossum wrote: All the use cases seem to be about adding some kind of getattr hook to modules. They all seem to

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

2014-11-30 Thread Terry Reedy
On 11/30/2014 4:45 PM, Donald Stufft wrote: I think you are stimulating more heated discussion than is necessary by trying to do too much, both in terms of physical changes and in terms of opinion persuasion. I am reminded of the integer division change. The initial discussion was initially

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

2014-11-30 Thread Terry Reedy
On 11/30/2014 8:19 PM, Pierre-Yves David wrote: Mercurial have robust Windows support for a long time. This support is native (not using cygwin) and handle properly all kind of strange corner case. We have large scale ecosystem (http://unity3d.com/) using Mercurial on windows. We also have full

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

2014-12-01 Thread Terry Reedy
On 12/1/2014 11:42 AM, Wes Turner wrote: Here's a roundup of tools links, to make sure we're all on the same page: Git HG Rosetta Stone === https://github.com/sympy/sympy/wiki/Git-hg-rosetta-stone#rosetta-stone BugWarrior === BugWarrior works with many issue tracker APIs

Re: [Python-Dev] WebM MIME type in mimetypes module

2014-12-02 Thread Terry Reedy
On 12/2/2014 7:07 PM, Chris Rebert wrote: Hi all, I'm seeking to move http://bugs.python.org/issue16329 towards conclusion. Since the discussion on the issue itself seems to have petered out, I thought I'd bring it up here. To summarize the issue, it proposes adding an entry for WebM ( http://w

Re: [Python-Dev] My thinking about the development process

2014-12-05 Thread Terry Reedy
On 12/5/2014 3:04 PM, Brett Cannon wrote: 1. Contributor clones a repository from hg.python.org 2. Contributor makes desired changes 3. Contributor generates a patch 4. Contributor creates account on bugs.python.org and signs the [contributor a

Re: [Python-Dev] My thinking about the development process

2014-12-06 Thread Terry Reedy
On 12/6/2014 10:26 AM, Nick Coghlan wrote: On 7 December 2014 at 01:07, Donald Stufft wrote: A likely solution is to use a pre-merge test runner for the systems that we can isolate which will give a decent indication if the tests are going to pass across the entire supported matrix or not and t

Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition

2014-12-12 Thread Terry Reedy
On 12/12/2014 1:24 PM, Mark Roberts wrote: However, my point was that just because the core libraries by usage are *starting* to roll out Python 3 support doesn't mean that things are "easy" or "convenient" yet. ... I suppose what I'm saying is that the long tail of libraries is far more valua

Re: [Python-Dev] [PEPs] Fwd: fixing broken link in pep 3

2014-12-18 Thread Terry Reedy
On 12/18/2014 4:19 PM, Chris Angelico wrote: On Fri, Dec 19, 2014 at 5:39 AM, Guido van Rossum wrote: -- Forwarded message -- From: Victor Stinner Hi, Yes, the link is dead. It looks like the following link contains the same info: https://docs.python.org/devguide/triaging.htm

Re: [Python-Dev] python 2.7.9 regression in argparse?

2015-01-06 Thread Terry Reedy
On 1/6/2015 7:39 AM, Victor Stinner wrote: More context: 2014-12-19 12:43 GMT+01:00 anatoly techtonik : https://github.com/nickstenning/honcho/pull/121 The link mentions the following changeset: --- changeset: 93122:1a3143752db2 branch: 2.7 parent: 93112:927cca0b9337 user:

Re: [Python-Dev] rst files

2015-01-23 Thread Terry Reedy
On 1/23/2015 7:15 PM, R. David Murray wrote: On Fri, 23 Jan 2015 15:55:29 -0800, Guido van Rossum wrote: This adds entries to the index of the document -- similar to the index at the end of a book. I think single vs. double refers to different types of entries. Check out this page: https://docs

Re: [Python-Dev] (no subject)

2015-02-10 Thread Terry Reedy
On 2/9/2015 7:29 PM, Neil Girdhar wrote: For some reason I can't seem to reply using Google groups, which is is telling "this is a read-only mirror" (anyone know why?) I presume spam prevention. Most spam on python-list comes from the read-write GG mirror. -- Terry Jan Reedy __

Re: [Python-Dev] Emit SyntaxWarning on unrecognized backslash escapes?

2015-02-24 Thread Terry Reedy
On 2/24/2015 1:14 PM, Guido van Rossum wrote: And I'd weigh the needs of users who know what they are doing somewhat higher than educating newbies through error messages. While newbies are most likely to try out open() with a string literal, in "real" programs that is rare, and filenames are typ

Re: [Python-Dev] how to inspect if something includes a bound first param

2015-02-24 Thread Terry Reedy
On 2/24/2015 8:56 PM, Gregory P. Smith wrote: inspect.getargspec(method) and inspect.signature(method) both include the 'self' parameter but how are we to figure out from method itself that it is actually bound and that its first parameter is expected to be a bound instance? This seems like a p

Re: [Python-Dev] how to inspect if something includes a bound first param

2015-02-24 Thread Terry Reedy
On 2/24/2015 9:02 PM, Eric V. Smith wrote: I'm not sure if it's correct, but deep in a library of mine I have: elif type(fn) == types.MethodType: # bound method? if fn.im_self is None: # no 'self' nskip = 0 else: # need to supply 'self' nskip = 1

Re: [Python-Dev] Tunning binary insertion sort algorithm in Timsort.

2015-03-08 Thread Terry Reedy
On 3/8/2015 8:17 PM, nha pham wrote: We can optimize the TimSort algorithm by optimizing its binary insertion sort. The current version of binary insertion sort use this idea: Use binary search to find a final position in sorted list for a new element X. Then insert X to that location. I sugge

Re: [Python-Dev] 2.7.9 regression in argparse

2015-03-20 Thread Terry Reedy
On 3/20/2015 9:31 AM, anatoly techtonik wrote: Just a pointer for possible regression http://bugs.python.org/issue23058 I just added the argparse maintainer to the nosy list -- Terry Jan Reedy ___ Python-Dev mailing list Python-Dev@python.org https:

Re: [Python-Dev] How to document functions with optional positional parameters?

2015-03-21 Thread Terry Reedy
On 3/21/2015 12:41 AM, Serhiy Storchaka wrote: How to document functions with optional positional parameters? For example binascii.crc32(). It has two positional parameters, one is mandatory, and one is optional with default value 0. With Argument Clinic its signature is crc32(data, crc=0, /). I

Re: [Python-Dev] PiCxx

2015-03-24 Thread Terry Reedy
On 3/24/2015 11:53 AM, π wrote: Hello PythonDevvers, I apologise in advance. This is slightly off topic. This will be my only post on the subject. pydev is about development *of* Python the language and CPython the implementation. python-list is about development *with* Python. This post w

Re: [Python-Dev] Installing Python from the source code on Windows

2015-04-03 Thread Terry Reedy
On 4/3/2015 5:51 AM, Narsu wrote: Hi Python I'm working on a game project,using c++ as main language, and using python as script.I've built the Python from the source code on Windows, and when I invoked method Py_Initialize my program exited. After some tests I realized as long as I move the Pyt

Re: [Python-Dev] Type hints -- a mediocre programmer's reaction

2015-04-20 Thread Terry Reedy
On 4/20/2015 9:07 PM, Chris Angelico wrote: On Tue, Apr 21, 2015 at 10:52 AM, Ben Finney wrote: Jack is not complaining only about *writing* code. He's complaining about the effect this will have on code that we all are expected to *read*. For reading, good function and parameter names and

Re: [Python-Dev] Type hints -- a mediocre programmer's reaction

2015-04-21 Thread Terry Reedy
On 4/21/2015 6:50 PM, Chris Barker wrote: On Tue, Apr 21, 2015 at 11:58 AM, Paul Sokolovsky mailto:pmis...@gmail.com>> wrote: It does, and hope people won't be caught in "static typechecking" loop and consider other usages too. I an interested is using type hints for automatic or at le

Re: [Python-Dev] Type hints -- a mediocre programmer's reaction

2015-04-21 Thread Terry Reedy
On 4/21/2015 6:41 PM, Chris Barker wrote: Well, it'll catch passing in a string instead of a sequence of strings -- one of teh common and semi-insidious type errors I see a lot (at least with newbies). Oh wait, maybe it won't -- a string IS a sequence of strings. That's why this is an insidioou

Re: [Python-Dev] Type hints -- a mediocre programmer's reaction

2015-04-23 Thread Terry Reedy
On 4/22/2015 8:45 PM, Guido van Rossum wrote: On Wed, Apr 22, 2015 at 2:38 PM, Chris Barker mailto:chris.bar...@noaa.gov>> wrote: On Tue, Apr 21, 2015 at 11:32 PM, Terry Reedy mailto:tjre...@udel.edu>> wrote: I was just thinking today that for this, ty

Re: [Python-Dev] PEP 492: async/await in Python; version 5

2015-05-05 Thread Terry Reedy
On 5/5/2015 6:25 PM, Yury Selivanov wrote: Yes, there is no other popular event loop for 3.4 other than asyncio, There is the tk(inter) event loop which also ships with CPython, and which is commonly used. that uses coroutines based on generators Oh ;-) Tkinter event loop is callback bas

Re: [Python-Dev] PEP 492: async/await in Python; version 5

2015-05-06 Thread Terry Reedy
this works well, might it make sense to consider using an elaboration of examples/subprocess_shell.py to replace subprocess socket communication with pipe comminication? On Tue, May 5, 2015 at 6:03 PM, Terry Reedy mailto:tjre...@udel.edu>> wrote: My specific use case is to be

Re: [Python-Dev] PEP 492: async/await in Python; version 5

2015-05-06 Thread Terry Reedy
On 5/6/2015 5:39 PM, Guido van Rossum wrote: Sorry to send you on such a wild goose chase! I did mean the issue you found #21). I just updated it with a link to a thread that has more news: https://groups.google.com/forum/#!searchin/python-tulip/tkinter/python-tulip/TaSVW-pjWro/hCP6qS4eRnAJ

Re: [Python-Dev] anomaly

2015-05-12 Thread Terry Reedy
On 5/11/2015 3:40 AM, Florian Bruhin wrote: [snip] This trollish thread was cross-posted to python-list, where it was semi-ok, at least in the beginning, and pydev, where it is not. It has continued on python-list with pydev removed. Please do not continue it here (on pydev). -- Terry Jan

[Python-Dev] Tracker reviews look like spam

2015-05-12 Thread Terry Reedy
Gmail dumps patch review email in my junk box. The problem seems to be the spoofed From: header. Received: from psf.upfronthosting.co.za ([2a01:4f8:131:2480::3]) by mx.google.com with ESMTP id m1si26039166wjy.52.2015.05.12.00.20.38 for ; Tue, 12 May 2015 00:20:38 -0700

[Python-Dev] Repository builds as 2.7.8+

2015-05-13 Thread Terry Reedy
Python 2.7.8+ (default, May 13 2015, 16:46:29) [MSC v.1500 32 bit (Intel)] on win32 Shouldn't this be 2.7.9+ or 2.7.10rc1? -- Terry Jan Reedy ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubs

Re: [Python-Dev] Repository builds as 2.7.8+

2015-05-13 Thread Terry Reedy
On 5/13/2015 5:45 PM, Zachary Ware wrote: On Wed, May 13, 2015 at 4:05 PM, Terry Reedy wrote: Python 2.7.8+ (default, May 13 2015, 16:46:29) [MSC v.1500 32 bit (Intel)] on win32 Shouldn't this be 2.7.9+ or 2.7.10rc1? Make sure your repository is up to date, the patchlevel is correct a

Re: [Python-Dev] Repository builds as 2.7.8+

2015-05-13 Thread Terry Reedy
On 5/13/2015 6:22 PM, Antoine Pitrou wrote: On Wed, 13 May 2015 18:15:10 -0400 Terry Reedy wrote: On 5/13/2015 5:45 PM, Zachary Ware wrote: On Wed, May 13, 2015 at 4:05 PM, Terry Reedy wrote: Python 2.7.8+ (default, May 13 2015, 16:46:29) [MSC v.1500 32 bit (Intel)] on win32 Shouldn&#

Re: [Python-Dev] cpython (merge 3.4 -> default): Added tests for more builtin types.

2015-05-17 Thread Terry Reedy
On 5/17/2015 1:57 AM, Serhiy Storchaka wrote: On 17.05.15 02:44, Ned Deily wrote: In article <20150516183940.21146.77...@psf.io>, serhiy.storchaka wrote: https://hg.python.org/cpython/rev/7b350f712c0e changeset: 96099:7b350f712c0e parent: 96096:f0c94892ac31 parent: 96098:955dffec

Re: [Python-Dev] PEP 553: Built-in debug()

2017-09-07 Thread Terry Reedy
On 9/7/2017 12:50 PM, Barry Warsaw wrote: On Sep 6, 2017, at 23:10, Terry Reedy wrote: Environmental variables are set to strings, not objects. It is not clear how you intend to handle the conversion. The environment variable names a module import path. Without quibbling about the

Re: [Python-Dev] PEP 553: Built-in debug()

2017-09-07 Thread Terry Reedy
On 9/7/2017 12:52 PM, Barry Warsaw wrote: On Sep 7, 2017, at 07:46, Guido van Rossum wrote: Without following all this (or the PEP, yet) super exactly, does this mean you are satisfied with what the PEP currently proposes or would you like changes? It's a little unclear from what you wrote.

Re: [Python-Dev] PEP 553: Built-in debug()

2017-09-08 Thread Terry Reedy
On 9/7/2017 10:45 PM, Barry Warsaw wrote: On Sep 7, 2017, at 16:19, Terry Reedy wrote: I think breakpoint() should have a db= parameter so one can select a debugger in one removable line. The sys interface is more useful for IDEs to change the default, possible with other args (like

Re: [Python-Dev] PEP 553, v3

2017-09-13 Thread Terry Reedy
On 9/13/2017 10:12 PM, Barry Warsaw wrote: Here’s an update to PEP 553, which makes $PYTHONBREAKPOINT a first class feature. I’ve also updated PR #3355 with the implementation to match. Looks pretty good to me. Reading the PR eliminated my remaining uncertainties. -- Terry Jan Reedy ___

Re: [Python-Dev] PEP 553

2017-10-01 Thread Terry Reedy
On 10/2/2017 12:44 AM, Guido van Rossum wrote: - There's no rationale for the *args, **kwds part of the breakpoint() signature. (I vaguely recall someone on the mailing list asking for it but it seemed far-fetched at best.) If IDLE's event-driven GUI debugger were rewritten to run in the user

Re: [Python-Dev] Investigating time for `import requests`

2017-10-02 Thread Terry Reedy
On 10/2/2017 4:57 AM, Paul Moore wrote: In practice, I don't think the fact that re.search() et al cache the compiled expressions is that well known (it's mentioned in the re.compile docs, but not in the re.search docs) We could add redundant mentions in the functions ;-). and so people ofte

Re: [Python-Dev] PEP 553

2017-10-02 Thread Terry Reedy
On 10/2/2017 10:45 AM, Guido van Rossum wrote: On Sun, Oct 1, 2017 at 11:15 PM, Terry Reedy <mailto:tjre...@udel.edu>> wrote: On 10/2/2017 12:44 AM, Guido van Rossum wrote: - There's no rationale for the *args, **kwds part of the breakpoint() signature. (I

Re: [Python-Dev] PEP 530

2017-10-28 Thread Terry Reedy
On 10/27/2017 4:43 PM, London wrote: can you help me get idol for my computer Post questions about using python on python-list and include information about what OS you are running and what version of Python you want. -- Terry Jan Reedy ___ Python

Re: [Python-Dev] Migrate python-dev to Mailman 3?

2017-11-02 Thread Terry Reedy
On 11/1/2017 11:06 PM, Guido van Rossum wrote: Another one is core-mentorship, which satisfies the same criteria; and in my view this has the added and useful property that its beneficiaries are non-core members. After that I'd do core-workflow. Honestly I'd leave python-committers alone for a

Re: [Python-Dev] Reminder: 12 weeks to 3.7 feature code cutoff

2017-11-02 Thread Terry Reedy
On 11/2/2017 4:54 AM, Lele Gaifax wrote: I'm not sure if the rebase should have been done on the original branch instead of creating a new one, or instead if I should open a new PR (and close the original one?). It is normal to 'git merge upstream/master' after updating the master branch and

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

2017-11-06 Thread Terry Reedy
On 11/6/2017 9:47 PM, Nick Coghlan wrote: On 7 November 2017 at 05:00, Alex Gaynor wrote: I also feel this decision was a mistake. If there's a consensus to revert, I'm happy to draft a PEP. Even without consensus to revert, I think it would be great to have a PEP summarising some of the trad

Re: [Python-Dev] PEP 563: Postponed Evaluation of Annotations

2017-11-09 Thread Terry Reedy
On 11/9/2017 9:11 PM, Nick Coghlan wrote: On 10 November 2017 at 05:51, Guido van Rossum wrote: If we have to change the name I'd vote for string_annotations -- "lazy" has too many other connotations (e.g. it might cause people to think it's the thunks). I find str_annotations too abbreviated,

Re: [Python-Dev] PEP 560

2017-11-15 Thread Terry Reedy
On 11/14/2017 3:26 PM, Ivan Levkivskyi wrote: After some discussion on python-ideas, see https://mail.python.org/pipermail/python-ideas/2017-September/047220.html, this PEP received positive comments. The updated version that takes into account the comments that appeared in the discussion so fa

Re: [Python-Dev] Allow tuple unpacking in return and yield statements

2017-11-25 Thread Terry Reedy
On 11/25/2017 1:55 AM, David Cuthbert wrote: First time contributing back -- if I should be filing a PEP or something like that for this, please let me know. I don't think a PEP is needed. Coming from https://bugs.python.org/issue32117, unparenthesized tuple unpacking is allowed in assignme

Re: [Python-Dev] Using async/await in place of yield expression

2017-11-27 Thread Terry Reedy
On 11/27/2017 5:05 PM, Guido van Rossum wrote: On Mon, Nov 27, 2017 at 1:58 PM, Greg Ewing > wrote: Guido van Rossum wrote: The source for sleep() isn't very helpful -- e.g. @coroutine is mostly a backwards compatibility thing. So how

Re: [Python-Dev] Zero-width matching in regexes

2017-12-05 Thread Terry Reedy
On 12/4/2017 6:21 PM, MRAB wrote: I've finally come to a conclusion as to what the "correct" behaviour of zero-width matches should be: """always return the first match, but never a zero-width match that is joined to a previous zero-width match""". Is this different from current re or regex?

Re: [Python-Dev] "CPython loves your Pull Requests" talk by Stéphane Wirtel

2017-12-05 Thread Terry Reedy
On 12/5/2017 10:25 AM, Mariatta Wijaya wrote: * Time to merge a PR: 3 days in average, good! Slide said 2.98 days, another said 4.4% by developers. Regarding the average time to merge PR, I'm interested to know the average time to merge for PRs not made by Python Core Devs. Trivially d

Re: [Python-Dev] PEP 432 progress: Python initalization

2017-12-14 Thread Terry Reedy
On 12/14/2017 10:16 AM, Victor Stinner wrote: Hi, Serhiy Storchaka seems to be worried by the high numbers of commits in https://bugs.python.org/issue32030 "PEP 432: Rewrite Py_Main()", so let me explain the context of this work :-) You could have (and still could) made that a master issue wit

Re: [Python-Dev] Revisiting old enhancement requests

2017-12-19 Thread Terry Reedy
On 12/20/2017 12:36 AM, Steven D'Aprano wrote: What is the best practice for revisiting old enhancement requests on the tracker, if I believe that the time is right to revisit a rejected issue from many years ago? (Nearly a decade.) I have been thinking about the opposite: revisit old enhanceme

Re: [Python-Dev] Is static typing still optional?

2017-12-21 Thread Terry Reedy
On 12/21/2017 4:22 AM, Eric V. Smith wrote: On 12/21/2017 1:46 AM, Chris Barker wrote: I suggest that it be clear in the docs, and ideally in the PEP, that the dataclass decorator is using the *annotation" syntax, and that the the only relevant part it uses is that an annotation exists, but t

Re: [Python-Dev] Is static typing still optional?

2017-12-21 Thread Terry Reedy
On 12/21/2017 9:23 AM, Eric V. Smith wrote: On 12/21/17 6:25 AM, Sven R. Kunze wrote: On 21.12.2017 11:22, Terry Reedy wrote: @dataclass class C: a: int # integer field with no default b: float = 0.0 # float field with a default And the types will be recognized by type checkers

Re: [Python-Dev] Python 3.7: Require OpenSSL >=1.0.2 / LibreSSL >= 2.5.3

2018-01-14 Thread Terry Reedy
On 1/13/2018 3:02 PM, Brett Cannon wrote: On Sat, Jan 13, 2018, 05:24 Antoine Pitrou, > wrote: On Sat, 13 Jan 2018 13:54:33 +0100 Christian Heimes mailto:christ...@python.org>> wrote: > > If we agree to drop support for OpenSSL 0.9.8 and 1.0.1, th

  1   2   3   4   5   6   7   8   9   10   >