[issue38053] Update plistlib documentation

2019-09-07 Thread Jon Janzen
New submission from Jon Janzen : * Update "Mac OS X" to "Apple" since plists are used more widely than just macOS * Remove notes about the new API being added in 3.4 since 3.4 is no longer supported * Re-add the UID class documentation (oops, removed in issue36409) -- assignee:

2to3, str, and basestring

2019-09-07 Thread Terry Reedy
2to3 converts syntactically valid 2.x code to syntactically valid 3.x code. It cannot, however, guarantee semantic correctness. A particular problem is that str is semantically ambiguous in 2.x, as it is used both for text encoded as bytes and binary data. To resolve the ambiguity for

Re: How python knows where non standard libraries are stored ?

2019-09-07 Thread Terry Reedy
On 9/7/2019 5:51 AM, ast wrote: 'C:\\Program Files\\Python36-32\\lib\\site-packages'] The last path is used as a location to store libraries you install yourself. If I am using a virtual environment (with venv) this last path is different

[issue36576] Some test_ssl and test_asyncio tests fail with OpenSSL 1.1.1 on Python 3.4 and 3.5

2019-09-07 Thread Larry Hastings
Larry Hastings added the comment: New changeset 4d1c2541c125fe9d211016193ebfd5899a8511aa by larryhastings (Victor Stinner) in branch '3.5': bpo-36576: Skip test_ssl and test_asyncio tests failing with OpenSSL 1.1.1 (#12694)

[issue36742] CVE-2019-10160: urlsplit NFKD normalization vulnerability in user:password@

2019-09-07 Thread Larry Hastings
Larry Hastings added the comment: New changeset 095373c32d16df575ba5fcb5f44bf44119b26193 by larryhastings (Victor Stinner) in branch '3.5': bpo-36742: Corrects fix to handle decomposition in usernames (GH-13812) (GH-13814) (#14772)

[issue38048] unususal behavior

2019-09-07 Thread Gaurav Kumar Pandit
New submission from Gaurav Kumar Pandit : when I run the programme the cursur is blinking and is taking many number of inputs but in the source code I have not written any syntax for taking input -- components: Windows files: test.py messages: 351286 nosy: Gaurav Kumar Pandit,

[issue20806] os.times document points to wrong section of non-Linux manual

2019-09-07 Thread miss-islington
miss-islington added the comment: New changeset a6eac83c1804fd14ed076b1776ffeea8dcb9478a by Miss Islington (bot) in branch '3.7': bpo-20806: Reference both times(2) and times(3) and link to MSDN. (GH-15479) https://github.com/python/cpython/commit/a6eac83c1804fd14ed076b1776ffeea8dcb9478a

[issue38049] Add command-line interface for the ast module

2019-09-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR adds a simple command-line interface to the ast module, similar to CLI of the tokenize and dis modules. It reads the content of a specified file (or stdin), parses it with ast.parse() and outputs the tree with ast.dump(). It can be used

Re: fileinput module not yielding expected results

2019-09-07 Thread Jason Friedman
> > If you're certain that the headers are the same in each file, > then there's no harm and much simplicity in reading them each > time they come up. > > with fileinput ...: > for line in f: > if fileinput.isfirstline(): > headers =

[issue38003] Change 2to3 to replace 'basestring' with '(str,bytes)'

2019-09-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Replace 2. above with "2. Replace 'basestring' with '(unicode, bytes)'." -- ___ Python tracker ___

[issue38048] unususal behavior

2019-09-07 Thread Zachary Ware
Zachary Ware added the comment: To reiterate, there is no bug in Python here. The code that you attached here has a typo that turns this example into an infinite loop, and the Windows Command Prompt will happily take any input and echo it, even though Python is not actually consuming any

[issue38014] Python 3.7 does not compile

2019-09-07 Thread Bill Minasian
Bill Minasian added the comment: Under OSX 10.15 beta and Xcode 11.0 beta the following does not work: ./configure --enable-framework DYLD_FRAMEWORK_PATH=/Users/bill/cpython ./python.exe -E -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \ echo

[issue38048] unususal behavior

2019-09-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Gaurav, It is very unlikely that you have "discovered a bug in Python". Millions of people use Python every day, and the chances that you will have noticed something that everyone else has missed is tiny. More likely you have misunderstood something.

[issue38050] open('file.txt') path not found

2019-09-07 Thread Sean Frazier
Sean Frazier added the comment: If you are running a program and an the program crashes, then doesn't work properly afterward, what would you call that? -- ___ Python tracker

[issue38048] unususal behavior

2019-09-07 Thread Eric V. Smith
Eric V. Smith added the comment: This forum is for reporting bugs in python, not for getting help with writing python programs. I suggest you ask about this on the python-tutor mailing list: https://mail.python.org/mailman/listinfo/tutor Good luck! -- nosy: +eric.smith resolution:

[issue37461] email.parser.Parser hang

2019-09-07 Thread Larry Hastings
Larry Hastings added the comment: New changeset c28e4a5160d3283b12514c7c28ed6e0a2a52271a by larryhastings (Abhilash Raj) in branch '3.5': [3.5] bpo-37461: Fix infinite loop in parsing of specially crafted email headers (GH-14794) (#15446)

[issue38003] Change 2to3 to replace 'basestring' with '(str,bytes)'

2019-09-07 Thread Bob Kline
Bob Kline added the comment: OK, I give up. In parting I will point out that the official Python 2 documentation says "basestring() This abstract type is the superclass for str and unicode. It cannot be called or instantiated, but it can be used to test whether an object is an instance of

[issue31387] asyncio should make it easy to enable cooperative SIGINT handling

2019-09-07 Thread Ryan Hiebert
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Guppy 3/Heapy 3.0.5

2019-09-07 Thread YiFei
I am happy to announce Guppy 3 3.0.5 Guppy 3 is a library and programming environment for Python, currently providing in particular the Heapy subsystem, which supports object and heap memory sizing, profiling and debugging. It also includes a prototypical specification language, the Guppy

[issue38048] unususal behavior

2019-09-07 Thread Gaurav Kumar Pandit
Gaurav Kumar Pandit added the comment: The programme has detected a bug in python .For This reson I am using c++ not python. Useless python bsdk Sent from Mail for Windows 10 From: Eric V. Smith Sent: 07 September 2019 12:38 PM To: grvkmrpan...@gmail.com Subject: [issue38048] unususal

[issue37937] Mention ``frame.f_trace`` in :func:`sys.settrace` docs.

2019-09-07 Thread Ram Rachum
Ram Rachum added the comment: Serhiy: I confirmed what you're saying and corrected the documentation. Could you please review? -- ___ Python tracker ___

[issue38049] Add command-line interface for the ast module

2019-09-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Multiline ast.dump() ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38049] Add command-line interface for the ast module

2019-09-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +15378 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15724 ___ Python tracker

[issue38050] open('file.txt') path not found

2019-09-07 Thread Eric V. Smith
Eric V. Smith added the comment: This is almost certainly not a bug in Python. This forum is for reporting bugs in Python, not for getting help on using Python. I suggest you try the python-tutor mailing list: https://mail.python.org/mailman/listinfo/tutor -- nosy: +eric.smith

[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2019-09-07 Thread Ryan Hiebert
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20806] os.times document points to wrong section of non-Linux manual

2019-09-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +15376 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15722 ___ Python tracker ___

[issue20806] os.times document points to wrong section of non-Linux manual

2019-09-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +15377 pull_request: https://github.com/python/cpython/pull/15723 ___ Python tracker ___

[issue20806] os.times document points to wrong section of non-Linux manual

2019-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3ccdbc33385a849c60a268def578cb06b8d41be6 by Serhiy Storchaka (Joannah Nanjekye) in branch 'master': bpo-20806: Reference both times(2) and times(3) and link to MSDN. (GH-15479)

[issue37995] Multiline ast.dump()

2019-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > It would be great is the tool wasn't tightly bound to our particular AST and > could be used for any hand-rolled AST. I do not think it is possible. Every tree has its specifics: what types of nodes are supported (AST, list and primitive immutable

[issue37937] Mention ``frame.f_trace`` in :func:`sys.settrace` docs.

2019-09-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : AFAIK setting frame.f_trace *instead* of calling sys.settrace() does not work. You need to call sys.settrace() to enable tracing. -- nosy: +serhiy.storchaka ___ Python tracker

[issue20806] os.times document points to wrong section of non-Linux manual

2019-09-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8, Python 3.9 -Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue38046] Can't use sort_keys in json.dumps with mismatched types

2019-09-07 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +15379 pull_request: https://github.com/python/cpython/pull/15691 ___ Python tracker ___

[issue38050] open('file.txt') path not found

2019-09-07 Thread Sean Frazier
New submission from Sean Frazier : I am running a problem in 'Think Python' and was having no issues with: fin = open('words.txt') Then when I was working with the reference file, running a function, my IDLE crashed and is no longer able to locate files using [var = open('file.txt')] I

Re: How python knows where non standard libraries are stored ?

2019-09-07 Thread dieter
ast writes: > I looked for windows environment variables to tell python > how to fill sys.path at startup but I didn't found. > > So how does it work ? Read the (so called) docstring at the beginning of the module "site.py". Either locate the module source in the file system and read it in an

[issue32972] unittest.TestCase coroutine support

2019-09-07 Thread Thrlwiti
Change by Thrlwiti : -- nosy: +THRlWiTi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20806] os.times document points to wrong section of non-Linux manual

