[issue34122] inspect.getmembers does not retrive dataclass's __dataclass_fields__ properly

2018-07-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think there is some note about this on the doc as below : https://docs.python.org/3/library/dataclasses.html#dataclasses.field . Relevant commit : 98d50cb8f57eb227c373cb94b8680b12ec8aade5 If the default value of a field is specified by a call to

Re: logging from time critical tasks -- QueueListener().stop() takes the whole CPU

2018-07-15 Thread Gerlando Falauto
On Monday, July 16, 2018 at 6:56:19 AM UTC+2, dieter wrote: > > ... > > Why is the main thread taking up so much CPU? > > I believe at this point listener.stop() should only be waiting for the > > helper thread to terminate, which I reckon would be implemented by waiting > > on a semaphore or

[issue34122] inspect.getmembers does not retrive dataclass's __dataclass_fields__ properly

2018-07-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: logging from time critical tasks -- QueueListener().stop() takes the whole CPU

2018-07-15 Thread dieter
Gerlando Falauto writes: > ... > Why is the main thread taking up so much CPU? > I believe at this point listener.stop() should only be waiting for the helper > thread to terminate, which I reckon would be implemented by waiting on a > semaphore or something (i.e. iowait i.e. 0% CPU). Maybe,

[issue34122] inspect.getmembers does not retrive dataclass's __dataclass_fields__ properly

2018-07-15 Thread Dong-hee Na
New submission from Dong-hee Na : When I execute this script. import inspect from dataclasses import * import enum @dataclass class SimpleDataObject(object): field_a: int = field() field_b: str = "asdad" print([a[0] for a in inspect.getmembers(SimpleDataObject)]) I expected

Re: Users banned

2018-07-15 Thread Devin Jeanpierre
On Sun, Jul 15, 2018 at 5:09 PM Jim Lee wrote: > That is, of course, the decision of the moderators - but I happen to > agree with both Christian and Ethan. Banning for the simple reason of a > dissenting opinion is censorship, pure and simple. While Bart may have > been prolific in his

Re: Reading EmailMessage from file

2018-07-15 Thread Richard Damon
A raw email message should be treated as a ‘bag of bytes’, and in processing it, the encoding of the various sections determined by headers in the message (or taking defined defaults if not specified). I suspect that means that you should read as a binary file. I would hope that the module has

Re: Reading EmailMessage from file

2018-07-15 Thread Skip Montanaro
> What are you actually trying to do? You're talking like you're trying > to read an existing RFC822 email-with-headers from a file, but you're > showing code that creates a new email with body content set from > a file, which is a completely different thing. Yes, that's exactly what I'm trying

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 17:17, MRAB wrote: On 2018-07-16 00:10, Jim Lee wrote: On 07/15/18 16:04, Chris Angelico wrote: You claimed that Unicode was insignificant to many programs. I'm trying to say that a Unicode text string is a vital part of any program that works with text, which is pretty much

[issue34121] configure fails to detect C11 atomic support on clang

2018-07-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 8487ef61dea9fb0579f0be8f01d74fa20d3b8ed1 by Benjamin Peterson in branch '3.6': [3.6] bpo-34121: Fix detection of C11 atomic support on clang. (GH-8290) https://github.com/python/cpython/commit/8487ef61dea9fb0579f0be8f01d74fa20d3b8ed1

Re: Reading EmailMessage from file

2018-07-15 Thread Cameron Simpson
On 15Jul2018 23:34, Jon Ribbens wrote: On 2018-07-15, Skip Montanaro wrote: I have an email message in a file (see attached). Attachments don't work here. something like this should construct an email message from the file: from email.message import EmailMessage msg = EmailMessage() fp

Re: can't install/run pip (Latest version of Python)

2018-07-15 Thread boB Stepp
On Sun, Jul 15, 2018 at 7:34 PM S Lea wrote: > > I can't seem to install the pips, DOS gives me the syntex i invalid, any > thoughts? You provide insufficient information for anyone to be able to help you. 1) Copy and paste the entire traceback into a plain text email, no screen shots please.

