[issue29847] Path takes and ignores **kwargs

2017-03-19 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker ___

[issue29855] The traceback compounding of RecursionError fails to work with __get__

2017-03-19 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +ebarry, ncoghlan ___ Python tracker ___ ___

[issue29856] curses online documentation typo

2017-03-19 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Typo fixed and backported into 2.7, 3.5 and 3.6. Thanks :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29855] The traceback compounding of RecursionError fails to work with __get__

2017-03-19 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: I'm pretty sure this is by design; the change introduced in [1] tried to keep things simple by only trimming the output when the lines were identical. More complicated scenarios are trickier to implement. It should be interesting to see if the

[issue29856] curses online documentation typo

2017-03-19 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +646 ___ Python tracker ___ ___

[issue29856] curses online documentation typo

2017-03-19 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +647 ___ Python tracker ___ ___

[issue29856] curses online documentation typo

2017-03-19 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +645 ___ Python tracker ___ ___

[issue29856] curses online documentation typo

2017-03-19 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Nice catch, that's a typo indeed. If you'd like, submit a PR [see https://docs.python.org/devguide/#quick-start] to address this. -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker

[issue29856] curses online documentation typo

2017-03-19 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks for the report, Raphael. And thanks Jim, I made a PR just as you commented :) -- assignee: docs@python -> Mariatta nosy: +Mariatta stage: -> patch review versions: +Python 2.7, Python 3.5, Python 3.6 ___

Re: python script Non-ASCII character

2017-03-19 Thread MRAB
On 2017-03-20 02:50, eryk sun wrote: On Sun, Mar 19, 2017 at 11:06 PM, MRAB wrote: If you're using Unicode string literals, your choices are: 1. Raw string literals: var1 = ur"C:\Users\username\Desktop\η γλωσσα μου\mylanguage\myfile" Raw unicode literals

[issue29856] curses online documentation typo

2017-03-19 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +644 ___ Python tracker ___ ___

Re: About linters and PEP-8

2017-03-19 Thread Chris Angelico
On Mon, Mar 20, 2017 at 1:52 PM, Terry Reedy wrote: > On 3/19/2017 7:26 PM, Chris Angelico wrote: > >> In the docs link you posted, scroll down a bit: >> >> https://pep8.readthedocs.io/en/release-1.7.x/intro.html#installation >> >> Or maybe that's outdated and also needs to be

Re: About linters and PEP-8

2017-03-19 Thread Terry Reedy
On 3/19/2017 7:26 PM, Chris Angelico wrote: In the docs link you posted, scroll down a bit: https://pep8.readthedocs.io/en/release-1.7.x/intro.html#installation Or maybe that's outdated and also needs to be fixed? It is up to date for the latest outdated 'pep8'. It is needed for someone

[issue29856] curses online documentation typo

2017-03-19 Thread Raphael McSinyx
New submission from Raphael McSinyx: I think there is a typo in curses online documentation about key constants: https://docs.python.org/3.7/library/curses.html#constants The key KEY_SEXIT is described as `Shifted Dxit' while I think that should be `Shifted Exit'. -- assignee:

Re: python script Non-ASCII character

2017-03-19 Thread eryk sun
On Sun, Mar 19, 2017 at 11:06 PM, MRAB wrote: > > If you're using Unicode string literals, your choices are: > > 1. Raw string literals: > > var1 = ur"C:\Users\username\Desktop\η γλωσσα μου\mylanguage\myfile" Raw unicode literals are practically useless in Python

how to corss-compile azure-iot-sdk-python

2017-03-19 Thread chenchao
Hi: I want to port the 'azure-iot-sdk-python' to my router(arm platform). How can i achieve this? -- https://mail.python.org/mailman/listinfo/python-list

Re: Who are the "spacists"?

2017-03-19 Thread Erik
On 19/03/17 23:23, Jon Ribbens wrote: On 2017-03-19, Erik wrote: On 19/03/17 22:29, Jon Ribbens wrote: Not to mention plenty of editors (e.g. vim) will unindent when you press backspace. I don't think that's strictly true. If you have just indented with a tab

Re: Who are the "spacists"?

2017-03-19 Thread Chris Angelico
On Mon, Mar 20, 2017 at 11:42 AM, Steve D'Aprano wrote: > Or perhaps "just that one guy": here is JMZ, who says it is "impossible" to > do anything with a text file unless you know what a TAB character > represents: > > I just care that two people editing the

Re: Who are the "spacists"?

2017-03-19 Thread Steve D'Aprano
On Mon, 20 Mar 2017 06:00 am, Chris Angelico wrote: > On Mon, Mar 20, 2017 at 4:29 AM, Steve D'Aprano > wrote: >> I wonder whether the tabs versus spaces divide is closely aligned to the >> Windows versus Unix/Linux divide? >> >> It seems to me that Unix users are

Re: Who are the "spacists"?

2017-03-19 Thread Chris Angelico
On Mon, Mar 20, 2017 at 10:55 AM, Steve D'Aprano wrote: > Oh, that's a law of physics is it? "8 columns per tab" is one of the > fundamental mathematical or physical constants baked into the nature of > reality, like > > π ≈ 3.14159... > e ≈ 2.71828... > Feigenbaum

Re: Who are the "spacists"?

2017-03-19 Thread Steve D'Aprano
On Mon, 20 Mar 2017 09:50 am, Marko Rauhamaa wrote: > the 8-column interpretation is the only defensible use for > tabs. Oh, that's a law of physics is it? "8 columns per tab" is one of the fundamental mathematical or physical constants baked into the nature of reality, like π ≈ 3.14159... e ≈

[issue29855] The traceback compounding of RecursionError fails to work with __get__

2017-03-19 Thread assume_away
New submission from assume_away: class Property: def __init__(self, getter): self.getter = getter def __get__(self, instance, cls): return self.getter(cls if instance is None else instance) class MyClass: @Property def something(cls): return

Re: Who are the "spacists"?

2017-03-19 Thread Jon Ribbens
On 2017-03-19, Erik wrote: > On 19/03/17 22:29, Jon Ribbens wrote: >> Not to mention plenty of editors (e.g. vim) will unindent when you >> press backspace. > > I don't think that's strictly true. If you have just indented with a tab > character, then backspace will

Re: About linters and PEP-8

2017-03-19 Thread Chris Angelico
On Mon, Mar 20, 2017 at 10:01 AM, Terry Reedy wrote: >>> At Guido's request, the name was changed to 'pycodestyle'. See the note >>> at >>> the top of >>> https://pep8.readthedocs.io/en/release-1.7.x/ >>> >>> This really should be noted also at the top of >>>

Re: python script Non-ASCII character

2017-03-19 Thread Steve D'Aprano
On Mon, 20 Mar 2017 06:48 am, Xristos Xristoou wrote: > Τη Κυριακή, 19 Μαρτίου 2017 - 7:38:19 μ.μ. UTC+2, ο χρήστης Xristos > Xristoou έγραψε: > > how to define my script with encoding of ISO-8859-7 or UTF-8?and for the > blanks ? First you need to know whether your editor is saving the file

[issue29116] Make str and bytes error messages on concatenation conform with other sequences

2017-03-19 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Something is strange: PRs 709, 723, 724 are shown as open in the "Pull Requests" section on this page. However, all four PRs are already merged. Are other see the same? Shouldn't status be automatically updated? --

Re: python script Non-ASCII character

2017-03-19 Thread MRAB
On 2017-03-19 20:10, Xristos Xristoou wrote: Τη Κυριακή, 19 Μαρτίου 2017 - 7:38:19 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: @Terry non-ascii in pathnames i need for ex :var1="C:\Users\username\Desktop\my language\mylanguage\myfile" and for the blank ? Your choices are: 1. Raw string

Re: Who are the "spacists"?

2017-03-19 Thread Marko Rauhamaa
Larry Hudson : > A trivial point (and irrelevant)... The thing I find annoying about an > editor set to expand tabs to spaces is that it takes one keypress to > indent but four (or whatever) to unindent. In emacs' Python mode, if I have entered:

Re: Who are the "spacists"?