2019-09-07 Thread miss-islington
miss-islington added the comment: New changeset cc51a6d7c7b6b06fb537860428347d88776d802b by Miss Islington (bot) in branch '3.8': bpo-20806: Reference both times(2) and times(3) and link to MSDN. (GH-15479) https://github.com/python/cpython/commit/cc51a6d7c7b6b06fb537860428347d88776d802b

[issue15382] os.utime() mishandles some arguments

2019-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The documentation issue was fixed in issue23738. The documentation no longer claims that ns can be None. If specified it must be a tuple of floats. -- nosy: +serhiy.storchaka resolution: -> out of date stage: -> resolved status: open -> closed

How python knows where non standard libraries are stored ?

2019-09-07 Thread ast
Hello List sys.path contains all paths where python shall look for libraries. Eg on my system, here is the content of sys.path: >>> import sys >>> sys.path ['', 'C:\\Users\\jean-marc\\Desktop\\python', 'C:\\Program Files\\Python36-32\\python36.zip', 'C:\\Program Files\\Python36-32\\DLLs',

[issue38003] Change 2to3 to replace 'basestring' with '(str,bytes)'

2019-09-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Even at this late stage, we could really change 2to3's behavior here. Presumably many others are relying on the current behavior. -- resolution: -> rejected stage: -> resolved status: open -> closed ___

Which PyQt-compatible, performant graphing library should I use?

2019-09-07 Thread kangalioo654
Hi, Currently I'm making a statistics tool for a game I'm playing with PyQt5. I'm not happy with my current graphing library though. In the beginning I've used matplotlib, which was way too laggy for my use case. Currently I have pyqtgraph, which is snappy, but is missing useful features. The

Re: fileinput module not yielding expected results

2019-09-07 Thread Dan Sommers
On 9/7/19 11:12 AM, Jason Friedman wrote: $ grep "File number" ~/result | sort | uniq File number: 3 I expected that last grep to yield: File number: 1 File number: 2 File number: 3 File number: 4 File number: 5 File number: 6 As per

Re: How python knows where non standard libraries are stored ?

2019-09-07 Thread Eryk Sun
On 9/7/19, ast wrote: > > Eg on my system, here is the content of sys.path: > > >>> import sys > >>> sys.path > ['', In the REPL, "" is added for loading modules from the current directory. When executing a script, this would be the script directory. > 'C:\\Users\\jean-marc\\Desktop\\python',

[issue26868] Document PyModule_AddObject's behavior on error

2019-09-07 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +15380 pull_request: https://github.com/python/cpython/pull/15725 ___ Python tracker ___

Re: fileinput module not yielding expected results

2019-09-07 Thread Barry Scott
> On 7 Sep 2019, at 16:33, Dan Sommers <2qdxy4rzwzuui...@potatochowder.com> > wrote: > >with fileinput ...: >for line in f: >if fileinput.isfirstline(): >headers = extract_headers(line) >else: >pass # process a non-header

fileinput module not yielding expected results

2019-09-07 Thread Jason Friedman
import csv import fileinput import sys print("Version: " + str(sys.version_info)) print("Files: " + str(sys.argv[1:])) with fileinput.input(sys.argv[1:]) as f: for line in f: print(f"File number: {fileinput.fileno()}") print(f"Is first line: {fileinput.isfirstline()}") I

[issue38003] Change 2to3 to replace 'basestring' with '(str,bytes)'

2019-09-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: meant to say "really couldn't" -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38050] open('file.txt') path not found

2019-09-07 Thread Steve Dower
Steve Dower added the comment: Potentially an IDLE issue, if valid but incorrect code is causing it to break. Sean, we'll need you to provide step-by-step instructions (including copies of any files you are using) to see the problem ourselves, otherwise there's no way we can help. Please

[issue38052] Include sspipe Module with Core Python

2019-09-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: Before proposing a third party module for inclusion in the standard library, you should check: - is the module mature and stable? - does it have an FOSS licence compatible with Python, and if not, are the authors willing to re-licence it? - are the

Re: issue in handling CSV data

2019-09-07 Thread MRAB
On 2019-09-08 01:19, Sharan Basappa wrote: I am trying to read a log file that is in CSV format. The code snippet is below: ### import matplotlib.pyplot as plt import seaborn as sns; sns.set() import numpy as np import pandas as pd import os import csv from numpy

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

2019-09-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Tim Peters] > I favor making this a structseq If there are no further objections to upgrading isocalendar() to return a structseq, I would like to take the issue back so I can supervise Dong-hee Na writing a patch and then help bring it fruition.

