Re: [Python-Dev] Building python 2.7.10 for Windows from source

2015-07-27 Thread Terry Reedy
On 7/27/2015 10:25 AM, Mark Kelley wrote: Thanks, that got me a bit further. Now I'm wondering how I figure out which version of tcl,tk and Tix actually got built with the 2.7.10 installer. This is really a python-list question, but for the PSF installer, tcl/tk 8.5.15 -- Terry Jan Reedy _

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

2015-07-27 Thread Terry Reedy
On 7/27/2015 3:14 PM, Tim Peters wrote: [Terry Reedy] I think using the word 'naive' is both inaccurate and a mistake. The issue is civil or legal time versus STEM time, where the latter includes applications like baking cakes. Sorry, never heard of "STEM time" befor

Re: [Python-Dev] Issues not responded to.

2015-07-31 Thread Terry Reedy
On 7/31/2015 7:30 AM, Xavier de Gaye wrote: On 07/31/2015 06:42 AM, Zachary Ware wrote: On Thu, Jul 30, 2015 at 8:21 PM, Brett Cannon wrote: Best thing I can think of is to post the Roundup search you did Just put 1 in the Message count box on the standard search page. Nothing special.

Re: [Python-Dev] Python

2015-08-15 Thread Terry Reedy
On 8/16/2015 12:22 AM, lucky yadav wrote: Want to learn python Would u help me! Try the python-tutor list. This list if for development of the next releases of Python. -- Terry Jan Reedy ___ Python-Dev mailing list Python-Dev@python.org https://

Re: [Python-Dev] django_v2 benchmark compatibility fix for Python 3.6

2015-08-25 Thread Terry Reedy
On 8/25/2015 10:51 AM, R. David Murray wrote: On Tue, 25 Aug 2015 13:11:37 -, "Papa, Florin" wrote: My name is Florin Papa and I work in the Server Languages Optimizations Team at Intel Corporation. I would like to submit a patch that solves compatibility issues of the django_v2 benchma

Re: [Python-Dev] Building Extensions for Python 3.5 on Windows

2015-08-25 Thread Terry Reedy
On 8/25/2015 2:17 PM, Steve Dower wrote: I've written up a long technical blog post about the compiler and CRT changes in Python 3.5, which will be of interest to those who build and distribute native extensions for Windows. http://stevedower.id.au/blog/building-for-python-3-5/ Hopefully it put

[Python-Dev] Testing tkinter on Linux