Re: can't install/run pip (Latest version of Python)

2018-07-15 Thread Cameron Simpson
On 15Jul2018 17:32, S Lea wrote: I can't seem to install the pips, DOS gives me the syntex i invalid, any thoughts? Please post, inline as text, the commands you're trying to run, including the prompt at which you're running the command and including any error messages that happen. Also

[issue34121] configure fails to detect C11 atomic support on clang

2018-07-15 Thread miss-islington
miss-islington added the comment: New changeset 3fc12f0e2ad9ba49243f5a43a8803018b2ff5904 by Miss Islington (bot) in branch '3.7': bpo-34121: Fix detection of C11 atomic support on clang. (GH-8288) https://github.com/python/cpython/commit/3fc12f0e2ad9ba49243f5a43a8803018b2ff5904 --

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 17:18, Steven D'Aprano wrote: On Sun, 15 Jul 2018 16:08:15 -0700, Jim Lee wrote: Python3 is intrinsically tied to Unicode for string handling. Therefore, the Python programmer is forced to deal with it (in all but trivial cases), rather than given a choice.  So I don't understand

[issue21617] importlib reload can fail with AttributeError if module removed from sys.path

2018-07-15 Thread Brett Cannon
Brett Cannon added the comment: If there's no spec, Michael, then your work-around is the next best option (and reloading never actually replaces the actual module object or it's dict/global namespace because we don't know who is holding on to a reference). -- nosy: +ncoghlan

can't install/run pip (Latest version of Python)

2018-07-15 Thread S Lea
I can't seem to install the pips, DOS gives me the syntex i invalid, any thoughts? Thank you -- https://mail.python.org/mailman/listinfo/python-list

[issue21617] importlib reload can fail with AttributeError if module removed from sys.path

2018-07-15 Thread Michael Forbes
Michael Forbes added the comment: It seems that a reasonable workaround (if you generate your own `spec`) is to call `spec.loader.exec_module(mod)`. This seems to reload the module into the same namespace. (I was afraid that it might replace the namespace hence the desire to use

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 16:55, Steven D'Aprano wrote: On Sun, 15 Jul 2018 11:22:11 -0700, James Lee wrote: On 7/15/2018 3:43 AM, Steven D'Aprano wrote: No. The real ten billion dollar question is how people in 2018 can stick their head in the sand and take seriously the position that Latin-1 (let

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-15 Thread Ammar Askar
Ammar Askar added the comment: Roger, personally I don't think its worth it to complicate the code in order to use the thread pool API. Especially considering this is just a private API and the only consumer will be the test suite runner. Let's see what the core devs think when this gets

[issue21617] importlib reload can fail with AttributeError if module removed from sys.path

2018-07-15 Thread Michael Forbes
Michael Forbes added the comment: What is the status of this issue? Is there a work-around? The 3.7 codebase raises an exception, but what is the correct solution for reloading a module that was loaded dynamically without modifying `sys.path`? -- nosy: +mforbes

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Steven D'Aprano
On Sun, 15 Jul 2018 16:08:15 -0700, Jim Lee wrote: > Python3 is intrinsically tied to Unicode for string handling. Therefore, > the Python programmer is forced to deal with it (in all but trivial > cases), rather than given a choice.  So I don't understand how I can > illustrate my point with

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Steven D'Aprano
On Sun, 15 Jul 2018 13:09:59 -0700, Jim Lee wrote: > On 07/15/18 12:37, MRAB wrote: >> To me, Unicode and UTF-8 aren't things to be reserved for I18N. I use >> them as a matter of course because I find it a lot easier to stick with >> just one encoding, one that will work with _any_ text I have.

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread MRAB
On 2018-07-16 00:10, Jim Lee wrote: On 07/15/18 16:04, Chris Angelico wrote: You claimed that Unicode was insignificant to many programs. I'm trying to say that a Unicode text string is a vital part of any program that works with text, which is pretty much anything that talks to humans. You

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-15 Thread Jeremy Kloth
Jeremy Kloth added the comment: The RegisterWaitForSingleObject() function does use the thread pool API: https://docs.microsoft.com/en-us/windows/desktop/ProcThread/thread-pool-api However, PdhCollectQueryDataEx() also creates a user-space thread to handle its work of setting the event

[issue34121] configure fails to detect C11 atomic support on clang

2018-07-15 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: Users banned

2018-07-15 Thread Jim Lee
On 07/15/18 14:53, Chris Angelico wrote: On Mon, Jul 16, 2018 at 7:35 AM, Marko Rauhamaa wrote: Christian Gollwitzer : Am 15.07.18 um 19:25 schrieb Ethan Furman: The following users are now banned from Python List: ... BartC I don't really think that this is appropriate. Bart may have

Re: Users banned

2018-07-15 Thread Jon Ribbens
On 2018-07-15, Chris Angelico wrote: > On Mon, Jul 16, 2018 at 7:35 AM, Marko Rauhamaa wrote: >> Christian Gollwitzer : >>> Am 15.07.18 um 19:25 schrieb Ethan Furman: The following users are now banned from Python List: ... BartC >>> >>> I don't really think that this is

[issue34121] configure fails to detect C11 atomic support on clang

2018-07-15 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +7824 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

can't install/run pip (Latest version of Python)

2018-07-15 Thread S Lea
I can't seem to install the pips, DOS gives me the syntex i invalid, any thoughts? Thank you -- https://mail.python.org/mailman/listinfo/python-list

[issue34121] configure fails to detect C11 atomic support on clang

2018-07-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +7823 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34121] configure fails to detect C11 atomic support on clang

2018-07-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 15c7b2abdfb93f8902dd72474818aee2bf97fa66 by Benjamin Peterson in branch 'master': bpo-34121: Fix detection of C11 atomic support on clang. (GH-8288) https://github.com/python/cpython/commit/15c7b2abdfb93f8902dd72474818aee2bf97fa66

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Steven D'Aprano
On Sun, 15 Jul 2018 11:22:11 -0700, James Lee wrote: > On 7/15/2018 3:43 AM, Steven D'Aprano wrote: >> >> No. The real ten billion dollar question is how people in 2018 can >> stick their head in the sand and take seriously the position that >> Latin-1 (let alone ASCII) is enough for text

[issue34121] configure fails to detect C11 atomic support on clang

2018-07-15 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +7822 stage: -> patch review ___ Python tracker ___ ___

[issue34121] configure fails to detect C11 atomic support on clang

2018-07-15 Thread Benjamin Peterson
Change by Benjamin Peterson : -- components: +Build -Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34121] configure fails to detect C11 atomic support on clang

2018-07-15 Thread Benjamin Peterson
New submission from Benjamin Peterson : clang supports C11 atomic APIs just fine but Python's configure fails to detect it: configure:16529: checking for stdatomic.h configure:16545: clang -pthread -o conftestconftest.c -lpthread -ldl -lutil >&5 conftest.c:389:5: error: _Atomic cannot

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 16:24, Chris Angelico wrote: That is why this seems obtuse to me. There is no benefit to going to a pre-Unicode way of working with text. ChrisA In a word - simplicity. As I said, there are programming situations where the programmer only needs to deal with a single language

Re: Reading EmailMessage from file

