Re: Noob confused by ConfigParser defaults

2017-02-19 Thread Ben Finney
Ian Pilcher writes: > How do a set a default for option-1 *only* in section-1? I think you misinderstand the semantics of what ‘configparser’ expects : Default values […] are used in

[issue27660] Replace size_t with Py_ssize_t as the type of local variable in list_resize

2017-02-19 Thread Xiang Zhang
Xiang Zhang added the comment: I opened a PR on GitHub for this issue. Hope Raymond you could review it some time. -- versions: +Python 3.7 -Python 3.6 ___ Python tracker

[issue27660] Replace size_t with Py_ssize_t as the type of local variable in list_resize

2017-02-19 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +155 ___ Python tracker ___ ___ Python-bugs-list

[issue29562] test_getgroups of test_posix fails (on OS X 10.10)

2017-02-19 Thread Jim DeLaHunt
Jim DeLaHunt added the comment: > Note that the result of getgroups(2) is fixed on login, while "id -G" > reflects the current state of the user database on macOS. Wow, that's interesting! Thank you for this information. The test code for test_getgroups does not mention this interaction. I

Re: Python application launcher (for Python code)

2017-02-19 Thread Ben Finney
"Deborah Swanson" writes: > I could probably write this myself, but I'm wondering if this hasn't > already been done many times. Can you describe what you are looking for, in enough detail that we can know whether it's already been done as you want it? -- \

[issue29562] test_getgroups of test_posix fails (on OS X 10.10)

2017-02-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Note that the result of getgroups(2) is fixed on login, while "id -G" reflects the current state of the user database on macOS. Could this explain this failure? That is, have you tried logging out and in again before running the test suite? --

[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang
Xiang Zhang added the comment: Although no feedback from Saida, but IMHO the problem is solved so I close it now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 9a4577a4bb23888fed2cf192cf1a4c95ce5c26f8 by GitHub in branch '3.6': bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref objects (#128) (#186)

[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 7c95a94c3ab41e4296e94335d66b2400ad16f052 by GitHub in branch '3.5': bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref objects (#128) (#188)

[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 7131a73f9655cfd325c798385905326f57b94640 by GitHub in branch '2.7': bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref objects (#128) (#187)

[issue29562] test_getgroups of test_posix fails (on OS X 10.10)

2017-02-19 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___

Noob confused by ConfigParser defaults

2017-02-19 Thread Ian Pilcher
I am trying to use ConfigParser for the first time (while also writing my first quasi-serious Python program). Assume that I want to parse a a configuration file of the following form: [section-1] option-1 = value1 option-2 = value2 [section-2] option-1 = value3 option-2 = value4

Re: print odd numbers of lines from tekst WITHOUT space between lines

2017-02-19 Thread breamoreboy
On Saturday, February 18, 2017 at 6:03:37 PM UTC, Wildman wrote: > On Sat, 18 Feb 2017 09:38:32 -0800, TTaglo wrote: > > > i = 1 > > f = open ('rosalind_ini5(1).txt') > > for line in f.readlines(): > > if i % 2 == 0: > > print line > > i += 1 > > > > > > How do i get output

[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +154 ___ Python tracker ___ ___ Python-bugs-list

[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +153 ___ Python tracker ___ ___ Python-bugs-list

[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +152 ___ Python tracker ___ ___ Python-bugs-list

[issue29347] Python could crash while creating weakref for a given object

2017-02-19 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset d0e8212ed70445cc3d48b0d4ae7c9cb480004010 by GitHub in branch 'master': bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref objects (#128) https://github.com/python/cpython/commit/d0e8212ed70445cc3d48b0d4ae7c9cb480004010

Python application launcher (for Python code)

2017-02-19 Thread Deborah Swanson
I could probably write this myself, but I'm wondering if this hasn't already been done many times. Anyone have some git links or other places to download from? -- https://mail.python.org/mailman/listinfo/python-list

[issue29533] urllib2 works slowly with proxy on windows

2017-02-19 Thread Julia Dolgova
Julia Dolgova added the comment: http://bugs.python.org/issue23384 - same problem -- ___ Python tracker ___

[issue29602] complex() on object with __complex__ function loses sign of zero imaginary part

2017-02-19 Thread Steven D'Aprano
Changes by Steven D'Aprano : -- nosy: +steven.daprano ___ Python tracker ___ ___

[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki
INADA Naoki added the comment: New changeset e395c4dbe19115aaab315c2a113b172e9fef307a by GitHub in branch 'master': bpo-29520: doc: add missing dot (GH-182) https://github.com/python/cpython/commit/e395c4dbe19115aaab315c2a113b172e9fef307a -- ___

[issue29602] complex() on object with __complex__ function loses sign of zero imaginary part

2017-02-19 Thread Tom Krauss
New submission from Tom Krauss: Consider the following simple class that provides a "__complex__" method. class C(object): def __init__(self, x): self.x = x def __complex__(self): return self.x x=C(-0j) PYTHON 2.7.13 >>> x.x -0j >>> complex(x) 0j PYTHON 3.6 >>> x.x (-0-0j) >>>

[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki
INADA Naoki added the comment: New changeset 7970cd483346dfd7723da214fb27399ecc574095 by GitHub in branch '3.6': bpo-29520: doc: fix deprecation warning from 'defindex' template (GH-178) https://github.com/python/cpython/commit/7970cd483346dfd7723da214fb27399ecc574095 --

[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki
INADA Naoki added the comment: New changeset f0174c69b7b8bd27ee32d96e890d665da29472af by GitHub in branch '3.5': bpo-29520: doc: fix deprecation warning from 'defindex' template (GH-179) https://github.com/python/cpython/commit/f0174c69b7b8bd27ee32d96e890d665da29472af --

[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki
INADA Naoki added the comment: New changeset cf44d957ec177be62f5349ef88515190dcfccbd6 by GitHub in branch '2.7': bpo-29520: doc: fix deprecation warning from 'defindex' template (GH-180) https://github.com/python/cpython/commit/cf44d957ec177be62f5349ef88515190dcfccbd6 --

[issue29529] Backport Travis configuration

2017-02-19 Thread INADA Naoki
INADA Naoki added the comment: New changeset 98604c7683f41f04c633935bb582399c50db838c by GitHub in branch '2.7': bpo-29529: Add .travis.yml to 2.7 branch (GH-27) https://github.com/python/cpython/commit/98604c7683f41f04c633935bb582399c50db838c --

[issue29533] urllib2 works slowly with proxy on windows

2017-02-19 Thread Julia Dolgova
Julia Dolgova added the comment: Why not to take it into account? Imagine that someone wants that requests to "ovinnik.canonical.com" should bypass proxy and requests to "ubuntu.com" souldn't. I don't know what for, it's just an assumption. He adds a hostname "ovinnik.canonical.com" into

[issue12450] Use the Grisu algorithms to convert floats to strings

2017-02-19 Thread Bart Robinson
Bart Robinson added the comment: Six years later, I have accepted Amaury's challenge and created an extension module that uses the double-conversion library to generate repr's for floats: https://pypi.python.org/pypi/frepr My rudimentary performance testing gives something like 8X speedup

[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +151 ___ Python tracker ___ ___

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2017-02-19 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset a86339b83fbd0932e0529a3c91935e997a234582 by GitHub in branch 'master': Fixed bpo-29565: Corrected ctypes passing of large structs by value on Windows AMD64. (#168) https://github.com/python/cpython/commit/a86339b83fbd0932e0529a3c91935e997a234582

[issue29565] Still broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2017-02-19 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset a86339b83fbd0932e0529a3c91935e997a234582 by GitHub in branch 'master': Fixed bpo-29565: Corrected ctypes passing of large structs by value on Windows AMD64. (#168) https://github.com/python/cpython/commit/a86339b83fbd0932e0529a3c91935e997a234582

[issue29601] Need reST markup for enum types

2017-02-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 20, 2017, at 12:03 AM, Fred L. Drake, Jr. wrote: >Is there some special treatment you think should be given to specific enum >values as well? The only thing I thought about was optionally provide the enum item's value, when that's useful. Usually you

[issue29601] Need reST markup for enum types

2017-02-19 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Is there some special treatment you think should be given to specific enum values as well? -- nosy: +fdrake ___ Python tracker

[issue11572] bring Lib/copy.py to 100% coverage

2017-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree. The latter simplification can be applied to pickle.py. -- ___ Python tracker ___

[issue11572] bring Lib/copy.py to 100% coverage

2017-02-19 Thread Berker Peksag
Berker Peksag added the comment: All changes to Lib/test/test_copy.py have already been committed. Perhaps the following hunks from the latest patch can still be useful: -try: -d[types.CodeType] = _deepcopy_atomic -except AttributeError: -pass +d[types.CodeType] = _deepcopy_atomic ---

[issue18195] error when deep copying module is confusing

2017-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue looks as enhancement rather than bug fix. Since it is fixed in 3.6 I'm closing it. -- resolution: -> out of date stage: -> resolved status: open -> closed type: -> enhancement ___ Python tracker

[issue22273] abort when passing certain structs by value using ctypes

2017-02-19 Thread Eryk Sun
Eryk Sun added the comment: Structs that are larger than 32 bytes get copied to the stack (see classify_argument in ffi64.c), so we don't have to worry about classifying their elements for register passing. Thus if a new field is added for this in StgDictObject, then PyCArrayType_new should

[issue29540] Add compact=True flag to json.dump/dumps

2017-02-19 Thread Bob Ippolito
Bob Ippolito added the comment: I would recommend a moratorium on new options until we have a plan to make the usage of the JSON APIs simpler overall. It's accumulated too many options over time. The real trouble is figuring out how to do this in a backwards compatible way that does not

[issue29554] profile/pstat doc clariification

2017-02-19 Thread Matthias Bussonnier
Changes by Matthias Bussonnier : -- pull_requests: +148, 149, 150 ___ Python tracker ___

[issue29554] profile/pstat doc clariification

2017-02-19 Thread Matthias Bussonnier
Changes by Matthias Bussonnier : -- pull_requests: +148, 149 ___ Python tracker ___

Re: WANT: bad code in python (for refactoring example)

2017-02-19 Thread Dotan Cohen
There are some nice changes in here. You can mention to the students that I really appreciated the work done on the menu loop. You took an example of code that had grown piecemeal and become reasonably unmaintainable, and refactored it to be very maintainable in the future. Good luck to all class

[issue29554] profile/pstat doc clariification

2017-02-19 Thread Matthias Bussonnier
Changes by Matthias Bussonnier : -- pull_requests: +148 ___ Python tracker ___

[issue29540] Add compact=True flag to json.dump/dumps

2017-02-19 Thread Andrew Nester
Andrew Nester added the comment: Adding new argument sucs as format= or compact= will make API more complicated. In addition it's not easy and has obvious how to handle situations wheb we have both separatots= and format= arguments set. -- ___

[issue23655] Memory corruption using pickle over pipe to subprocess

2017-02-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue23655] Memory corruption using pickle over pipe to subprocess

2017-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Without additional information we can't solve this issue. Is the problem still reproduced? -- status: pending -> open ___ Python tracker

[issue23655] Memory corruption using pickle over pipe to subprocess

2017-02-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue29442] Replace optparse with argparse in setup.py

2017-02-19 Thread Brett Cannon
Brett Cannon added the comment: I just wanted to acknowledge that I read this thread. I accept Chi's acknowledgement of his actions and I hope there aren't future missteps, but please also realize that there has been a warning about how you communicate here, Chi. --

[issue13566] Increase pickle compatibility

2017-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a problem when pickle data in Python 3 for unpickling in Python 2. -- versions: +Python 3.7 -Python 3.5 ___ Python tracker

[issue24159] Misleading TypeError when pickling bytes to a file opened as text

2017-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is worth to improve the error message in the write() method of binary files. >>> sys.stdout.write(b'') Traceback (most recent call last): File "", line 1, in TypeError: write() argument must be str, not bytes >>> sys.stdout.buffer.write('')

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-02-19 Thread Andrew Nester
Andrew Nester added the comment: any updates on this? :) -- ___ Python tracker ___ ___ Python-bugs-list

[issue9267] Update pickle opcode documentation in pickletools for 3.x

2017-02-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.6, Python 3.7 -Python 3.4 ___ Python tracker ___

[issue21401] python2 -3 does not warn about str/unicode to bytes conversions and comparisons

2017-02-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue29580] "Built-in Functions" not being functions

2017-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue11975. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue11572] bring Lib/copy.py to 100% coverage

2017-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is anything left to do with this issue? Many changes were made in the copy module and tests last year. -- nosy: +serhiy.storchaka status: open -> pending ___ Python tracker

[issue26959] pickle: respect dispatch for functions again

2017-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is saving global an atomic operation? Falling back to using reduce can be not safe if some data was written during saving global. That also might make error messages less helpful. Is not founding a function the only cause of PicklingError? Raising and

[issue14336] Difference between pickle implementations for function objects

2017-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In 3.x the fallback was removed by 6bd1f0a27e8e. If this is 2.7 only issue I prefer to close it as "won't fix". See also issue26959. -- nosy: +serhiy.storchaka status: open -> pending ___ Python tracker

[issue14124] _pickle.c comment/documentation improvement

2017-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Using absolute line numbers in comments looks bad idea to me. This becomes outdated very fast. The code of _pickle.c was changed many times since writing the patch. -- nosy: +serhiy.storchaka status: open -> pending

[issue18400] Minor increase to Pickle test coverage

2017-02-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka status: open -> pending ___ Python tracker ___

[issue29594] implementation of __or__ in enum.auto

2017-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Just make C and D protected or private. class Foo(Flag): A = auto() B = auto() AB = A | B _C = auto() __D = auto() AC = A | _C ABD = A | B | __D -- nosy: +serhiy.storchaka ___ Python

[issue29594] implementation of __or__ in enum.auto

2017-02-19 Thread Marc Guetg
Marc Guetg added the comment: One made-up use-case would be: class LogLevel(Flags): start = auto() log1 = start | auto() log2 = start | auto() def fun(flags, *args): if start in flags: # open log file if log1 in flags: # Log important thing 1 if log2

[issue29436] Compilation failure against Android NDK r14 beta 2

2017-02-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: > CPython's support for Android targets only stable releases of the official > NDK. As the NDK is seeing many changes in the recent past and near future (deprecation of the support of gcc in favor of clang, Unified Headers, nearly all the NDK scripts written

[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +147 ___ Python tracker ___ ___

[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +146 ___ Python tracker ___ ___

[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +145 ___ Python tracker ___ ___

[issue29601] Need reST markup for enum types

2017-02-19 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: Over in https://github.com/python/cpython/pull/138 I noticed that we don't currently have markup for enum types. While class:: is technically still correct, it's not helpful because the html documentation should render this as `Enum SafeUUID` not `class

[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread INADA Naoki
INADA Naoki added the comment: New changeset 3eea8c67fa870c6e2b7a521d292afe7fe3e95f58 by GitHub in branch 'master': bpo-29520: doc: fix deprecation warning from 'defindex' template (GH-165) https://github.com/python/cpython/commit/3eea8c67fa870c6e2b7a521d292afe7fe3e95f58 --

[issue22807] uuid.uuid1() should use uuid_generate_time_safe() if available

2017-02-19 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue22807] uuid.uuid1() should use uuid_generate_time_safe() if available

2017-02-19 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed ___ Python tracker ___ ___

[issue29594] implementation of __or__ in enum.auto

2017-02-19 Thread Julien Palard
Julien Palard added the comment: Your implementation looks right, but I don't see the point of defining combinations AB, AC, ABD in the Foo enum. Foo may only define A, B, C, D and outside of Foo anyone can build any needed combinations. This way it looks clear in the Foo declaration (4

[issue29529] Backport Travis configuration

2017-02-19 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +144 ___ Python tracker ___ ___

[issue28754] Argument Clinic for bisect.bisect_left

2017-02-19 Thread Julien Palard
Changes by Julien Palard : -- pull_requests: +143 ___ Python tracker ___ ___

[issue24339] iso6937 encoding missing

2017-02-19 Thread Julien Palard
Julien Palard added the comment: John: You should probably package this as a pip module alongisde with a git repository, at least to measure qty of interested persones, and get some feedback / contributions. -- ___ Python tracker

[issue29594] implementation of __or__ in enum.auto

2017-02-19 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +ethan.furman ___ Python tracker ___ ___

[issue22273] abort when passing certain structs by value using ctypes

2017-02-19 Thread Vinay Sajip
Vinay Sajip added the comment: I've not marked it "patch review" as the patch isn't complete. Just wanted to see if anyone can reproduce/explain the working on Windows/failing on Linux. -- ___ Python tracker

[issue22273] abort when passing certain structs by value using ctypes

2017-02-19 Thread Vinay Sajip
Vinay Sajip added the comment: > I think we can special-case small arrays in PyCStructUnionType_update_stgdict Is that definitely the right place? And is doing it only for small arrays going to be enough? Currently, PyCStructUnionType_update_stgdict does dict = PyType_stgdict(desc); and then

[issue29559] Detect mouse over lines on canvas while mouse button is down

2017-02-19 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +gpolo, serhiy.storchaka ___ Python tracker ___ ___

[issue28886] Move deprecated abc module decorators to separate section in docs

2017-02-19 Thread Harshul
Changes by Harshul : -- keywords: +patch Added file: http://bugs.python.org/file46651/bpo-28886_3.7.patch ___ Python tracker ___

[issue28886] Move deprecated abc module decorators to separate section in docs

2017-02-19 Thread Harshul
Changes by Harshul : -- pull_requests: +141 ___ Python tracker ___ ___

[issue29574] python-3.6.0.tgz permissions borked

2017-02-19 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +ned.deily ___ Python tracker ___ ___

[issue11299] Allow deepcopying paused generators

2017-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Antoine. copy.deepcopy() should be used with care since it recursively copies all referred data. In case of generators the data can be referred implicitly. Every global value cached in local variable, every passed argument, every nonlocal

[issue29599] Github organization link is secret and not accessible from core-dev guide

2017-02-19 Thread Sanyam Khurana
Sanyam Khurana added the comment: Thanks a lot Berker! I've reported the issue there at https://github.com/python/devguide/issues/124 -- ___ Python tracker

[issue29533] urllib2 works slowly with proxy on windows

2017-02-19 Thread Steve Dower
Steve Dower added the comment: My guess is that IE is implemented using lower level APIs and it can choose whether to bypass based on its own list. There's no reason for any other software to take its settings into account. That said, it would be great if urllib can avoid adding long delays,

[issue10701] Error pickling objects with mutating __getstate__

2017-02-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> docs@python components: +Documentation nosy: +docs@python status: open -> pending type: behavior -> enhancement versions: +Python 3.5, Python 3.6, Python 3.7 -Python 3.3, Python 3.4

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-02-19 Thread Berker Peksag
Berker Peksag added the comment: FWIW, I also prefer PR 120 over PR 117. However, if Steven prefers PR 120 we probably should merge it only in master. -- nosy: +berker.peksag stage: -> patch review versions: +Python 3.5, Python 3.7 ___ Python

[issue29592] abs_paths() in site.py is slow

2017-02-19 Thread INADA Naoki
INADA Naoki added the comment: I got it. removeduppaths() may change relpath in sys.path to absolute path. abs_paths() changes __file__ and __cached__ for consistency with the changed sys.path. I updated PR 167 to call abs_paths() only if removeduppaths() modified sys.path. Strictly speaking,

[issue12680] cPickle.loads is not thread safe due to non-thread-safe imports

2017-02-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka type: crash -> behavior ___ Python tracker ___

[issue9592] Limitations in objects returned by multiprocessing Pool

2017-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem with pickling exceptions should be addressed in other issue (issue29466). Other problems seems are solved. -- nosy: +serhiy.storchaka resolution: -> out of date stage: -> resolved status: open -> closed

[issue29237] Create enum for pstats sorting options

2017-02-19 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thank you, Ratnadeep. I've been assigned to this issue, and have made some progress on it. I'm away for a conference right now, and I plan on getting back once I'm back. Will it be possible for you to work on a different issue? Thanks. --

[issue29599] Github organization link is secret and not accessible from core-dev guide

2017-02-19 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report. I agree that the link can be removed. We have a separate issue tracker for devguide at https://github.com/python/devguide/issues Please report this there. -- nosy: +berker.peksag resolution: -> third party stage: -> resolved

[issue29600] Returning an exception object from a coroutine triggers implicit exception chaining?!?

2017-02-19 Thread Nathaniel Smith
New submission from Nathaniel Smith: The following code prints "KeyError()", which is obviously wrong and rather baffling. Just passing an exception object around *as an object* should not trigger implicit exception chaining! If you replace the async functions with regular functions then it

[issue7438] Allow to use a part of subprocess module during building Python

2017-02-19 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___

[issue15317] Source installation sets incorrect permissions for Grammar3.2.3.final.0.pickle

2017-02-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue29442] Replace optparse with argparse in setup.py

2017-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > (example: usage of os.system() in some places) See similar issue7438. -- ___ Python tracker ___

[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-19 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> patch review ___ Python tracker ___

[issue29599] Github organization link is secret and not accessible from core-dev guide

2017-02-19 Thread Sanyam Khurana
New submission from Sanyam Khurana: On visiting link: https://docs.python.org/devguide/coredev.html#github The first sentence is "You will be added to the Python core team on GitHub." The ``Python core team`` refers to a link to Github which is not accessible to anyone except for those who

[issue29592] abs_paths() in site.py is slow

2017-02-19 Thread Nick Coghlan
Nick Coghlan added the comment: Note that "os" doesn't get imported normally, it gets injected as part of the importlib bootstrapping process (since _bootstrap_external.py needs the os module in order to work). -- ___ Python tracker

[issue29436] Compilation failure against Android NDK r14 beta 2

2017-02-19 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Thanks for the response. Sorry if my previous work on Android brings confusion. To prevent possible wasting of time in the future, I'd like to confirm myself for some conclusions: CPython's support for Android targets only stable releases of the official NDK.

[issue29592] abs_paths() in site.py is slow

2017-02-19 Thread Nick Coghlan
Nick Coghlan added the comment: CI failure indicating it isn't redundant, but could still potentially be made faster since non-absolute paths should be relatively rare now: == FAIL: test_s_option

[issue29442] Replace optparse with argparse in setup.py

2017-02-19 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I see your points. Indeed in many times I didn't think carefully before leaving a comment, and not even noticing that my comments can be offensive afterwards. I apologize for all those cases and I'll be more careful when interacting with others in the future.

[issue29598] Write unit tests for pdb module

2017-02-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: Please use one single PR only when the tests are focused on a single topic and can be collected in their own class. When the tests are focused on breakpoints for example. -- nosy: +xdegaye ___ Python tracker

  1   2   >