[issue32461] the first build after a change to Makefile.pre.in uses the old Makefile

2017-12-30 Thread Xavier de Gaye
New submission from Xavier de Gaye : After applying the attached Makefile.pre.in.diff that changes the text of the message printed by the 'Makefile' target, the make command gives: $ make CONFIG_FILES=Makefile.pre CONFIG_HEADERS= /bin/sh config.status config.status: creating

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2017-12-30 Thread devurandom
Change by devurandom : -- nosy: +devurandom ___ Python tracker ___ ___ Python-bugs-list

Re: tkinter MP working like a charm

2017-12-30 Thread Chris Angelico
On Sun, Dec 31, 2017 at 4:02 PM, Abdur-Rahmaan Janhangeer wrote: > for beginners import * is probably fine. Even if you are using most modules > then too. else if module small maybe ok too > > just when you import just what you need, you save on resources . > Actually no;

[issue32460] don't use tentative declarations

2017-12-30 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +4937 stage: -> patch review ___ Python tracker ___

[issue32460] don't use tentative declarations

2017-12-30 Thread Benjamin Peterson
New submission from Benjamin Peterson : Tentative declarations (non-extern declarations without initializers) are legacy C-ism that we should eschew by ensuring all our declarations have initializers. -- components: Build messages: 309269 nosy: benjamin.peterson

[issue29237] Create enum for pstats sorting options

2017-12-30 Thread Marcel Widjaja
Marcel Widjaja added the comment: I'd like to try to work on this one -- nosy: +mawidjaj ___ Python tracker ___

[issue32459] Capsule API usage docs are incompatible with module reloading (etc)

2017-12-30 Thread Nick Coghlan
New submission from Nick Coghlan : After commenting [1] on the fact that the current datetime module C API [2] is problematic due to its reliance on C level global variables, I discovered that this is actually the outcome of our recommended approach to using capsules to

Re: How to exec a string which has an embedded '\n'?

2017-12-30 Thread Random832
On Sat, Dec 30, 2017, at 23:57, jf...@ms4.hinet.net wrote: > I have a multiline string, something like '''...\nf.write('\n')\n...''' > when pass to exec(), I got > SyntaxError: EOL while scanning string literal > > How to get rid of it? Use \\n for this case, since you want the \n to be

[issue10381] Add timezone support to datetime C API

2017-12-30 Thread Nick Coghlan
Nick Coghlan added the comment: https://bugs.python.org/issue32459 covers defining a module-reloading-friendly way of using capsules. For this issue, I now think it makes sense to just ignore that problem, and add whatever you need to the existing API. --

[issue31530] Python 2.7 readahead feature of file objects is not thread safe

2017-12-30 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +4936 stage: resolved -> patch review ___ Python tracker ___

[issue31530] Python 2.7 readahead feature of file objects is not thread safe

2017-12-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: Unfortunately, it looks like this fix causes a regression. Some programs rely on being able to seek() and write to a file on multiple threads. For example, py.test captures the standard streams by redirecting them to a tmpfile and then

Re: tkinter MP working like a charm

2017-12-30 Thread Abdur-Rahmaan Janhangeer
for beginners import * is probably fine. Even if you are using most modules then too. else if module small maybe ok too just when you import just what you need, you save on resources . Abdur-Rahmaan Janhangeer, Mauritius abdurrahmaanjanhangeer.wordpress.com On 31 Dec 2017 05:00, "Wu Xi"

[issue23859] asyncio: document behaviour of wait() cancellation

2017-12-30 Thread Chris Jerdonek
Change by Chris Jerdonek : -- versions: +Python 3.6 ___ Python tracker ___ ___

[issue23859] asyncio: document behaviour of wait() cancellation

2017-12-30 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___

Re: a nice editor in 100 lines

2017-12-30 Thread Abdur-Rahmaan Janhangeer
great ! maybe the next step is a syntax coloriser ^^_ Abdur-Rahmaan Janhangeer, Mauritius abdurrahmaanjanhangeer.wordpress.com On 31 Dec 2017 02:05, "Wu Xi" wrote: > class writerKl(object): > def __init__(self): > import tkinter > from