2017-03-19 Thread Erik
On 19/03/17 22:29, Jon Ribbens wrote: On 2017-03-19, breamore...@gmail.com wrote: On Sunday, March 19, 2017 at 9:54:52 PM UTC, Larry Hudson wrote: A trivial point (and irrelevant)... The thing I find annoying about an editor set to expand tabs to spaces is that it

Re: Who are the "spacists"?

2017-03-19 Thread Chris Angelico
On Mon, Mar 20, 2017 at 9:48 AM, Mikhail V wrote: > [regarding monospaced text] > Or, for example collision detection, which is part > of mouse text selection algorithm is much simpler, etc. > These are IMO main reasons why it still often used. I work extensively with MUDs,

Re: About linters and PEP-8

2017-03-19 Thread Terry Reedy
On 3/19/2017 3:57 PM, Chris Angelico wrote: On Mon, Mar 20, 2017 at 6:50 AM, Terry Reedy wrote: On 3/19/2017 7:20 AM, Chris Angelico wrote: The tool "pep8" is inappropriately named. No linter should use this name. It implies a level of authority by linking with a very

Re: Who are the "spacists"?

2017-03-19 Thread Marko Rauhamaa
Gregory Ewing : > Steve D'Aprano wrote: >> Unix tools which often assume spaces are used for indentation, and >> consequently cope badly with tabs. I maintain that makes them >> "broken" tools, > > They're not broken in the context of Unix, where there is a >

Re: cryptography default_backend is "hazmat"?

2017-03-19 Thread Paul Moore
On Sunday, 19 March 2017 03:16:17 UTC, Arthur Darcet wrote: > On Sat, 18 Mar 2017 at 23:29, Ian Pilcher wrote: > > > On 03/18/2017 05:15 PM, Chris Angelico wrote: > > > So the question is: How well do you trust the examples? Are they > > > likely to be instructing you in a

Re: Who are the "spacists"?

2017-03-19 Thread Mikhail V
On 19 March 2017 at 22:54, Gregory Ewing wrote: > Mikhail V wrote: >> >> Monospaced text rendering is an artifact, >> which exist on a very short time period in history. >> At best, one should just imagine it should not exist, and is >> just a temporary inconvinience.

Re: Who are the "spacists"?

2017-03-19 Thread Jon Ribbens
On 2017-03-19, breamore...@gmail.com wrote: > On Sunday, March 19, 2017 at 9:54:52 PM UTC, Larry Hudson wrote: >> A trivial point (and irrelevant)... The thing I find annoying >> about an editor set to expand tabs to spaces is that it takes one >> keypress to indent but

[issue29854] Segfault when readline history is more then 2 * history size

2017-03-19 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +643 ___ Python tracker ___

[issue29854] Segfault when readline history is more then 2 * history size

2017-03-19 Thread Nir Soffer
New submission from Nir Soffer: GNU readline let the user select limit the history size by setting: $ cat ~/.inputrc set history-size 1000 So I cooked this test script: $ cat history.py from __future__ import print_function import readline readline.read_history_file(".history")

[issue25455] Some repr implementations don't check for self-referential structures

2017-03-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +642 ___ Python tracker ___ ___

Re: Who are the "spacists"?

2017-03-19 Thread Larry Hudson via Python-list
On 03/18/2017 05:01 PM, Nathan Ernst wrote: [...] Personally, I dislike any editor that, by default, changes my input to something else. If I hit tab, I want a tab to be inserted, by default. If I want something else, I'll change the configuration. A trivial point (and irrelevant)... The thing

Re: Who are the "spacists"?

2017-03-19 Thread Gregory Ewing
Mikhail V wrote: Monospaced text rendering is an artifact, which exist on a very short time period in history. At best, one should just imagine it should not exist, and is just a temporary inconvinience. Actually it lasts already much longer than I would expect. The fact that it *has* lasted

Re: Who are the "spacists"?

2017-03-19 Thread Gregory Ewing
Steve D'Aprano wrote: Unix tools which often assume spaces are used for indentation, and consequently cope badly with tabs. I maintain that makes them "broken" tools, They're not broken in the context of Unix, where there is a long-standing convention of assuming tab stops every 8 columns.