Re: issue in handling CSV data

2019-09-07 Thread Sharan Basappa
On Saturday, 7 September 2019 21:18:11 UTC-4, MRAB wrote: > On 2019-09-08 01:19, Sharan Basappa wrote: > > I am trying to read a log file that is in CSV format. > > > > The code snippet is below: > > > > ### > > import matplotlib.pyplot as plt > > import seaborn as

[issue38015] inline function generates slightly inefficient machine code

2019-09-07 Thread Sergey Fedoseev
Sergey Fedoseev added the comment: I use GCC 9.2. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

3 cubes that sum to 42

2019-09-07 Thread Terry Reedy
>>> (-80538738812075974)**3 + 80435758145817515**3 + 12602123297335631**3 == 42 True # Impressively quickly, in a blink of an eye. This is the last number < 100, not theoretically excluded, to be solved. Compute power provided by CharityEngine. For more, see Numberphile...

Re: issue in handling CSV data

2019-09-07 Thread Joel Goldstick
On Sat, Sep 7, 2019 at 8:28 PM Joel Goldstick wrote: > > On Sat, Sep 7, 2019 at 8:21 PM Sharan Basappa > wrote: > > > > I am trying to read a log file that is in CSV format. > > > > The code snippet is below: > > > > ### > > import matplotlib.pyplot as plt > > import