2018-07-15 Thread Jon Ribbens
On 2018-07-15, Skip Montanaro wrote: > I have an email message in a file (see attached). Attachments don't work here. > something like this should construct an email message from the file: > from email.message import EmailMessage msg = EmailMessage() fp =

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Chris Angelico
On Mon, Jul 16, 2018 at 9:22 AM, Jim Lee wrote: > > You've turned my argument upside down by redefine terms mid-stream. Now, > using Unicode is a "freedom" rather than a restriction. You've also > introduced a straw-man argument by introducing integers as a parallel > analogy (which it isn't -

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Chris Angelico
On Mon, Jul 16, 2018 at 9:10 AM, Jim Lee wrote: > > > On 07/15/18 16:04, Chris Angelico wrote: >> >> >> You claimed that Unicode was insignificant to many programs. I'm >> trying to say that a Unicode text string is a vital part of any >> program that works with text, which is pretty much

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 16:13, Chris Angelico wrote: On Mon, Jul 16, 2018 at 9:08 AM, Jim Lee wrote: On 07/15/18 14:50, Marko Rauhamaa wrote: Jim Lee : Yes, and for *that*, language matters; but, for a vast array of programming tasks that *don't* involve global communications, it's an added level of

Re: Users banned

2018-07-15 Thread Chris Angelico
On Mon, Jul 16, 2018 at 7:35 AM, Marko Rauhamaa wrote: > Christian Gollwitzer : > >> Am 15.07.18 um 19:25 schrieb Ethan Furman: >>> The following users are now banned from Python List: >>> ... >>> BartC >> >> I don't really think that this is appropriate. Bart may have deviant >> optinions,

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Chris Angelico
On Mon, Jul 16, 2018 at 9:08 AM, Jim Lee wrote: > > > On 07/15/18 14:50, Marko Rauhamaa wrote: >> >> Jim Lee : >>> >>> Yes, and for *that*, language matters; but, for a vast array of >>> programming tasks that *don't* involve global communications, it's an >>> added level of complexity with zero

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 16:04, Chris Angelico wrote: You claimed that Unicode was insignificant to many programs. I'm trying to say that a Unicode text string is a vital part of any program that works with text, which is pretty much anything that talks to humans. You keep saying that ... well you keep

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 14:50, Marko Rauhamaa wrote: Jim Lee : Yes, and for *that*, language matters;  but, for a vast array of programming tasks that *don't* involve global communications, it's an added level of complexity with zero benefit.  It would be *nice* to be able to turn support on or off,

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Chris Angelico
On Mon, Jul 16, 2018 at 8:53 AM, Jim Lee wrote: > > > On 07/15/18 15:07, Chris Angelico wrote: >> >> On Mon, Jul 16, 2018 at 7:57 AM, Jim Lee wrote: >>> >>> >>> On 07/15/18 14:53, Chris Angelico wrote: On Mon, Jul 16, 2018 at 7:02 AM, Jim Lee wrote: > > > On 07/15/18

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 15:07, Chris Angelico wrote: On Mon, Jul 16, 2018 at 7:57 AM, Jim Lee wrote: On 07/15/18 14:53, Chris Angelico wrote: On Mon, Jul 16, 2018 at 7:02 AM, Jim Lee wrote: On 07/15/18 13:30, Chris Angelico wrote: It doesn't matter what Twitch is, except for the fact that it is

Reading EmailMessage from file

2018-07-15 Thread Skip Montanaro
I have an email message in a file (see attached). According to this page: https://docs.python.org/3/library/email.examples.html something like this should construct an email message from the file: >>> from email.message import EmailMessage >>> msg = EmailMessage() >>> fp =

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Chris Angelico
On Mon, Jul 16, 2018 at 7:57 AM, Jim Lee wrote: > > > On 07/15/18 14:53, Chris Angelico wrote: >> >> On Mon, Jul 16, 2018 at 7:02 AM, Jim Lee wrote: >>> >>> >>> On 07/15/18 13:30, Chris Angelico wrote: It doesn't matter what Twitch is, except for the fact that it is a

[issue30400] Race condition in shutil.copyfile(): source file replaced file during copy

2018-07-15 Thread STINNER Victor
STINNER Victor added the comment: Python doesn't use FD of directories by default because it introduces issues of FD limit with deep directory tree, issue of managing FD lifetime, etc. That's why some API have one flavor for path and another for FD. --

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 14:53, Chris Angelico wrote: On Mon, Jul 16, 2018 at 7:02 AM, Jim Lee wrote: On 07/15/18 13:30, Chris Angelico wrote: It doesn't matter what Twitch is, except for the fact that it is a platform for HUMANS to communicate with HUMANS. Ultimately, that is what matters. Pick any

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Marko Rauhamaa
Jim Lee : > Yes, and for *that*, language matters;  but, for a vast array of > programming tasks that *don't* involve global communications, it's an > added level of complexity with zero benefit.  It would be *nice* to be > able to turn support on or off, depending on the requirements of the >

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Chris Angelico
On Mon, Jul 16, 2018 at 7:02 AM, Jim Lee wrote: > > > On 07/15/18 13:30, Chris Angelico wrote: >> >> >> It doesn't matter what Twitch is, except for the fact that it is a >> platform for HUMANS to communicate with HUMANS. Ultimately, that is >> what matters. Pick any other web site or

Re: Users banned

2018-07-15 Thread Marko Rauhamaa
Christian Gollwitzer : > Am 15.07.18 um 19:25 schrieb Ethan Furman: >> The following users are now banned from Python List: >> ... >> BartC > > I don't really think that this is appropriate. Bart may have deviant > optinions, mostly he thinks that his own work is superior to Python - > but he has

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 13:30, Chris Angelico wrote: It doesn't matter what Twitch is, except for the fact that it is a platform for HUMANS to communicate with HUMANS. Ultimately, that is what matters. Pick any other web site or communication protocol you please. ChrisA Yes, and for *that*, language

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Marko Rauhamaa
Terry Reedy : > On 7/15/2018 7:37 AM, Marko Rauhamaa wrote: >> One of the classic Unix and Internet tenets is that text is bytes is >> text. > > Tenets of a faith may be wrong ;-). An informatic paradigm from more > than 45 years ago may be outdated and in need of revision. > > [...] > >> Of

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Marko Rauhamaa
Ed Kellett : > So, Marko, I don't know what code you work on, but I think it's unfair > to attack Python 3's unicode handling too hard if you haven't written > a new project with it. I don't believe the problem was solely in the difficulty of conversion. It was primarily in the tricky (and

