[issue32972] unittest.TestCase coroutine support

2018-02-28 Thread John Andersen
New submission from John Andersen : This makes unittest TestCase classes run `test_` methods which are async -- components: Tests, asyncio messages: 313063 nosy: asvetlov, pdxjohnny, yselivanov priority: normal pull_requests: 5708 severity: normal status: open

[issue32964] Reuse a testing implementation of the path protocol in tests

2018-02-28 Thread Brett Cannon
Brett Cannon added the comment: FakePath? Otherwise SimplePath seems as good a name as any other one. -- ___ Python tracker ___

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Replacing an expression with a less clear equivalent expression makes no sense to me. Anyway, having __missing__ return 120 reduces the benchmark miss time from 1.2-1.3 to .93, making ParseMis always faster than ParseGet and reducing the

[issue13830] codecs error handler is called with a UnicodeDecodeError with the same args

2018-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For reference, this behavior was from beginning, since implementing PEP 293 in issue432401. -- ___ Python tracker

Re: cute interview problem

2018-02-28 Thread jrlcgmx
On Tuesday, 27 February 2018 00:42:02 UTC+1, Paul Rubin wrote: > Ron Aaron posted the below url on comp.lang.forth. It points to what I > thought was a cute problem, along with his solution in his Forth dialect > 8th: > > https://8th-dev.com/forum/index.php/topic,1584.msg8720.html > > I

Re: cute interview problem

2018-02-28 Thread Ian Kelly
On Wed, Feb 28, 2018 at 12:55 PM, wrote: > On Tuesday, 27 February 2018 00:42:02 UTC+1, Paul Rubin wrote: >> Ron Aaron posted the below url on comp.lang.forth. It points to what I >> thought was a cute problem, along with his solution in his Forth dialect >> 8th: >> >>

[issue32972] unittest.TestCase coroutine support

2018-02-28 Thread R. David Murray
R. David Murray added the comment: In order for this to be actually useful, I think we also need a mechanism to set up and run async cleanup methods. In my own project I accomplish this by putting the run_until_complete in a try/finally loop and have an

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2018-02-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +5709 ___ Python tracker ___

[issue32973] Importing the same extension module under multiple names breaks non-reinitialisable extension modules

2018-02-28 Thread Thomas Wouters
New submission from Thomas Wouters : This is a continuation, of sorts, of issue16421; adding most of that issue's audience to the noisy list. When importing the same extension module under multiple names that share the same basename, Python 3 will call the extension

Re: cute interview problem

2018-02-28 Thread jrlcgmx
On Tuesday, 27 February 2018 00:42:02 UTC+1, Paul Rubin wrote: > Ron Aaron posted the below url on comp.lang.forth. It points to what I > thought was a cute problem, along with his solution in his Forth dialect > 8th: > > https://8th-dev.com/forum/index.php/topic,1584.msg8720.html > > I

PyDev 6.3.1 Released

2018-02-28 Thread Fabio Zadrozny
PyDev 6.3.1 Release Highlights - PyDev is now also available for Python coding on Visual Studio Code -- see: http://www.pydev.org/vscode/ for more details. PyDev changes: - Type inference - Folders no longer require *__init__* to be considered a package. - Properly

[issue32971] Docs on unittest.TestCase.assertRaises() should be improved

2018-02-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ezio.melotti ___ Python tracker ___ ___

[issue32972] unittest.TestCase coroutine support

2018-02-28 Thread John Andersen
John Andersen added the comment: More discussion indeed. I figured I was not alone in my desire to see async test support in the stdlib. Let me know what other changes would be good. -- ___ Python tracker

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Chris Angelico
On Thu, Mar 1, 2018 at 8:49 AM, Ned Batchelder wrote: > On 2/28/18 4:13 PM, Etienne Robillard wrote: >> >> I want to know why this question is being silently ignored by this group. > > > If no one has any information about your topic, then no one will say > anything.

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Steven D'Aprano
On Wed, 28 Feb 2018 16:13:52 -0500, Etienne Robillard wrote: > Hey, > > I want to know why this question is being silently ignored by this > group. Possibly because we have no idea of the answer? Or we thought it was too obvious to answer? Do you have a microphone that can detect ultrasound?

[issue32732] LoggingAdapter ignores extra kwargs of Logger#log()

2018-02-28 Thread Vinay Sajip
Vinay Sajip added the comment: This is not a bug, so I have closed the PR and am closing the issue. You might expect extras to be merged, but you can either pass extras in the constructor (as you have observed) or by subclassing LoggerAdapter and overriding the

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +5711 ___ Python tracker ___

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +5710 stage: needs patch -> patch review ___ Python tracker ___

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset f0daa880a405c8de6743e44fa46006754aa145c9 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)

RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread ooomzay
Informal Background === Python's lack of Deterministic Object Destruction semantics strikes me as very unpythonic. This state of affairs spawns lengthy diatribes on __del__(), a variety of specialised and onerous resource management solutions and malignant carbuncles such as

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-28 Thread miss-islington
miss-islington added the comment: New changeset 32f5392f64f004382e26a988b1145d2dc96c4978 by Miss Islington (bot) in branch '3.6': bpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)

Re: help me ? (Posting On Python-List Prohibited)

2018-02-28 Thread Steven D'Aprano
On Wed, 28 Feb 2018 09:58:24 -0800, Aktive wrote: > what the hell do you care about cheating.. > > the world doest care about cheating. > > its about skill. Because cheaters don't have skill. That's why they cheat. > You guys been too much in school Ah, spoken like a cheater. -- Steve

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Etienne Robillard
If ultrasonic side channels are a threat to privacy, it is because smart phones were designed to exploit this precise feature. A great number of studies have shown that ultrasonic neuromodulation of the central nervous system can be exploited via brain-computer interfaces... It is cutting

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread ooomzay
On Wednesday, February 28, 2018 at 11:02:17 PM UTC, Chris Angelico wrote: > On Thu, Mar 1, 2018 at 9:51 AM, ooomzay wrote: > > Specification > > = > > > > When the last reference to an object goes out of scope the intepreter must > > synchronously, in the thread that releases the

[issue32878] Document value of st_ino on Windows

2018-02-28 Thread Alexander Nelson
Alexander Nelson added the comment: Thank you for this fix. -- nosy: +Alexander Nelson ___ Python tracker ___

[issue32953] Dataclasses: frozen should not be inherited for non-dataclass derived classes

2018-02-28 Thread Eric V. Smith
Eric V. Smith added the comment: See https://mail.python.org/pipermail/python-dev/2018-February/152320.html for a discussion. -- title: Dataclasses: frozen should not be inherited -> Dataclasses: frozen should not be inherited for non-dataclass derived classes

[issue32973] Importing the same extension module under multiple names breaks non-reinitialisable extension modules

2018-02-28 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue32973] Importing the same extension module under multiple names breaks non-reinitialisable extension modules

2018-02-28 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___

[issue32963] Python 2.7 tutorial claims source code is UTF-8 encoded

2018-02-28 Thread Brett Cannon
Brett Cannon added the comment: https://docs.python.org/2.7/tutorial/interpreter.html#source-code-encoding if people are looking for the doc link. -- nosy: +brett.cannon ___ Python tracker

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The mapping passed to str.translate must map ints representing codepoints to either either ints or strings. Translate can extract binary codepoints for the new string from either. Ints are slightly faster, so I am inclined not to switch.

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread Chris Angelico
On Thu, Mar 1, 2018 at 10:48 AM, Steven D'Aprano wrote: > On Wed, 28 Feb 2018 14:51:09 -0800, ooomzay wrote: >> Motivation >> == >> >> To make the elegance (simplicity, generality, and robustness) of the >> "Resource Acquisition Is Initialization"

csv module and NULL data byte

