[issue27945] Various segfaults with dict

2017-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For the context see issue30484. If the segfault is caused by garbage collection this perhaps is not an expluatable vulnerability, but a severe bug that can affect any multithread application and doesn't have a workaround. --

Re: Teaching the "range" function in Python 3

2017-06-30 Thread Christian Gollwitzer
Am 30.06.17 um 04:33 schrieb Rick Johnson: And to further drive home the point, you can manually insert a list literal to prove this: >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> for value in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]: ... print(value) ... 0 1

[issue30791] tkinter.Tk() adds suffix to window class name when launching multiple instances

2017-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Terry. This is not a Tkinter issue, this is a Tk issue. Ask help on Tcl/Tk resources. If this is considered a bug open a ticket on the Tk tracker: https://core.tcl.tk/tk/tktnew . -- resolution: -> third party stage: -> resolved

[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, fsencode() already rejected embedded nulls, that is why the Posix branch doesn't need additional check for null characters. The Posix branch was changed only for adding the check for the '=' character in names. --

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Isn’t there a “Unicode writer” API that could be used? It could be used if accumulate only Python strings, C strings and separate characters. But in any case we need to convert C integers to strings, and add up to 3 items per every attribute (separator,

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please provide a separate PR for this. After merging it with the master branch it should be backported to 3.6 and 3.5 (3.4 and 3.3 are for security only fixes). Add your name in Misc/ACKS. Changes in Misc/NEWS.d/ are not required. -- stage: ->

[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-30 Thread Steve Dower
Steve Dower added the comment: There's nothing that needs to block the release as far as I'm concerned. The main fix was that I needed a fresh clone on my build machine to pick up the gitattribute changes. The other bug is still open to enhance some tests and skip one in the release tree,

[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-06-30 Thread Steve Dower
Steve Dower added the comment: It's certainly exploitable for remote code execution if user data allows embedded nulls (can you URL encode %00?). The fixes look fine and shouldn't cause any new issues, though I thought that fsencode() already rejected embedded nulls - maybe I'm thinking of

Re: Teaching the "range" function in Python 3

2017-06-30 Thread Chris Angelico
On Sat, Jul 1, 2017 at 1:25 PM, MRAB wrote: > On 2017-07-01 03:12, Stefan Ram wrote: >> >> Terry Reedy writes: >>> >>> range is a class, not a function in the strict sense. >> >> >>»the built-in function range() returns an iterator of

Re: Teaching the "range" function in Python 3

2017-06-30 Thread MRAB
On 2017-07-01 03:12, Stefan Ram wrote: Terry Reedy writes: range is a class, not a function in the strict sense. »the built-in function range() returns an iterator of integers« The Python Language Reference, Release 3.6.0, 8.3 The for statement Python 3.6.1

[issue30597] Show expected input in custom "print" error message

2017-06-30 Thread Ned Deily
Ned Deily added the comment: While it's debatable, I think one can make something of a case for this being a usability bug rather than a new feature. Given the impact to new users of Python 3 and the apparent relative low risk of the change, I'll go out on a bit of a limb and allow it for

[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-06-30 Thread Peter Parente
Peter Parente added the comment: Glad to hear it. Cheers, Victor! -- ___ Python tracker ___ ___

[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-30 Thread Ned Deily
Ned Deily added the comment: So do we have a resolution or resolutions for this yet? And is bpo-30716 truly a duplicate? If so, let's use one or the other. -- ___ Python tracker

[issue30391] test_threading_handled() of test_socketserver hangs randomly on AMD64 FreeBSD 10.x Shared 3.6

2017-06-30 Thread Martin Panter
Martin Panter added the comment: These tests are supposed to: 1. Create a TCP server 2. Open a TCP connection 3. Run a custom connection handler (depending on the particular test) in a new thread 4. When the handler returns, the new thread should call “shutdown_request” 5. Shutdown_request

[issue30319] ConnectionResetError: [Errno 54] Connection reset by peer in socket.close on FreeBSD, Py 3.6

2017-06-30 Thread Martin Panter
Martin Panter added the comment: I think fixing all affected calls to socket.close in the world (option 3) would be too much. I just added two new reports (Issue 30652 and Issue 30391) as dependencies. These are about testing socketserver.TCPServer. As an example, to fix the socket.close call

[issue30779] IDLE: configdialog -- factor out Changes class

2017-06-30 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks for pointing out mapping protocol access. That's what I was (poorly) trying to describe in the __getitem__ docstring in v1. It's a really concept. I worked on the tests. I added some more code to the classes, so I uploaded that too (sorry, but I

[issue29334] ssl.SSLObject method getpeercert() is buggy, do_handshake() is strange

2017-06-30 Thread Ned Deily
Ned Deily added the comment: Is anything holding this up for merging into 3.6 and/or 3.5? -- nosy: +ned.deily ___ Python tracker ___

[issue30779] IDLE: configdialog -- factor out Changes class

2017-06-30 Thread Cheryl Sabella
Changes by Cheryl Sabella : Added file: http://bugs.python.org/file46985/changes_class_v3.py ___ Python tracker ___

[issue30779] IDLE: configdialog -- factor out Changes class

2017-06-30 Thread Cheryl Sabella
Changes by Cheryl Sabella : Added file: http://bugs.python.org/file46984/configdialog_tests_v1.py ___ Python tracker ___

[issue30319] ConnectionResetError: [Errno 54] Connection reset by peer in socket.close on FreeBSD, Py 3.6

2017-06-30 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +test_threading_handled() of test_socketserver hangs randomly on AMD64 FreeBSD 10.x Shared 3.6, test_threading_not_handled() of test_socketserver hangs randomly on AMD64 FreeBSD 10.x Shared 3.6

[issue30741] https://www.pypi-mirrors.org/ error 503

2017-06-30 Thread Ned Deily
Ned Deily added the comment: This doesn't appear to be a Python issue. If necessary, suggest follow up with either pip or the PyPA packaging-problems issue tracker: https://github.com/pypa/packaging-problems/issues -- nosy: +ned.deily resolution: -> third party stage: -> resolved

[issue30739] pypi ssl errors [CERTIFICATE_VERIFY_FAILED]

2017-06-30 Thread Ned Deily
Ned Deily added the comment: It looks like there was a certificate validation error when pip tried to make a TLS (https) connection. If you are still having problems, suggest you check the pip issue tracker and, if needed, ask for help over there. https://github.com/pypa/pip/issues

[issue30714] test_ssl fails with openssl 1.1.0f

2017-06-30 Thread Ned Deily
Ned Deily added the comment: Sorry for the delay. It's clear this needs to get fixed so there's no need to wait to merge PRs into 3.6, 3.5, and 2.7. If the PR gets merged into 3.6 soon, I'll pull it into 3.6.2 as well. -- ___ Python tracker

[issue30686] make `make install` faster

2017-06-30 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list

[issue30623] python-nightly import numpy fails since recently

2017-06-30 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread Martin Panter
Martin Panter added the comment: Don’t let my minus sign suggestion stop this, especially since a couple other people said they don’t like it. The current pull request proposal is beneficial without it. Isn’t there a “Unicode writer” API that could be used? Maybe that’s another alternative

[issue27945] Various segfaults with dict

2017-06-30 Thread Ned Deily
Ned Deily added the comment: Since Serhiy created backport PRs for 3.4 and 3.3, I'm reopening the issue and marking it as Release Blocker (for those releases) so we don't lose track of them and agree they meet the criteria for security-fix-only releases. -- nosy: +benjamin.peterson,

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-06-30 Thread Utkarsh Upadhyay
New submission from Utkarsh Upadhyay: While investigating http://bugs.python.org/issue30302 it was discovered that the Python implementation of the datetime module was not being tested correctly. The datetimetester.py was supposed to execute tests twice, once for the _Fast implementation

[issue30448] test_subprocess creates a core dump on FreeBSD

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: macOS 2.7 buildbots are back. All known bugs are fixed, I close the issue. -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 2.7, Python 3.5, Python 3.6 ___ Python tracker

[issue30448] test_subprocess creates a core dump on FreeBSD

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset fd93f37f0dc537eb7edca7b75e2f92ef54dd2833 by Victor Stinner in branch '2.7': bpo-30448: Fix support.SuppressCrashReport on macOS (#2515) https://github.com/python/cpython/commit/fd93f37f0dc537eb7edca7b75e2f92ef54dd2833 --

[issue30809] IDLE parenmatch - highlighting options

2017-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since configdialog code is being re-written, I would not want to write code right now. But we could start planning. -- dependencies: +IDLE: turn builting extensions into regular modules ___ Python tracker

[issue27099] IDLE: turn builting extensions into regular modules

2017-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: This has to wait for at least some of the refactoring and increased testing of configdialog, and maybe for the switch to ttk. -- dependencies: +IDLE: configdialog - add tests for ConfigDialog GUI., IDLE: configdialog -- factor out Changes class, IDLE:

[issue27099] IDLE: turn builting extensions into regular modules

2017-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am thinking that we should maybe add an 'Editor' tab. Or we could expand the dialog box. More room on General tab can be obtained by removing the label frames, or at least the labels, which seem a bit redundant. -- versions: +Python 3.7

[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-06-30 Thread Ned Deily
Ned Deily added the comment: Steve, Paul: any comments on the severity of this issue and the pushed fixes? -- nosy: +benjamin.peterson, larry, ned.deily priority: normal -> release blocker ___ Python tracker

[issue30803] Truth value of sets not properly documented

2017-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: 1. You have to go to your profile page https://bugs.python.org/user26480 and add your GitHub name in the GitHub Name box. 2. A committer has to change the labels to trigger the robot to recheck. I did that but it did not work because of 1. As I said in my

[issue30795] OS X failures in test_site

2017-06-30 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> site.py imports relatively large `sysconfig` module. ___ Python tracker

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: So, as a compromise, I'll stick to PyObjects (avoiding char* and the buffer size calculations) but will use PyUnicode all the way instead using PyList_* functions (thus reducing the size of the code by ~20 lines). I've pushed this change, ready for review!

[issue30809] IDLE parenmatch - highlighting options

2017-06-30 Thread Charles Wohlganger
Charles Wohlganger added the comment: Implimenting #27099 seems the more reasonable solution to me, so I'll work on that when I have free time. -- ___ Python tracker

[issue30791] tkinter.Tk() adds suffix to window class name when launching multiple instances

2017-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: > tkinter has added a #2 I think you yourself proved otherwise. Additional evidence is that ' #2' is not added on Windows. I have 3 windows titled 'myApp' stacked behind my installed python/IDLE icon. root.winfo_class() returns the class name capitalized, but

Re: Python installer

2017-06-30 Thread eryk sun
On Fri, Jun 30, 2017 at 8:30 PM, Debiller 777 wrote: > I just get error that there is no module name 'encodings' First make sure that neither PYTHONHOME nor PYTHONPATH are defined in your environment. To check this type `set python` in a command prompt. Neither variable

[issue30764] regrtest: Add --fail-env-changed option

2017-06-30 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2589 ___ Python tracker ___ ___

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "The C code looks cumbersome. It could be made a little simpler if accumulate arguments into a string rather than a list." Utkarsh's first version used C code. I proposed to use a PyList and PyUnicodeObject strings to not have to compute the size of

Case Solution: Carmichael Roberts To Create a Private Equity Firm? by Steven Rogers, Kenneth Cooper

2017-06-30 Thread Case Solution & Analysis
Case Solution and Analysis of Carmichael Roberts: To Create a Private Equity Firm? by Steven Rogers, Kenneth Cooper, send email to casesolutionscentre(at)gmail(dot)com Case Study ID: 9-317-079 Get Case Study Solution and Analysis of Carmichael Roberts: To Create a Private Equity Firm? in a

Case Solution: Delivering the Goods at Shippo by Jeffrey J. Bussgang, Jeffrey Rayport, Olivia Hull

2017-06-30 Thread Case Solution & Analysis
Case Solution and Analysis of Delivering the Goods at Shippo by Jeffrey J. Bussgang, Jeffrey Rayport, Olivia Hull, send email to casesolutionscentre(at)gmail(dot)com Case Study ID: 9-817-065 Get Case Study Solution and Analysis of Delivering the Goods at Shippo in a FAIR PRICE!! Our

Case Solution: From Start-Up to Grown-Up Nation The Future of the Israeli Innovation Ecosystem (Abridged) by Elie Ofek, Margot Eiran

2017-06-30 Thread Case Solution & Analysis
Case Solution and Analysis of From Start-Up to Grown-Up Nation: The Future of the Israeli Innovation Ecosystem (Abridged) by Elie Ofek, Margot Eiran, send email to casesolutionscentre(at)gmail(dot)com Case Study ID: 9-517-103 Get Case Study Solution and Analysis of From Start-Up to Grown-Up

Python installer

2017-06-30 Thread Debiller 777
Please help me with Python. I many,MANY TIMES tried to install it, but always had problemThese installers were glistchy. What do I mean? I mean that when I installed Python I almost always got wrong packed folders. For example I open python's folder click on python.exe aand.I just

Case Solution: Floodgate On the Hunt for Thunder Lizards by Rory McDonald, Alix Burke, Emma Franking, Nicole Tempest

2017-06-30 Thread Case Solution & Analysis
Case Solution and Analysis of Floodgate: On the Hunt for Thunder Lizards by Rory McDonald, Alix Burke, Emma Franking, Nicole Tempest, send email to casesolutionscentre(at)gmail(dot)com Case Study ID: 9-617-044 Get Case Solution and Analysis of Floodgate: On the Hunt for Thunder Lizards in

Case Solution: CEO Activism (A) by Michael W. Toffel, Aaron Chatterji, Julia Kelley

2017-06-30 Thread Case Solution & Analysis
Case Solution and Analysis of CEO Activism (A) by Michael W. Toffel, Aaron Chatterji, Julia Kelley, send email to casesolutionscentre(at)gmail(dot)com Case Study ID: 9-617-001 Get Case Study Solution and Analysis of CEO Activism (A) in a FAIR PRICE!! Our e-mail address is

Re: Teaching the "range" function in Python 3

2017-06-30 Thread Terry Reedy
On 6/30/2017 1:07 PM, Irv Kalb wrote: Thanks to everyone who responded to my question about teaching the range function. range is a class, not a function in the strict sense. Classes represent concepts. Instances of classes represent instances of the concept. Range represent the concept

Re: Fwd: ftplib sending data out of order

2017-06-30 Thread Chris Angelico
On Sat, Jul 1, 2017 at 6:03 AM, The Donald wrote: > Charles , please look up the main python wiki here: > > https://REDACTED/wiliki/wiliki.cgi?python This person has been spamming this list and others, dodging bans, and generally behaving in a way that proves he is no

Re: Fwd: ftplib sending data out of order

2017-06-30 Thread The Donald
Charles , please look up the main python wiki here: https://practical-scheme.net/wiliki/wiliki.cgi?python -- https://mail.python.org/mailman/listinfo/python-list

Re: Fwd: ftplib sending data out of order

2017-06-30 Thread The Donald
dude, you're totally welcome. just make sure that you vote the current wiki admins out of office. THEY'RE FIRED ! -- https://mail.python.org/mailman/listinfo/python-list

Fwd: ftplib sending data out of order

2017-06-30 Thread Charles Wilt
Hello, First off, I'm not a python guybut I use a set of python scripts created a few years ago by somebody else to transfer source between the SVN repo on my PC and an IBM i (aka AS/400) system. Recently, multiple developers, including me, have started having intermittent issues whereby the

[issue11975] Fix referencing of built-in types (list, int, ...)

2017-06-30 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2588 ___ Python tracker ___

[issue30814] Import dotted name as alias breaks with concurrency

2017-06-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Interpreter Core nosy: +brett.cannon, eric.snow, ncoghlan, serhiy.storchaka type: -> behavior ___ Python tracker

[issue30809] IDLE parenmatch - highlighting options

2017-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is another option. I want to incorporate 'builtin extensions' as regular features (#27099), and move their configuration options to other tabs, which will need some reworking. #22705 will then be less urgent. Selection from a finite set will then be

[issue30809] IDLE parenmatch - highlighting options

2017-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: As far as you want to go with 1. Review the uploaded patch here or on Rietveld (see review link). Or skip this if you make PR and review on github. 2. Download code, makes minimal changes needed to succeed with 'git apply download' in new branch. 3. git

[issue11975] Fix referencing of built-in types (list, int, ...)

2017-06-30 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2587 ___ Python tracker ___

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Don't wait me. I have no preferences and just remind about the Martin's suggestion. The C code looks cumbersome. It could be made a little simpler if accumulate arguments into a string rather than a list. if (GET_TD_SECONDS(self) != 0) {

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: The docstring changes ought to be easier to review since I'll only be making the Python and C docstrings mostly identical (with some minor changes here and there). I'll also (hopefully) need fewer pointers now that I've been through one review process

[issue30820] email.contentmanager.raw_data_manager fails to create multipart messages

2017-06-30 Thread R. David Murray
R. David Murray added the comment: We should fix the docs for 3.5 and 3.6, and open an enhancement request for 3.7 if we still think this feature is a good idea. -- ___ Python tracker

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread R. David Murray
R. David Murray added the comment: If the docstring changes incorporate changes from this PR, I'd keep them in a single PR myself. If not, two PRs would make review easier. On the other hand, if haypo is volunteering to do the review, do whatever he wants :) --

[issue30804] bolen-dmg-3.x build-installer.py failed

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5e742fa922ea70131b4c63451c87cf0347532806 by Victor Stinner (INADA Naoki) in branch 'master': bpo-30804: fix macOS build with framework enabled. (#2516) https://github.com/python/cpython/commit/5e742fa922ea70131b4c63451c87cf0347532806 --

[issue30804] bolen-dmg-3.x build-installer.py failed

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: Naoki: "How about adding --enable-framework on mac environment of Traivs?" I like the idea. Can you please propose a PR? -- ___ Python tracker

[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2017-06-30 Thread James Shewey
James Shewey added the comment: According to the man page for gethostbyaddr "The gethostbyname*() and gethostbyaddr*() functions are obsolete. Applications should use getaddrinfo(3) and getnameinfo(3) instead." - so perhaps using the correct API call might be a good start to resolving this

[issue30821] unittest.mock.Mocks with specs aren't aware of default arguments

2017-06-30 Thread Max Rothman
Max Rothman added the comment: I'd be happy to look at submitting a patch for this, but it'd be helpful to be able to ask questions of someone more familiar with unittest.mock's code. -- ___ Python tracker

[issue30821] unittest.mock.Mocks with specs aren't aware of default arguments

2017-06-30 Thread Max Rothman
New submission from Max Rothman: For a function f with the signature f(foo=None), the following three calls are equivalent: f(None) f(foo=None) f() However, only the first two are equivalent in the eyes of unittest.mock.Mock.assert_called_with: >>> with patch('__main__.f', autospec=True) as

Re: Teaching the "range" function in Python 3

2017-06-30 Thread Irv Kalb
> On Jun 29, 2017, at 2:21 PM, Chris Angelico wrote: > > On Fri, Jun 30, 2017 at 6:57 AM, Irv Kalb wrote: >> I am wondering if other teachers have run into this. Is this a real >> problem? If so, is there any other way of explaining the concept without

[issue30819] Linking with 'ld -b' fails with 64-bit using Itanium HP compiler

2017-06-30 Thread Robert Boehne
New submission from Robert Boehne: Setting compiler flags to +DD64 produces 64-bit objects, but the linker does not understand this flag, so either you'll see an ld failure to recognize +DD64 at link time, or you'll see a failure later mixing 32 and 64-bit objects. I also modified the C++

[issue30811] A venv created and activated from within a virtualenv uses the outer virtualenv's site-packages rather than its own.

2017-06-30 Thread Antony Lee
Antony Lee added the comment: Sorry, that was a sloppy report. This is a better repro: $ export PIP_CONFIG_FILE=/dev/null # just to be sure python -mvirtualenv outer-env # using /usr/bin/python(3) source outer-env/bin/activate python -mvenv inner-env # using outer-env's python source

[issue30820] email.contentmanager.raw_data_manager fails to create multipart messages

2017-06-30 Thread Anton Khirnov
New submission from Anton Khirnov: The documentation for the "new API" -- email.contentmanager.raw_data_manager -- claims that passing a list of messages to set_content() will create a multipart message. However, it fails with "KeyError: 'builtins.list'" and from looking at the code it seems

[issue30819] Linking with 'ld -b' fails with 64-bit using HP compiler

2017-06-30 Thread Robert Boehne
Changes by Robert Boehne : -- components: Build nosy: Robert Boehne priority: normal severity: normal status: open title: Linking with 'ld -b' fails with 64-bit using HP compiler type: compile error versions: Python 3.7 ___ Python

[issue11798] Test cases not garbage collected after run

2017-06-30 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: @r.david.murray: I'm primarily waiting for Serhiy (and, optionally Martin) to "Okay" the pull request. The code seems fine (@haypo has had a through look at it), but we still were mildly divided over whether we want to factor out the negative sign or not.

Re: Teaching the "range" function in Python 3

2017-06-30 Thread Chris Angelico
On Sat, Jul 1, 2017 at 2:17 AM, Stefan Ram wrote: > However, to my defense, I must say that in this post my intend > was to demonstrate what is happening /behind the curtains/ when > the »for« loop is running, so in this special case, it might be > appropriate to

[issue30804] bolen-dmg-3.x build-installer.py failed

2017-06-30 Thread INADA Naoki
INADA Naoki added the comment: Sorry, It seems I failed to merge local patch. -- ___ Python tracker ___ ___

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-06-30 Thread Robert Boehne
Robert Boehne added the comment: I am having trouble getting things build still. The problem is that the build is using a naked "ld" to link, and it is picking 32-bit mode by default in my 64-bit acc build. (Itanium) IMO the problem is configure.ac:2467 which should look more like the gcc

[issue30804] bolen-dmg-3.x build-installer.py failed

2017-06-30 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +2586 ___ Python tracker ___ ___

Re: why are these 2 fucking clowns in here ?

2017-06-30 Thread Andre Müller
Just don't read it. Calm down. -- https://mail.python.org/mailman/listinfo/python-list

ANN: Wing Python IDE 6.0.6 released

2017-06-30 Thread Wingware
Hi, We've just released Wing 6.0.6 which further improves remote development, adds preferences to avoid problems seen when debugging odoo and some I/O intensive threaded code, solves some auto-completion and auto-editing problems, fixes a few VI mode bugs, remembers editor zoom level between

Re: Teaching the "range" function in Python 3

2017-06-30 Thread Steve D'Aprano
On Fri, 30 Jun 2017 09:17 am, Stefan Ram wrote: b = a.__iter__() Don't do that. Dunder ("Double UNDERscore") methods like __iter__ should only be called by the Python interpreter, not by the programmer. The right way to create an iterator is to call the built-in function iter: b = iter(a)

Re: Teaching the "range" function in Python 3

2017-06-30 Thread Steve D'Aprano
Hello Irv, and welcome! Good to have a teacher of Python here! On Fri, 30 Jun 2017 06:57 am, Irv Kalb wrote: [...] > Now I am looking at the change in the range function. I completely understand > the differences between, and the reasons for, how range works differently in > Python 2 vs Python

[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-30 Thread Brett Cannon
Brett Cannon added the comment: And thanks for at least bringing the idea forward, Tom. -- ___ Python tracker ___

[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-30 Thread Brett Cannon
Brett Cannon added the comment: Both staticmethod and contextmanager are in the index under "S" and "C". But if you mean they were hard to discover, having them under a list of decorators wouldn't have necessarily helped since, as we pointed out, you may get misled to look for a decorator

EuroSciPy 2017 - Call for Contributions extended to July 2

2017-06-30 Thread Mike Müller
Call for Contributions -- There are only 2 days left to submit a talk, tutorial, or poster for EuroSciPy 2017 (https://www.euroscipy.org/2017/). Don't miss the change to talk about what you do with Python in science. Submit your proposal today:

[issue30796] Failures/crashes in test_signal on some buildbots

2017-06-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread R. David Murray
R. David Murray added the comment: I'm not entirely sure what you are asking for opinions on, but for what it is worth I'm with Haypo: the repr should show the *actual* value of the attributes. -- nosy: +r.david.murray ___ Python tracker

[issue30818] Warning -- asyncore.socket_map was modified by test_ftplib on AMD64 FreeBSD 10.x Shared 3.x

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 73528640ffd872141e126d2c4a103126055ec9ce by Victor Stinner in branch 'master': bpo-30818: test_ftplib calls asyncore.close_all() (#2514) https://github.com/python/cpython/commit/73528640ffd872141e126d2c4a103126055ec9ce --

[issue30391] test_threading_handled() of test_socketserver hangs randomly on AMD64 FreeBSD 10.x Shared 3.6

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/525/steps/test/logs/stdio 0:16:07 load avg: 0.35 [406/406/1] test_socketserver crashed (Exit code 1) Timeout (0:15:00)! Thread 0x000802006400 (most recent call first):

[issue29512] regrtest refleak: implement bisection feature

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset a3ca94d0504157a112a1f89bfe8be1307116fc73 by Victor Stinner in branch '3.6': [3.6] bpo-29512, bpo-30776: Backport regrtest enhancements from master to 3.6 (#2513) https://github.com/python/cpython/commit/a3ca94d0504157a112a1f89bfe8be1307116fc73

[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks references

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset a3ca94d0504157a112a1f89bfe8be1307116fc73 by Victor Stinner in branch '3.6': [3.6] bpo-29512, bpo-30776: Backport regrtest enhancements from master to 3.6 (#2513) https://github.com/python/cpython/commit/a3ca94d0504157a112a1f89bfe8be1307116fc73

[issue30448] test_subprocess creates a core dump on FreeBSD

2017-06-30 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2585 ___ Python tracker ___ ___

[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-30 Thread R. David Murray
R. David Murray added the comment: Hmm. All the dunder methods are listed in the index on the '_' page. It would kind of be consistent to have an '@' page. Not sure what would be needed to make that happen though (might be a sphinx level thing). -- nosy: +r.david.murray

[issue30703] Non-reentrant signal handler (test_multiprocessing_forkserver hangs)

2017-06-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for running such a lengthy test, Matt :-) -- ___ Python tracker ___

[issue30804] bolen-dmg-3.x build-installer.py failed

2017-06-30 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +inada.naoki ___ Python tracker ___ ___

[issue30280] Warning -- threading._dangling was modified by test_asyncio on FreeBSD 9 and 10

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 23caf8cfc6c52bdedd8e8db688d807530355fd6d by Victor Stinner in branch '3.6': bpo-30280: Cleanup threads in ayncio tests (#2501) (#2511) https://github.com/python/cpython/commit/23caf8cfc6c52bdedd8e8db688d807530355fd6d --

[issue30280] Warning -- threading._dangling was modified by test_asyncio on FreeBSD 9 and 10

2017-06-30 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

PyCon.DE 2017 - Early Bird Deadline July 2, 2017

2017-06-30 Thread Mike Müller
PyCon.DE 2017 - Early Bird Deadline July 2, 2017 There are only 2 days left to by a ticket at the earl bird rate for PyCon.DE. https://de.pycon.org/#tickets About PyCon.DE -- The next PyCon.DE will be held from 25-27th October 2017 at

[issue30818] Warning -- asyncore.socket_map was modified by test_ftplib on AMD64 FreeBSD 10.x Shared 3.x

2017-06-30 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2584 ___ Python tracker ___ ___

[issue30280] Warning -- threading._dangling was modified by test_asyncio on FreeBSD 9 and 10

2017-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0e0bc8762570277147a09278c829e4a85a331596 by Victor Stinner in branch '3.5': bpo-30280: Cleanup threads in ayncio tests (#2501) (#2512) https://github.com/python/cpython/commit/0e0bc8762570277147a09278c829e4a85a331596 --

  1   2   3   >