Morning after

2018-07-15 Thread Peter Pearson
As if in a wake for Guido, grief was grieved, drinks were drunk, voices were raised, and some furniture was broken. Now, please, let's resume being the most civil newsgroup on the net. -- To email me, substitute nowhere->runbox, invalid->com. --

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Chris Angelico
On Mon, Jul 16, 2018 at 6:09 AM, Jim Lee wrote: > > > On 07/15/18 12:37, MRAB wrote: >> >> To me, Unicode and UTF-8 aren't things to be reserved for I18N. I use them >> as a matter of course because I find it a lot easier to stick with just one >> encoding, one that will work with _any_ text I

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Chris Angelico
On Mon, Jul 16, 2018 at 6:06 AM, Terry Reedy wrote: > On 7/15/2018 7:37 AM, Marko Rauhamaa wrote: > >> One of the classic Unix and Internet tenets is that text is bytes is >> text. > > > Tenets of a faith may be wrong ;-). An informatic paradigm from more than > 45 years ago may be outdated and

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 13:09, Chris Angelico wrote: On Mon, Jul 16, 2018 at 4:22 AM, James Lee wrote: On 7/15/2018 3:43 AM, Steven D'Aprano wrote: No. The real ten billion dollar question is how people in 2018 can stick their head in the sand and take seriously the position that Latin-1 (let alone

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 12:37, MRAB wrote: To me, Unicode and UTF-8 aren't things to be reserved for I18N. I use them as a matter of course because I find it a lot easier to stick with just one encoding, one that will work with _any_ text I have. Which is exactly the same rationale for using any other

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Chris Angelico
On Mon, Jul 16, 2018 at 4:22 AM, James Lee wrote: > > > On 7/15/2018 3:43 AM, Steven D'Aprano wrote: >> >> >> No. The real ten billion dollar question is how people in 2018 can stick >> their head in the sand and take seriously the position that Latin-1 (let >> alone ASCII) is enough for text

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Terry Reedy
On 7/15/2018 7:37 AM, Marko Rauhamaa wrote: One of the classic Unix and Internet tenets is that text is bytes is text. Tenets of a faith may be wrong ;-). An informatic paradigm from more than 45 years ago may be outdated and in need of revision. On byte storage and on the Internet,

Re: Users banned

2018-07-15 Thread Christian Gollwitzer
Am 15.07.18 um 19:25 schrieb Ethan Furman: The following users are now banned from Python List: ... BartC I don't really think that this is appropriate. Bart may have deviant optinions, mostly he thinks that his own work is superior to Python - but he has always argued in a calm and

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread MRAB
On 2018-07-15 19:22, James Lee wrote: On 7/15/2018 3:43 AM, Steven D'Aprano wrote: No. The real ten billion dollar question is how people in 2018 can stick their head in the sand and take seriously the position that Latin-1 (let alone ASCII) is enough for text strings. Easy - for many

[issue33120] infinite loop in inspect.unwrap(unittest.mock.call)

2018-07-15 Thread ppperry
Change by ppperry : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33111] Merely importing tkinter breaks parallel code (multiprocessing, sharedmem)

2018-07-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was uncertain from Ethan's post what does work best. "endless errors with both 'spawn", "Only 'fork' works...but without graphics", "method='spawn'and ... does work". Do the 1st and 3rd sentences mean that spawn + graphics fails without the proper

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-15 Thread Ammar Askar
Ammar Askar added the comment: Is the function I used for the callback, RegisterWaitForSingleObject https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-registerwaitforsingleobject using the thread pooling system you're talking about underneath? The documentation seems to

[issue33111] Merely importing tkinter breaks parallel code (multiprocessing, sharedmem)

2018-07-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: As I mentioned in msg314304 this is almost certainly expected behavior on macOS because Apple’s GUI frameworks are not fork()-safe. There is nothing we can do about this other than changing the default spawn mechanism for multiprocessing on macOS. -- On

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Tim Daneliuk
On 07/14/2018 07:40 PM, Chris Angelico wrote: > You'd better avoid most of JavaScript, C++, and most other languages, > then. Every language feeps a little, and Python is definitely not as > bad as some. Point Of Order: C++ is one gigantic feep to be avoided at all costs... :) --

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread James Lee
On 7/15/2018 3:43 AM, Steven D'Aprano wrote: No. The real ten billion dollar question is how people in 2018 can stick their head in the sand and take seriously the position that Latin-1 (let alone ASCII) is enough for text strings. Easy - for many people, 90% of the Python code they

Users banned

2018-07-15 Thread Ethan Furman
From the Python List sign-up page: About Python-list: This mailing list is a general discussion list for the Python programming language. --- From the Python CoC A member of the Python community is: Open, Considerate, Respectful --- There is only a handful of volunteer list moderators,

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Ed Kellett
On 2018-07-15 15:52, Steven D'Aprano wrote: > On Sun, 15 Jul 2018 14:17:51 +0300, Marko Rauhamaa wrote: > >> Steven D'Aprano : >> >>> On Sun, 15 Jul 2018 11:43:14 +0300, Marko Rauhamaa wrote: Paul Rubin : > I don't think Go is the answer either, but it probably got strings > right.

python on open hatch

2018-07-15 Thread Abdur-Rahmaan Janhangeer
saw python still on open hatch last week, can some illuminated member explain to me the purpose there was a link to a contributing walkthrough (dead link), seems no longer maintaining descriptions Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ --

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Abdur-Rahmaan Janhangeer
@ChrisAngelico don't know [replying to your message but addressing to all] i respect you all, i respect your involvement, i doubt not your py skills but can you please stay on topic and be concise i value all posts here and try to read them all as they are all serious stuffs but when you mix in

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Abdur-Rahmaan Janhangeer
should have switched treads from here Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ >From the link: > >The much more likely thing to happen is that people stick to Python 2 >or build broken stuff on Python 3. Or they go with Go. Which uses an >even simpler model than

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Abdur-Rahmaan Janhangeer
@MarkLawrence this i fell compelled to reply. no name issue. fork with features intended meaning python is open source, you want to add as many feature as you want np, just like a user modifies a script. you just need to master c and compiler theory and it becomes easy or add like a "plugin"

Re: Can anyone tell me where the old MacPython "16 ton" logo came from?

2018-07-15 Thread Mark
On Sunday, July 15, 2018 at 1:49:22 PM UTC+1, Christian Heimes wrote: > On 2018-07-15 14:05, Mark wrote: > > I'm curious to understand how come the original MacPython logo is of a 16 > > ton weight (rather than, say the word 'python' or a picture of a snake)? > > You can see the logo here:

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Steven D'Aprano
On Sun, 15 Jul 2018 14:17:51 +0300, Marko Rauhamaa wrote: > Steven D'Aprano : > >> On Sun, 15 Jul 2018 11:43:14 +0300, Marko Rauhamaa wrote: >>> Paul Rubin : I don't think Go is the answer either, but it probably got strings right. What is the answer? >> >> Go strings aren't text

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Mark Lawrence
On 15/07/18 07:35, Abdur-Rahmaan Janhangeer wrote: @GregoryEwing maybe another word for pep revocation is fork All ready been tried and failed with Python as the PSF holds the rights to the name, so you have to call it something else. -- My fellow Pythonistas, ask not what our language can

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-15 Thread Jeremy Kloth
Jeremy Kloth added the comment: Correct. Windows provides the building blocks for implementing getloadavg(), but does not provide an interface that does the averaging. That is deferred to a per application basis. The best that an application can do for that is to use thread pools. You

Re: Can anyone tell me where the old MacPython "16 ton" logo came from?

2018-07-15 Thread Thomas Jollans
On 15/07/18 14:49, Christian Heimes wrote: > On 2018-07-15 14:05, Mark wrote: >> I'm curious to understand how come the original MacPython logo is of a 16 >> ton weight (rather than, say the word 'python' or a picture of a snake)? >> You can see the logo here:

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Marko Rauhamaa
Chris Angelico : > On Sun, Jul 15, 2018 at 9:17 PM, Marko Rauhamaa wrote: > Remind me how it's such a mistake to treat that string as text all the > way through? Many times you need to make tricky ontological conversion decisions when all you should need to do is relay the information. >

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Chris Angelico
On Sun, Jul 15, 2018 at 9:17 PM, Marko Rauhamaa wrote: > Steven D'Aprano : >> - to have a language where text strings are a second-class >> data type, not available in the language itself, only in >> the libraries; > > Unicode code point strings *ought* to be a second--class data type. They >

EuroPython 2018: Delaying switch to Late Bird Tickets by one day - please use your coupons today !

2018-07-15 Thread M.-A. Lemburg
Since we still have quite a few people with discount coupons who haven’t bought their tickets yet, we are extending the regular ticket sales by one day. * EuroPython 2018 Tickets * https://ep2018.europython.eu/en/registration/buy-tickets/ Switch to Late Bird Tickets

Invitation to the EuroPython Society General Assembly 2018

2018-07-15 Thread M.-A. Lemburg
We would like to invite all EuroPython attendees and EuroPython Society (EPS) members to attend this year’s EPS General Assembly (GA), which we will run as in-person meeting at the upcoming EuroPython 2018, held in Edinburgh, Scotland, UK from July 23 - 29. We had already sent a invite to the

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-15 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I suppose there is no way to emulate os.getloadavg() on Windows because that would necessarily imply using a thread to call the necessary routine (WMI, PDH, whatever...) every X secs or something, correct? --

Re: Can anyone tell me where the old MacPython "16 ton" logo came from?

