[issue27945] Various segfaults with dict

2016-11-20 Thread INADA Naoki
INADA Naoki added the comment: LGTM. Performance on Azure VM (AMD Opteron(tm) Processor 4171 HE): $ ~/local/py36/bin/patched -m perf compare_to master.json patched.json -G Slower (10): - spectral_norm: 915 ms +- 17 ms -> 967 ms +- 25 ms: 1.06x slower - nbody: 774 ms +- 28 ms -> 805 ms +- 22

Re: Clean way to return error codes

2016-11-20 Thread Jussi Piitulainen
Steven D'Aprano writes: > I have a script that can be broken up into four subtasks. If any of > those subtasks fail, I wish to exit with a different exit code and > error. > > Assume that the script is going to be run by system administrators who > know no Python and are terrified of tracebacks,

Re: TemplateError

2016-11-20 Thread Vincent Vande Vyvre
Le 21/11/2016 à 07:22, iivri.an...@gmail.com a écrit : THIS error is constantly showing up when I run my python script eloiim:build iivri.andre$ python run.py * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) [2016-11-21 01:15:26,561] ERROR in app: Exception on / [GET] Traceback

Clean way to return error codes

2016-11-20 Thread Steven D'Aprano
I have a script that can be broken up into four subtasks. If any of those subtasks fail, I wish to exit with a different exit code and error. Assume that the script is going to be run by system administrators who know no Python and are terrified of tracebacks, and that I'm logging the full

[issue28032] --with-lto builds segfault in many situations

2016-11-20 Thread Ned Deily
Ned Deily added the comment: For 3.6 at least, there are still mentions of --with-optimizations in Doc/whatsnew/3.6.rst and README. -- ___ Python tracker

[issue28747] Expose SSL_CTX_set_cert_verify_callback

2016-11-20 Thread Ned Deily
Ned Deily added the comment: We are two weeks from producing the release candidate for 3.6.0. I don't think we should be rushing to add a new security-critical API which, IIUC, won't be used in the initial release anyway. Let's target it for 3.7 after proper review and then we can decide

[issue28747] Expose SSL_CTX_set_cert_verify_callback

2016-11-20 Thread Ned Deily
Ned Deily added the comment: And, as it stands, the tests fail (at least on macOS): == ERROR: test_set_cert_verify_callback (test.test_ssl.SimpleBackgroundTests)

Re: TemplateError

2016-11-20 Thread Chris Angelico
On Mon, Nov 21, 2016 at 5:22 PM, wrote: > TemplateNotFound: index.html > > return render_template('index.html', author=author, name=name) The render_template function looks for a directory called "templates" and a file in that of the given name. So you'll need to have

[issue28747] Expose SSL_CTX_set_cert_verify_callback

2016-11-20 Thread Ned Deily
Ned Deily added the comment: With the patch (_2), clang (and gcc 4.2) on macOS warn: ./Modules/_ssl.c:3968:7: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = PyBytes_AS_STRING(enc_cert); ^

TemplateError

2016-11-20 Thread iivri . andre
THIS error is constantly showing up when I run my python script eloiim:build iivri.andre$ python run.py * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) [2016-11-21 01:15:26,561] ERROR in app: Exception on / [GET] Traceback (most recent call last): File

[issue28756] robotfileparser always uses default Python user-agent

2016-11-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> resolved ___ Python tracker ___ ___

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2016-11-20 Thread Xiang Zhang
Changes by Xiang Zhang : -- versions: +Python 3.7 -Python 3.5 ___ Python tracker ___ ___

[issue28756] robotfileparser always uses default Python user-agent

2016-11-20 Thread Xiang Zhang
Xiang Zhang added the comment: Hi, John. This issue of robotparser has been reported in #15851. I'll close this as duplicate and you can discuss in that thread. -- nosy: +xiang.zhang resolution: -> duplicate status: open -> closed superseder: -> Lib/robotparser.py doesn't accept

[issue28758] UnicodeDecodeError: 'gbk' codec can't decode byte 0xab in position 74: illegal multibyte sequence

2016-11-20 Thread dontbugme
New submission from dontbugme: you can see https://github.com/mintty/mintty/issues/609 os.popen('chcp 65001 && ' + JAVA + ' -jar ' + CHECKSTYLE_JAR + ' -c ' + CHECKSTYLE_XML + ' "%s/%s"' % (COMMIT_TEMP_DIT, changed)).read() -- messages: 281322 nosy: dontbugme priority: normal severity:

