Re: Issues encountered while launching the IDLE of python 3.7 64-bit I downloaded recently.

2017-11-24 Thread Terry Reedy
On 11/24/2017 6:39 PM, STEPHINEXT TUTORIALS wrote: On Wed, Nov 22, 2017 at 4:29 AM, STEPHINEXT TUTORIALS < oladejist...@gmail.com> wrote: I just downloaded the new version 3.7 for my windows operating system 64-bits on your site. Does Python itself run? The error I got while launching the

[issue32129] Icon on macOS

2017-11-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Here is the current code in idlelib.pyshell.main. # set application icon icondir = os.path.join(os.path.dirname(__file__), 'Icons') if system() == 'Windows': iconfile = os.path.join(icondir, 'idle.ico')

[issue30004] in regex-howto, improve example on grouping

2017-11-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Cristian for reporting this issue. Thank you Mandeep for your patch. Thank you Mariatta for merging. -- ___ Python tracker

Re: Why does asyncio.wait_for() need a timeout?

2017-11-24 Thread Frank Millman
"Ian Kelly" wrote in message news:calwzidmrpfrr5mrejjyz+bdgtqlwy-sp+a_zc6zq7ebaz9g...@mail.gmail.com... On Fri, Nov 24, 2017 at 6:31 AM, Frank Millman wrote: > "Frank Millman" wrote in message news:ov5v3s$bv7$1...@blaine.gmane.org... > >> Below is a simple asyncio loop

[issue32089] In developer mode (-X dev), ResourceWarning is only emited once per line numbers

2017-11-24 Thread Nick Coghlan
Nick Coghlan added the comment: +1 from me for using "default" instead of "always" for ResourceWarning. Folks can always combine "-X tracemalloc" with "-W always::ResourceWarning" if want to ensure they see absolutely every resource warning, rather than only

[issue30004] in regex-howto, improve example on grouping

2017-11-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks everyone. I merged the PR, and it's been backported to 3.6 and 2.7 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30004] in regex-howto, improve example on grouping

2017-11-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 3e60747025edc34b503397ab8211be59cfdd05cd by Mariatta (Miss Islington (bot)) in branch '3.6': bpo-30004: Fix the code example of using group in Regex Howto Docs (GH-4443) (GH-4554)

[issue30004] in regex-howto, improve example on grouping

2017-11-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset c02037d62284f4d4ca6b22f2ed05165ce2014951 by Mariatta (Miss Islington (bot)) in branch '2.7': bpo-30004: Fix the code example of using group in Regex Howto Docs (GH-4443) (GH-4555)

[issue30004] in regex-howto, improve example on grouping

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

[issue30004] in regex-howto, improve example on grouping

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

[issue30004] in regex-howto, improve example on grouping

2017-11-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 610e5afdcbe3eca906ef32f4e0364e20e1b1ad23 by Mariatta (Mandeep Bhutani) in branch 'master': bpo-30004: Fix the code example of using group in Regex Howto Docs (GH-4443)

[issue32129] Icon on macOS

2017-11-24 Thread Kevin Walzer
New submission from Kevin Walzer : The trunk and 8.6.7 branch of Tk on macOS have recently implemented the wm_iconphoto command, which had not previously been supported on macOS. This means that versions of IDLE that link to this version of Tk will inherit the

Re: connect four (game)

2017-11-24 Thread Ian Kelly
On Fri, Nov 24, 2017 at 7:05 PM, wrote: > On Friday, November 24, 2017 at 12:13:18 PM UTC-8, Terry Reedy wrote: > >> Since you did not start with tests or write tests as you wrote code, ... > > why on earth would you assume that? instantiate "window" and you'll see it

[issue10544] yield expression inside generator expression does nothing