2018-07-15 Thread Christian Heimes
On 2018-07-15 14:05, Mark wrote: > I'm curious to understand how come the original MacPython logo is of a 16 ton > weight (rather than, say the word 'python' or a picture of a snake)? > You can see the logo here: https://homepages.cwi.nl/~jack/macpython/ Most obscure references in Python are

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-15 Thread Jeremy Kloth
Jeremy Kloth added the comment: Not that it matters all that much, but from a terminology standpoint, WMI != PDH != Performance Counters. Performance counters (the objects, not the topic) are provided by DLLs registered in the HKLM\SYSTEM\CurrentControlSet\Services key. Their data is

Can anyone tell me where the old MacPython "16 ton" logo came from?

2018-07-15 Thread Mark
I'm curious to understand how come the original MacPython logo is of a 16 ton weight (rather than, say the word 'python' or a picture of a snake)? You can see the logo here: https://homepages.cwi.nl/~jack/macpython/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Marko Rauhamaa
Steven D'Aprano : > On Sun, 15 Jul 2018 11:39:40 +0300, Marko Rauhamaa wrote: > Armin seems to be implying that Unix is (1) the only OS in the world, > and (2) beyond criticism. If Unix is your world, of course you can criticize how badly Python3 performs in that world. > Neither of these are

EuroPython 2018: Delaying switch to Late Bird Tickets by one day - please use your coupons today !

2018-07-15 Thread M.-A. Lemburg
Since we still have quite a few people with discount coupons who haven’t bought their tickets yet, we are extending the regular ticket sales by one day. * EuroPython 2018 Tickets * https://ep2018.europython.eu/en/registration/buy-tickets/ Switch to Late Bird Tickets

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Marko Rauhamaa
Steven D'Aprano : > On Sun, 15 Jul 2018 11:43:14 +0300, Marko Rauhamaa wrote: >> Paul Rubin : >>> I don't think Go is the answer either, but it probably got strings >>> right. What is the answer? > > Go strings aren't text strings. They're byte strings. When you say that > Go got them right,

Invitation to the EuroPython Society General Assembly 2018

2018-07-15 Thread M.-A. Lemburg
We would like to invite all EuroPython attendees and EuroPython Society (EPS) members to attend this year’s EPS General Assembly (GA), which we will run as in-person meeting at the upcoming EuroPython 2018, held in Edinburgh, Scotland, UK from July 23 - 29. We had already sent a invite to the

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Steven D'Aprano
On Sun, 15 Jul 2018 11:39:40 +0300, Marko Rauhamaa wrote: > Steven D'Aprano : > >> Of course we have no idea what Marko's software is, or what it is >> doing, > > Correct, you don't, but the link Paul Rubin posted gives you an idea: > >Python 3 says: everything is Unicode (by default,

[issue27741] datetime.datetime.strptime functionality description incorrect

2018-07-15 Thread Farhaan Bukhsh
Farhaan Bukhsh added the comment: Hey I would like to remove this bug I was going through the discussion so does that mean remove the about mentioned lines from https://docs.python.org/3/library/datetime.html#datetime.datetime.strptime will fix this issue? Or should we add some more

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Steven D'Aprano
On Sun, 15 Jul 2018 11:43:14 +0300, Marko Rauhamaa wrote: > Paul Rubin : > >> Marko Rauhamaa writes: >>> I have similar feelings, except that I'm not convinced Go is the >>> answer. >> >> I don't think Go is the answer either, but it probably got strings >> right. What is the answer? Go

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-15 Thread Ammar Askar
Ammar Askar added the comment: Aah, yeah I don't think there's a good way of doing it purely from the windows API. There might be a way to enumerate through all the processes and see if they're queued up but I didn't look into it. In this case it should be fine, we just pay a bit of WMI

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-15 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Giampaolo, on your psutil issue you specifically said, "(possibly without > using WMI)" Is there any particular problem with using WMI? Performance. In general WMI is (a lot) slower than the Windows API counterpart (psutil never uses WMI except in unit

  1   2   >