[issue4347] Circular dependency causes SystemError when adding new syntax

2016-11-20 Thread Martin Panter
Martin Panter added the comment: Equivalent patch for 2.7 -- Added file: http://bugs.python.org/file45576/graminit-dep.py2.patch ___ Python tracker ___

[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2016-11-20 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Works for me. Thanks :) Maybe it's ok to close this ticket now? -- ___ Python tracker ___

[issue25659] ctypes.Array.from_buffer segmentation fault when trying to create from array.array

2016-11-20 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue10656] "Out of tree" build fails on AIX

2016-11-20 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

Re: Numpy slow at vector cross product?

2016-11-20 Thread Steve D'Aprano
On Mon, 21 Nov 2016 07:46 am, DFS wrote: > import sys, time, numpy as np > loops=int(sys.argv[1]) > > x=np.array([1,2,3]) > y=np.array([4,5,6]) > start=time.clock() > for i in range(loops): > np.cross(x,y) > print "Numpy, %s loops: %.2g seconds" %(loops,time.clock()-start) [...] > $ python

[issue28757] Installation Failure

2016-11-20 Thread Sophia I. Salinas
New submission from Sophia I. Salinas: I downloaded Python 3.2 for Mac but when I tried to install it, I got an error that says: "The installation failed. The installer could not install the software because there was no software found to install." -- messages: 281319 nosy: sophiaisa

[issue28747] Expose SSL_CTX_set_cert_verify_callback

2016-11-20 Thread Steve Dower
Steve Dower added the comment: Should have assigned this to me, as I expect I'll be the one to apply it. Christian - I need to look to you for whether I've exposed the right function here and it's not adding security risk (obviously excluding a broken callback implementation). I *think* it's

[issue28556] typing.py upgrades

2016-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 75c7bc2c1ad8 by Guido van Rossum in branch '3.5': Issue #28556: upstream improvements to docstrings and error messages by Ivan Levkivskyi (#331) https://hg.python.org/cpython/rev/75c7bc2c1ad8 New changeset 294525aac5eb by Guido van Rossum in

Re: Numpy slow at vector cross product?

2016-11-20 Thread BartC
On 20/11/2016 20:46, DFS wrote: import sys, time, numpy as np loops=int(sys.argv[1]) x=np.array([1,2,3]) y=np.array([4,5,6]) start=time.clock() for i in range(loops): np.cross(x,y) print "Numpy, %s loops: %.2g seconds" %(loops,time.clock()-start) x=[1,2,3] y=[4,5,6] z=[0,0,0]

Re: help on "from deen import *" vs. "import deen"

2016-11-20 Thread jfong
Tristan B. Kildaire at 2016/11/20 8:23:37PM wrote: > From deen import * imports all the things in deen but accessable with no > `deen.` These "accessible" objects become read-only even if it's mutable. For immutable objects, you can't even create a new one in the deen's namespace. > import

[issue28756] robotfileparser always uses default Python user-agent

2016-11-20 Thread John Nagle
John Nagle added the comment: (That's from a subclass I wrote. As a change to RobotFileParser, __init__ should start like this.) def __init__(self, url='', user_agent=None): self.user_agent = user_agent# save user agent ... --

[issue28756] robotfileparser always uses default Python user-agent

2016-11-20 Thread John Nagle
John Nagle added the comment: Suggest adding a user_agent optional parameter, as shown here: def __init__(self, url='', user_agent=None): urllib.robotparser.RobotFileParser.__init__(self, url) # init parent self.user_agent = user_agent# save user agent

[issue28756] robotfileparser always uses default Python user-agent

2016-11-20 Thread John Nagle
New submission from John Nagle: urllib.robotparser.RobotFileParser always uses the default Python user agent. This agent is now blacklisted by many sites, and it's not possible to read the robots.txt file at all. -- components: Library (Lib) messages: 281314 nosy: nagle priority:

[issue28032] --with-lto builds segfault in many situations

2016-11-20 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: FWIW, XEmacs has used a bit of m4 magic to make --with-* and --enable-* equivalent for 15 years, and nobody has ever complained. The autotools convention is a distinction without a difference, and confuses users when a program feature depends on an

[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2016-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 54b2f377653d by Gregory P. Smith in branch 'default': issue 20572: remove the deprecation notice for the deleted endtime parameter. https://hg.python.org/cpython/rev/54b2f377653d -- ___ Python tracker

[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2016-11-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks for the patch. I reworked it slightly including the test. warning in 3.6, gone in 3.7. i still need to update the 3.7 docs to remove it. -- ___ Python tracker

[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2016-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0e8aa537c565 by Gregory P. Smith in branch '3.6': Issue #20572: The subprocess.Popen.wait method's undocumented endtime https://hg.python.org/cpython/rev/0e8aa537c565 New changeset f02422c6110a by Gregory P. Smith in branch 'default': Issue #20572:

[issue25659] ctypes.Array.from_buffer segmentation fault when trying to create from array.array

2016-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f061870d49c by Martin Panter in branch '3.5': Issue #25659: Change assert to TypeError in from_buffer/_copy() https://hg.python.org/cpython/rev/5f061870d49c New changeset 1253ef20c947 by Martin Panter in branch '3.6': Issue #25659: Merge ctypes

[issue10656] "Out of tree" build fails on AIX

2016-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4852321a by Martin Panter in branch '3.5': Issue #10656: Fix out-of-tree building on AIX https://hg.python.org/cpython/rev/4852321a New changeset 76d1f8001e27 by Martin Panter in branch '3.6': Issue #10656: Merge AIX build fix from 3.5

[issue28666] Make test.support.rmtree() able to remove non-writable directories

2016-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset dd378356c77c by Martin Panter in branch '2.7': Issue #28666: Fix stat import https://hg.python.org/cpython/rev/dd378356c77c -- ___ Python tracker

[issue28755] Rework syntax highlighing in howto/clinic.rst

2016-11-20 Thread Julien Palard
Changes by Julien Palard : Added file: http://bugs.python.org/file45575/issue28755-2.diff ___ Python tracker ___

[issue28727] Implement comparison (x==y and x!=y) for _sre.SRE_Pattern

2016-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks too complicated. groups, indexgroup and groupindex are unambiguously derived from pattern string. If caching works different pattern strings are compiled to different pattern objects. Currently they are not equal, even if their codes are equal.

[issue28512] PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject() always set the offset attribute to None

2016-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch that makes PyErr_SyntaxLocationObject() setting correct offset. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file45574/PyErr_SyntaxLocationObject-offset.patch ___

[issue28755] Rework syntax highlighing in howto/clinic.rst

2016-11-20 Thread Julien Palard
Changes by Julien Palard : -- keywords: +patch Added file: http://bugs.python.org/file45573/issue28755.diff ___ Python tracker

[issue28755] Rework syntax highlighing in howto/clinic.rst

2016-11-20 Thread Julien Palard
New submission from Julien Palard: I was reading `howto/clinic.html` and though I'll fix syntax highlighting. -- assignee: docs@python components: Argument Clinic, Documentation messages: 281304 nosy: docs@python, larry, mdk priority: normal severity: normal status: open title: Rework

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-20 Thread Julien Palard
Julien Palard added the comment: The whole diff is reviewable in `issue28754-3.diff`. -- ___ Python tracker ___

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-20 Thread Julien Palard
Changes by Julien Palard : Added file: http://bugs.python.org/file45572/issue28754-3.diff ___ Python tracker ___

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-20 Thread Julien Palard
Changes by Julien Palard : Added file: http://bugs.python.org/file45571/insort-left.diff ___ Python tracker ___

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-20 Thread Julien Palard
Changes by Julien Palard : Added file: http://bugs.python.org/file45568/bisect_left.diff ___ Python tracker ___

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-20 Thread Julien Palard
Changes by Julien Palard : Added file: http://bugs.python.org/file45570/insort.diff ___ Python tracker ___

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-20 Thread Julien Palard
Changes by Julien Palard : Added file: http://bugs.python.org/file45569/bisect.diff ___ Python tracker ___

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-20 Thread Julien Palard
Julien Palard added the comment: Here it is for the whole bisect module. I separated my work in commits, but I'm not sure how rietveld will eat that as they'll have unknown references, so I'll probably also upload a single patch with a known reference. --

[issue26359] CPython build options for out-of-the box performance

2016-11-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: per comments in issue28032 the new configure flag has been renamed from --with-optimizations to --enable-optimizations in all branches it was added to: remote: notified python-check...@python.org of incoming changeset c0ea81315fb6 remote: notified

[issue28032] --with-lto builds segfault in many situations

2016-11-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: The configure flag has been renamed to --enable-optimizations in the following commits for 3,5, 3.6, default, & 2.7 branches (everywhere it exists): remote: notified python-check...@python.org of incoming changeset c0ea81315fb6 remote: notified

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-20 Thread Julien Palard
Julien Palard added the comment: I searched an occurrence of what I'm describing which is already using clinic and there is, at least, one in Modules/binascii.c line 1090: TL;DR: The idea is to use the `modulename.fnname [as c_basename] = modulename.existing_fn_name` clinic syntax, drop a

[issue28748] Make _Py_PackageContext of type "const char *"

2016-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added a What's New note. On GitHub I found only three projects (besides clones of CPython sources) that use _Py_PackageContext. They are not affected by this change. -- Added file: http://bugs.python.org/file45567/_Py_PackageContext-const-2.patch

[issue28666] Make test.support.rmtree() able to remove non-writable directories

2016-11-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28753] Clinic: Converting Your First Function is not up to date

2016-11-20 Thread Larry Hastings
Larry Hastings added the comment: Let's see what Victor has to say. -- ___ Python tracker ___ ___

[issue28753] Clinic: Converting Your First Function is not up to date

2016-11-20 Thread Julien Palard
Julien Palard added the comment: Should we keep this open for the FASTCALL bit? -- ___ Python tracker ___ ___

[issue28753] Clinic: Converting Your First Function is not up to date

2016-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a18d2cfeb52 by Larry Hastings in branch 'default': Issue 28753: Argument Clinic howto docfix, courtesy Julien Palard. https://hg.python.org/cpython/rev/0a18d2cfeb52 -- nosy: +python-dev ___ Python

[issue28753] Clinic: Converting Your First Function is not up to date

2016-11-20 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue28753] Clinic: Converting Your First Function is not up to date

2016-11-20 Thread Julien Palard
Julien Palard added the comment: Thanks for proof-reading my english, your editions are really nice: LGTM. -- ___ Python tracker ___

[issue28753] Clinic: Converting Your First Function is not up to date

2016-11-20 Thread Larry Hastings
Larry Hastings added the comment: I understand your concern as a non-English speaker, but your patch was really pretty good. I did edit it a little; how's this? -- Added file: http://bugs.python.org/file45566/larry.issue28753.diff ___ Python

[issue28752] datetime object fails to restore from reduction

2016-11-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > On Nov 20, 2016, at 12:34 PM, Serhiy Storchaka wrote: > > The only way is to define both __reduce_ex__ and __reduce__ for time and > datewtime. OK. I'll review your patch and get it committed shortly. --

[issue28666] Make test.support.rmtree() able to remove non-writable directories

2016-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 573fd9607c75 by Serhiy Storchaka in branch '3.5': Issue #28666: Fix removing readonly directories on Windows. https://hg.python.org/cpython/rev/573fd9607c75 New changeset 01f867e9cd34 by Serhiy Storchaka in branch '2.7': Issue #28666: Fix removing

[issue28753] Clinic: Converting Your First Function is not up to date

2016-11-20 Thread Julien Palard
Julien Palard added the comment: @Larry: As a french-speaking guy, I typically don't write non-internal doc in english, fearing it sound weird for natives. I prefer translating it back in french (I'm the current leader of https://github.com/afpy/python_doc_fr) Here, here is a patch.

[issue28666] Make test.support.rmtree() able to remove non-writable directories

2016-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset da1880183693 by Serhiy Storchaka in branch 'default': Issue #28666: Try to fix removing readonly directories on Windows. https://hg.python.org/cpython/rev/da1880183693 -- ___ Python tracker

[issue28752] datetime object fails to restore from reduction

2016-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Other way is to define __reduce_ex__ instead of __reduce__ in datetime.date. Sorry, I was wrong. This would wouldn't work with C implementation. And explicitly setting __reduce__ = object.__reduce__ doesn't work. The only way is to define both

[issue28752] datetime object fails to restore from reduction

2016-11-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > On Nov 20, 2016, at 11:10 AM, Serhiy Storchaka wrote: > > Other way is to define __reduce_ex__ instead of __reduce__ in datetime.date. I would prefer this solution. -- ___ Python

[issue28753] Clinic: Converting Your First Function is not up to date

2016-11-20 Thread Larry Hastings
Larry Hastings added the comment: The bit about the "clinic/_" include is a good point. Care to write a doc patch? The bit about FASTCALL I don't know anything about because I haven't worked with FASTCALL. I've added Victor Stinner, the author of the FASTCALL patch, maybe he can address

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rhettinger versions: +Python 3.7 ___ Python tracker ___

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-20 Thread Larry Hastings
Larry Hastings added the comment: Oh, and, if the code literally asserts they're the same function, that's just a sanity check based on the implementation. You could preserve that if you care to, or you could just write a new function and remove the assertion. Do what you think is best,

[issue28752] datetime object fails to restore from reduction

2016-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch restores the __reduce__() methods and makes Python and C implementations more consistent. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file45564/datetime-reduce.patch

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-20 Thread Larry Hastings
Larry Hastings added the comment: There's special syntax to handle aliases. From comments in clinic.py: # alternatively: # modulename.fnname [as c_basename] = modulename.existing_fn_name # clones the parameters and return converter from that # function. you

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-20 Thread Julien Palard
Changes by Julien Palard : Added file: http://bugs.python.org/file45563/issue28754-2.diff ___ Python tracker ___

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-20 Thread Julien Palard
New submission from Julien Palard: Today I read https://docs.python.org/3.6/howto/clinic.html so I tried one: bisect.bisect_left. I was unable to do `bisect_right`, as it's an "alias" for `bisect`, and there's a unit-test checking `self.assertEqual(self.module.bisect,

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-20 Thread Julien Palard
Changes by Julien Palard : -- keywords: +patch Added file: http://bugs.python.org/file45562/issue28754.diff ___ Python tracker

[issue28753] Clinic: Converting Your First Function is not up to date

2016-11-20 Thread Julien Palard
Changes by Julien Palard : -- assignee: -> docs@python components: +Documentation nosy: +docs@python type: -> enhancement ___ Python tracker

[issue28753] Clinic: Converting Your First Function is not up to date

2016-11-20 Thread Julien Palard
Changes by Julien Palard : -- components: +Argument Clinic nosy: +larry versions: +Python 3.6 ___ Python tracker ___

[issue28753] Clinic: Converting Your First Function is not up to date

2016-11-20 Thread Julien Palard
Changes by Julien Palard : -- versions: +Python 3.7 ___ Python tracker ___ ___

[issue28753] Clinic: Converting Your First Function is not up to date

2016-11-20 Thread Julien Palard
New submission from Julien Palard: It looks like the "Converting Your First Function" has been written with clinic-generated C code interspersed with user C code. But it looks like nowadays a `clinic/{}.c.h` file is generated, so the "Converting Your First Function" should tell us to add the

[issue28752] datetime object fails to restore from reduction

2016-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now pickling of the datetime.datetime objects is implemented with __reduce_ex__. __reduce__ is not defined in datetime.datetime and is inherited from datetime.date. >>> datetime.datetime.__reduce_ex__ >>> datetime.datetime.__reduce__ __reduce_ex__ has

ANN: eGenix PyRun - One file Python Runtime 2.2.2

2016-11-20 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix PyRun - One file Python Runtime Version 2.2.2 An easy-to-use single file relocatable Python run-time - available for Linux, Mac OS X and Unix

[issue28752] datetime object fails to restore from reduction

2016-11-20 Thread Jason R. Coombs
Jason R. Coombs added the comment: Pickle still works, so pickle must be relying on a different protocol for serialization. $ python Python 3.6.0b3 (v3.6.0b3:8345e066c0ed, Oct 31 2016, 18:05:23) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or

[issue28752] datetime object fails to restore from reduction

2016-11-20 Thread Jason R. Coombs
New submission from Jason R. Coombs: On Python 3.5, the datetime would reduce and restore cleanly. $ python3.5 -c "import datetime; func, params = datetime.datetime.now().__reduce__(); func(*params)" With Python 3.6.0b3, it now fails with a TypeError. $ python3.6 -c "import datetime; func,

[issue28666] Make test.support.rmtree() able to remove non-writable directories

2016-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset b51607ea54c5 by Serhiy Storchaka in branch '2.7': Issue #28666: Now test.test_support.rmtree is able to remove unwritable or https://hg.python.org/cpython/rev/b51607ea54c5 New changeset 9e23b8996584 by Serhiy Storchaka in branch '3.5': Issue

[issue28750] Replace string with bytes in doc of unicode-escape an raw-unicode-escape

2016-11-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue28750] Replace string with bytes in doc of unicode-escape an raw-unicode-escape

2016-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 059b8e15b738 by Serhiy Storchaka in branch '3.5': Issue #28750: Fixed docs of of unicode-escape an raw-unicode-escape C API. https://hg.python.org/cpython/rev/059b8e15b738 New changeset 0c6fccf04a79 by Serhiy Storchaka in branch '3.6': Issue

[issue28750] Replace string with bytes in doc of unicode-escape an raw-unicode-escape

2016-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: docs@python -> serhiy.storchaka ___ Python tracker ___

[issue28655] Tests altered the execution environment in isolated mode

2016-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Most warnings are fixed in issue19398. The only warnings are left in test_import and test_lib2to3. $ ./python -I -S -m test.regrtest -vv test_import test_lib2to3 >/dev/null Warning -- files was modified by test_import Before: [] After:

[issue28750] Replace string with bytes in doc of unicode-escape an raw-unicode-escape

2016-11-20 Thread Julien Palard
Julien Palard added the comment: So, lgtm. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28750] Replace string with bytes in doc of unicode-escape an raw-unicode-escape