Re: issue in handling CSV data

2019-09-07 Thread Joel Goldstick
On Sat, Sep 7, 2019 at 8:21 PM Sharan Basappa wrote: > > I am trying to read a log file that is in CSV format. > > The code snippet is below: > > ### > import matplotlib.pyplot as plt > import seaborn as sns; sns.set() > import numpy as np > import pandas as pd >

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2019-09-07 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +15382 pull_request: https://github.com/python/cpython/pull/15691 ___ Python tracker ___

[issue26868] Document PyModule_AddObject's behavior on error

2019-09-07 Thread Ma Lin
Change by Ma Lin : -- nosy: +Ma Lin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38015] inline function generates slightly inefficient machine code

2019-09-07 Thread Ma Lin
Ma Lin added the comment: > This change produces tiny, but measurable speed-up for handling small ints I didn't get measurable change, I run this command a dozen times and take the best result: D:\dev\cpython\PCbuild\amd64\python.exe -m pyperf timeit -s "from collections import deque;

issue in handling CSV data

2019-09-07 Thread Sharan Basappa
I am trying to read a log file that is in CSV format. The code snippet is below: ### import matplotlib.pyplot as plt import seaborn as sns; sns.set() import numpy as np import pandas as pd import os import csv from numpy import genfromtxt # read the CSV and get into

Is it 'fine' to instantiate a widget without parent parameter?

2019-09-07 Thread jfong
I know it is valid, according to the Tkinter source, every widget constructor has a 'master=None' default. What happens on doing this? In what circumstance, we do it this way? and will it cause any trouble? --Jach -- https://mail.python.org/mailman/listinfo/python-list

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

2019-09-07 Thread Tim Peters
Change by Tim Peters : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38052] Include sspipe Module with Core Python

2019-09-07 Thread Juan Telleria
Change by Juan Telleria : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38003] Change 2to3 to replace 'basestring' with '(str,bytes)'

2019-09-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Replacing 'basestring' with 'str' is not a bug in the behavioral sense because it is intended and documented. https://docs.python.org/3/library/2to3.html#2to3fixer-basestring How the current behavior is correct: 2to3 converts syntactically valid 2.x code to

[issue38053] Update plistlib documentation

2019-09-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12731] python lib re uses obsolete sense of \w in full violation of UTS#18 RL1.2a

2019-09-07 Thread Justin Arthur
Change by Justin Arthur : -- nosy: +JustinTArthur ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38051] time.strftime handling %z/%Z badly

2019-09-07 Thread John Daily
New submission from John Daily : My apologies if this is a duplicate; there are more than a few bug reports on time and strftime, but I wasn't able to locate any reporting this specifically. I'd be happy to do more in-depth tests with some guidance. I see that this is largely the

[issue38052] Include sspipe Module with Core Python

2019-09-07 Thread Juan Telleria
New submission from Juan Telleria : Could sspipe be included as a Core Python module? https://sspipe.github.io/ https://github.com/sspipe/sspipe https://pypi.org/project/sspipe/ sspipe allows to use syntax such as: from sspipe import p, px import numpy as np import pandas as pd (