2017-11-24 Thread Nick Coghlan
Nick Coghlan added the comment: I realised that even without modifying the compiler first, I could illustrate the proposed `yield from` based resolution for the comprehension case by way of explicit yield from clauses: ``` def get_gen_result(gen, inputs): try:

[issue10544] yield expression inside generator expression does nothing

2017-11-24 Thread Nick Coghlan
Nick Coghlan added the comment: Given the direction of the python-dev thread, should we split this question into two issues? Issue 1: a yield expression inside a comprehension changes the type of the expression result (returning a generator-iterator instead of the

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

2017-11-24 Thread Nick Coghlan
Nick Coghlan added the comment: Huh, those crashes are interesting - I'd guess that it means we have a platform-dependent dependency from Py_DecodeLocale on to Py_SetPythonHome in order to locate the encodings module. If I'm right, that dependency would then mean that

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread Nick Coghlan
Nick Coghlan added the comment: Key point to note regarding PEP 432: at least personally, I'm not actually aiming to deprecate the legacy embedding API. Instead, I'm just aiming to eventually stop *adding* to it, with new config structs replacing the current ad hoc mix of

Re: connect four (game)

2017-11-24 Thread Chris Angelico
On Sat, Nov 25, 2017 at 1:05 PM, wrote: > On Friday, November 24, 2017 at 12:13:18 PM UTC-8, Terry Reedy wrote: > >> Since you did not start with tests or write tests as you wrote code, ... > > why on earth would you assume that? instantiate "window" and you'll see it

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2017-11-24 Thread Martin Panter
Martin Panter added the comment: Victor opened Issue 32128 with the same complaint. I think I found the offending article: >>> server = NNTP_SSL("nntp.aioe.org") >>> [response, count, first, last, name] = server.group("comp.lang.python") >>> last 199267 >>>

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9316ee4da2dcc217351418fc4dbe9205995689e0 by Victor Stinner in branch 'master': bpo-32030: Add _PyPathConfig_Init() (#4551) https://github.com/python/cpython/commit/9316ee4da2dcc217351418fc4dbe9205995689e0 --

Re: connect four (game)

2017-11-24 Thread namenobodywants
On Friday, November 24, 2017 at 12:13:18 PM UTC-8, Terry Reedy wrote: > Since you did not start with tests or write tests as you wrote code, ... why on earth would you assume that? instantiate "window" and you'll see it works exactly as i intended; nobody's asking you to debug code for free;

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2017-11-24 Thread Martin Panter
Martin Panter added the comment: If it helps, here is a basic test case I wrote for “pty.spawn”. I hope that it exposes the problem on Free BSD, but I have only tested it on Linux. parent = r'''\ import pty, sys pty.spawn((sys.executable, "-c", sys.argv[1])) ''' child =

[issue32128] test_nntplib: test_article_head_body() fails in SSL mode

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset dde38b9cb3ff24f2f1f17cb681d30741e0090f51 by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-32128: Skip test_nntplib.test_article_head_body() (GH-4552) (#4553)

Re: Issues encountered while launching the IDLE of python 3.7 64-bit I downloaded recently.

2017-11-24 Thread STEPHINEXT TUTORIALS
On Wed, Nov 22, 2017 at 4:29 AM, STEPHINEXT TUTORIALS < oladejist...@gmail.com> wrote: > Good morning, > I just downloaded the new version 3.7 for my windows operating system > 64-bits on your site. > The error I got while launching the IDLE is shown in the attached Picture. > I installed all the

[issue32127] tutorial on dictionaries has error in example

2017-11-24 Thread Eric V. Smith
Eric V. Smith added the comment: No problem. Welcome to Python! -- ___ Python tracker ___

[issue32128] test_nntplib: test_article_head_body() fails in SSL mode

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

[issue32128] test_nntplib: test_article_head_body() fails in SSL mode

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 706cb3162e15271ecfeba15909ed48a3a437009f by Victor Stinner in branch 'master': bpo-32128: Skip test_nntplib.test_article_head_body() (#4552)

[issue32128] test_nntplib: test_article_head_body() fails in SSL mode

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4483 stage: -> patch review ___ Python tracker ___

[issue32128] test_nntplib: test_article_head_body() fails in SSL mode

2017-11-24 Thread STINNER Victor
New submission from STINNER Victor : The news.trigofacile.com NNTP server used by test_nntplib currently has troubles on SSL: $ ./python -m test -u all -v test_nntplib -m test_article_head_body ==

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4482 ___ Python tracker ___ ___

[issue30855] [2.7] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-11-24 Thread Zachary Ware
Change by Zachary Ware : -- pull_requests: +4481 stage: resolved -> patch review ___ Python tracker ___

[issue29885] Allow GMT timezones to be used in datetime.

2017-11-24 Thread Decorater
Change by Decorater : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30396] Document the PyClassMethod* C API functions.

2017-11-24 Thread Decorater
Change by Decorater : -- stage: -> resolved status: open -> closed ___ Python tracker ___

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Richard Damon
On 11/24/17 5:46 PM, Ned Batchelder wrote: On 11/24/17 5:26 PM, Richard Damon wrote: Have you tried using U+2010 (HYPHEN) ‐. It is in the class XID_CONTINUE (in fact it is in XID_START) so should be available. U+2010 isn't allowed in Python 3 identifiers. The rules for identifiers are here:

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset f04ebe2a4d68b194deeb438e9185efdafc10a832 by Victor Stinner in branch 'master': bpo-32030: Add _PyMainInterpreterConfig.program_name (#4548)

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Ned Batchelder
On 11/24/17 5:26 PM, Richard Damon wrote: Have you tried using U+2010 (HYPHEN) ‐. It is in the class XID_CONTINUE (in fact it is in XID_START) so should be available. U+2010 isn't allowed in Python 3 identifiers. The rules for identifiers are here:

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

2017-11-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: This whole section has become a mess an is now more complex that the underlying code. Adding more caveats, special cases, and atypical examples will make it worse (rather like the U.S. tax code, another example of bad

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Mikhail V
On Fri, Nov 24, 2017 at 11:26 PM, Richard Damon wrote: > > Have you tried using U+2010 (HYPHEN) ‐. It is in the class XID_CONTINUE (in > fact it is in XID_START) so should be available. > Hi Richard. U+2010 is SyntaxError. 5 days ago I made a proposal on python-ideas,

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4480 ___ Python tracker ___ ___

[issue32116] CSV import and export simplified

2017-11-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm also -1 on this feature request. The open and closing of files is orthogonal to what you do with an open file. Likewise, iterators are orthogonal to how they are consumed (for-loops, list(), set(), etc). FWIW, csv.Reader

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Richard Damon
On 11/24/17 4:04 PM, Mikhail V wrote: On Fri, Nov 24, 2017 at 9:08 PM, Chris Angelico wrote: On Sat, Nov 25, 2017 at 7:00 AM, Mikhail V wrote: I agree that one should have more choices, but people still can't really choose many things. I can't choose

Re: Python loop and web server (bottle) in the same script (Posting On Python-List Prohibited)

2017-11-24 Thread Gregory Ewing
Lawrence D’Oliveiro wrote: I naturally concluded that you didn’t care about updates being momentarily held up by a web request in progress--which would happen anyway if you used threads, at least with CPython. Not necessarily -- the web processing is probably I/O bound, in which case the GIL

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread Eric Snow
Eric Snow added the comment: I've left a review (writing it as you merged the PR). My main concern is that we not promise more than we must. Every pre-init function or variable we promise to embedders represents global state that is hard to get rid of. It also

[issue32123] Make the API of argparse.HelpFormatter public

2017-11-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suggest that you open a thread on python-ideas list: something like 'Make argparse.HelpFormatter public'. Explain what you would like to have happen and why. -- nosy: +terry.reedy ___ Python

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread breamoreboy
On Thursday, November 23, 2017 at 6:50:29 PM UTC, Mikhail V wrote: > Chris A wrote: > > >> On Fri, Nov 24, 2017 at 1:10 AM, Mikhail V wrote: > >> > >>> Chris A wrote: > >>> > >>> Fortunately for the world, you're not the one who decided which > >>> characters were permitted in Python identifiers.

ANN: DIPY 0.13.0

2017-11-24 Thread Eleftherios Garyfallidis
Hello all, We are happy to announce a new public release of DIPY. This is mostly a maintenance release with extra fixes, speedups and minor changes of dependencies. *DIPY 0.13 (Tuesday, 24 October 2017)* This release received contributions from 13 developers (the full release notes are at:

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Rick Johnson
On Thursday, November 23, 2017 at 3:06:00 PM UTC-6, Chris Angelico wrote: > Seriously? Do I need to wrench this part out of you? This > was supposed to be the EASY question that everyone can > agree on, from which I can then draw my line of argument. Translation: "Dag-nab-it! You're supposed

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 46972b7bc385ec2bdc7f567bbd22c9e56ffdf003 by Victor Stinner in branch 'master': bpo-32030: Add _PyMainInterpreterConfig_ReadEnv() (#4542) https://github.com/python/cpython/commit/46972b7bc385ec2bdc7f567bbd22c9e56ffdf003

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: > These results look strange to me. I expected the same difference but smaller > the base time. Honestly, I was also surprised. I checked the whole benchmark twice. I also rebased the PR locally to make sure that it's not a side

[issue32125] Remove global configuration variable Py_UseClassExceptionsFlag

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: > Then document this explicitly like for other functions that *should* be > called before Py_Initialize() if called at all. I agree that it would be even better to document if a function must not be called after Py_Initialize().

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 84c4b1938fade2b425ac906730beabd413de094d by Victor Stinner in branch 'master': bpo-32124: Document C functions safe before init (#4540) https://github.com/python/cpython/commit/84c4b1938fade2b425ac906730beabd413de094d

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: These results look strange to me. I expected the same difference but smaller the base time. -- ___ Python tracker

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file47287/bench_ignore_warn_c.py ___ Python tracker ___

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New benchmark on the emitting a warning which is ignored. Benchmark the PR 4489. Warning emitted in Python, warnings.warn(): vstinner@apu$ ./python -m perf compare_to master.json ignore.json Mean +- std dev: [master] 705 ns +- 24

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Mikhail V
On Fri, Nov 24, 2017 at 9:08 PM, Chris Angelico wrote: > On Sat, Nov 25, 2017 at 7:00 AM, Mikhail V wrote: >> I agree that one should have more choices, but >> people still can't really choose many things. >> I can't choose hyphen, I can't choose minus

[issue32125] Remove global configuration variable Py_UseClassExceptionsFlag

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset da9c8c36aeb60ad8f7748a735c372bf993d2e4f3 by Victor Stinner in branch 'master': bpo-32125: Remove Py_UseClassExceptionsFlag flag (#4544) https://github.com/python/cpython/commit/da9c8c36aeb60ad8f7748a735c372bf993d2e4f3

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I'm quite sure that calling PyMem_SetAllocator() or > PyObject_SetArenaAllocator() after Py_Initialize() will quickly crash. Then document this explicitly like for other functions that *should* be called before Py_Initialize()

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: > Should PyMem_SetAllocator() and PyObject_SetArenaAllocator() be called before > Py_Initialize(), or they can be called after it? I'm quite sure that calling PyMem_SetAllocator() or PyObject_SetArenaAllocator() after

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Mikhail V
On Fri, Nov 24, 2017 at 5:37 PM, Chris Angelico wrote: > On Sat, Nov 25, 2017 at 3:33 AM, Mikhail V wrote: >> On Fri, Nov 24, 2017 at 8:03 AM, Chris Angelico wrote: >> and in Python in particular, because they will be not only

[issue32125] Remove global configuration variable Py_UseClassExceptionsFlag

2017-11-24 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4479 stage: -> patch review ___ Python tracker ___

Re: Benefits of unicode identifiers

2017-11-24 Thread Terry Reedy
On 11/24/2017 7:12 AM, bartc wrote: π = 3.141; That's great. But how do I type it on my keyboard? How do I view someone else's code on my crappy ASCII text editor? Input is a problem, but for reading, Python comes with a half-way decent Unicode BMP code editor, IDLE. No one needs to use a

Re: connect four (game)

2017-11-24 Thread Terry Reedy
On 11/24/2017 10:33 AM, namenobodywa...@gmail.com wrote: hi all i've just finished my first excursion into artificial intelligence with a game less trivial than tictactoe, and here it is in case anybody can offer criticism/suggestions/etc Since you did not start with tests or write tests as

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Chris Angelico
On Sat, Nov 25, 2017 at 7:00 AM, Mikhail V wrote: > I agree that one should have more choices, but > people still can't really choose many things. > I can't choose hyphen, I can't choose minus sign, > and many tech people would probably want more operators. > It counts

Re: Increasing the diversity of people who write Python (was: Benefits of unicode identifiers)

2017-11-24 Thread Andrew Z
Thank you Rick for well thought out argument. On Nov 24, 2017 12:44, "Rick Johnson" wrote: > On Thursday, November 23, 2017 at 9:57:12 PM UTC-6, Ben Finney wrote: > [...] > > This is a necessary consequence of increasing the diversity > > of people able to

[issue32097] doctest does not consider \r\n a

2017-11-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.4, Python 3.5, Python 3.8 ___ Python tracker ___

[issue32080] Re locale test fails after installing Python 3.6.3 on ubuntu 16.04

2017-11-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Installation, Library (Lib) -2to3 (2.x to 3.x conversion tool) nosy: +serhiy.storchaka title: Error Installing Python 3.6.3 on ubuntu 16.04 -> Re locale test fails after installing Python 3.6.3 on ubuntu 16.04 type: resource

[issue32127] tutorial on dictionaries has error in example

2017-11-24 Thread Toby Berla
Toby Berla added the comment: Thanks, Eric. (I'm new to Python.) Perhaps I should have paid closer attention to the description of the dictionary data structure -- "Performing list(d.keys()) on a dictionary returns a list of all the keys used in the dictionary, in

[issue32127] tutorial on dictionaries has error in example

2017-11-24 Thread Eric V. Smith
Eric V. Smith added the comment: dict makes no guarantees on ordering, so I think the example is fine. There is no "correct" ordering. -- nosy: +eric.smith ___ Python tracker

[issue32127] tutorial on dictionaries has error in example

2017-11-24 Thread Toby Berla
New submission from Toby Berla : in https://docs.python.org/3/tutorial/datastructures.html: - 5.5. Dictionaries ... Here is a small example using a dictionary: >>> >>> tel = {'jack': 4098, 'sape': 4139} >>> tel['guido'] = 4127 >>> tel {'sape': 4139, 'guido': 4127,

[issue32116] CSV import and export simplified

2017-11-24 Thread Paul Long
Change by Paul Long : -- keywords: +patch pull_requests: +4478 stage: -> patch review ___ Python tracker ___

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should PyMem_SetAllocator() and PyObject_SetArenaAllocator() be called before Py_Initialize(), or they can be called after it? If PyMem_Malloc() and PyObject_Malloc() are not needed for pre-initialization, should we support

Re: Increasing the diversity of people who write Python

2017-11-24 Thread Richard Damon
On 11/24/17 12:35 PM, Skip Montanaro wrote: I find it it interesting that the primary reason to want to limit the character set to ASCII is people thinking that it would make it hard for *them* to read/use the code, but no thought about how much harder it makes it on the original author/team to

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

2017-11-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 5742f674f7561dc9a1fc66d650e18e31b941183b by xdegaye in branch 'master': bpo-28684: Remove useless import added by the previous commit (GH-4547) https://github.com/python/cpython/commit/5742f674f7561dc9a1fc66d650e18e31b941183b

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

2017-11-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Growing the size of the code and the documentation, complicating the mental model, slowing down all other cases, the risk of introducing bugs. This is the cost that we should pay for adding a new feature. The benefit of adding a

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

2017-11-24 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4477 ___ Python tracker ___ ___

[issue32067] Deprecate accepting unrecognized braces in regular expressions

2017-11-24 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing

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

2017-11-24 Thread Éric Araujo
Éric Araujo added the comment: I don’t see a downside in accepting the feature request here. Maybe ask on python-ideas to get more feedback? -- nosy: +eric.araujo ___ Python tracker

Re: Increasing the diversity of people who write Python (was: Benefits of unicode identifiers)

2017-11-24 Thread Skip Montanaro
> I find it it interesting that the primary reason to want to limit the > character set to ASCII is people thinking that it would make it hard for > *them* to read/use the code, but no thought about how much harder it makes > it on the original author/team to write code that is easily understood

Re: Increasing the diversity of people who write Python (was: Benefits of unicode identifiers)

2017-11-24 Thread Rick Johnson
On Thursday, November 23, 2017 at 9:57:12 PM UTC-6, Ben Finney wrote: [...] > This is a necessary consequence of increasing the diversity > of people able to program in Python: people will express > ideas originating in their own language, in Python code. > For that diversity to increase, we

Test, test, test

2017-11-24 Thread Skip Montanaro
Testing 1 2 3 ... (you can ignore) def gen_dotted_quad_clues(pfx, ips): for ip in ips: yield "%s:%s/32" % (pfx, ip) dottedQuadList = ip.split(".") if len(dottedQuadList) >= 1: yield "%s:%s/8" % (pfx, dottedQuadList[0]) if len(dottedQuadList) >=

[issue31706] urlencode should accept generator as values for mappings when doseq=True

2017-11-24 Thread François Freitag
François Freitag added the comment: I updated the PR to allow any iterable of two-elements iterables to be passed to urlencode. If anyone has the time and interest, the PR is ready for review. -- ___ Python tracker

Re: Increasing the diversity of people who write Python (was: Benefits of unicode identifiers)

2017-11-24 Thread Richard Damon
On 11/24/17 11:41 AM, Skip Montanaro wrote: Because if I already can't understand the words, it will be more useful to me to be able to type them reliably at a keyboard, for replication, search, discussion with others about the code, etc. I am probably not alone in my Americo-centric world

[issue32126] [asyncio] test failure when the platform lacks a functional sem_open()

2017-11-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: See also the related issues: #3770: test_multiprocessing fails on systems with HAVE_SEM_OPEN=0 #28668: instanciation of multiprocessing.Queue raises ImportError in test_logging #26924: android: test_concurrent_futures fails --

[issue32126] [asyncio] test failure when the platform lacks a functional sem_open()

2017-11-24 Thread Xavier de Gaye
New submission from Xavier de Gaye : test_get_event_loop_new_process fails on Android API 24 with the error: == ERROR: test_get_event_loop_new_process (test.test_asyncio.test_events.EPollEventLoopTests)

[issue32089] In developer mode (-X dev), ResourceWarning is only emited once per line numbers

2017-11-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine: What do you think of using the "default" action for pydebug build > and -X dev? That would be fine with me. -- ___ Python tracker

Re: Why does asyncio.wait_for() need a timeout?

2017-11-24 Thread Ian Kelly
On Fri, Nov 24, 2017 at 9:35 AM, Ian Kelly wrote: > On Fri, Nov 24, 2017 at 6:31 AM, Frank Millman wrote: >> "Frank Millman" wrote in message news:ov5v3s$bv7$1...@blaine.gmane.org... >> >>> Below is a simple asyncio loop that runs two background tasks.

Re: Increasing the diversity of people who write Python (was: Benefits of unicode identifiers)

2017-11-24 Thread Skip Montanaro
> Because if I already can't understand the words, it will be more useful > to me to be able to type them reliably at a keyboard, for replication, > search, discussion with others about the code, etc. I am probably not alone in my Americo-centric world where I can't even easily type accented

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Chris Angelico
On Sat, Nov 25, 2017 at 3:33 AM, Mikhail V wrote: > On Fri, Nov 24, 2017 at 8:03 AM, Chris Angelico wrote: > >>> and in Python in particular, because they will be not only forced to learn >>> some english, but also will have all 'pleasures' of

Re: Why does asyncio.wait_for() need a timeout?

2017-11-24 Thread Ian Kelly
On Fri, Nov 24, 2017 at 6:31 AM, Frank Millman wrote: > "Frank Millman" wrote in message news:ov5v3s$bv7$1...@blaine.gmane.org... > >> Below is a simple asyncio loop that runs two background tasks. >> > [...] >> >> >> Both take an optional timeout. >> >> If I use the first

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

2017-11-24 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Mikhail V
On Fri, Nov 24, 2017 at 8:03 AM, Chris Angelico wrote: >> and in Python in particular, because they will be not only forced to learn >> some english, but also will have all 'pleasures' of multi-script editing. >> But wait, probably one can write python code in, say Arabic

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

2017-11-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 0f86cd38f4a38f25a4aed3759a654a4b7fa49031 by xdegaye in branch 'master': bpo-28684: asyncio tests handle PermissionError raised on binding unix sockets (GH-4503)

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

2017-11-24 Thread Xavier de Gaye
Change by Xavier de Gaye : -- versions: -Python 3.6 ___ Python tracker ___ ___

Re: connect four (game)

2017-11-24 Thread Chris Angelico
On Sat, Nov 25, 2017 at 2:33 AM, wrote: > hi all > > i've just finished my first excursion into artificial intelligence with a > game less trivial than tictactoe, and here it is in case anybody can offer > criticism/suggestions/etc > Hi! You don't have a lot of

[issue12239] msilib VT_EMPTY SummaryInformation properties raise an error (suggest returning None)

2017-11-24 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Mark. I updated the test code and commit it to 3.6 and master branches. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6, Python 3.7 -Python 3.4, Python

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-24 Thread STINNER Victor
STINNER Victor added the comment: > Are you sure about PyMem_Malloc() and PyObject_Malloc()? Technically, the pymalloc memory allocator is initialized statically by the compiler, from the first instruction of the process. But maybe we should not suggest users to

[issue12239] msilib VT_EMPTY SummaryInformation properties raise an error (suggest returning None)

2017-11-24 Thread Berker Peksag
Berker Peksag added the comment: New changeset 412f00b839eae2bc07ca08a8e615c3d7dc870646 by Berker Peksag in branch '3.6': [3.6] bpo-12239: Make GetProperty() return None for VT_EMPTY (GH-4539)

connect four (game)

2017-11-24 Thread namenobodywants
hi all i've just finished my first excursion into artificial intelligence with a game less trivial than tictactoe, and here it is in case anybody can offer criticism/suggestions/etc peace stm ### #) connectfour - python 3.6.1 ### from

[issue32125] Remove global configuration variable Py_UseClassExceptionsFlag

2017-11-24 Thread STINNER Victor
New submission from STINNER Victor : The Py_UseClassExceptionsFlag flag was added by the commit 035574d755bfc306704e9975dc10e4e05a47b3bb. The commit 757af0e7bb7c7d56670fbc84f1f5b0182a54e3d5 started to use this flag: + /* if Python was started with -X,

  1   2   >