How to exec a string which has an embedded '\n'?

2017-12-30 Thread jfong
I have a multiline string, something like '''...\nf.write('\n')\n...''' when pass to exec(), I got SyntaxError: EOL while scanning string literal How to get rid of it? Best Regards, Jach Fong -- https://mail.python.org/mailman/listinfo/python-list

[issue10381] Add timezone support to datetime C API

2017-12-30 Thread Nick Coghlan
Nick Coghlan added the comment: On 31 December 2017 at 01:34, Paul Ganssle wrote: > That said, I think it would be really good if we could get a fast path for > timezone creation and access to the UTC singleton into the Python 3.7 > release. I

[issue32424] Synchronize copy methods between Python and C implementations of xml.etree.ElementTree.Element

2017-12-30 Thread Gordon P. Hemsley
Gordon P. Hemsley added the comment: As discussed above, starting with msg309074, __deepcopy__() is being added to the Python implementation because it already exists in the C implementation. And additional tests have in fact uncovered further discrepancies between

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread Ben Bacarisse
bartc writes: > On 30/12/2017 20:36, Ben Bacarisse wrote: >> bartc writes: >> >>> On 30/12/2017 16:53, mm0fmf wrote: On 30/12/2017 14:41, bartc wrote: > it looks a bit naff Understatement of 2017. >>> >>> I'm honest about my own ideas, but my

tkinter MP working like a charm

2017-12-30 Thread Wu Xi
from tkinter import *#I cant see anything wrong with this , it works like a charm from tkinter import messagebox #is there a serious concern doing things his way ? import asyncio , threading , random #

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread MRAB
On 2017-12-30 23:22, Gregory Ewing wrote: Stefan Ram wrote: BASIC has DEF FN... which /can/ define actual subroutines, limited to expressions. Now, what does this limitation remind me of? The equivalent limitation in Python is nowhere near as bad, since if you outgrow what lambda can

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread Chris Angelico
On Sun, Dec 31, 2017 at 10:45 AM, bartc wrote: > On 30/12/2017 23:26, Gregory Ewing wrote: >> >> bartc wrote: >>> >>> B and C occur twice, so a goto is a quick way to reuse B and C without >>> needing to duplicate code, >> >> >> This only works if the repeated part happens to be

Re: Python: asyncio and Tkinter

2017-12-30 Thread Wu Xi
this is kinda interesting. seems there is no easy way though -- https://mail.python.org/mailman/listinfo/python-list

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread bartc
On 30/12/2017 23:26, Gregory Ewing wrote: bartc wrote: B and C occur twice, so a goto is a quick way to reuse B and C without needing to duplicate code, This only works if the repeated part happens to be at the tail of each case. IME that seems to be the most common situation. Any other

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread Gregory Ewing
bartc wrote: B and C occur twice, so a goto is a quick way to reuse B and C without needing to duplicate code, This only works if the repeated part happens to be at the tail of each case. Any other situation and you're back to local functions. -- Greg --

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread Gregory Ewing
bartc wrote: C doesn't in general have local functions. My own languages don't implement them properly. So I tend not to use them. Looks like there's something circular going on here. You don't have much experience of using local functions, so you don't see a lot of value in them, so you

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread Gregory Ewing
Stefan Ram wrote: BASIC has DEF FN... which /can/ define actual subroutines, limited to expressions. Now, what does this limitation remind me of? The equivalent limitation in Python is nowhere near as bad, since if you outgrow what lambda can do you can always use a def instead. BASIC

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread Chris Angelico
On Sun, Dec 31, 2017 at 9:43 AM, bartc wrote: > On 30/12/2017 20:36, Ben Bacarisse wrote: >> >> bartc writes: >> >>> On 30/12/2017 16:53, mm0fmf wrote: On 30/12/2017 14:41, bartc wrote: > > it looks a bit naff Understatement of

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread bartc
On 30/12/2017 20:36, Ben Bacarisse wrote: bartc writes: On 30/12/2017 16:53, mm0fmf wrote: On 30/12/2017 14:41, bartc wrote: it looks a bit naff Understatement of 2017. I'm honest about my own ideas, but my remarks were about the use of special symbols such as "::" and