2015-08-26 Thread Terry Reedy
None of the linux buildbots run with X enabled. Consequently none of the tkinter (or tkinter user) gui tests are run on Linux. It was thus pointed out to me, during discussion of using ttk widgets in Idle, that we do not really know if ttk works on the variety of Linux systems (beyond the one

Re: [Python-Dev] Python Issue-subprocess problem

2015-08-27 Thread Terry Reedy
On 8/27/2015 11:05 AM, Ryan Gonzalez wrote: *before anyone else says it* This list is for development /of/ Python, not /in/ Python. If you need help with things like this, I'd advise you to use the python-list mailing list or Stack Overflow

Re: [Python-Dev] Testing tkinter on Linux

2015-08-27 Thread Terry Reedy
On 8/27/2015 12:35 AM, Chris Angelico wrote: On Thu, Aug 27, 2015 at 2:20 PM, Terry Reedy wrote: None of the linux buildbots run with X enabled. Consequently none of the tkinter (or tkinter user) gui tests are run on Linux. It was thus pointed out to me, during discussion of using ttk

Re: [Python-Dev] PEP 498: Literal String Interpolation is ready for pronouncement

2015-09-05 Thread Terry Reedy
On 9/5/2015 12:18 PM, Guido van Rossum wrote: On Sat, Sep 5, 2015 at 2:10 AM, haypo s mailto:victor.stin...@gmail.com>> wrote: We already went over this. You might as well argue that __import__ or lambda should not be used as arguments to print(). It's an expression, and it must allow exactly

Re: [Python-Dev] Choosing an official stance towards module deprecation in Python 3

2015-09-08 Thread Terry Reedy
On 9/8/2015 12:59 PM, Brett Cannon wrote: There are two discussions going on in the issue tracker about deprecating some modules and it has led to the inevitable discussion of Python 2/3 compatibility (I'm not even going to bother mentioning the issue #s as this thread is not about the modules sp

Re: [Python-Dev] Yet another "A better story for multi-core Python" comment

2015-09-08 Thread Terry Reedy
On 9/8/2015 2:08 PM, Stephen J. Turnbull wrote: R. David Murray writes: > On Tue, 08 Sep 2015 10:12:37 -0400, Gary Robinson wrote: > > 2) Have a mode where a particular data structure is not reference > > counted or garbage collected. > > This sounds kind of like what Trent did in PyPa

Re: [Python-Dev] semantics of subclassing things from itertools

2015-09-10 Thread Terry Reedy
On 9/10/2015 3:23 AM, Maciej Fijalkowski wrote: Hi I would like to know what are the semantics if you subclass something from itertools (e.g. islice). I believe people are depending on an undocumented internal speed optimization. See below. Right now it's allowed and people do it, which i

Re: [Python-Dev] Partial function application

2015-09-11 Thread Terry Reedy
On 9/11/2015 3:56 AM, Herbert Kruitbosch wrote: I was wondering if there are considerations for including partial function application syntactically. I very often find myself writing statements as: data_sorted = sort(data, key = lambda x: x[0]) where I would prefer data_sorted = sort(data, key

Re: [Python-Dev] PEP 495 Was: PEP 498: Literal String Interpolation is ready for pronouncement

2015-09-11 Thread Terry Reedy
On 9/11/2015 2:36 PM, Alexander Belopolsky wrote: On Tue, Sep 8, 2015 at 8:27 PM, Guido van Rossum mailto:gu...@python.org>> wrote: Now if only PEP 495 could be as easy... :-) I think we nailed the hard issues there. The next update will have a restored hash invariant and == that satisf

Re: [Python-Dev] PEP 495 Was: PEP 498: Literal String Interpolation is ready for pronouncement

2015-09-11 Thread Terry Reedy
On 9/11/2015 8:40 PM, Alexander Belopolsky wrote: The insanity I am dealing with now is specific to Python datetime which wisely blocks any binary operation that involves naive and aware datetimes, but allows comparisons and subtractions of datetimes with different timezones. This is not an unu

Re: [Python-Dev] PEP 495 Was: PEP 498: Literal String Interpolation is ready for pronouncement

2015-09-12 Thread Terry Reedy
On 9/12/2015 1:04 PM, Alexander Belopolsky wrote: On Sat, Sep 12, 2015 at 1:20 AM, Terry Reedy mailto:tjre...@udel.edu>> wrote: A mathematician has no problem with 'a'+'b' != 'b'+'a'. I doubt it. A binary operation denoted + (and called

[Python-Dev] When is 3.4.4 scheduled?

2015-09-13 Thread Terry Reedy
I could not fine '3.4.4' either in https://www.python.org/dev/peps/pep-0429/ 3.4 schedule or elsewhere on the site. -- Terry Jan Reedy ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: h

Re: [Python-Dev] PEP: Collecting information about git

2015-09-16 Thread Terry Reedy
On 9/15/2015 10:14 PM, Augie Fackler wrote: (Note that I'm not subbed to python-devel, so you'll get faster service by leaving me cc'ed on the thread.) I am not either, because I read and post (since its beginning) via the gmane.comp.python.devel mirror at news.gmane.org. Choose newsgroup or

Re: [Python-Dev] PEP: Collecting information about git

2015-09-16 Thread Terry Reedy
On 9/16/2015 5:20 AM, Oleg Broytman wrote: On Tue, Sep 15, 2015 at 07:44:28PM +, Augie Fackler wrote: There are a lot of reasons to prefer one tool over another. Common ones are familiarity, simplicity, and power. Add here documentation, speed, availability of extensions and 3rd-p

Re: [Python-Dev] PEP: Collecting information about git

2015-09-17 Thread Terry Reedy
On 9/17/2015 3:09 AM, Tim Golden wrote: On 17/09/2015 02:59, Terry Reedy wrote: On 9/16/2015 5:20 AM, Oleg Broytman wrote: On Tue, Sep 15, 2015 at 07:44:28PM +, Augie Fackler wrote: There are a lot of reasons to prefer one tool over another. Common ones are familiarity, simplicity

Re: [Python-Dev] PEP: Collecting information about git

2015-09-17 Thread Terry Reedy
On 9/17/2015 3:17 AM, André Freitas wrote: Regarding Git tools for Windows, GitHub Desktop and Sourcetree are actually very good with nice features. Do you know if either have anything like TortoiseHg Workbench? https://tortoisehg.readthedocs.org/en/latest/workbench.html (screenshot at top) --

Re: [Python-Dev] My collection of Python 3.5.0 regressions

2015-09-18 Thread Terry Reedy
On 9/18/2015 9:18 AM, Victor Stinner wrote: Sadly, Python 3.5.0 comes with regressions. FYI I fixed the following regressions: The tracker needs a new keyword: '3.5regression', to match others. "OSError in os.waitpid() on Windows" http://bugs.python.org/issue25118 "Windows: datetime.datetim

Re: [Python-Dev] Proposing the deprecation of the pyvenv script

2015-09-18 Thread Terry Reedy
On 9/19/2015 1:24 AM, Stephen J. Turnbull wrote: Barry Warsaw writes: > One thing that came up in a similar discussion is pip, and the > suggested move to `python -m pip`, which makes a lot of sense. > However, *inside* a virtualenv, there's no ambiguity about the > Python version associ

Re: [Python-Dev] Committing a bug fix

2015-09-27 Thread Terry Reedy
On 9/27/2015 10:05 PM, Alexander Belopolsky wrote: On Sun, Sep 27, 2015 at 9:12 PM, R. David Murray mailto:rdmur...@bitdance.com>> wrote: .. 3.4, 3.5, and default. 3.4.4rc1 is due out next Sunday. Only emergency patches after that. Thanks. Maybe you can help me to make hg cooper

Re: [Python-Dev] Committing a bug fix

2015-09-28 Thread Terry Reedy
On 9/28/2015 2:56 AM, Martin Panter wrote: Also @Terry, not sure on your workflow, Normal one specified in devguide: commit 3.4, merge 3.5, merge 3.6, except I do it with TortoiseHG Workbench GUI. > but you might have been able to avoid pushing your 3.4 commits. You might have been able to

Re: [Python-Dev] Committing a bug fix

2015-09-28 Thread Terry Reedy
On 9/28/2015 1:12 PM, Alexander Belopolsky wrote: On Mon, Sep 28, 2015 at 4:13 AM, Terry Reedy mailto:tjre...@udel.edu>> wrote: Normal one specified in devguide: commit 3.4, merge 3.5, merge 3.6, That's exactly what I did at fist, but apparently while I was doing this, another

Re: [Python-Dev] Committing a bug fix

2015-09-28 Thread Terry Reedy
On 9/28/2015 7:05 PM, Martin Panter wrote: On 28 September 2015 at 22:31, Terry Reedy wrote: . . . it may have merged in the wrong place, such as putting a things into the 3.5.1 section of 3.6 NEWS, which should not be there. Since you mentioned this and I also noticed this, can I ask why

[Python-Dev] Migrating to Python 3: the python 3 install issue

2015-10-02 Thread Terry Reedy
On python-list, Chris Warrick reported (thread title): "The Nikola project is deprecating Python 2.7 (+2.x/3.x user survey results)" This is for the November release, with 2.7 dropped in the next version next year. (Nikola is a cross-platform unicode-based app for building static websites and

[Python-Dev] 3.4.4rc1, when?

2015-10-03 Thread Terry Reedy
When, exactly, is 3.4.4c1 being branched off (which is when we should stop pushing non-critical patches)? The 3.4 PEP has no mention of 3.4.4 https://www.python.org/dev/peps/pep-0429/ -- Terry Jan Reedy ___ Python-Dev mailing list Python-Dev@python.o

Re: [Python-Dev] 3.4.4rc1, when?

2015-10-04 Thread Terry Reedy
On 10/4/2015 8:37 PM, Larry Hastings wrote: On 10/03/2015 06:35 PM, Terry Reedy wrote: When, exactly, is 3.4.4c1 being branched off (which is when we should stop pushing non-critical patches)? The 3.4 PEP has no mention of 3.4.4 https://www.python.org/dev/peps/pep-0429/ I'm holding o

Re: [Python-Dev] 3.4.4rc1, when?

2015-10-05 Thread Terry Reedy
On 10/4/2015 11:44 PM, Larry Hastings wrote: On 10/04/2015 06:26 PM, Terry Reedy wrote: When might 3.5.1 candidate be? No announcements yet! May I assume that you will give at least two weeks notice and that 3.5.1c1 will be at least 3 or 4 weeks off? -- Terry Jan Reedy

Re: [Python-Dev] An example of Python 3 promotion attitude

2015-10-06 Thread Terry Reedy
On 10/6/2015 7:29 AM, Maciej Fijalkowski wrote: There was a discussion a while ago about python 3 and the attitude on social media and there was a lack of examples. Here is one example: https://www.reddit.com/r/Python/comments/3nl5ut/ninite_the_popular_website_to_install_essential/ I read this

Re: [Python-Dev] Rationale behind lazy map/filter

2015-10-13 Thread Terry Reedy
On 10/13/2015 7:59 AM, Stefan Mihaila wrote: Could someone clarify for me ... This list, pydev, short for 'python development', is for discussing development of future releases of CPython. Your question should have been directed to python-list, where it would be entirely on topic. -- Ter

Re: [Python-Dev] Generated Bytecode ...

2015-10-22 Thread Terry Reedy
On 10/22/2015 1:56 PM, R. David Murray wrote: On Thu, 22 Oct 2015 17:02:48 -, Brett Cannon wrote: On Thu, 22 Oct 2015 at 09:37 Stéphane Wirtel wrote: Hi all, When we compile a python script # test.py if 0: x = 1 python -mdis test.py There is no byte code for the condition.

Re: [Python-Dev] Generated Bytecode ...

2015-10-25 Thread Terry Reedy
On 10/23/2015 4:23 AM, Victor Stinner wrote: Hi, 2015-10-22 19:02 GMT+02:00 Brett Cannon : It's not specified anywhere; it's just what the peepholer decides to remove. The exact code can be found at https://hg.python.org/cpython/file/default/Python/peephole.c . There has been talk in the past f

Re: [Python-Dev] Generated Bytecode ...

2015-10-26 Thread Terry Reedy
On 10/26/2015 10:36 PM, Victor Stinner wrote: 2015-10-24 4:34 GMT+09:00 Terry Reedy : How about -x nopeep to specifically skip the peephole optimizer? Raymond wrote "IIRC, the code was never generated in the first place (before the peephole pass)." I based that suggestion on w

Re: [Python-Dev] If you shadow a module in the standard library that IDLE depends on, bad things happen

2015-10-29 Thread Terry Reedy
On 10/29/2015 4:53 PM, Mark Roseman wrote: Need I submit a bug report/feature request to get this happening? Very, very pleased to have mentioned it … I took care of the bug report. The idle issue is https://bugs.python.org/issue25514 As I said there, I think that removing '' from sys.path,

Re: [Python-Dev] If you shadow a module in the standard library that IDLE depends on, bad things happen

2015-10-29 Thread Terry Reedy
On 10/29/2015 11:59 AM, Laura Creighton wrote: see the following: lac@smartwheels:~/junk$ echo "print ('hello there')" >string.py lac@smartwheels:~/junk$ idle-python3.5 hello there Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.5/idlelib/run.py", line 10, in

Re: [Python-Dev] If you shadow a module in the standard library that IDLE depends on, bad things happen

2015-10-29 Thread Terry Reedy
On 10/29/2015 5:18 PM, Laura Creighton wrote: In a message of Thu, 29 Oct 2015 15:50:30 -0500, Ryan Gonzalez writes: Why not just check the path of the imported modules and compare it with the Python library directory? My friend Åsa who is 12 years old suggested exactly this at the club. Th

Re: [Python-Dev] If you shadow a module in the standard library that IDLE depends on, bad things happen

2015-10-30 Thread Terry Reedy
On 10/30/2015 3:21 AM, Serhiy Storchaka wrote: AFAIK the sys module can't be shadowed. I tried it and it seems to be true of builtins in general. -- Terry Jan Reedy ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/

Re: [Python-Dev] Should PEP 498 specify if rf'...' is valid?

2015-10-31 Thread Terry Reedy
On 10/31/2015 8:48 PM, Nick Coghlan wrote: Given that "f" is standing for a runtime transformation (unlike the purely declarative "b" and "r"), it makes sense to me to mentally translate it as "magic_format_call_that_needs_compiler_assistance()", so requiring the "f" to be first isn't arbitrary,

Re: [Python-Dev] Second milestone of FAT Python

2015-11-04 Thread Terry Reedy
On 11/4/2015 3:50 AM, Victor Stinner wrote: Hi, I'm writing a new "FAT Python" project to try to implement optimizations in CPython (inlining, constant folding, move invariants out of loops, etc.) using a "static" optimizer (not a JIT). For the background, see the thread on python-ideas: https:/

Re: [Python-Dev] A function for Find-Replace in lists

2015-12-09 Thread Terry Reedy
On 12/9/2015 6:43 AM, טל ח wrote: I think it could be helpful for everyone if the function proposed by user "SomethingSomething" can be added as built-in in Python See both question by "SomethingSomething" and answer to himself with implementation.. http://stackoverflow.com/questions/34174643/

Re: [Python-Dev] Typo in PEP-0423

2015-12-19 Thread Terry Reedy
On 12/19/2015 5:55 AM, Nick Coghlan wrote: Even once the new docs are in place, getting them to the top of search of results ahead of archived material that may be years out of date is likely to still be a challenge - for example, even considering just the legacy distutils docs, the "3.1" and "2

Re: [Python-Dev] [Webmaster] Python keeps installing as 32 bit

2015-12-19 Thread Terry Reedy
On 12/18/2015 4:34 PM, Mullins, Robb wrote: Please remove these posts/liservs, etc. if possible, or strip my contact info/name/phone/email off the posts please. I’m getting calls from people trying to help with my Python install issue. http://code.activestate.com/lists/python-dev/138936/ htt

Re: [Python-Dev] PEP 257 and __init__

2015-12-29 Thread Terry Reedy
On 12/29/2015 2:40 PM, Fred Drake wrote: On Tue, Dec 29, 2015 at 1:27 PM, Facundo Batista wrote: I was reading PEP 257 and it says that all public methods from a class (including __init__) should have a docstring. Why __init__? It's behaviour is well defined (inits the instance), and the init

Re: [Python-Dev] PEP 257 and __init__

2016-01-03 Thread Terry Reedy
On 1/3/2016 6:21 PM, Guido van Rossum wrote: On Tue, Dec 29, 2015 at 1:03 PM, Facundo Batista mailto:facundobati...@gmail.com>> wrote: On Tue, Dec 29, 2015 at 4:38 PM, Andrew Barnert mailto:abarn...@yahoo.com>> wrote: > Isn't the same thing true for every special method? There are lots

Re: [Python-Dev] GitHub migration planning has started

2016-01-10 Thread Terry Reedy
On 1/10/2016 12:43 PM, Brett Cannon wrote: For those of you who have not heard, I made the decision a little over a week ago to move Python's development from our home-grown workflow to one hosted on GitHub (mainly for code hosting and code review; we're keeping bugs.python.org

Re: [Python-Dev] GitHub migration planning has started

2016-01-10 Thread Terry Reedy
On 1/11/2016 12:58 AM, Martin Panter wrote: On 11 January 2016 at 03:52, Terry Reedy wrote: On 1/10/2016 12:43 PM, Brett Cannon wrote: If you want to help with the transition, then feel free to join the core-workflow mailing list where all the discussions on the details of the migration are

Re: [Python-Dev] PEP 509

2016-01-12 Thread Terry Reedy
On 1/12/2016 5:24 PM, Ethan Furman wrote: On 01/12/2016 01:34 PM, Victor Stinner wrote: 2016-01-12 19:52 GMT+01:00 Ethan Furman : [1] We're not going to call it __version__ are we? Seems like __cache_token__ is a much better name. While I understand the rationale against __version__, it stri

Re: [Python-Dev] 2.7.11 Windows Installer issues on Win2008R2

2016-01-15 Thread Terry Reedy
On 1/15/2016 5:13 PM, Rader, David wrote: [description of problems] Please register at bugs.python.org and open a new issue for Versions 2.7, Components: Installation, with 'benjamin.peterson' and 'loewis' on the Nosy List. Copy what you wrote in the Comment: box. -- Terry Jan Reedy ___

Re: [Python-Dev] Update PEP 7 to require curly braces in C

2016-01-18 Thread Terry Reedy
On 1/18/2016 6:20 PM, Brett Cannon wrote: On Sun, 17 Jan 2016 at 11:10 Brett Cannon mailto:br...@python.org>> wrote: While doing a review of http://bugs.python.org/review/26129/ I asked to have curly braces put around all `if` statement bodies. Serhiy pointed out that PEP 7 says cu

Re: [Python-Dev] Devguide: Add a table summarizing status of Python branches

2016-01-20 Thread Terry Reedy
On 1/20/2016 12:40 PM, Victor Stinner wrote: Hi, I proposed a patch for the devguide to give the current status of all Python branches: active, bugfix, security only, end-of-line, with their end-of-life when applicable (past date or scheduled date) http://bugs.python.org/issue26165 What do you

Re: [Python-Dev] Update PEP 7 to require curly braces in C

2016-01-20 Thread Terry Reedy
On 1/20/2016 12:45 PM, Brett Cannon wrote: On Tue, 19 Jan 2016 at 19:33 Martin Panter mailto:vadmium%2...@gmail.com>> wrote: On 19 January 2016 at 20:12, Brett Cannon mailto:br...@python.org>> wrote: > Here is a proposed update: > > diff -r 633f51d10a67 pep-0007.txt > -

Re: [Python-Dev] FAT Python (lack of) performance

2016-01-26 Thread Terry Reedy
On 1/26/2016 12:02 AM, INADA Naoki wrote: People use same algorithm on every language when compares base language performance [1]. The python code is NOT using the same algorithm. The proof is that the Python function will return the correct value for, say fib(50) while most if not all the

Re: [Python-Dev] FAT Python (lack of) performance

2016-01-27 Thread Terry Reedy
On 1/26/2016 12:35 PM, Sven R. Kunze wrote: I completely agree with INADA. I an not sure you do. It's like saying, because a specific crossroad features a higher accident rate, *people need to change their driving behavior*. *No!* People won't change and it's not necessary either. The crossro

Re: [Python-Dev] FAT Python (lack of) performance

2016-01-27 Thread Terry Reedy
On 1/26/2016 12:51 PM, Stephen J. Turnbull wrote: Terry Reedy writes: > On 1/26/2016 12:02 AM, INADA Naoki wrote: > > > People use same algorithm on every language when compares base language > > performance [1]. > > The python code is NOT using the same algor

Re: [Python-Dev] More optimisation ideas

2016-01-31 Thread Terry Reedy
On 1/31/2016 12:09 PM, Antoine Pitrou wrote: The following documentation leaves me absolutely clueless: """This class only works with loaders that define exec_module() as control over what module type is used for the module is required. No wonder. I cannot parse it as an English sentence. It

Re: [Python-Dev] More optimisation ideas

2016-02-01 Thread Terry Reedy
On 2/1/2016 3:39 PM, Andrew Barnert via Python-Dev wrote: There are already multiple duplicate questions every month on StackOverflow from people asking "how do I find the source to stdlib module X". The canonical answer starts off by explaining how to import the module and use its __file__, whi

Re: [Python-Dev] More optimisation ideas

2016-02-04 Thread Terry Reedy
On 2/4/2016 12:18 PM, Sven R. Kunze wrote: On 04.02.2016 14:09, Nick Coghlan wrote: On 2 February 2016 at 06:39, Andrew Barnert via Python-Dev wrote: On Feb 1, 2016, at 09:59,mike.romb...@comcast.net wrote: If the stdlib were to use implicit namespace packages (https://www.python.org/dev/

Re: [Python-Dev] Issue #26204: compiler now emits a SyntaxWarning on constant statement

2016-02-08 Thread Terry Reedy
On 2/8/2016 4:51 PM, Victor Stinner wrote: 2016-02-08 22:28 GMT+01:00 Alexander Walters : What incantation do you need to do to make that behavior apparent? I didn't know. I just checked. It's assert used with a non-empty tuple: assert ("tuple",) :1: SyntaxWarning: assertion is always true,

Re: [Python-Dev] PEP 515: Underscores in Numeric Literals

2016-02-11 Thread Terry Reedy
On 2/11/2016 2:45 AM, Georg Brandl wrote: Thanks for grabbing this issue and moving it forward. I will like being about to write or read 200_000_000 and be sure I an right without counting 0s. Based on the feedback so far, I have an easier rule in mind that I will base the next PEP revision

[Python-Dev] Use utf-8 charset for tracker summaries?

2016-03-11 Thread Terry Reedy
The weeky 'Summariy of Python tracker Issues' ('tracker' should be capitalized if 'Issues' is) starts with Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Names sometimes have not-ascii chars, and they do not get properly displayed for me with Thunderbi

Re: [Python-Dev] Use utf-8 charset for tracker summaries?

2016-03-12 Thread Terry Reedy
On 3/12/2016 1:42 AM, Ezio Melotti wrote: On Sat, Mar 12, 2016 at 12:09 AM, Terry Reedy wrote: The weeky 'Summariy of Python tracker Issues' ('tracker' should be capitalized if 'Issues' is) starts with Content-Type: text/plain; charset="us-ascii" Con

Re: [Python-Dev] What does a double coding cookie mean?

2016-03-19 Thread Terry Reedy
On 3/16/2016 3:14 AM, Serhiy Storchaka wrote: On 16.03.16 02:28, Guido van Rossum wrote: I agree that the spirit of the PEP is to stop at the first coding cookie found. Would it be okay if I updated the PEP to clarify this? I'll definitely also update the docs. Could you please also update the

Re: [Python-Dev] bitfields - short - and xlc compiler

2016-03-20 Thread Terry Reedy
On 3/20/2016 4:04 PM, Andrew Barnert via Python-Dev wrote: Agreed. But I think the test is reasonable on at least MSVC, gcc, clang, and icc. So what you need is some way to run the test on those compilers, but not on compilers that can't handle it. The test could be conditioned on the compil

[Python-Dev] Adding a Pip GUI to IDLE and idlelib (GSOC project)

2016-03-26 Thread Terry Reedy
Summary: There are two prospective Google Summer of Code (GSOC) students applying to work on writing a gui interface to the basic pip functions needed by beginners. I expect Google to accept their proposals. Before I commit to mentoring a student (sometime in April), I would like to be sure,

Re: [Python-Dev] Adding a Pip GUI to IDLE and idlelib (GSOC project)

2016-03-28 Thread Terry Reedy
On 3/28/2016 12:50 PM, Ethan Furman wrote: On 03/26/2016 11:13 PM, Terry Reedy wrote: Summary: There are two prospective Google Summer of Code (GSOC) students applying to work on writing a gui interface to the basic pip functions needed by beginners. I expect Google to accept their proposals

Re: [Python-Dev] Not receiving bug tracker emails

2016-04-04 Thread Terry Reedy
On 3/29/2016 7:30 PM, Martin Panter wrote: For the last ~36 hours I have stopped receiving emails for messages posted in the bug tracker. Is anyone else having this problem? Has anything changed recently? My udel dot edu account is handled by google. I am also not getting anything at all, not

Re: [Python-Dev] bugs.python.org email blockage at gmail

2016-04-05 Thread Terry Reedy
On 4/5/2016 3:56 PM, R. David Murray wrote: We think we have a partial (and hopefully temporary) solution to the bugs email blockage: ipv6 has been turned off on bugs, so it is sending only from the ipv4 address. Google appears to be accepting the emails again. However, the IPV4 address has a p

Re: [Python-Dev] When should pathlib stop being provisional?

2016-04-05 Thread Terry Reedy
On 4/5/2016 7:45 PM, Guido van Rossum wrote: This does sound like it's the crucial issue, and it is worth writing up clearly the pros and cons. Let's draft those lists in a thread (this one's fine) and then add them to the PEP. We can then decide to: - keep the status quo - change PurePath to i

Re: [Python-Dev] Not receiving bug tracker emails

2016-04-12 Thread Terry Reedy
On 4/4/2016 5:05 PM, Terry Reedy wrote: Since a few days, I am getting bug tracker emails again, in my Inbox. I just got a Rietveld review in the Inbox and I believe it went there directly instead of first to Junk. Thank you to whoever made the improvements. -- Terry Jan Reedy

Re: [Python-Dev] MAKE_FUNCTION simplification

2016-04-14 Thread Terry Reedy
On 4/14/2016 12:03 PM, Nikita Nemkin wrote: I think that Python should make bytecode explicitly unstable and subject to change with any major release. https://docs.python.org/3/library/dis.html#module-dis CPython implementation detail: Bytecode is an implementation detail of the CPython inter

Re: [Python-Dev] Convert int() to size_t in Python/C

2016-04-29 Thread Terry Reedy
On 4/29/2016 10:45 AM, Marcos Dione wrote: First of all, I'm not subbscribed to the list (too much traffic for me), so please CC: me in any answers if possible. I am indulging you this once, but the proper solution is to read pydev via the gmane.comp.python.devel mirror at news.gmane.com.

Re: [Python-Dev] Yearly PyPI breakage

2016-05-03 Thread Terry Reedy
On 5/3/2016 8:56 PM, Glyph wrote: setup.py bdist_wheel' didn't work), and 'twine upload'. `pip install pypi-cdecimal´ should now work and get you an importable `cdecimal´, and if you happen to be lucky enough to run the same OS version I am, you won't even need to build C code. cdecimal users

Re: [Python-Dev] Removing the provisional label from pathlib

2016-05-24 Thread Terry Reedy
On 5/24/2016 10:49 AM, Paul Moore wrote: On 24 May 2016 at 15:11, Koos Zevenhoven wrote: Please, no. We learned that lesson in Python 2.2.1 with True/False. What happened? True was included in 2.2.1 but not False?-). Anyway, I guess you are probably right, and "3.6->" is the way to go. Besid

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-29 Thread Terry Reedy
On 5/29/2016 12:57 PM, jon wrote: The aspects we want to capture in a name or adjective for these types are: a) The types have identical implementations or definitions. b) They are distinct types. I think “Distinguished Type” or”Cloned Type” best captures these qualities. 'Cloned Type' conve

Re: [Python-Dev] Start of the Python Language Summit coverage at LWN

2016-06-02 Thread Terry Reedy
On 6/2/2016 8:39 PM, Jake Edge wrote: Howdy python-dev, I was able to sit in on the Python Language Summit again this year (thanks Larry and Barry!) and have some of the coverage available for your viewing pleasure now. The starting point is here: https://lwn.net/Articles/688969/ (or here for

Re: [Python-Dev] C99

2016-06-06 Thread Terry Reedy
On 6/6/2016 10:31 AM, Eric V. Smith wrote: Right. So we could use C99 features in 3.6 .h files, as long as the same extension module, unmodified, could be compiled with 3.5 .h files with a 3.5 approved (C89) compiler, and also with a 3.6 approved (C99) compiler. The headers would be different

[Python-Dev] #19335 is a codeop, not Idle issue

2013-10-21 Thread Terry Reedy
I know that many core devs subscribe to the new tracker issues list. If you skipped over http://bugs.python.org/issue19335 because it was (mis) titled as an Idle issue (as I presume most would), you might want to reconsider as it is actually a code and in particular, a codeop issue. Consider th

[Python-Dev] Python 3 to be default in Fedora 22

2013-10-24 Thread Terry Reedy
Progess on the Python3 as 'standard Python' front: Yesterday, FESCO (Fedora Steering Committee?) approved a proposal to make Python 3 (version unspecified, I presume 3.3 or 3.4) the default Python in Fedora 22 (I did not see a date anywhere). http://lwn.net/Articles/571528/ https://fedoraproje

Re: [Python-Dev] Merge codeaccess.txt from wesnoth-contribcommunity project in Google Code Hosting

2013-10-25 Thread Terry Reedy
On 10/25/2013 6:55 PM, Tae Wong wrote: Here's the codeaccess.txt file. https://wesnoth-contribcommunity.googlecode.com/svn/codeaccess.txt This seems to be an old copy of Misc/ACKS except that non-ascii chars are not displayed correctly as a result of some encoding snafu. All committer names

Re: [Python-Dev] Compiler security

2013-10-31 Thread Terry Reedy
On 10/31/2013 10:57 AM, Christian Heimes wrote: I didnt' see this at first: STACK was run against a number of systems written in C/C++ and it found 160 new bugs in the systems tested, including ... and Python (5). Has anybody contact us? I neither saw a bug report nor a mail to PSRT.

Re: [Python-Dev] [Python-checkins] cpython (2.7): Issue #XXXXX: Fix test_idle so that idlelib test cases are actually run

2013-11-04 Thread Terry Reedy
On 11/4/2013 1:09 AM, Zachary Ware wrote: On Sun, Nov 3, 2013 at 10:54 PM, Terry Reedy wrote: On 11/3/2013 11:48 PM, terry.reedy wrote: http://hg.python.org/cpython/rev/cced7981ec4d changeset: 86908:cced7981ec4d branch: 2.7 user:Terry Jan Reedy date:Sun Nov 03 23:37

Re: [Python-Dev] [Python-checkins] cpython (2.7): Issue #XXXXX: Fix test_idle so that idlelib test cases are actually run

2013-11-04 Thread Terry Reedy
On 11/4/2013 5:15 PM, Nick Coghlan wrote: - I actually have "--no-commit" configured as a standard option for hg import in my .hgrc file so I never forget On Windows, hg uses .ini files. Do you have any idea what the [section] option = value would look like? There is gui dialog for managing th

Re: [Python-Dev] [Python-checkins] cpython (2.7): Issue #XXXXX: Fix test_idle so that idlelib test cases are actually run

2013-11-04 Thread Terry Reedy
On 11/5/2013 12:50 AM, Georg Brandl wrote: [defaults] import = --no-commit Thank you. A message in a patch is now ignored rather than auto-committed. I still have to click away the edit box that would allow me to enter a message and override 'no-commit', but I have always managed to do that

Re: [Python-Dev] [RELEASE] Python 2.7.6

2013-11-10 Thread Terry Reedy
On 11/10/2013 2:29 PM, Benjamin Peterson wrote: Python 2.7.6 is now available. This release resolves crashes of the interactive interpreter on OS X 10.9. The final release also fixes several issues identified in the release candidate. Importantly, a security bug in CGIHTTPServer was fixed [1]. T

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

2013-11-12 Thread Terry Reedy
On 11/12/2013 4:16 PM, Victor Stinner wrote: It would also be nice to help developers looking for a sandbox for their application. Please tell me if you know sandbox projects for Python so I can redirect users of pysandbox to a safer solution. I already know PyPy sandbox. There are several web

Re: [Python-Dev] peps: PEP 456: add some of the new implementation details to the PEP's text

2013-11-14 Thread Terry Reedy
On 11/14/2013 4:00 AM, Antoine Pitrou wrote: On Wed, 13 Nov 2013 23:33:02 +0100 (CET) christian.heimes wrote: +Small string optimization += + +Hash functions like SipHash24 have a costly initialization and finalization +code that can dominate speed of the algorithm for

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

2013-11-14 Thread Terry Reedy
On 11/14/2013 4:55 PM, Tres Seaver wrote: About the only things I can think of which might break would be doctests, but people *expect* those to break across third-dot releases of Python (one reason why I hate them). My impression is that we avoid enhancing correct exception messages in bugfi

Re: [Python-Dev] Add transform() and untranform() methods

2013-11-14 Thread Terry Reedy
On 11/14/2013 5:32 PM, Victor Stinner wrote: I don't like the functions codecs.encode() and codecs.decode() because the type of the result depends on the encoding (second parameter). We try to avoid this in Python. Such dependence is common with arithmetic. >>> 1 + 2 3 >>> 1 + 2.0 3.0 >>> 1 +

Re: [Python-Dev] Add transform() and untranform() methods

2013-11-14 Thread Terry Reedy
On 11/14/2013 6:03 PM, Nick Coghlan wrote: You have to get it out of your head that codecs are just about text and and binary data. 99+% of the current codec module doc leads one to that impression. The fact that codecs are expected to have a file reader and writer and that the default 'stri

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

2013-11-14 Thread Terry Reedy
On 11/14/2013 6:57 PM, Chris Barker wrote: On Thu, Nov 14, 2013 at 1:20 PM, Victor Stinner Seriously, *all* these tricky bugs are fixed in Python 3. So don't loose time on trying to workaround them, but invest in the future: upgrade to Python 3! Maybe so -- but we are either maintaining 2.7

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

2013-11-14 Thread Terry Reedy
On 11/14/2013 7:41 PM, Chris Barker wrote: On Thu, Nov 14, 2013 at 3:58 PM, Steven D'Aprano wrote: It's not a given that the current behaviour *is* a bug. I'll concede that it's not a bug unless someone said somewhere that unicode messages should work In particular, what does the reference

[Python-Dev] (#19562) Asserts in Python stdlib code (datetime.py)

2013-11-15 Thread Terry Reedy
http://bugs.python.org/issue19562 propose to change the first assert in Lib/datetime.py assert 1 <= month <= 12, month to assert 1 <= month <= 12,'month must be in 1..12' to match the next two asserts out of the *53* in the file. I think that is the wrong direction of change, but that is not

Re: [Python-Dev] PyParallel: alternate async I/O and GIL removal

2013-11-16 Thread Terry Reedy
On 11/16/2013 8:39 PM, Guido van Rossum wrote: Trent, I watched your video and read your slides. I only read the slides. (Does the word "motormouth" mean anything to you? :-) The extra background (and repetition) was helpful to me in filling in things, especially about Windows, that I coul

Re: [Python-Dev] PEP 0404 and VS 2010

2013-11-20 Thread Terry Reedy
On 11/20/2013 5:30 PM, Barry Warsaw wrote: On Nov 20, 2013, at 09:52 PM, Christian Tismer wrote: Many customers are forced to stick with Python 2.X because of other products, but they require a Python 2.X version which can be compiled using Visual Studio 2010 or better. This is considered an i

Re: [Python-Dev] PEP 0404 and VS 2010

2013-11-21 Thread Terry Reedy
On 11/21/2013 5:13 PM, mar...@v.loewis.de wrote: Quoting Greg Ewing : Concerning the version number, I thought the intention of PEP 404 was simply to say that the PSF would not be releasing anything called Python 2.8, not to forbid anyone *else* from doing so. Or am I wrong about that? That

Re: [Python-Dev] py.ini documentation improvement

2013-11-28 Thread Terry Reedy
On 11/28/2013 4:04 PM, Tim Delaney wrote: I was just getting Jython working with py.exe, and I think the documentation can be made a bit more friendly. In particular think we can make it easier for people to determine the correct folder by changing the line in 3.4.4.1 Customization via INI files:

<    1   2   3   4   5   6   7   8   9   10   >