2016-11-20 Thread Xiang Zhang
Xiang Zhang added the comment: > But I think the word "Python" in "Python bytes object" is redundant. It was > needed in "Python string object" to distinguish from "C string" and "Python > Unicode object". Make sense. This "Python" actually appears in many places in the docs. I only change

[issue28667] FD_SETSIZE is unsigned on FreeBSD

2016-11-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

Re: help on "from deen import *" vs. "import deen"

2016-11-20 Thread Bev in TX
Thanks to ChrisA and Ned for that clarification. Bev in TX -- https://mail.python.org/mailman/listinfo/python-list

[issue28750] Replace string with bytes in doc of unicode-escape an raw-unicode-escape

2016-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For PyUnicode_AsCharmapString and PyUnicode_EncodeCharmap see issue28749. -- ___ Python tracker ___

[issue28750] Replace string with bytes in doc of unicode-escape an raw-unicode-escape

2016-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch Xiang! But I think the word "Python" in "Python bytes object" is redundant. It was needed in "Python string object" to distinguish from "C string" and "Python Unicode object". -- nosy: +serhiy.storchaka

[issue28750] Replace string with bytes in doc of unicode-escape an raw-unicode-escape

2016-11-20 Thread Julien Palard
Julien Palard added the comment: The inconcistencies were introduced in hg changeset 41703:7993f23ad46c, git commit: commit 40ec96630b96f077c8b5746ab0ec038f95aede8b Author: Walter Dörwald Date: Sat May 12 11:08:06 2007 + Change PyUnicode_EncodeUnicodeEscape()