Re: Tkinter,show pictures from the list of files in catalog-problem

2017-12-30 Thread Wu Xi
nothing works in ure soft everything breaks -- https://mail.python.org/mailman/listinfo/python-list

Re: Anaconda Navigator : Add App

2017-12-30 Thread Wu Xi
that is a very slow manager. too slow. -- https://mail.python.org/mailman/listinfo/python-list

a nice editor in 100 lines

2017-12-30 Thread Wu Xi
class writerKl(object): def __init__(self): import tkinter fromtkinter import messagebox fromtkinter import filedialog fromtkinter import Tk fromtkinter import Menu fromtkinter

[issue32399] _uuidmodule.c cannot build on AIX - different typedefs of uuid_t, etc..

2017-12-30 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32399] _uuidmodule.c cannot build on AIX - different typedefs of uuid_t, etc..

2017-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 0d3ccb4395cccb11a50289c84c9a0dbbac03c647 by Antoine Pitrou (Michael Felt) in branch 'master': bpo-32399: Starting with AIX6.1 there is support in libc.a for uuid (RFC4122) (#4974)

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-12-30 Thread pfreixes
pfreixes added the comment: Yeps, any update on this bug and the fix proposed? -- ___ Python tracker ___

[issue32448] subscriptable

2017-12-30 Thread R. David Murray
R. David Murray added the comment: Well, in that case having 'organizer' in the error message wouldn't help you untangle your code ;) -- ___ Python tracker

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread William Ray Wing
> On Dec 30, 2017, at 7:46 AM, Peter J. Holzer wrote: > > On 2017-12-29 19:09:35 -0500, Dennis Lee Bieber wrote: >> On Fri, 29 Dec 2017 23:12:22 +, bartc declaimed the >> following: >>> Looking at 14 million lines of Linux kernel sources, which are in C,

[issue32452] Brackets and Parentheses used in an ambiguous way

2017-12-30 Thread R. David Murray
R. David Murray added the comment: "round brackets" would require just as much thought (if not more...it's not a thing at all in American typographical language) for an American to understand as the unadorned bracket does for the rest of you, so the best compromise is

[issue32451] python -m venv activation issue when using cygwin on windows

2017-12-30 Thread R. David Murray
R. David Murray added the comment: cygwin in not currently fully supported (there are people working on it, though). Can you determine if this is a bug in cygwin's bash support, or something else? It certainly works with bash shell on unix. I would presume that from

[issue8231] Unable to run IDLE without write-access to home directory

2017-12-30 Thread Ned Deily
Ned Deily added the comment: > Ned diagnosed #32447 as likely due to the space in the user name. Actually, that's not what the primary problem was. It was a severely misconfigured home directory, both permissions and groups. I'm not sure how that situation was created

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread Chris Angelico
On Sun, Dec 31, 2017 at 7:36 AM, Ben Bacarisse wrote: > bartc writes: > >> On 30/12/2017 16:53, mm0fmf wrote: >>> On 30/12/2017 14:41, bartc wrote: it looks a bit naff >>> >>> Understatement of 2017. >> >> I'm honest about my own ideas, but my remarks

[issue32458] test_asyncio failures on Windows

2017-12-30 Thread Yury Selivanov
Yury Selivanov added the comment: Please keep this issue open. -- ___ Python tracker ___

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread Ben Bacarisse
bartc writes: > On 30/12/2017 16:53, mm0fmf wrote: >> On 30/12/2017 14:41, bartc wrote: >>> it looks a bit naff >> >> Understatement of 2017. > > I'm honest about my own ideas, but my remarks were about the use of > special symbols such as "::" and "@". > > Before completely

[issue32458] test_asyncio failures on Windows

2017-12-30 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 0c36bed1c46d07ef91d3e02e69e974e4f3ecd31a by Yury Selivanov in branch 'master': bpo-32458: Temporarily mask start-tls proactor test on Windows (#5054)

[issue32458] test_asyncio failures on Windows

2017-12-30 Thread Yury Selivanov
Yury Selivanov added the comment: I'm leaving on a two-weeks vacation today. To avoid risking breaking the workflow, I'll mask this tests on AppVeyor. I'll investigate this when I get back. -- assignee: -> yselivanov components: +asyncio -Library (Lib), Tests

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2017-12-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Next up - implementing the ResourceReader ABC. -- ___ Python tracker ___

[issue32458] test_asyncio failures on Windows

2017-12-30 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +4935 stage: -> patch review ___ Python tracker ___

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: The Mac issue is the inability to add .xyz directories to the home directory. You can test a fix by entering 'mkdir .idlerc' at the terminal prompt. The IDLE issue is that IDLE quits when it cannot create .idlerc. In this respect, this is

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2017-12-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset deae6b451fefd5fd3143dd65051e1d341e5a5f84 by Barry Warsaw in branch 'master': bpo-32248 - Implement importlib.resources (#4911) https://github.com/python/cpython/commit/deae6b451fefd5fd3143dd65051e1d341e5a5f84 --

[issue8231] Unable to run IDLE without write-access to home directory

2017-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned diagnosed #32447 as likely due to the space in the user name. What matters for this issue is that a) someone can do that and b) IDLE likely could continue running anyway. There might then be problems with saving files from the editor,

Re: CFG Python

2017-12-30 Thread Ben Finney
Peter Otten <__pete...@web.de> writes: > > Let's say I vreated my own CFG in python, How can I […] > > Remember, context free grammars may be fine, but context free > questions aren't ;) +1 QotW -- \“The problem with television is that the people must sit and | `\keep their eyes

Re: CFG Python

2017-12-30 Thread Peter Otten
Ranya wrote: > Let's say I vreated my own CFG in python, How can I check now if a > sentence match this grammar (return true) or it doesn't match it (return > false and the wrong element in the grammar), How can I do this ? Remember, context free grammars may be fine, but context free questions

[issue32457] Windows Python cannot handle an early PATH entry containing ".." and python.exe

2017-12-30 Thread Eryk Sun
Eryk Sun added the comment: Here's a way to trigger this error that's unrelated to the PATH environment variable: >>> subprocess.call('python', executable=r'C:\Program Files\Python36\.\python.exe') Fatal Python error: Py_Initialize: unable to load the file system

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread Ian Kelly
On Sat, Dec 30, 2017 at 8:41 AM, bartc wrote: > (I had introduced a special language feature just for this kind of thing, > but it was unsatisfactory. Goto was simpler and understood by everyone. And > portable to any other language - that hasn't done away with goto. But it >

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Ned Deily
Ned Deily added the comment: P.S. You might consider creating a new account without the embedded space and moving your files there; it will probably cause other problems for you in the future. I notice that the current System Preferences -> Users & Groups interface won't

[issue8231] Unable to run IDLE without write-access to home directory

2017-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another duplicate: #32411, MacOS 10.3.1, user apparently cannot write to home dir. Starting IDLE in terminal results in Warning: unable to create user config directory /Users/Steve Margetts/.idlerc Check path and permissions. Exiting!

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Ned Deily
Ned Deily added the comment: OK, that confirms that your home directory permissions are incorrect. Not sure how that happened, possibly by an inadvertent chown command. Note that you need to be careful when using shell commands because your user name has a space character

[issue28494] is_zipfile false positives

2017-12-30 Thread John Jolly
John Jolly added the comment: Fix submitted that evaluates the ECD structure and validates the first CD entry. The fix also handles empty zipfiles. IMO the purpose of this API is to *quickly* verify that the file is a valid zipfile. With this fix, the API only reads another

[issue32458] test_asyncio failures on Windows

2017-12-30 Thread Antoine Pitrou
New submission from Antoine Pitrou : It seems test_asyncio fails sporadically on AppVeyor: https://ci.appveyor.com/project/python/cpython/build/3.7.0a0.10081#L2650 == ERROR: test_start_tls_server_1

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread MRAB
On 2017-12-30 18:21, bartc wrote: On 30/12/2017 16:53, mm0fmf wrote: On 30/12/2017 14:41, bartc wrote: it looks a bit naff Understatement of 2017. I'm honest about my own ideas, but my remarks were about the use of special symbols such as "::" and "@". Before completely dismissing it

[issue32457] Windows Python cannot handle an early PATH entry containing ".." and python.exe

2017-12-30 Thread Ray Donnelly
Ray Donnelly added the comment: .. though I will also ask the scons people to change this to use pushd and %CD% instead. Even if you were to make Python capable of handling such bad input, who knows what other programs will fail, and build systems should be extra

[issue32457] Windows Python cannot handle an early PATH entry containing ".." and python.exe

2017-12-30 Thread Ray Donnelly
New submission from Ray Donnelly : Over on the Anaconda Distribution we received a (private) bug report about a crash when trying to use scons. I thought initially it was due to one of our patches but I tested it out with official CPython and also with WinPython and

[issue28494] is_zipfile false positives

2017-12-30 Thread John Jolly
Change by John Jolly : -- pull_requests: +4934 stage: -> patch review ___ Python tracker ___

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread bartc
On 30/12/2017 16:53, mm0fmf wrote: On 30/12/2017 14:41, bartc wrote: it looks a bit naff Understatement of 2017. I'm honest about my own ideas, but my remarks were about the use of special symbols such as "::" and "@". Before completely dismissing it however, you should look at how

[issue32418] Implement Server.get_loop() method

2017-12-30 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread mm0fmf
On 30/12/2017 14:41, bartc wrote: it looks a bit naff Understatement of 2017. -- https://mail.python.org/mailman/listinfo/python-list

[issue32418] Implement Server.get_loop() method

2017-12-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset ffcb4c0165827d0a48ea973cc88bc134c74879fb by Andrew Svetlov in branch 'master': bpo-32418: Postfix, raise NotImplementdError and close resources in tests (#5052)

[issue32448] subscriptable

2017-12-30 Thread Alexander Mohr
Alexander Mohr added the comment: oh for second example I meant something like this: >>> class Foo: pass >>> Foo.organizer = None >>> Foo.blah = Foo >>> Foo.blah.organizer = None >>> Foo.blah.organizer[0] ya this is just a pie in the sky request :) --

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Ned Deily
Ned Deily added the comment: Just to be sure, please try again with the command as Ronald requested, i.e. include the tilde "~": ls -led ~ -- ___ Python tracker

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Steve Margetts
Steve Margetts added the comment: Including tilde... Last login: Sat Dec 30 10:47:07 on ttys001 mkdir: /Users/Steve Margetts/.bash_sessions: Permission denied touch: /Users/Steve Margetts/.bash_sessions/8B76B0D2-2C88-4FE0-A8F6-C7FB8C13A2A8.historynew: No such file or

CFG Python

2017-12-30 Thread Ranya
Let's say I vreated my own CFG in python, How can I check now if a sentence match this grammar (return true) or it doesn't match it (return false and the wrong element in the grammar), How can I do this ? -- https://mail.python.org/mailman/listinfo/python-list

[issue32456] PYTHONIOENCODING=undefined doesn't work in Python 3

2017-12-30 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : In Python 2.7 setting PYTHONIOENCODING=undefined mostly works as expected. $ PYTHONIOENCODING=undefined python -c 'print(123)' 123 $ PYTHONIOENCODING=undefined python -c 'print("abc")' abc $ PYTHONIOENCODING=undefined python -c

[issue32418] Implement Server.get_loop() method

2017-12-30 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4933 ___ Python tracker ___ ___

[issue15045] Make textwrap.dedent() consistent with str.splitlines(True) and str.strip()

2017-12-30 Thread Sanyam Khurana
Change by Sanyam Khurana : -- pull_requests: +4932 ___ Python tracker ___ ___

[issue23749] asyncio missing wrap_socket (starttls)

2017-12-30 Thread Yury Selivanov
Yury Selivanov added the comment: > I think the feature is significant enough for a What's New entry. Sure, Elvis and I will go through all NEWS items when it's time for what's new ;) -- ___ Python tracker

[issue23749] asyncio missing wrap_socket (starttls)

2017-12-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @yselivanov - thanks for adding this, it's a huge win. I think the feature is significant enough for a What's New entry. -- ___ Python tracker

[issue10381] Add timezone support to datetime C API

2017-12-30 Thread Paul Ganssle
Paul Ganssle added the comment: @Nick I'm certainly fine with re-configuring my PR to center around a new capsule module with deprecation of the old C API (though if you have any examples of what you have in mind that would be helpful to me). Certainly the "C global

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread bartc
On 30/12/2017 03:05, Lawrence D’Oliveiro wrote: On Saturday, December 30, 2017 at 12:12:23 PM UTC+13, bartc wrote: Looking at 14 million lines of Linux kernel sources, which are in C, over 100,000 of them use 'goto'. About one every 120 lines. That kind of thing leads to spaghetti code. Here

[issue19678] smtpd.py: channel should be passed to process_message

2017-12-30 Thread Sanyam Khurana
Change by Sanyam Khurana : -- keywords: +patch pull_requests: +4931 stage: needs patch -> patch review ___ Python tracker

[issue32455] PyCompile_OpcodeStackEffect() and dis.stack_effect() are not particularly useful

2017-12-30 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The information provided by PyCompile_OpcodeStackEffect() and dis.stack_effect() (added in issue19722) is not enough for practical use. 1. Some opcodes (like JUMP_IF_TRUE_OR_POP or FOR_ITER) have different stack effect when

Re: Goto (Posting On Python-List Prohibited)

2017-12-30 Thread Peter J. Holzer
On 2017-12-29 19:09:35 -0500, Dennis Lee Bieber wrote: > On Fri, 29 Dec 2017 23:12:22 +, bartc declaimed the > following: > >Looking at 14 million lines of Linux kernel sources, which are in C, > >over 100,000 of them use 'goto'. About one every 120 lines. > > > > C

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Steve Margetts
Steve Margetts added the comment: OK, those commands give: iMac:~ Steve Margetts$ ls -led drwxr-xr-x 21 501 staff 714 30 Dec 10:40 . iMac:~ Steve Margetts$ id uid=503(Steve Margetts) gid=20(staff)

[issue32453] shutil.rmtree can have O(n^2) performance on large dirs

2017-12-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : Added file: https://bugs.python.org/file47355/bench_rmtree.py ___ Python tracker ___

[issue32453] shutil.rmtree can have O(n^2) performance on large dirs

2017-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have tested shutil.rmtree() with a large number of files using modified benchmark from issue28564. For 40 files it takes less than 5 seconds. From the comment to the coreutils benchmark

[issue32443] Add Linux's signalfd() to the signal module

2017-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Regardless, it'd be nice to have it available in the stdlib so it could be > used if deemed useful. Agreed. > Signals are process global state, no thread compatible library can rightfully > take ownership of a one. But then is the

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: There appears to be a permission issue with the home directory. What's the output of the following commands in a terminal window: $ ls -led ~ $ id The home directory should be owned by the "uid" shown by the second command, and

[issue32454] Add socket.close(fd) function

2017-12-30 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue32453] shutil.rmtree can have O(n^2) performance on large dirs

2017-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think filesystem-specific optimizations belong in the Python stdlib. Python is compatible with multiple operating systems, including Windows, macOS, Android, many POSIX variants. It would be much better if this were fixed in the

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2017-12-30 Thread Steve Margetts
Steve Margetts added the comment: Thanks for the help. I've installed ActiveTCL 8.5.18.0 as per the Python recommendation. Running from terminal: Last login: Fri Dec 29 16:46:22 on ttys001 mkdir: /Users/Steve Margetts/.bash_sessions: Permission denied touch: /Users/Steve

[issue28134] socket.socket(fileno=fd) does not work as documented

2017-12-30 Thread Christian Heimes
Christian Heimes added the comment: Issue #32454 adds socket.close(fd) function. -- ___ Python tracker ___

[issue32454] Add socket.close(fd) function

2017-12-30 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +4930 stage: -> patch review ___ Python tracker ___

[issue32454] Add socket.close(fd) function

2017-12-30 Thread Christian Heimes
New submission from Christian Heimes : os.close(fd) of a socket fd does not work some platforms, e.g. Windows. In the past we have used socket.socket(fileno=fd).close() to close a socket in a platform independent way. With #28134 it may no longer work in all cases, most

[issue32439] Clean up the code for compiling comparison expressions

2017-12-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker