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

2017-11-22 Thread Vinay Sajip
Vinay Sajip added the comment: > I guess it's reasonable, I'll see whether we can use the workaround you > proposed. OK, please post your findings here. > (Could a fix on virtualenv's side help?) Probably not, as it's not behaving unexpectedly. It might be worth

[issue30230] Move quick test in PyObject_IsSubClass outside of PyType_CheckExact guard

2017-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, please move this to Python-Dev. -- ___ Python tracker ___

[issue10544] yield expression inside generator expression does nothing

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: "Just fix the issue" is easier said than done for the same reason that comprehensions were implemented the way they are now: lambda expressions still have to work. That is, we need to maintain the invariant that: [x for x in iterable]

[issue32117] Tuple unpacking in return and yield statements

2017-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since this changes the grammar, it should be first discussed on Python-Dev and approved by BDFL. -- nosy: +serhiy.storchaka ___ Python tracker

[issue32117] Tuple unpacking in return and yield statements

2017-11-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.7 -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___

[issue32118] Docs: add note about sequence comparisons containing non-orderable elements

2017-11-22 Thread Dubslow
Dubslow added the comment: The PR includes an unrelated one word grammar fix in the same file, that can be removed (by me or by someone else, IDC). This is possibly backportable but I wouldn't know, and leave such decisions for someone who do. -- type: ->

[issue32118] Docs: add note about sequence comparisons containing non-orderable elements

2017-11-22 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +4451 stage: -> patch review ___ Python tracker ___

[issue32118] Docs: add note about sequence comparisons containing non-orderable elements

2017-11-22 Thread Dubslow
New submission from Dubslow : In sequence comparisons, the enforcement of reflexivity of elements means that only non-identical elements are actually compared. The docs then note, with example, that non-reflexive elements thus always "compare" equal inside the sequence.

[issue32109] Separated square brackets will generate a tuple instead of a list.

2017-11-22 Thread YCmove
YCmove added the comment: Yes, what Cheryl Sabella says is what I was misled to. Took me a while to understand that ``[a]``, ``[a, b, c]`` is not ``[a], [a, b, c]``, how about replace comma to "or" for more clarity? just like it used in [tuple

[issue5710] ctypes should return composite types from callbacks

2017-11-22 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: For those interested, we developed a workaround for this in Rubicon: https://github.com/pybee/rubicon-objc/pull/85/files The fix involves using ctypes to access ctypes own internals, and build a modified version of the Structure

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4450 ___ Python tracker ___ ___

[issue10544] yield expression inside generator expression does nothing

2017-11-22 Thread Nick Coghlan
Change by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list

[issue32100] IDLE: PathBrowser isn't working

2017-11-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for catching and fixing this. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32100] IDLE: PathBrowser isn't working

2017-11-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ae3c5c7b9e5e5ba53213e12cc100e32415d5762c by Terry Jan Reedy in branch '3.6': [3.6] bpo-32100: IDLE: Fix pathbrowser errors; improve tests. (GH-4484) (#4512)

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset e32e79f7d8216b78ac9e61bb1f2eee693108d4ee by Victor Stinner in branch 'master': bpo-32030: Move PYTHONPATH to _PyMainInterpreterConfig (#4511)

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: Even the public implementation of PEP 432 is going to bound by the requirement to keep existing embedding logic working, and that's encapsulated in the new test Eric added in his PR: wchar_t *program = Py_DecodeLocale("spam", NULL);

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: My PR 4502 implements all optimizations, but also converts warnings.filters to a tuple, to detect when detect attempts to modify directly warnings.filters, rather than using function calls. Problem: test.libregrtest module uses a

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: "Victor, I think you're fundamentally misunderstanding the goals of PEP 432. The entire point is to let people have a *mostly working Python runtime* during CPython startup. (...)" While the PEP 432 is nice, all changes are

[issue10049] Add a "no-op" (null) context manager to contextlib

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks to Jesse Bakker for the PR implementing this for 3.7! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker

[issue10049] Add a "no-op" (null) context manager to contextlib

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 0784a2e5b174d2dbf7b144d480559e650c5cf64c by Nick Coghlan (Jesse-Bakker) in branch 'master': bpo-10049: Add a "no-op" (null) context manager to contextlib (GH-4464)

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: Follow up: this also came up on https://bugs.python.org/issue32030#msg306763, and I think Victor and I are on the same page now :) Since MainInterpreterConfig is currently still a private struct, we can store the existing C level config

[issue32100] IDLE: PathBrowser isn't working

2017-11-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +4449 ___ Python tracker ___ ___

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: Nice, thanks for that. Good call on keeping the current data types for now, so we can focus on consolidating the configuration settings first, and then look at upgrading from C level types to Python level types later. --

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: Nick: Ok, I created PR 4511. -- ___ Python tracker ___

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4448 ___ Python tracker ___ ___

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: Also, the basic rules of thumb I use for deciding whether or not a setting belongs in CoreConfig: * does `PyUnicode_New` need this? (If yes, then include it) * does the importlib bootstrapping need this? (If yes, then include it) Everything

[issue32114] The get_event_loop change in bpo28613 did not update the documentation

2017-11-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +4447 stage: needs patch -> patch review ___ Python tracker

[issue32100] IDLE: PathBrowser isn't working

2017-11-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 20d48a44a54ed5e4a6df00e89ae27e3983128265 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-32100: IDLE: Fix pathbrowser errors; improve tests. (#4484)

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: Victor, I think you're fundamentally misunderstanding the goals of PEP 432. The entire point is to let people have a *mostly working Python runtime* during CPython startup. Moving everything that Py_Initialize needs to instead have to

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: Victor, *please* don't add the external import settings to CoreConfig. That struct should only contain the absolute bare minimum of settings needed to get an interpreter that *can't* access the filesystem, such that builtin modules and

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-11-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have prepared a patch (attached) with a possible implementation of the C function that can filter traceback objects modifying the traceback chain. I can make a PR if the patch looks good enough to start iterating over it. In case

[issue32117] Tuple unpacking in return and yield statements

2017-11-22 Thread David Cuthbert
Change by David Cuthbert : -- keywords: +patch pull_requests: +4446 stage: -> patch review ___ Python tracker ___

[issue32117] Tuple unpacking in return and yield statements

2017-11-22 Thread David Cuthbert
New submission from David Cuthbert : This stems from a query on StackOverflow: https://stackoverflow.com/questions/47272460/python-tuple-unpacking-in-return-statement/ Specifically, the following syntax is allowed: def f(): rest = (4, 5, 6) t = 1, 2, 3, *rest While

[issue32055] Reconsider comparison chaining for containment tests

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: If we do decide to do this, I'm inclined to eventually make the change at the Grammar level rather than the AST level. Current: comparison: expr (comp_op expr)* comp_op: '<'|'>'|'=='|'>='|'<='|'<>'|'!='|'in'|'not' 'in'|'is'|'is'

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset d4341109746aa15e1909e63b30b93b6133ffe401 by Victor Stinner in branch 'master': bpo-32030: Add _PyCoreConfig.module_search_path_env (#4504)

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 82656276caf4cb889193572d2d14dbc5f3d2bdff by Victor Stinner in branch 'master': bpo-27535: Optimize warnings.warn() (#4508) https://github.com/python/cpython/commit/82656276caf4cb889193572d2d14dbc5f3d2bdff --

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4445 ___ Python tracker ___ ___

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2017-11-22 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: + ___ Python tracker ___

[issue32100] IDLE: PathBrowser isn't working

2017-11-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: The reason double-clicking got worse from 3.6.3 to now is this. Previously, browser.ModuleBrowserTreeItem.OnDoubleClick ignored the file_open global (set to pyshell.flist.open in .__init__) and called pyshell.flist.open. The Class and

[issue10544] yield expression inside generator expression does nothing

2017-11-22 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- assignee: levkivskyi -> ___ Python tracker ___ ___

[issue31324] support._match_test() used by test.bisect is very inefficient

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset bb11c3c967afaf263e00844d4ab461b7fafd6d36 by Victor Stinner in branch 'master': bpo-31324: Fix test.support.set_match_tests(None) (#4505) https://github.com/python/cpython/commit/bb11c3c967afaf263e00844d4ab461b7fafd6d36

[issue19610] Give clear error messages for invalid types used for setup.py params (e.g. tuple for classifiers)

2017-11-22 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the ping and for the review! I will open a PR this week. -- versions: -Python 3.6 ___ Python tracker

[issue28009] core logic of uuid.getnode() is broken for AIX - all versions

2017-11-22 Thread Michael Felt
Michael Felt added the comment: x064 is AIX 5.3, x071 is AIX 6.1, x072 is AIX 7.1 - in the following output On 11/20/2017 9:01 PM, Serhiy Storchaka wrote: > Serhiy Storchaka added the comment: > > What return commands `ifconfig`, `ifconfig

[issue19610] Give clear error messages for invalid types used for setup.py params (e.g. tuple for classifiers)

2017-11-22 Thread Éric Araujo
Éric Araujo added the comment: Latest patch seems good. Berker, would you have the time to adapt for 3.7 and submit as a PR? -- ___ Python tracker

[issue32116] CSV import and export simplified

2017-11-22 Thread Paul Long
Paul Long added the comment: Thanks for your advice. The reason it's not provided as a canned function is because different schools can use different programming languages, although the vast majority choose to use Python. --

[issue19610] Give clear error messages for invalid types used for setup.py params (e.g. tuple for classifiers)

2017-11-22 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: This is still present, and also silently affects Python 2.7 as evidenced here: https://github.com/pypa/setuptools/issues/1163 I am happy to adapt Berker Peksags patch to a PR, if he is? -- nosy: +Henk-Jaap Wagenaar

[issue32022] Python crashes with mutually recursive code

2017-11-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I confirmed that increasing the recursion limit can change recursion behavior on Windows. >>> def f(): g() ... >>> def g(): f() ... >>> f() With the default limit or 1000 or increase to 3000, I get a recursion error. With the limit set to

[issue32116] CSV import and export simplified

2017-11-22 Thread R. David Murray
R. David Murray added the comment: Um. If they aren't expected to understand how to write this code, why isn't it being provided to them as a canned function as part of the test environment? To succeed in getting something like this added, I suspect you will need to

[issue32116] CSV import and export simplified

2017-11-22 Thread Paul Long
Paul Long added the comment: I should have added that there are thousands of 15 year old students completing GCSE Computer Science who would benefit massively from this. All the exam boards in England require students to be able to read from and write to CSV files. The

[issue32116] CSV import and export simplified

2017-11-22 Thread R. David Murray
R. David Murray added the comment: Thanks for the suggestion, but I'm -0.5. I don't think these are compelling enough to be worth adding to the module API. The number of times I've done this kind of operation is far smaller than the number of times I've had other

[issue32116] CSV import and export simplified

2017-11-22 Thread Paul Long
New submission from Paul Long : It would be helpful if the CSV module included standard functions that simplify the import of CSV files to a list and the export of CSV files to a list. Here's an example of what they could be: def csv2list(file_name): list_name=[]

[issue32115] Ignored SIGCHLD causes asyncio.Process.wait to hang forever

2017-11-22 Thread rogpeppe
New submission from rogpeppe : If some parent process has disabled SIGCHLD, that signal is inherited and stops that signal being delivered, which means that asyncio.Process.wait will never complete. As an example, the plan9port terminal window, 9term,

[issue32114] The get_event_loop change in bpo28613 did not update the documentation

2017-11-22 Thread R. David Murray
New submission from R. David Murray : No changes were made to the documentation of get_event_loop when its behavior was modified to return the loop running the future/coroutine when called from that context. The documentation still says it gets the loop associated with

[issue31324] support._match_test() used by test.bisect is very inefficient

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: Oops, the commit 803ddd8ce22f0de3ab42fb98a225a704c000ef06 broke the GCC job on Travis CI: --- Run tests sequentially 0:00:00 load avg: 48.91 [ 1/404] test_grammar 0:00:00 load avg: 48.91 [ 2/404] test_opcodes 0:00:00 load avg:

[issue31324] support._match_test() used by test.bisect is very inefficient

2017-11-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4443 ___ Python tracker ___ ___

[issue32022] Python crashes with mutually recursive code

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: (Oops, must be closed as "wont fix".) -- resolution: fixed -> wont fix ___ Python tracker

[issue32022] Python crashes with mutually recursive code

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: I close the issue for the reasons given in the latest comments. Sorry! -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: I created a new PR adding a a new _PyCoreConfig.pythonpath field: https://github.com/python/cpython/pull/4504 Once it will be merged, I will work on a new PR for PYTHONHOME (add a new _PyCoreConfig.pythonhome field). --

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4442 ___ Python tracker ___ ___

[issue32022] Python crashes with mutually recursive code

2017-11-22 Thread Mark Dickinson
Mark Dickinson added the comment: I was going to suggest that this might be a documentation issue, but the existing documentation already looks sufficient to me: > A user may need to set the limit higher when they have a program that > requires deep recursion and a

[issue32022] Python crashes with mutually recursive code

2017-11-22 Thread Mark Dickinson
Mark Dickinson added the comment: > I suggest to close it as WONTFIX. Agreed. If you use sys.setrecursionlimit, you're deliberately bypassing Python's safety mechanisms. A crash due to stack overflow shouldn't be considered a bug under these circumstances. --

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: > We *don't* currently have anything like that for environment variables, not > even the ones which are "read once at startup, then never read them again". I changed Py_Main() in bpo-32030. Now multiple environment variables are

[issue28684] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2017-11-22 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4441 ___ Python tracker ___ ___

[issue32113] Strange behavior with await in a generator expression

2017-11-22 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: A first simple idea that comes to my mind is special-case async generators/iterators in PyObject_GetIter to say something like: TypeError: asynchronous iterable can't be used where an iterable is expected If it is possible to detect

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: I published my WIP work on optimizing warnings: PR 4502, it's based on PR 4489. The code should be cleaned up, especially the "_PyRuntime" part. The default action caching should be fixed. --

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4440 ___ Python tracker ___ ___

[issue32055] Reconsider comparison chaining for containment tests

2017-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 4501 makes the parser emitting a SyntaxWarning for chained `in` and `not in` comparison operators. In future it can be turned into a SyntaxError. But this should be first discussed on Python-Dev. --

[issue32113] Strange behavior with await in a generator expression

2017-11-22 Thread Yury Selivanov
Yury Selivanov added the comment: > ... result = list(await g(i) for i in range(3)) This is equivalent to this code: async def ait(): for i in range(3): v = await g(i) yield v result = list(ait()) Where 'ait' is an async generator

[issue32055] Reconsider comparison chaining for containment tests

2017-11-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4439 stage: -> patch review ___ Python tracker ___

[issue32113] Strange behavior with await in a generator expression

2017-11-22 Thread Ivan Levkivskyi
New submission from Ivan Levkivskyi : PEP 530 is not very clear about `await` in generator expressions. But when I try it, the error is a bit confusing: >>> async def g(i): ... print(i) ... >>> async def f(): ... result = list(await g(i) for i in range(3)) ...

[issue10544] yield expression inside generator expression does nothing

2017-11-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka versions: +Python 3.6, Python 3.7 -Python 3.5 ___ Python tracker

[issue5710] ctypes should return composite types from callbacks

2017-11-22 Thread Pam McA'Nulty
Pam McA'Nulty added the comment: oops - "In the example code, the 'result' variable is declared on the stack in the callback() function. So it will be effectively when callback() returns." should be "In the example code, the 'result' variable is declared on the stack

[issue5710] ctypes should return composite types from callbacks

2017-11-22 Thread Pam McA'Nulty
Pam McA'Nulty added the comment: In the example code, the 'result' variable is declared on the stack in the callback() function. So it will be effectively when callback() returns. Also the "result" variable in main() is never referenced. A pointer main()'s "result"

[issue32033] The pwd module implementation incorrectly sets some attributes to None

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: > And at least for pw_shell the behavior for NULL and "" are different. What is the difference between the two? -- ___ Python tracker

[issue32112] Should uuid.UUID() accept another UUID() instance?

2017-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Not always the constructor accept an instance of the same class. I'm sure that this is not true in the majority of cases. The constructor of int accepts an instance of int and the constructor of tuple accepts an instance of

[issue32109] Separated square brackets will generate a tuple instead of a list.

2017-11-22 Thread R. David Murray
R. David Murray added the comment: Yes, the markup (and therefore how the code is displayed in the docs) clearly indicates that the , between the lists is not part of the python syntax being discussed. -- nosy: +r.david.murray

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-11-22 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I added a PR. FWIW, I still think it would make sense to change the return type of UserString.join, and maybe *split* and *partition methods (to return list/tuple of UserString objects) for the sake of consistency. --

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-11-22 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- keywords: +patch pull_requests: +4438 stage: -> patch review ___ Python tracker ___

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: I implemented a cache for warnings.filters in C. With my WIP patch which doesn't touch the registry for the ignore action, warnings.warn() is now faster than the current code ;-) haypo@selma$ ./python -m perf compare_to ref.json

[issue32109] Separated square brackets will generate a tuple instead of a list.

2017-11-22 Thread Berker Peksag
Berker Peksag added the comment: That's why I mentioned ``[a], [a, b, c]`` in my earlier message. -- ___ Python tracker ___

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: The performance bottleneck of warnings.warn() is the dance between the C _warnings module and the Python warnings module. The C code retrieves many attributes, like warnings.filters, at each call, and does conversion from Python

[issue32112] Should uuid.UUID() accept another UUID() instance?

2017-11-22 Thread Antti Haapala
Antti Haapala added the comment: I've been hit by this too, in similar contexts, and several times. It is really annoying that it is easier to coerce an UUID or UUID-string to a string than to coerce to a UUID. Usually when the copy semantics are clear and the class is

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: > $ ./python -m perf compare_to ref.json patch.json > Mean +- std dev: [ref] 903 ns +- 70 ns -> [patch] 1.06 us +- 0.06 us: 1.17x > slower (+17%) We are talking about a difference of 157 nanoseconds. On the same laptop, a Python

[issue32109] Separated square brackets will generate a tuple instead of a list.

2017-11-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: Perhaps this is what the YCMove meant? >>> a = [1], [2, 3, 4] >>> a ([1], [2, 3, 4]) >>> -- nosy: +csabella ___ Python tracker

[issue32112] Should uuid.UUID() accept another UUID() instance?

2017-11-22 Thread Martijn Pieters
New submission from Martijn Pieters : When someone accidentally passes in an existing uuid.UUID() instance into uuid.UUID(), an attribute error is thrown because it is not a hex string: >>> import uuid >>> value = uuid.uuid4() >>> uuid.UUID(value) Traceback (most recent call

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: Speaking of surprises with static initialization of the runtime allocations: both PRs are failing in CI, suggesting that the changes that Py_Initialize makes to the allocator settings aren't being reverted in Py_Finalize, so there's a

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: Victor, please stop trying to conflate the two questions of "How should we fix the current Py_DecodeLocale regression before 3.7.0a3?" and "What do we want to do long term?". They're far from being the same question, and answering the

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is common if filters don't depend on the warning test. In this case we can test and set the key (None, category, lineno) before (text, category, lineno). -- ___ Python

[issue32033] The pwd module implementation incorrectly sets some attributes to None

2017-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On your second link it is documented explicitly that pw_dir and pw_shell might be NULL. And at least for pw_shell the behavior for NULL and "" are different. -- ___ Python tracker

[issue32111] ObjectListView crashes on python3.5

2017-11-22 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___

[issue32111] ObjectListView crashes on python3.5

2017-11-22 Thread Balakrishnan Unnithan
Balakrishnan Unnithan added the comment: Yes, I am using this 3rd party library. Okay, I shall withdraw the issue from here. I'm new to Python and hence do not know the various groups and their purpose. Apologies! Thanks for the support. Version info: ObjectListView

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: Touching the filesystem implicitly can have all sorts of unintentional side effects (especially in read-only environments), so we strongly prefer not to do that. The most general solution here would be to turn the warnings registry into an

[issue32111] ObjectListView crashes on python3.5

2017-11-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: This appears to be an issue with a 3th-party library (https://pypi.python.org/pypi/ObjectListView), not CPython itself. The repository (and issue tracker) for that library is at .

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > That's not true. .read(1) will at most read 1 byte from the stream > and decode it. There's no way it will return 70 characters. See the added tests. They are failed without changing the read() method. .read(1) currently

[issue32111] ObjectListView crashes on python3.5

2017-11-22 Thread Balakrishnan Unnithan
Balakrishnan Unnithan added the comment: Issue: On Python3.5, ObjectListView object crashes when double-clicked in cell to edit int type. - Traceback (most recent call last): File

[issue32111] ObjectListView crashes on python3.5

2017-11-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Could you provide more information Balakrishnan? -- nosy: +serhiy.storchaka status: open -> pending ___ Python tracker

[issue32111] ObjectListView crashes on python3.5

2017-11-22 Thread Balakrishnan Unnithan
Change by Balakrishnan Unnithan : -- components: Extension Modules nosy: Balakrishnan Unnithan priority: normal severity: normal status: open title: ObjectListView crashes on python3.5 type: crash versions: Python 3.5 ___

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: > As an alternative to that, we could also deprecate using any of those > functions before initializing the runtime. Instead of calling them, you > would set the relevant info on the runtime "config" struct that you pass to > the

[issue32033] The pwd module implementation incorrectly sets some attributes to None

2017-11-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: Changing test_pwd does not correct the fact that the current implementation of the pwd module may break an existing Python application since this (old indeed) API states "The uid and gid items are integers, all others are strings". >

[issue32107] test_uuid uses the incorrect bitmask

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: > https://travis-ci.org/python/cpython/jobs/305433725 AssertionError: 219902322 is not false : 0242ac110051 AssertionError: 219902322 is not false : 0242ac110051 So the Travis CI MAC address is 02:42:ac:11:00:51. --

  1   2   >