[issue29846] ImportError: Symbol not found: __PyCodecInfo_GetIncrementalDecoder when building 2.7.x on macOS

2017-03-19 Thread Adam Stewart
Adam Stewart added the comment: I also tried building with a Homebrew-installed GCC 6.2.0 but that had the same result. -- ___ Python tracker ___

[issue29846] ImportError: Symbol not found: __PyCodecInfo_GetIncrementalDecoder when building 2.7.x on macOS

2017-03-19 Thread Adam Stewart
Adam Stewart added the comment: Made a mistake. Please see the new output of DYLD_PRINT_LIBRARIES. This time I actually ran a Python command to see which libraries were loaded. -- Added file: http://bugs.python.org/file46745/dyld_print_libraries.txt

[issue29846] ImportError: Symbol not found: __PyCodecInfo_GetIncrementalDecoder when building 2.7.x on macOS

2017-03-19 Thread Adam Stewart
Adam Stewart added the comment: The output of DYLD_PRINT_LIBRARIES is attached as well. -- Added file: http://bugs.python.org/file46744/dyld_print_libraries.txt ___ Python tracker

Re: python script Non-ASCII character

2017-03-19 Thread Xristos Xristoou
Τη Κυριακή, 19 Μαρτίου 2017 - 7:38:19 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: @Terry non-ascii in pathnames i need for ex :var1="C:\Users\username\Desktop\my language\mylanguage\myfile" and for the blank ? -- https://mail.python.org/mailman/listinfo/python-list

[issue29846] ImportError: Symbol not found: __PyCodecInfo_GetIncrementalDecoder when building 2.7.x on macOS

2017-03-19 Thread Adam Stewart
Adam Stewart added the comment: I agree, the `--enable-shared` fix is nice, but I would also love to squash this bug. An interesting piece of information: When I provide the full path to the executable (not just relying on the hashed python location), I see: $

Re: Who are the "spacists"?

2017-03-19 Thread Mikhail V
On 18 March 2017 at 22:50, Nathan Ernst wrote: > My issue with using spaces instead of tabs, is that, as mentioned earlier in > the thread, everyone has their own preferences on indentation. I've worked > on teams where different developers used 2, 3 & 4 spaces as

Re: python script Non-ASCII character

2017-03-19 Thread Xristos Xristoou
Τη Κυριακή, 19 Μαρτίου 2017 - 7:38:19 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: yes that i know but i need python 2.7 for my task -- https://mail.python.org/mailman/listinfo/python-list

Re: python script Non-ASCII character

2017-03-19 Thread Terry Reedy
On 3/19/2017 1:38 PM, Xristos Xristoou wrote: hello i have create a python script when read some files using paths and do something with that files. if that paths for files is in english likes this "c:/my_path/english " then python script working but if that paths is in my main language

Re: About linters and PEP-8

2017-03-19 Thread Chris Angelico
On Mon, Mar 20, 2017 at 6:50 AM, Terry Reedy wrote: > On 3/19/2017 7:20 AM, Chris Angelico wrote: > >> The tool "pep8" is inappropriately named. No linter should use this >> name. It implies a level of authority by linking with a very specific >> document. > > > At Guido's

Re: python script Non-ASCII character

2017-03-19 Thread Chris Angelico
On Mon, Mar 20, 2017 at 6:48 AM, Xristos Xristoou wrote: > Τη Κυριακή, 19 Μαρτίου 2017 - 7:38:19 μ.μ. UTC+2, ο χρήστης Xristos Xristoou > έγραψε: > > how to define my script with encoding of ISO-8859-7 or UTF-8?and for the > blanks ? First, try using Python 3. Most of the

Re: About linters and PEP-8

2017-03-19 Thread Terry Reedy
On 3/19/2017 7:20 AM, Chris Angelico wrote: The tool "pep8" is inappropriately named. No linter should use this name. It implies a level of authority by linking with a very specific document. At Guido's request, the name was changed to 'pycodestyle'. See the note at the top of

Re: python script Non-ASCII character

2017-03-19 Thread Xristos Xristoou
Τη Κυριακή, 19 Μαρτίου 2017 - 7:38:19 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: how to define my script with encoding of ISO-8859-7 or UTF-8?and for the blanks ? -- https://mail.python.org/mailman/listinfo/python-list