2018-02-28 Thread John Pote
I have a csv data file that may become corrupted (already happened) resulting in a NULL byte appearing in the file. The NULL byte causes an _csv.Error exception. I'd rather like the csv reader to return csv lines as best it can and subsequent processing of each comma separated field deal with

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Etienne Robillard
Hey, I want to know why this question is being silently ignored by this group. I think it is essential to develop cryptoanalysis tools (like softwares) to detect and block ultrasonic signals in mobile devices. Using Python to detect or block ultrasonic side channels would be very

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Ned Batchelder
On 2/28/18 4:13 PM, Etienne Robillard wrote: I want to know why this question is being silently ignored by this group. If no one has any information about your topic, then no one will say anything.  Python on Android is very specialized as it is, and I have no idea what ultrasonic side

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-28 Thread miss-islington
miss-islington added the comment: New changeset 7e5763469e2fc9d08a3f6b6205f87f20a1bdd465 by Miss Islington (bot) in branch '3.7': bpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread ooomzay
On Wednesday, February 28, 2018 at 11:45:24 PM UTC, ooo...@gmail.com wrote: > On Wednesday, February 28, 2018 at 11:02:17 PM UTC, Chris Angelico wrote: > > On Thu, Mar 1, 2018 at 9:51 AM, ooomzay wrote: > > [snip] > > Taking a really simple situation: > > > > class Foo: > > def

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread Chris Angelico
On Thu, Mar 1, 2018 at 10:44 AM, wrote: > On Wednesday, February 28, 2018 at 11:02:17 PM UTC, Chris Angelico wrote: >> On Thu, Mar 1, 2018 at 9:51 AM, ooomzay wrote: >> > Specification >> > = >> > >> > When the last reference to an object goes out of scope the

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Etienne Robillard
What do rats find rewarding in play fighting? Le 2018-02-28 à 18:29, Chris Angelico a écrit : On Thu, Mar 1, 2018 at 10:23 AM, Steven D'Aprano wrote: I'd go further... what gave you the idea that ANYONE is an expert on ultrasonic activation of neural

Re: Drinking from the fire-hose

2018-02-28 Thread Chris Angelico
On Thu, Mar 1, 2018 at 10:58 AM, Steven D'Aprano wrote: > Hey Chris, regretting writing that "Statement-Local Name Bindings" PEP > yet? :-) Haha, nah. I'm okay with the fire hose. > I know *I'm* regretting that you wrote it, because this is the sort of >

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread Steven D'Aprano
On Wed, 28 Feb 2018 15:44:45 -0800, ooomzay wrote: >> Here's one example: reference cycles. When do they get detected? > > Orphan cycle _detection_ is orthogonal to this proposal. It certainly is not. Dealing with cycles is why most of the world has moved on from reference counters. (Or at

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Chris Angelico
On Thu, Mar 1, 2018 at 10:23 AM, Steven D'Aprano wrote: > I'd go further... what gave you the idea that ANYONE is an expert on > ultrasonic activation of neural pathways? Definitely tinfoil hat material here; expertise is completely immaterial. ChrisA --

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread Steven D'Aprano
On Wed, 28 Feb 2018 14:51:09 -0800, ooomzay wrote: > Informal Background > === > > Python's lack of Deterministic Object Destruction semantics strikes me > as very unpythonic. This state of affairs spawns lengthy diatribes on > __del__(), I've never seen any of these lengthy

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread Chris Angelico
On Thu, Mar 1, 2018 at 9:51 AM, wrote: > Specification > = > > When the last reference to an object goes out of scope the intepreter must > synchronously, in the thread that releases the last reference, invoke the > object's __del__() method and then free the

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Grant Edwards
On 2018-02-28, Chris Angelico wrote: > On Thu, Mar 1, 2018 at 10:23 AM, Steven D'Aprano > wrote: >> I'd go further... what gave you the idea that ANYONE is an expert on >> ultrasonic activation of neural pathways? > > Definitely tinfoil hat

Drinking from the fire-hose

2018-02-28 Thread Steven D'Aprano
Hey Chris, regretting writing that "Statement-Local Name Bindings" PEP yet? :-) I know *I'm* regretting that you wrote it, because this is the sort of language feature that has the potential to make Python significantly ugly and worse, and I'd like to have my say, but there's no way I have

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread MRAB
On 2018-03-01 00:14, Steven D'Aprano wrote: On Wed, 28 Feb 2018 15:44:45 -0800, ooomzay wrote: Here's one example: reference cycles. When do they get detected? Orphan cycle _detection_ is orthogonal to this proposal. It certainly is not. Dealing with cycles is why most of the world has

Re: csv module and NULL data byte

