Re: How to split a list type array into float array?

2019-05-21 Thread Alister via Python-list
On Tue, 21 May 2019 03:38:43 -0700, Madhavan Bomidi wrote: > Hi, > > I have the following list type data: > > [' 29.7963 29.6167 29.4371 29.2574 29.0778 28.8982 28.7185 > 28.5389 28.3593 28.1797 28. 27.8204 27.6408 27.4611 > 27.2815 27.1019 26.9223 26.7426

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: eryksun commented there, but I prefer to discuss here: https://github.com/python/cpython/commit/925af1d99b69bf3e229411022ad840c5a0cfdcf8#commitcomment-33617265 ""Windows.h" was already being included, as I mentioned on the issue tracker, because we certainly

[issue31904] Python should support VxWorks RTOS

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: Please update PR 12670: see my comment there. -- ___ Python tracker ___ ___ Python-bugs-list

[issue36648] MAP_SHARED isn't proper for anonymous mappings for VxWorks

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4fb15021890d327023aefd95f5a84ac33b037d19 by Victor Stinner (Lihua Zhao) in branch 'master': bpo-36648: fix mmap issue for VxWorks (GH-12394) https://github.com/python/cpython/commit/4fb15021890d327023aefd95f5a84ac33b037d19 --

[issue36988] zipfile: string IndexError on extract

2019-05-21 Thread alter-bug-tracer
New submission from alter-bug-tracer : The following code throws an IndexError when attempting to extract a malformed archive (attached): import zipfile import sys zf = zipfile.ZipFile(sys.argv[1]) for info in zf.infolist(): zf.extract(info.filename) Result: Traceback (most recent call

[issue36986] tarfile: unexpected IsADirectoryError on extraction

2019-05-21 Thread Michele Angrisano
Michele Angrisano added the comment: It looks like it has the same behavior of issue8958. -- nosy: +mangrisano ___ Python tracker ___

[issue31904] Python should support VxWorks RTOS

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset f2d7ac7e5bd821e29e0fcb78a760a282059ae000 by Victor Stinner (pxinwr) in branch 'master': bpo-31904: Add posix module support for VxWorks (GH-12118) https://github.com/python/cpython/commit/f2d7ac7e5bd821e29e0fcb78a760a282059ae000 --

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Jake, would you like to submit a new PR that implements Victor's suggestion (i.e. only define and test the attribute on supported systems)? -- ___ Python tracker

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset d12e75734d46ecde588c5de65e6d64146911d20c by Victor Stinner in branch 'master': Revert "bpo-36084: Add native thread ID to threading.Thread objects (GH-11993)" (GH-13458)

[issue36974] Implement PEP 590

2019-05-21 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +13370 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

How to split a list type array into float array?

2019-05-21 Thread Madhavan Bomidi
Hi, I have the following list type data: [' 29.7963 29.6167 29.4371 29.2574 29.0778 28.8982 28.7185 28.5389 28.3593 28.1797 28. 27.8204 27.6408 27.4611 27.2815 27.1019 26.9223 26.7426 26.5630 26.3834 26.2037 26.0241 25.8445 25.6649 25.4852

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: Jake Tesler: In the meanwhile, can you please try to rewrite your change to make the attribute optional? C PyThread_get_thread_native_id() function and Python _thread.get_native_id() should not be defined if it's not supported by the platform. I suggest

[issue36969] pdb.do_args: display keyword-only and positional only arguments

2019-05-21 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- title: pdb: do_args: display/handle keyword-only arguments -> pdb.do_args: display keyword-only and positional only arguments ___ Python tracker

[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-21 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- pull_requests: +13369 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 13458 to revert the change which broke the CI for longer than one week, see the rationale there: https://github.com/python/cpython/pull/13458#issuecomment-494334241 Email thread about the regression:

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13368 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36975] csv: undocumented UnicodeDecodeError on malformed file

2019-05-21 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I don't understand the issue here, csv can raise many errors when an issue happens: >>> import csv >>> csv.reader(None) Traceback (most recent call last): File "", line 1, in TypeError: argument 1 must be an iterator Why would UnicodeDecodeError not be

[issue36975] csv: undocumented UnicodeDecodeError on malformed file

2019-05-21 Thread Rémi Lapeyre
Change by Rémi Lapeyre : Added file: https://bugs.python.org/file48344/file1.txt ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36975] csv: undocumented UnicodeDecodeError on malformed file

2019-05-21 Thread Rémi Lapeyre
Change by Rémi Lapeyre : Added file: https://bugs.python.org/file48342/csv_parser.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36975] csv: undocumented UnicodeDecodeError on malformed file

2019-05-21 Thread Rémi Lapeyre
Change by Rémi Lapeyre : Added file: https://bugs.python.org/file48343/file0.txt ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 925af1d99b69bf3e229411022ad840c5a0cfdcf8 by Victor Stinner (Erik Janssens) in branch 'master': bpo-36965: Fix includes in main.c on Windows with non-MSC compilers (GH-13421)

[issue36816] self-signed.pythontest.net TLS certificate key is too weak

2019-05-21 Thread Michael Felt
Michael Felt added the comment: p.s. On Centos I could not even get a python3 (at least not easily). On debian (on POWER) I get the same error (message) as on AIX - although the line number did change. ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify

[issue36974] Implement PEP 590

2019-05-21 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +13367 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33485] autoconf target does not behave correctly

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: > it uses autoheader and autoconf instead of autoreconf How is this an issue? Is autoreconf also available when autoheader and autoconf are available? -- nosy: +vstinner ___ Python tracker

[issue36937] New _PyObject_MakeTpCall() function

2019-05-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: In that case, there is no point a making a separate issue or PR. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue22865] Document how to make pty.spawn not copy data

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: Thanks Geoff Shannon for the doc enhancement! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue22865] Document how to make pty.spawn not copy data

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset cdb2dbfe92b95dcd19ccab1a1e9b8c39263c54b0 by Victor Stinner (Geoff Shannon) in branch '3.7': [3.7] bpo-22865: Expand on documentation for the pty.spawn function (GH-11980) (GH-13455)