[issue29845] Mark tests that use _testcapi as CPython-only

2017-03-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29846] ImportError: Symbol not found: __PyCodecInfo_GetIncrementalDecoder when building 2.7.x on macOS

2017-03-19 Thread Ned Deily
Ned Deily added the comment: Glad the --enable-shared workaround worked around. If you feel like exploring the issue further, a couple of things that might be useful would be to set one or more of dyld's debugging environment variables, like DYLD_PRINT_LIBRARIES, to try to see exactly which

Re: python script Non-ASCII character

2017-03-19 Thread Chris Angelico
On Mon, Mar 20, 2017 at 4:38 AM, Xristos Xristoou wrote: > hello i have create a python script when read some files using paths and do > something with that files. > if that paths for files is in english likes this "c:/my_path/english " then > python script working but if

Re: Who are the "spacists"?

2017-03-19 Thread Chris Angelico
On Mon, Mar 20, 2017 at 4:29 AM, Steve D'Aprano wrote: > I wonder whether the tabs versus spaces divide is closely aligned to the > Windows versus Unix/Linux divide? > > It seems to me that Unix users are typically going to be using Unix tools > which often assume

[issue29844] Windows Python installers not installing DLL to System32/SysWOW64

2017-03-19 Thread Decorater
Decorater added the comment: tbh, I would rather have it default for all python files installed for all users to go in ``%SystemDrive%\Python{major}{minor}`` on windows and then work with then the environment variables like currently so that way none of the python dll's are outside of such

[issue29844] Windows Python installers not installing DLL to System32/SysWOW64

2017-03-19 Thread Steve Dower
Steve Dower added the comment: Maybe I need to look through the history to see whether I actually intended the all-users install to be in System, but I don't think I did (despite writing the documentation linked - it may have been adapted from the old documentation). Applications that need

[issue29845] Mark tests that use _testcapi as CPython-only

2017-03-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +641 ___ Python tracker ___ ___

[issue29845] Mark tests that use _testcapi as CPython-only

2017-03-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +640 ___ Python tracker ___ ___

[issue29116] Make str and bytes error messages on concatenation conform with other sequences

2017-03-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +639 ___ Python tracker ___ ___

[issue29116] Make str and bytes error messages on concatenation conform with other sequences

2017-03-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +638 ___ Python tracker ___ ___

[issue29748] Argument Clinic: slice index converter

2017-03-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

python script Non-ASCII character

2017-03-19 Thread Xristos Xristoou
hello i have create a python script when read some files using paths and do something with that files. if that paths for files is in english likes this "c:/my_path/english " then python script working but if that paths is in my main language or the path have some blank character then not

Re: Who are the "spacists"?

2017-03-19 Thread Alain Ketterlin
Jon Ribbens writes: > On 2017-03-18, Grant Edwards wrote: >> On 2017-03-18, Mikhail V wrote: >>> How would one come to the idea to use spaces for indentation at all? >> >> Because tabs are a major security

[issue25455] Some repr implementations don't check for self-referential structures

2017-03-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +637 ___ Python tracker ___ ___

Re: Who are the "spacists"?

2017-03-19 Thread Steve D'Aprano
On Mon, 20 Mar 2017 01:27 am, Grant Edwards wrote: > On 2017-03-18, Nathan Ernst wrote: > >> As I said earlier, where tabs are superior in that most code focused >> editors (at least those worth using) allow you to adjust the width of the >> tab. > > What about all

Re: Tabs are a security vulnerabilty [was Re: Who are the "spacists"?]

2017-03-19 Thread Mikhail V
On 19 March 2017 at 01:32, Steve D'Aprano wrote: > On Sun, 19 Mar 2017 03:30 am, Grant Edwards wrote: > >> tabs are a major security vulnerability and should be outlawed >> in all source code. > > > I've heard many arguments both in favour of and against tabs, but I've

[issue29850] file access, other drives

2017-03-19 Thread Gabriel POTTER
Gabriel POTTER added the comment: Thanks a lot, that resolved it. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker

Re: Where to start in the field of AI with Python

2017-03-19 Thread garabik-news-2005-05
Robert O'Shea wrote: > I just want to get into the basics for the moment, eventually getting into > stuff like machine learning and NLP (Natural Language Processing). You cannot do wrong by starting with NLTK (https://www.nltk.org/) and scikit

Re: Who are the "spacists"?

2017-03-19 Thread Mikhail V
On 19 March 2017 at 02:05, Marko Rauhamaa wrote: > Chris Angelico : > >> On Sun, Mar 19, 2017 at 11:39 AM, Steve D'Aprano >> wrote: >>> Is it also ridiculous to use several newlines to space paragraphs >>> vertically? >> >> At least

[issue13349] Non-informative error message in index() and remove() functions

2017-03-19 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: @Sean Ochoa, do you want to make this into a PR? The only tweak I would suggest would be to change all error messages to either be: "object.method(repr(x)): element not in object" or: "repr(x) not in object" also, this probably needs to be

[issue29853] Improve exception messages for remove and index methods

2017-03-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Non-informative error message in index() and remove() functions ___ Python tracker

[issue29853] Improve exception messages for remove and index methods

2017-03-19 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: I'd be happy to supply a PR for this if the change seems reasonable. -- ___ Python tracker ___

[issue29853] Improve exception messages for remove and index methods

2017-03-19 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: Currently, there's a discrepancy in the exception reporting for the `.index` and `.remove` methods of many objects: For arrays: array.remove(val) -> ValueError: array.remove(x): x not in list array.index(val) -> ValueError: array.index(x):

Re: Who are the "spacists"?

2017-03-19 Thread Grant Edwards
On 2017-03-18, Nathan Ernst wrote: > As I said earlier, where tabs are superior in that most code focused > editors (at least those worth using) allow you to adjust the width of the > tab. What about all other other text tools that _aren't_ 'code focused editors'? (e.g.

Re: Who are the "spacists"?

2017-03-19 Thread Grant Edwards
On 2017-03-18, Chris Angelico wrote: > On Sun, Mar 19, 2017 at 8:50 AM, Nathan Ernst wrote: >> My rule of thumb: tabs for indentation, spaces for alignment (i.e. trying >> to line up anything after a non-whitespace character on a single line). > > My

[issue15988] Inconsistency in overflow error messages of integer argument

2017-03-19 Thread Oren Milman
Oren Milman added the comment: ISTM that what's left is (except for my 7 sub-patches): - making the error messages of long_rshift and long_lshift consistent (waits for #29816) - deciding whether to open an issue for changing the type of errors PyLong_AsSize_t raises --

[issue15988] Inconsistency in overflow error messages of integer argument

2017-03-19 Thread Oren Milman
Oren Milman added the comment: Here is a patch including only changes related to mmap, posix, socket and select. (I ran the test module, and on my Windows 10, the same tests failed with and without my patches. However, on my Ubuntu 16.04 VM, none of the tests failed.) -- Added file:

[issue29842] Make Executor.map work with infinite/large inputs correctly

2017-03-19 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- title: Executor.map should not submit all futures prior to yielding any results -> Make Executor.map work with infinite/large inputs correctly ___ Python tracker

[issue29850] file access, other drives

2017-03-19 Thread Paul Moore
Paul Moore added the comment: As you see from the banner, your Python 3.6 is 32-bit but your Python 2.7 is 64-bit. I'd suggest you try 64-bit Python 3.6. This definitely looks like the SysWOW64 issue Eryk described. -- ___ Python tracker

[issue15988] Inconsistency in overflow error messages of integer argument

2017-03-19 Thread Oren Milman
Oren Milman added the comment: Here is a patch including only changes related to curses, stat, callproc (ctypes) and sequence_repeat (abstract). (I ran the test module, and on my Windows 10, the same tests failed with and without my patches. However, on my Ubuntu 16.04 VM, none of the tests

[issue29850] file access, other drives

2017-03-19 Thread Gabriel POTTER
Gabriel POTTER added the comment: Thanks for your answers. I'll try to be as precise as possible. The problem i have is really specific: I have a custom file, that i added in C:/Windows/System32/ I have a Windows 10 x64 computer, with 2 versions of python installed: - Python 2.7, in

[issue14208] No way to recover original argv with python -m

2017-03-19 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

[issue14208] No way to recover original argv with python -m

2017-03-19 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29852] Argument Clinic: add common converter to Py_ssize_t that accepts None

2017-03-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +636 ___ Python tracker ___ ___

[issue29819] Avoid raising OverflowError in truncate() if possible

2017-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue29852 is not strict dependency, but it may make the solution of this issue simpler. -- dependencies: +Argument Clinic: add common converter to Py_ssize_t that accepts None ___ Python tracker

[issue29852] Argument Clinic: add common converter to Py_ssize_t that accepts None

2017-03-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Many methods in the io module accept int and None and convert the argument to Py_ssize_t. Proposed patch adds common Argument Clinic converter for that case. The Py_ssize_t converter now takes the accept argument that can be {int} (the default) or {int,

[issue15988] Inconsistency in overflow error messages of integer argument

2017-03-19 Thread Oren Milman
Oren Milman added the comment: Here is a patch including only changes related to time and re. (I ran the test module, and on my Windows 10, the same tests failed with and without my patches. However, on my Ubuntu 16.04 VM, none of the tests failed.) -- Added file:

[issue29830] pyexpat.errors doesn't have __spec__ and __loader__ set

2017-03-19 Thread Nick Coghlan
Nick Coghlan added the comment: Right, there's a longstanding RFE to allow builtin packages and submodules: https://bugs.python.org/issue1644818 At the moment, modules like pyexpat are more like the os module than they are packages: they eagerly set other modules as attributes at import time

Re: About linters and PEP-8

2017-03-19 Thread Chris Angelico
On Sun, Mar 19, 2017 at 7:24 PM, Pavol Lisy wrote: > On 3/19/17, Chris Angelico wrote: >> On Sun, Mar 19, 2017 at 4:53 PM, Pavol Lisy wrote: > >>> In case of spaces there is not discrepancy. pep8 and similar linters >>> could work

[issue29736] Optimize builtin types constructor

2017-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And include bytearray. -- ___ Python tracker ___ ___ Python-bugs-list

Re: Error installing python on Windows

2017-03-19 Thread Mark Summerfield
Windows users (quite reasonably IMO) expect installs to "just work". If Python needs extra bits it should ask the user if it can go get them and if they say Yes it should do just that. (And this should actually work -- unlike maybe, the Python 3.5 Windows installer.) And as for searching

[issue15988] Inconsistency in overflow error messages of integer argument

2017-03-19 Thread Oren Milman
Oren Milman added the comment: Here is a patch including only changes related to hashlib, lzma and pickle. (I ran the test module, and on my Windows 10, the same tests failed with and without my patches. However, on my Ubuntu 16.04 VM, none of the tests failed.) -- Added file:

About linters and PEP-8

2017-03-19 Thread Pavol Lisy
On 3/19/17, Chris Angelico wrote: > On Sun, Mar 19, 2017 at 4:53 PM, Pavol Lisy wrote: >> In case of spaces there is not discrepancy. pep8 and similar linters >> could work fine without incompatible configurations. > I don't like the pep8 tool; its name

Re: Who are the "spacists"?

2017-03-19 Thread Pavol Lisy
On 3/19/17, Pavol Lisy wrote: > On 3/18/17, Nathan Ernst wrote: > PS. I am "spacist" :P but I feel this a little more aggressive than is > necessary too: > >> Feel free to start your own discussion forum for your new programming >> language that

[issue15988] Inconsistency in overflow error messages of integer argument

2017-03-19 Thread Oren Milman
Oren Milman added the comment: Here is a patch including only changes related to array. (I ran the test module, and on my Windows 10, the same tests failed with and without my patches. However, on my Ubuntu 16.04 VM, none of the tests failed.) -- Added file:

[issue29736] Optimize builtin types constructor

2017-03-19 Thread STINNER Victor
STINNER Victor added the comment: Ok, will do. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29793] Convert some builtin types constructors to Argument Clinic

2017-03-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

  1   2   >