2018-02-28 Thread Tim Chase
While inelegant, I've "solved" this with a wrapper/generator f = file(fname, …) g = (line.replace('\0', '') for line in f) reader = csv.reader(g, …) for row in reader: process(row) My actual use at $DAYJOB cleans out a few other things too, particularly non-breaking spaces coming

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Rick Johnson
On Wednesday, February 28, 2018 at 4:34:11 PM UTC-6, Etienne Robillard wrote: > A great number of studies have shown that ultrasonic > neuromodulation of the central nervous system can be > exploited via brain-computer interfaces... It is cutting > edge science however, and my knowledge on

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-02-28 Thread Elias Zamaria
Elias Zamaria added the comment: Mark, you have some good ideas. A fraction modulo a float is a float, and an integer modulo infinity produces itself as a float, so it seems reasonable that a fraction modulo infinity should be itself converted to a float. I tried

[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2018-02-28 Thread Jay Crotts
Change by Jay Crotts : -- versions: +Python 3.8 -Python 2.7, Python 3.6, Python 3.7 ___ Python tracker ___

[issue32974] Add bitwise operations and other missing comparison methods to Python's IP address module

2018-02-28 Thread bbayles
Change by bbayles : -- nosy: +bbayles ___ Python tracker ___ ___ Python-bugs-list mailing

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread Rick Johnson
On Wednesday, February 28, 2018 at 5:50:53 PM UTC-6, Steven D'Aprano wrote: > On Wed, 28 Feb 2018 14:51:09 -0800, ooomzay wrote: > > > > [...] > > > > Specification > > = > > > > When the last reference to an object goes out of scope the > > intepreter must synchronously, in the

[issue32056] bug in Lib/wave.py

2018-02-28 Thread zhangdeyue
zhangdeyue added the comment: The CVE email: The CVE ID is below. Please check whether the vulnerability still exists in Python 3.6.4, and please inform the software maintainer that the CVE ID has been assigned: https://bugs.python.org Use CVE-2017-18207 for this

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Terry Reedy
Instead of berating us for not answering an extremely obscure question, you should have use Ms SearchBox first, like I did to determine whether these are real subjects. On 2/28/2018 5:31 PM, Etienne Robillard wrote: If ultrasonic side channels are a threat to privacy, it is because smart

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread Steven D'Aprano
On Wed, 28 Feb 2018 18:46:05 -0800, Rick Johnson wrote: > On Wednesday, February 28, 2018 at 5:02:17 PM UTC-6, Chris Angelico > wrote: > >> Here's one example: reference cycles. When do they get detected? Taking >> a really simple situation: >> >> class Foo: >> def __init__(self): >>

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Ned Batchelder
On 2/28/18 7:01 PM, Etienne Robillard wrote:  What do rats find rewarding in play fighting? This is well outside the topics for this list. --Ned. Le 2018-02-28 à 18:29, Chris Angelico a écrit : On Thu, Mar 1, 2018 at 10:23 AM, Steven D'Aprano wrote:

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread John Gordon
In Chris Angelico writes: > > Tell me how exactly ultrasonic side channels may activate remotely specific > > neural pathways implicated in aggressivity and how to block theses specific > > side channels from neuromodulating

[issue32974] Add bitwise operations and other missing comparison methods to Python's IP address module

2018-02-28 Thread Ned Deily
Change by Ned Deily : -- nosy: +pmoody ___ Python tracker ___ ___ Python-bugs-list mailing

Re: csv module and NULL data byte

2018-02-28 Thread Terry Reedy
On 2/28/2018 8:35 PM, Tim Chase wrote: While inelegant, I've "solved" this with a wrapper/generator f = file(fname, …) g = (line.replace('\0', '') for line in f) reader = csv.reader(g, …) for row in reader: process(row) I think this is elegant in that is cleans the input

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Grant Edwards
On 2018-03-01, Dennis Lee Bieber wrote: > The bandwidth normally used for voice grade telephone traffic is closer > to 6kHz (say 300Hz to 6.3kHz) Wow, that's pretty high -- where was that? Back when I was designing telephony electronics in US in the late 80's, POTS

[issue32056] bug in Lib/wave.py

2018-02-28 Thread Ned Deily
Change by Ned Deily : -- keywords: +security_issue -patch nosy: +serhiy.storchaka ___ Python tracker ___

[issue32975] mailbox: It would be nice to move mailbox.Message from legacy email.message.Message API to new EmailMessage API

2018-02-28 Thread Abhilash Raj
Abhilash Raj added the comment: I should also mention probably that I went ahead and made changes to make this work and I can pass most of the tests, one is failing due to missing `\n` character in the header's value obtained from `msg.get_all('Received')`. I can

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Steven D'Aprano
On Thu, 01 Mar 2018 08:54:52 +1100, Chris Angelico wrote: > But this part sounds like prime quality tinfoil hat material: > >> Tell me how exactly ultrasonic side channels may activate remotely >> specific neural pathways implicated in aggressivity and how to block >> theses specific side

[issue32974] Add bitwise operations and other missing comparison methods to Python's IP address module

2018-02-28 Thread Kyle Agronick
New submission from Kyle Agronick : I've recently had the experience of implementing a system for managing DNS records at a Fortune 10 company with ~10,000 stores. There were a number of things that I felt were missing from the IP address module and could be added without

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread Rick Johnson
On Wednesday, February 28, 2018 at 5:02:17 PM UTC-6, Chris Angelico wrote: > Here's one example: reference cycles. When do they get detected? > Taking a really simple situation: > > class Foo: > def __init__(self): > self.self = self *shudders* Can you provide a real world example

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread dieter
Rick Johnson writes: > ... > Can you provide a real world example in which you need an > object which circularly references _itself_? Circular structures occur in real life. One example are tracebacks (which are very helpful for debugging reasons). Keeping a

[issue32056] bug in Lib/wave.py

2018-02-28 Thread BT123
BT123 added the comment: the bug still in the Python 3.7.0b2 - 2018-02-28 -- versions: +Python 3.7 -Python 3.6 ___ Python tracker

Re: csv module and NULL data byte

2018-02-28 Thread Tim Chase
On 2018-02-28 21:38, Dennis Lee Bieber wrote: > >     with open( fname, 'rt', encoding='iso-8859-1' ) as csvfile: > > Pardon? Has the CSV module changed in the last year or so? > > Last time I read the documentation, it was recommended that > the file be opened in BINARY mode

[issue32975] mailbox: It would be nice to move mailbox.Message from legacy email.message.Message API to new EmailMessage API

2018-02-28 Thread Abhilash Raj
New submission from Abhilash Raj : Since Python 3.6 the new EmailMessage API seems to be the default but mailbox.Message still subclasses from the old email.message.Message API. It would be nice to get EmailMessage from mailbox so that one can rely on the new methods

[issue32056] Improve exceptions in Lib/wave.py

2018-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have no idea why this was classified as a vulnerability. I don't think it can crash an application. If you have an example of crashing please provide it. I would not classify this issue even as a bug. It is obvious that

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread Chris Angelico
On Thu, Mar 1, 2018 at 1:46 PM, Rick Johnson wrote: > On Wednesday, February 28, 2018 at 5:02:17 PM UTC-6, Chris Angelico wrote: > >> Here's one example: reference cycles. When do they get detected? >> Taking a really simple situation: >> >> class Foo: >> def

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread ROGER GRAYDON CHRISTMAN
On Wed, Feb 28, 2018, Rick Johnson wrote: > On Wednesday, February 28, 2018 at 5:02:17 PM UTC-6, Chris Angelico wrote: > >> Here's one example: reference cycles. When do they get detected? >> Taking a really simple situation: >> >> class Foo: >> def __init__(self): >> self.self = self

Re: RFC: Proposal: Deterministic Object Destruction

2018-02-28 Thread Serhiy Storchaka
01.03.18 04:46, Rick Johnson пише: On Wednesday, February 28, 2018 at 5:02:17 PM UTC-6, Chris Angelico wrote: Here's one example: reference cycles. When do they get detected? Taking a really simple situation: class Foo: def __init__(self): self.self = self *shudders* Can you

Re: Questions about `locals` builtin

2018-02-28 Thread Chris Angelico
On Wed, Feb 28, 2018 at 10:59 PM, Steven D'Aprano wrote: > On Wed, 28 Feb 2018 18:01:42 +1100, Chris Angelico wrote: > >> If you really want a list of ALL the local names in a function, you can >> look at its __code__ object, which has a tuple of variable

Re: psutil

2018-02-28 Thread Larry Martell
On Tue, Feb 27, 2018 at 8:30 PM, Matt Wheeler wrote: > > > On Wed, 28 Feb 2018, 00:49 Larry Martell, wrote: >> >> On Tue, Feb 27, 2018 at 7:36 PM, José María Mateos >> wrote: >> > On Tue, Feb 27, 2018 at 07:29:50PM -0500, Larry

[issue32732] LoggingAdapter ignores extra kwargs of Logger#log()

2018-02-28 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +vinay.sajip ___ Python tracker ___ ___

Leo 5.7 final released

2018-02-28 Thread Edward K. Ream
Leo 5.7 final February 27, 2018 Leo 5.7 final, http://leoeditor.com, is now available on [SourceForge]( http://sourceforge.net/projects/leo/files/Leo/) and on [GitHub]( https://github.com/leo-editor/leo-editor). Leo is an IDE, outliner and PIM, as described [here](

[RELEASE] Python 3.7.0b2 is now available for testing

2018-02-28 Thread Ned Deily
On behalf of the Python development community and the Python 3.7 release team, I'm happy to announce the availability of Python 3.7.0b2. b2 is the second of four planned beta releases of Python 3.7, the next major release of Python, and marks the end of the feature development phase for 3.7. You

Re: Questions about `locals` builtin

2018-02-28 Thread Chris Angelico
On Wed, Feb 28, 2018 at 10:58 PM, Steven D'Aprano wrote: > On Wed, 28 Feb 2018 18:04:11 +1100, Chris Angelico wrote: >> But if you know that >> there's only a handful of variables that you'd actually want to do that >> to, you can simply put those into an

Re: py2exe output flagged as malware

2018-02-28 Thread Robin Becker
On 28/02/2018 11:46, alister via Python-list wrote: On Wed, 28 Feb 2018 09:53:09 +, Robin Becker wrote: I see this has happened to others in the past. I'm using 32 bit python 2.7.10 with py2exe 3.3 on windows 7. The exes work fine, but when I try to download into windows 10 I'm getting the

[issue32969] Add more constants to zlib module

2018-02-28 Thread Xiang Zhang
New submission from Xiang Zhang : Inspired by https://github.com/python/cpython/pull/5511, zlib module in Python lacks some constants exposed by C zlib library, and some constants are not documented. -- assignee: docs@python components: Documentation, Library (Lib)

py2exe output flagged as malware

2018-02-28 Thread Robin Becker
I see this has happened to others in the past. I'm using 32 bit python 2.7.10 with py2exe 3.3 on windows 7. The exes work fine, but when I try to download into windows 10 I'm getting the exes immediately removed as malware. Is there any way to prevent this. It's very bad for python programs to

[issue13830] codecs error handler is called with a UnicodeDecodeError with the same args

2018-02-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

Re: py2exe output flagged as malware

2018-02-28 Thread alister via Python-list
On Wed, 28 Feb 2018 09:53:09 +, Robin Becker wrote: > I see this has happened to others in the past. I'm using 32 bit python > 2.7.10 with py2exe 3.3 on windows 7. The exes work fine, > but when I try to download into windows 10 I'm getting the exes > immediately removed as malware. > > Is

[issue31013] gcc7 throws warning when pymem.h development header is used

2018-02-28 Thread Petr Viktorin
Petr Viktorin added the comment: This is a duplicate of https://bugs.python.org/issue31474 which was fixed in https://github.com/python/cpython/pull/3581 It should be included in the next Python 2.7.x release. -- nosy: +encukou

Re: Questions about `locals` builtin

2018-02-28 Thread Steven D'Aprano
On Wed, 28 Feb 2018 18:04:11 +1100, Chris Angelico wrote: > On Wed, Feb 28, 2018 at 5:54 PM, dieter wrote: [...] >> I am still working with Python 2 (Python 3 may behave differently). >> There, during debugging, I would sometimes like to change the value of >> variables (I

[issue32732] LoggingAdapter ignores extra kwargs of Logger#log()

2018-02-28 Thread Cyril Martin
Cyril Martin added the comment: Hi Stéphane, I ask you a question about the change you suggest. The PR has not progress. Do you wait something from me? -- ___ Python tracker

Re: Questions about `locals` builtin

2018-02-28 Thread Steven D'Aprano
On Wed, 28 Feb 2018 18:01:42 +1100, Chris Angelico wrote: > If you really want a list of ALL the local names in a function, you can > look at its __code__ object, which has a tuple of variable names: > > print(func1.__code__.co_varnames) > > That information is static to the function, as it is

Re: py2exe output flagged as malware

2018-02-28 Thread Robin Becker
On 28/02/2018 16:25, Hartmut Goebel wrote: Am 28.02.2018 um 16:47 schrieb Robin Becker: I upgraded pyinstaller using the very latest pip and now the version of pyinstaller at least is 3.3.1. I don't actually know how to check the validity of the installed code or the binary stubs. The current

[issue32970] Improve disassembly of the MAKE_FUNCTION instruction

2018-02-28 Thread Serhiy Storchaka via Python-bugs-list
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +5707 stage: -> patch review ___ Python tracker ___

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-02-28 Thread Mark Dickinson
Mark Dickinson added the comment: I'm not quite sure why `Fraction_instance % float_instance` wouldn't simply convert the `Fraction` to a `float` and then use the usual floating-point mod. There's the issue that you want to maintain consistency with the floordiv

Re: py2exe output flagged as malware

2018-02-28 Thread Hartmut Goebel
Am 28.02.2018 um 16:47 schrieb Robin Becker: > I upgraded pyinstaller using the very latest pip and now the version > of pyinstaller at least is 3.3.1. I don't actually know how to check > the validity of the installed code or the binary stubs. The current archives are PyPI are PGP/GnuPG-signed,

[issue32970] Improve disassembly of the MAKE_FUNCTION instruction

2018-02-28 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR adds decryption of the MAKE_FUNCTION argument (it is a bits set) in the disassembler output. For example: $ echo 'def f(x, y=1, *, z=2): ...' | ./python -m dis 1 0 LOAD_CONST 6 ((1,))

Re: py2exe output flagged as malware

2018-02-28 Thread Hartmut Goebel
Am 28.02.2018 um 16:47 schrieb Robin Becker: > I upgraded pyinstaller using the very latest pip and now the version > of pyinstaller at least is 3.3.1. I don't actually know how to check > the validity of the installed code or the binary stubs. The current archives are PyPI are PGP/GnuPG-signed,

[issue31013] gcc7 throws warning when pymem.h development header is used

2018-02-28 Thread Ned Deily
Change by Ned Deily : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> [2.7] Fix -Wnonnull and -Wint-in-bool-context warnings ___ Python tracker

[issue32971] unittest.TestCase.assertRaises

2018-02-28 Thread NODA, Kai
New submission from NODA, Kai : https://docs.python.org/dev/library/unittest.html#unittest.TestCase.assertRaises > If only the exception and possibly the msg arguments are given, return a > context manager so that the code under test can be written inline rather than > as a

Which sites allow you to learn interactively Python3

2018-02-28 Thread jrlcgmx
Which sites allow you to learn interactively Python3? they can be payed, actually payed would probably be bettter Good quality source -- https://mail.python.org/mailman/listinfo/python-list

[issue32971] Docs on unittest.TestCase.assertRaises() should be improved

2018-02-28 Thread NODA, Kai
Change by NODA, Kai : -- title: unittest.TestCase.assertRaises -> Docs on unittest.TestCase.assertRaises() should be improved ___ Python tracker

Re: Which sites allow you to learn interactively Python3

2018-02-28 Thread Abdur-Rahmaan Janhangeer
see clever programmer python by projects. Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ On 28 Feb 2018 21:56, wrote: > Which sites allow you to learn interactively Python3? > > they can be payed, > > actually payed would probably be bettter > Good quality source

Re: help me ? (Posting On Python-List Prohibited)

2018-02-28 Thread Aktive
On Wednesday, 28 February 2018 06:00:07 UTC+1, Lawrence D’Oliveiro wrote: > On Wednesday, February 28, 2018 at 4:44:04 PM UTC+13, jlad...@itu.edu wrote: > > This is part of the reason why interviews for software developer jobs > > have gotten so crazy. > > This is why you need to have a CV that

  1   2   >