[issue28751] Fix comments in code.h

2016-11-20 Thread Emanuel Barry
Changes by Emanuel Barry : -- nosy: +ebarry ___ Python tracker ___ ___ Python-bugs-list

[issue28751] Fix comments in code.h

2016-11-20 Thread Ned Batchelder
Changes by Ned Batchelder : -- keywords: +patch Added file: http://bugs.python.org/file45560/28751.patch ___ Python tracker ___

[issue28751] Fix comments in code.h

2016-11-20 Thread Ned Batchelder
New submission from Ned Batchelder: A field moved in PyCodeObject, but comments mentioning it were not updated. Also, there's a stray word? -- messages: 281268 nosy: brett.cannon, nedbat priority: normal severity: normal status: open title: Fix comments in code.h versions: Python 3.7

[issue28750] Replace string with bytes in doc of unicode-escape an raw-unicode-escape

2016-11-20 Thread Emanuel Barry
Changes by Emanuel Barry : -- stage: patch review -> commit review ___ Python tracker ___

[issue28666] Make test.support.rmtree() able to remove non-writable directories

2016-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Kushal. -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue28750] Replace string with bytes in doc of unicode-escape an raw-unicode-escape

2016-11-20 Thread Xiang Zhang
Changes by Xiang Zhang : Added file: http://bugs.python.org/file45559/unicode-escape-doc_v2.patch ___ Python tracker ___

[issue28748] Make _Py_PackageContext of type "const char *"

2016-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: It technically could (if they're passing it to a function that takes a "char *"), but if they are and they can't change the affected function to take "const char *" instead, then that's an actual bug in the way they're using it. So +1 from me for explicitly

[issue28666] Make test.support.rmtree() able to remove non-writable directories

2016-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 63820871014d by Serhiy Storchaka in branch '2.7': Issue #28666: Now test.support.rmtree is able to remove unwritable or https://hg.python.org/cpython/rev/63820871014d New changeset c92f9be77b9b by Serhiy Storchaka in branch '3.5': Issue #28666: Now

[issue10049] Add a "no-op" (null) context manager to contextlib (Rejected: use contextlib.ExitStack())

2016-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: Unfortunately, the redundancy doesn't buy enough to justify the permanent documentation and style guide cost of providing two ways to do exactly the same thing. -- ___ Python tracker

  1   2   >