[issue36409] plistlib old API should be removed

2019-09-05 Thread Jon Janzen
Change by Jon Janzen : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

Re: How do I give a decorator acces to the class of a decorated function

2019-09-05 Thread Antoon Pardon
On 5/09/19 15:30, Peter Otten wrote: >> 2) Is it possible to make MyClass automatically a subclass of an other >> class >>through the metaclass? >> > While you can modify `bases` before passing it on to `type` this starts to > get a bit messy. Maybe you need a real metaclass which unlike the

[issue38038] Remove urllib.parse._ from xmlrpc.client

2019-09-05 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +cheryl.sabella ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38038] Remove urllib.parse._ from xmlrpc.client

2019-09-05 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +15357 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15703 ___ Python tracker ___

Re: CVE-2019-9636 - Can this be exploit over the wire?

2019-09-05 Thread Random832
On Wed, Sep 4, 2019, at 13:36, Barry Scott wrote: > I have been looking into CVE-2019-9636 and I'm not sure that > python code that works in bytes is vulnerable to this. I'm not convinced that the CVE (or, at least, the description in the bug report... it's also unclear to me whether this is an

[issue38037] Assertion failed: object has negative ref count

2019-09-05 Thread Ma Lin
Ma Lin added the comment: I did a Git bisect, this is the first bad commit: https://github.com/python/cpython/commit/9541bd321a94f13dc41163a5d7a1a847816fac84 nosy involved mates. -- nosy: +berker.peksag, nanjekyejoannah ___ Python tracker

[issue37064] Feature request: option to keep/add flags to pathfix.

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 50254ac4c179cb412e90682098c97db786143929 by Victor Stinner (PatrikKopkan) in branch 'master': bpo-37064: Add option -k to Tools/scripts/pathfix.py (GH-15548) https://github.com/python/cpython/commit/50254ac4c179cb412e90682098c97db786143929

[issue36797] Cull more oudated distutils information

2019-09-05 Thread Miro Hrončok
Change by Miro Hrončok : -- pull_requests: +15354 pull_request: https://github.com/python/cpython/pull/15700 ___ Python tracker ___

[issue15088] PyGen_NeedsFinalizing is public, but undocumented

2019-09-05 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +15356 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15702 ___ Python tracker ___

Re: How do I give a decorator acces to the class of a decorated function

2019-09-05 Thread Peter Otten
Antoon Pardon wrote: > On 5/09/19 15:30, Peter Otten wrote: >> Can you provide some context? > > Sure I am researching the possibility of writing an easy to use > lexing/parsing tool. The idea is to write your lexer/parser as > follows: > > class Calculator(metaclass = ...): > def

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-09-05 Thread Chip Lynch
Chip Lynch added the comment: I see there is a merged patch for this (https://github.com/python/cpython/pull/14360); is it possible to get it tagged for backport to 3.7? I haven't seen the 3.7.5 tag drop yet so wanted to recommend it's included, it's giving us fits. On our Windows 10 dev

Re: CVE-2019-9636 - Can this be exploit over the wire?

2019-09-05 Thread Random832
On Wed, Sep 4, 2019, at 13:36, Barry Scott wrote: > The conclusion I reached is that the CVE only applies to client code > that allows a URL in unicode to be entered. > > Have I missed something important in the analysis? While as I mentioned in my other post I'm not sure if the CVE's analysis

Re: How do I give a decorator acces to the class of a decorated function

2019-09-05 Thread Peter Otten
Antoon Pardon wrote: > On 4/09/19 17:46, Peter Otten wrote: >> Antoon Pardon wrote: >> >>> What I am trying to do is the following. >>> >>> class MyClass (...) : >>> @register >>> def MyFunction(...) >>> ... >>> >>> What I would want is for the register decorator to somehow

[issue36797] Cull more oudated distutils information

2019-09-05 Thread miss-islington
miss-islington added the comment: New changeset 2c2b561967c1916855399f809e30ae0ba7e09ae2 by Miss Islington (bot) (Miro Hrončok) in branch 'master': bpo-36797: Fix a dead link in Doc/distutils/apiref (GH-15700) https://github.com/python/cpython/commit/2c2b561967c1916855399f809e30ae0ba7e09ae2

[issue36797] Cull more oudated distutils information

2019-09-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +15358 pull_request: https://github.com/python/cpython/pull/15704 ___ Python tracker ___

[issue38038] Remove urllib.parse._ from xmlrpc.client

2019-09-05 Thread Dong-hee Na
New submission from Dong-hee Na : This issue is the same as bpo-22347. Let's remove the deprecated urllib.parse._splituser and urllib.parse._splittype from xmlrpc.client -- components: Library (Lib) messages: 351199 nosy: corona10, serhiy.storchaka, vstinner priority: normal severity:

[issue38038] Remove urllib.parse._ from xmlrpc.client

2019-09-05 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Wind Rose Plotting in Python

2019-09-05 Thread Madhavan Bomidi
Hi, Can someone help me on how to make the wind rose plotting (similar to the figure 2 in the paper: https://agupubs.onlinelibrary.wiley.com/doi/epdf/10.1029/2011JD016386) in Python? The input file contains the data in 4 columns: [date, time, wind_speed, wind_direction] Look forward to

[issue15088] PyGen_NeedsFinalizing is public, but undocumented

2019-09-05 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: My searches show references to this function in CPython cloned repositories. From @pitrous's views, I think it is better to deprecate it with a removal notice for a later release. I have deprecated the Function instead and will be removed in the next

[issue35939] Remove urllib.parse._splittype from mimetypes.guess_type

2019-09-05 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: fixed -> duplicate superseder: -> mimetypes.guess_type("//example.com") misinterprets host name as file name ___ Python tracker ___

[issue24416] Have date.isocalendar() return a structseq instance

2019-09-05 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner Here is the new benchmark with you suggested. It seems to affect performance. == Baseline == Mean +- std dev: 134 ns +- 2 ns == PR 15633 == Mean +- std dev: 174 ns +- 5 ns -- ___ Python tracker

[issue38037] Assertion failed: object has negative ref count

2019-09-05 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch pull_requests: +15355 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15701 ___ Python tracker ___

[issue37926] regression: PySys_SetArgvEx(0, NULL, 0): SystemError: Python-3.8.0b3/Objects/unicodeobject.c:2089: bad argument to internal function

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: FYI this bug was found in paraview in Fedora Rawhide: https://bugzilla.redhat.com/show_bug.cgi?id=1743896 -- ___ Python tracker ___

[issue15088] PyGen_NeedsFinalizing is public, but undocumented

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: PyGen_NeedsFinalizing() was added by: commit 49fd7fa4431da299196d74087df4a04f99f9c46f Author: Thomas Wouters Date: Fri Apr 21 10:40:58 2006 + Merge p3yk branch with the trunk up to revision 45595. This breaks a fair number of tests, all

[issue38035] shared_semaphores cannot be shared across unrelated processes

2019-09-05 Thread Ned Deily
Ned Deily added the comment: Please give an example of how this is a problem in using Python. You don't give any context here. -- nosy: +ned.deily ___ Python tracker ___

[issue14689] make PYTHONWARNINGS variable work in libpython

2019-09-05 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @petere do you want to open a PR with your patch here: https://github.com/python/cpython/pulls -- nosy: +nanjekyejoannah ___ Python tracker

[issue37064] Feature request: option to keep/add flags to pathfix.

2019-09-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15359 pull_request: https://github.com/python/cpython/pull/15705 ___ Python tracker ___

[issue38039] Segfault when pickling dictionary with large pandas dataframes

2019-09-05 Thread Ilya Valmianski
New submission from Ilya Valmianski : Tried pickling a dictionary with multiple pandas tables and python primitive types. Pandas tables are large so full object size is ~200GB but system should not be OOM (crashed with ~300 GB system memory available). Reproduced on two machines running RHEL

[issue38040] Typo: "Writeable" Should be "Writable" in IO Library Documentation

2019-09-05 Thread Sean Happenny
New submission from Sean Happenny : Problem: There are 4 instances of the typo "writeable" in the documentation for the IO library affecting, at least, versions 3.7, 3.8, 3.9, and the latest master of the documentation (https://docs.python.org/[3.7,3.8,3.9]/library/io.html and

EuroPython 2019 - Videos for Wednesday available

2019-09-05 Thread M.-A. Lemburg
We are pleased to announce the first batch of cut videos from EuroPython 2019 in Basel, Switzerland. * EuroPython 2019 YouTube Channel * http://europython.tv/ In this batch, we have included all videos for Wednesday, July 10 2019, the first conference

[issue38041] IDLE Shell: Redesign minimum restart line

2019-09-05 Thread Terry J. Reedy
New submission from Terry J. Reedy : Currently, Shell prints restart lines as =...= RESTART filename =...= where filename is 'Shell' or the full pathname. The code is tag = 'RESTART: ' + (filename if filename else 'Shell') halfbar = ((int(console.width) -len(tag) - 4) // 2)

Re: How do I give a decorator acces to the class of a decorated function

2019-09-05 Thread Chris Angelico
On Fri, Sep 6, 2019 at 4:33 AM Serhiy Storchaka wrote: > > 04.09.19 17:21, Antoon Pardon пише: > > What I am trying to do is the following. > > > > class MyClass (...) : > > @register > > def MyFunction(...) > > ... > > > > What I would want is for the register decorator to

Re: Wind Rose Plotting in Python

2019-09-05 Thread Ross Wilson
On Thu, 5 Sep 2562 at 22:00 Madhavan Bomidi wrote: > Hi, > > Can someone help me on how to make the wind rose plotting (similar to the > figure 2 in the paper: > https://agupubs.onlinelibrary.wiley.com/doi/epdf/10.1029/2011JD016386) in > Python? > > The input file contains the data in 4 columns:

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-09-05 Thread Steve Dower
Steve Dower added the comment: I triggered automatic backports to see how they go. Doesn't necessarily mean we'll merge them without looking more closely, but may as well check out what our automated tools suggest. -- ___ Python tracker

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-09-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +15361 pull_request: https://github.com/python/cpython/pull/15707 ___ Python tracker ___

Re: CVE-2019-9636 - Can this be exploit over the wire?

2019-09-05 Thread Barry Scott
> On 5 Sep 2019, at 16:18, Random832 wrote: Thanks for taking the time to reply. > > On Wed, Sep 4, 2019, at 13:36, Barry Scott wrote: >> The conclusion I reached is that the CVE only applies to client code >> that allows a URL in unicode to be entered. >> >> Have I missed something

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Ned Deily
Ned Deily added the comment: "2to3 is a Python program that reads Python 2.x source code and applies a series of fixers to transform it into valid Python 3.x code." The example you supply, badvar,py, is not a valid Python 2.x program. Python 2 identifiers cannot contain such characters.

Re: How do I give a decorator acces to the class of a decorated function

2019-09-05 Thread Serhiy Storchaka
04.09.19 17:21, Antoon Pardon пише: What I am trying to do is the following. class MyClass (...) : @register def MyFunction(...) ... What I would want is for the register decorator to somehow create/mutate class variable(s) of MyClass. Is that possible or do I have to

EuroPython 2019 - Videos for Wednesday available

2019-09-05 Thread M.-A. Lemburg
We are pleased to announce the first batch of cut videos from EuroPython 2019 in Basel, Switzerland. * EuroPython 2019 YouTube Channel * http://europython.tv/ In this batch, we have included all videos for Wednesday, July 10 2019, the first conference

[issue38040] Typo: "Writeable" Should be "Writable" in IO Library Documentation

2019-09-05 Thread Sean Happenny
Sean Happenny added the comment: It is a minor issue and I understand that there are many, much more important fixes and features the whole Python dev team is working on. But reading the documentation for these classes indicates that these classes may have a "writeable" member. If, as an

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-09-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +15360 pull_request: https://github.com/python/cpython/pull/15706 ___ Python tracker ___

[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-09-05 Thread Steve Dower
Change by Steve Dower : -- stage: patch review -> backport needed versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue37064] Feature request: option to keep/add flags to pathfix.

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3f43ceff186da09978d0aff257bb18b8ac7611f7 by Victor Stinner in branch 'master': bpo-37064: Skip test_tools.test_pathfix if installed (GH-15705) https://github.com/python/cpython/commit/3f43ceff186da09978d0aff257bb18b8ac7611f7 --

RE: "How to protect the python code"

2019-09-05 Thread Saba Kauser
Thanks Chris. Makes sense! -Original Message- From: Chris Angelico Sent: Thursday, September 5, 2019 2:34 PM To: python-list@python.org Subject: Re: "How to protect the python code" On Thu, Sep 5, 2019 at 6:50 PM Saba Kauser wrote: > > Hello Experts, > > I am looking for ways

[issue38040] Typo: "Writeable" Should be "Writable" in IO Library Documentation

2019-09-05 Thread SilentGhost
SilentGhost added the comment: There are more cases of using this spelling in the code base, but I personally don't see how any confusion can arise and why this "fix" is needed. -- nosy: +SilentGhost ___ Python tracker

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Justin Arthur
Justin Arthur added the comment: Ned, can you confirm that 2to3 is not intended for cumulative/incremental runs over the same codebase? If it's not intended to be run on previously ported code, this will just need to be fixed on the lib2to3 downstream projects like awpa and Black that are

[issue15088] PyGen_NeedsFinalizing is public, but undocumented

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: The function is not documented nor tested. I searched for usage of PyGen_NeedsFinalizing() in C code in GitHub: https://github.com/search?l=C=1=PyGen_NeedsFinalizing=Code I only found copies of the CPython code source: PyGen_NeedsFinalizing() definition in

[issue38038] Remove urllib.parse._splittype from xmlrpc.client

2019-09-05 Thread Dong-hee Na
Change by Dong-hee Na : -- title: Remove urllib.parse._ from xmlrpc.client -> Remove urllib.parse._splittype from xmlrpc.client ___ Python tracker ___

Re: "How to protect the python code"

2019-09-05 Thread Michael Torrie
On 9/5/19 2:48 AM, Saba Kauser wrote: > I am looking for ways available to protect the python source code > from being available to users for write/modify. Is it a good idea to > think that python source code can be protected? In general, no, not with an interpreted language. Intellectual

Re: "How to protect the python code"

2019-09-05 Thread Grant Edwards
On 2019-09-05, Michael Torrie wrote: > I've never understood why companies are so obsessed with preventing > users from modifying their programs. Because they'll change it, the result won't behave correctly, and then the user will waste a lot of tech-support hours or ruin the company's

[issue37064] Feature request: option to keep/add flags to pathfix.

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: The newly added test fails if Python is installed: https://buildbot.python.org/all/#/builders/188/builds/927 == FAIL: test_pathfix (test.test_tools.test_pathfix.TestPathfixFunctional)

[issue37878] Sub-Interpreters : Document PyThreadState_DeleteCurrent()

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2bc43cdc015eda4f1a651bb2b308a17a83c38e14 by Victor Stinner (Joannah Nanjekye) in branch 'master': bpo-37878: Remove PyThreadState_DeleteCurrent() function (GH-15315)

[issue37878] Sub-Interpreters : Document PyThreadState_DeleteCurrent()

2019-09-05 Thread STINNER Victor
STINNER Victor added the comment: Thanks Joannah. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-09-05 Thread Ryan May
Change by Ryan May : -- nosy: +Ryan May ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Fwd: Installation Errors

2019-09-05 Thread venu gopal reddy
Hi Python Support Team, I have subscribed now and re-sending my query. Please suggest. I have an Issue installing python 3.7 on my work computer. It says core.msi package not found during installation. Can you please help me with steps to resolve this issue? Thank you, Venu --

[issue38039] Segfault when pickling dictionary with large pandas dataframes

2019-09-05 Thread Eric V. Smith
Eric V. Smith added the comment: Can you provide the code that caused the segfault? -- nosy: +eric.smith ___ Python tracker ___

[issue38041] IDLE Shell: Redesign minimum restart line

2019-09-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +15364 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/15709 ___ Python tracker

[issue38042] Crash on double list(lxml.etree.iterparse(f)) Edit

2019-09-05 Thread Alexander Kurakin
New submission from Alexander Kurakin : I have a crash in Python 3.x environments and don't have in 2.7. === Crashes in: Python 3.7.4, Anaconda, Linux 64bit, lxml 4.3.3 OR Python 3.7.4, Anaconda, Linux 64bit, lxml 4.4.1 OR Python 3.6.5, Gentoo Linux 64bit, lxml 4.3.3 test.py: import lxml

Re: pandas loc on str lower for column comparison

2019-09-05 Thread Piet van Oostrum
Sayth Renshaw writes: > On Sunday, 1 September 2019 10:48:54 UTC+10, Sayth Renshaw wrote: >> I've created a share doc same structure anon data from my google drive. >> >> https://drive.google.com/file/d/0B28JfFTPNr_lckxQRnFTRF9UTEFYRUVqRWxCNVd1VEZhcVNr/view?usp=sharing >> >> Sayth > > I tried

Renaming an import

2019-09-05 Thread Rob Gaddi
I'm trying to figure out how to rename an import globally for an entire package. Something like: pkg/__init__.py: import graphing_module_b as graph pkg/foobar.py: from .graph import plot, axis The point being that, if at some point I decide to change from graphing_module_b to

Re: Renaming an import

2019-09-05 Thread Cameron Simpson
On 05Sep2019 20:31, Michael Speer wrote: pkg/graph.py: from graphing_module_b import plot, axis pkg/foobar.py: from .graph import plot, axis Would it be sufficient to use a file for indirection? Or without a stub file and only slightly less conveniently: pkg/__init__.py import

[issue38041] IDLE Shell: Refine restart line

2019-09-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: patch review -> commit review title: Refine IDLE Shell restart line -> IDLE Shell: Refine restart line ___ Python tracker ___

[issue38042] Crash on double list(lxml.etree.iterparse(f))

2019-09-05 Thread Alexander Kurakin
Change by Alexander Kurakin : -- title: Crash on double list(lxml.etree.iterparse(f)) Edit -> Crash on double list(lxml.etree.iterparse(f)) ___ Python tracker ___

Re: pandas loc on str lower for column comparison

2019-09-05 Thread Piet van Oostrum
Piet van Oostrum writes: > That would select ROWS 0,1,5,6,7, not columns. > To select columns 0,1,5,6,7, use two-dimensional indexes > > df1 = df.iloc[:, [0,1,5,6,7]] > > : selects all rows. And that also solves your original problem. This statement: df1['Difference'] = df1.loc['Current

Re: pandas loc on str lower for column comparison

2019-09-05 Thread Sayth Renshaw
That is actually consistent with Excel row, column. Can see why it works that way then. Thanks -- https://mail.python.org/mailman/listinfo/python-list

[issue38034] Typo on logging.handlers.QueueListener documentation

2019-09-05 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +15362 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15708 ___ Python tracker ___

[issue38035] shared_semaphores cannot be shared across unrelated processes

2019-09-05 Thread Vinay Sharma
Vinay Sharma added the comment: Let's say I have two processes which are accessing a shared resource (let's say shared memory). Now, these two processes will need some kind of synchronisation mechanism, to be able to access the resource properly, and avoid race condition. Currently, shared

Re: Renaming an import

2019-09-05 Thread Michael Speer
pkg/graph.py: from graphing_module_b import plot, axis pkg/foobar.py: from .graph import plot, axis Would it be sufficient to use a file for indirection? On Thu, Sep 5, 2019 at 7:11 PM Rob Gaddi wrote: > I'm trying to figure out how to rename an import globally for an entire >

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Ned Deily
Ned Deily added the comment: Benjamin, can you answer Justin's question above? -- nosy: +benjamin.peterson ___ Python tracker ___

[issue38041] Refine IDLE Shell restart line

2019-09-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE Shell: Redesign minimum restart line -> Refine IDLE Shell restart line ___ Python tracker ___

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2to3 should be able to parse valid Python 3 code. -- ___ Python tracker ___ ___

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Ned Deily
Ned Deily added the comment: > 2to3 should be able to parse valid Python 3 code. OK, then should the original behavior here be treated as a bug and fixed? If so, this issue should be re-opened. -- ___ Python tracker

[issue38015] inline function generates slightly inefficient machine code

2019-09-05 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch pull_requests: +15365 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15710 ___ Python tracker ___

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: not a bug -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list

[issue38015] inline function generates slightly inefficient machine code

2019-09-05 Thread Ma Lin
Ma Lin added the comment: Revert commit 5e63ab0 or use PR 15710, both are fine. -- ___ Python tracker ___ ___ Python-bugs-list

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Ned Deily
Change by Ned Deily : -- nosy: -ned.deily stage: resolved -> needs patch versions: +Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker ___

[issue38043] small cleanups in Unicode normalization code

2019-09-05 Thread Greg Price
New submission from Greg Price : Benjamin noticed in reviewing GH-15558 (for #37966) several points where the existing code around Unicode normalization can be improved: * on the `QuickcheckResult` enum: > Maybe `makeunicodedata.py` should output this enum (with better name namespacing) *

[issue38043] small cleanups in Unicode normalization code

2019-09-05 Thread Greg Price
Change by Greg Price : -- keywords: +patch pull_requests: +15366 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15711 ___ Python tracker ___

[issue38043] small cleanups in Unicode normalization code

2019-09-05 Thread Greg Price
Change by Greg Price : -- pull_requests: +15367 pull_request: https://github.com/python/cpython/pull/15712 ___ Python tracker ___

[issue38043] small cleanups in Unicode normalization code

2019-09-05 Thread Greg Price
Change by Greg Price : -- pull_requests: +15368 pull_request: https://github.com/python/cpython/pull/15558 ___ Python tracker ___

[issue14364] Argparse incorrectly handles '--' as argument to option

2019-09-05 Thread hai shi
hai shi added the comment: some test cases which paul provided looks doesn't keep compatible. In TestDoubleDashRemoval: # output in my env is Namespace(cmd='cmd', foo=None, rest=['--', '--foo']) ('-- cmd -- -- --foo', NS(cmd='cmd', foo=None, rest=['--', '--', '--foo'])) # output in my env is

[issue14364] Argparse incorrectly handles '--' as argument to option

2019-09-05 Thread hai shi
Change by hai shi : -- pull_requests: +15369 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15714 ___ Python tracker ___

[issue14364] Argparse incorrectly handles '--' as argument to option

2019-09-05 Thread hai shi
Change by hai shi : -- nosy: +rhettinger type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Renaming an import

2019-09-05 Thread dieter
Rob Gaddi writes: > I'm trying to figure out how to rename an import globally for an > entire package. Something like: > > pkg/__init__.py: > import graphing_module_b as graph > > pkg/foobar.py: > from .graph import plot, axis > > The point being that, if at some point I decide to change

[issue24416] Have date.isocalendar() return a structseq instance

2019-09-05 Thread Tal Einat
Tal Einat added the comment: > Would it be possible to tell pickle to serialize .isocalendar() as a tuple, > and deserialize it from a tuple to a structseq? The former is possible but that latter is not: If the object is pickled as a tuple, it will always be unpickled as a simple tuple. To

[issue37891] Exceptions tutorial page does not mention raise from

2019-09-05 Thread Niels Albers
Niels Albers added the comment: Thanks Srinivas for the suggestion. IMO exception chaining has more utility than only dealing with new exceptions that are caused by exception handling. It's all about preserving exception context. As both a writer of libraries and a user of such, I do like

[issue37934] Docs: Clarify NotImplemented use cases

2019-09-05 Thread Vedran Čačić
Vedran Čačić added the comment: Of course, if there are independent use cases already in the codebase, then my opinion is changed. -- ___ Python tracker ___

"How to protect the python code"

2019-09-05 Thread Saba Kauser
Hello Experts, I am looking for ways available to protect the python source code from being available to users for write/modify. Is it a good idea to think that python source code can be protected? I am aware that there are ways available to generate extensions like in C(.pyd files) and module

[issue38034] Typo on logging.handlers.QueueListener documentation

2019-09-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Would you be able to make a PR for this? I think this is a good newcomer friendly issue. -- nosy: +vinay.sajip, xtreak versions: -Python 3.5, Python 3.6 ___ Python tracker

[issue36324] Inverse cumulative normal distribution function

2019-09-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset e4810b2a6c1d0db1a27ad046831b8fa3b57967a4 by Raymond Hettinger in branch 'master': bpo-36324: Apply review comments from Allen Downey (GH-15693) https://github.com/python/cpython/commit/e4810b2a6c1d0db1a27ad046831b8fa3b57967a4 --

[issue36324] Inverse cumulative normal distribution function

2019-09-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +15351 pull_request: https://github.com/python/cpython/pull/15694 ___ Python tracker ___

[issue38036] ssl docs say that ssl.SSLContext() is secure-by-default since 3.6, but it isn't

2019-09-05 Thread Christian Heimes
Christian Heimes added the comment: Indeed, the text is misleading. "secure default values" refers to SSLContext.options only (no compression, "good" TLS versions) and not to cert and host name verification. -- ___ Python tracker

[issue36409] plistlib old API should be removed

2019-09-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: New changeset ce81a925ef2d466b0d801deaba9af44a0dfc2aa1 by Ronald Oussoren (Jon Janzen) in branch 'master': bpo-36409: Remove old plistlib API deprecated in 3.4 (GH-15615) https://github.com/python/cpython/commit/ce81a925ef2d466b0d801deaba9af44a0dfc2aa1

[issue32689] shutil.move raises AttributeError if first argument is a pathlib.Path object and destination is a directory

2019-09-05 Thread Maxwell McKinnon
Change by Maxwell McKinnon : -- nosy: +bodom ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: How do I give a decorator acces to the class of a decorated function

2019-09-05 Thread Antoon Pardon
On 4/09/19 17:46, Peter Otten wrote: > Antoon Pardon wrote: > >> What I am trying to do is the following. >> >> class MyClass (...) : >> @register >> def MyFunction(...) >> ... >> >> What I would want is for the register decorator to somehow create/mutate >> class variable(s) of

Re: "How to protect the python code"

2019-09-05 Thread Chris Angelico
On Thu, Sep 5, 2019 at 6:50 PM Saba Kauser wrote: > > Hello Experts, > > I am looking for ways available to protect the python source code from being > available to users for write/modify. Run it on a server and don't let them see the source code. > Is it a good idea to think that python

[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-09-05 Thread hongweipeng
hongweipeng added the comment: According to the provided text.py file. `__exit__` will always execute due to the `with` syntax. It looks like this: ``` def rec(): try: rec() except RecursionError: rec() rec() ``` -- nosy: +hongweipeng

Re: How to only read words within brackets/ parentheses (in .txt file) using Python

2019-09-05 Thread pankaj . jangid
A S writes: > I understand that reading lines in .txt files would look something like this > in Python: > > > with open('filename','r') as fd: >lines = fd.readlines() > > > However, how do I run my code to only read the words in my .txt files that > are within each balanced parenthesis? >

[issue37669] Make mock_open return per-file content

2019-09-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Using a side_effect is one way to achieve this currently if I understand the use case correctly. For every open side_effect will be called and hence it will return a new mock_open with read_data for the given filename used inside the context. This

[issue38036] ssl docs say that ssl.SSLContext() is secure-by-default since 3.6, but it isn't

2019-09-05 Thread Nathaniel Smith
New submission from Nathaniel Smith : Quoting from the docs for ssl.SSLContext: "Changed in version 3.6: The context is created with secure default values." - https://docs.python.org/3/library/ssl.html#ssl.SSLContext This is not true. If you call ssl.SSLContext(), you get a context with cert

  1   2   >