[issue36937] New _PyObject_MakeTpCall() function

2019-05-21 Thread Petr Viktorin
Petr Viktorin added the comment: Ah, sorry, I didn't get the message through. I'll merge it with the rest of PEP 590. Adding the symbol doesn't make sense *right* now. -- ___ Python tracker

[issue36937] New _PyObject_MakeTpCall() function

2019-05-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: So what are you trying to say? That it *should* be a static function? It most likely won't be a static function after PEP 590 is fully implemented. -- ___ Python tracker

[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Of course, should I open a new PR or post a patch to be added to a current PR? Make another PR against master. -- ___ Python tracker

[issue36937] New _PyObject_MakeTpCall() function

2019-05-21 Thread Petr Viktorin
Petr Viktorin added the comment: Avoiding the duplication makes sense, but without the rest of PEP 590 it could just be a static function in call.c. -- ___ Python tracker

[issue36816] self-signed.pythontest.net TLS certificate key is too weak

2019-05-21 Thread Michael Felt
Michael Felt added the comment: I am not an OpenSSL expert - and I am conscious of OpenSSL changes with regard to 'acceptance' of anything self-signed. And, what it looks like you are trying to do with an updated 'signing" .pem is to remove the 'self-signed' charasteric. On AIX - atm - I

[issue36970] Rename _PyObject_FastCall functions

2019-05-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: The consensus on PEP 590 now seems to be to keep the name `_PyObject_FastCallDict` and rename only `_PyObject_FastCallKeywords` -> `_PyObject_Vectorcall`. For the record: I don't agree with this decision but I'll implement it. --

Re: How to concatenate strings with iteration in a loop?

2019-05-21 Thread Paul Moore
On Tue, 21 May 2019 at 09:25, Frank Millman wrote: > > On 2019-05-21 9:42 AM, Madhavan Bomidi wrote: > > Hi, > > > > I need to create an array as below: > > > > tempStr = year+','+mon+','+day+','+str("{:6.4f}".format(UTCHrs[k]))+','+ \ > >

[issue36987] Dictionary: why is the value not used up?

2019-05-21 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Here is the mailing list for the python users. https://mail.python.org/mailman/listinfo/python-list -- ___ Python tracker ___

[issue36987] Dictionary: why is the value not used up?

2019-05-21 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Aprila, I think you should use the mailing list for the Python users. Have a nice day, -- nosy: +matrixise resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue36987] Dictionary: why is the value not used up?

2019-05-21 Thread Aprila Hijriyan
New submission from Aprila Hijriyan : Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> d = {"a": 1, "b": 2} >>> d ["c"] = d >>> d ["c"] {'a': 1, 'c': {...}, 'b': 2} >>> d ["c"] ["c"] {'a': 1,

Re: How to concatenate strings with iteration in a loop?

2019-05-21 Thread Frank Millman
On 2019-05-21 9:42 AM, Madhavan Bomidi wrote: Hi, I need to create an array as below: tempStr = year+','+mon+','+day+','+str("{:6.4f}".format(UTCHrs[k]))+','+ \ str("{:9.7f}".format(AExt[k,0]))+','+str({:9.7f}".format(AExt[k,1]))+','+ \

How to concatenate strings with iteration in a loop?

2019-05-21 Thread Madhavan Bomidi
Hi, I need to create an array as below: tempStr = year+','+mon+','+day+','+str("{:6.4f}".format(UTCHrs[k]))+','+ \ str("{:9.7f}".format(AExt[k,0]))+','+str({:9.7f}".format(AExt[k,1]))+','+ \ str("{:9.7f}".format(AExt[k,2]))+','+str("{:9.7f}".format(AExt[k,3]))+','+ \

[issue36986] tarfile: unexpected IsADirectoryError on extraction

2019-05-21 Thread alter-bug-tracer
New submission from alter-bug-tracer : The following code creates a new directory 'output' and extracts the tar archive given as argv in it. When a malformed archive (attached) is given as argv, a IsADirectoryError is thrown, as opposed to extracting the file contained in the archive to the

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: The correct approach is using Protocol.pause_writing() / Protocol.resume_writing() callbacks. No trivial, though. See `StreamWriter.drain()` for example of implementation. -- ___ Python tracker

[issue36932] asyncio-task.rst could use proper deprecated-removed directive

2019-05-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36932] asyncio-task.rst could use proper deprecated-removed directive

2019-05-21 Thread miss-islington
miss-islington added the comment: New changeset d0ebf13e50dd736cdb355fa42c23837abbb88127 by Miss Islington (bot) (Matthias Bussonnier) in branch 'master': bpo-36932: use proper deprecation-removed directive (GH-13349)

[issue36978] `python3 -m pip install` has no `--requirement` option on Windows

2019-05-21 Thread Eric V. Smith
Eric V. Smith added the comment: Please show us what command you are running when you try to specify --requirement, and what the result is. -- nosy: +eric.smith ___ Python tracker

<    1   2   3