[issue34955] passing a dict to bytes() gives unhelpful error message

2018-10-10 Thread Raymond Hettinger
Change by Raymond Hettinger : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34922] hashlib segmentation fault

2018-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 69e6ad6cdfa28a7b8e7b8780b07dfcdbfb0e7030 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': [3.6] bpo-34922: Fix integer overflow in the digest() and hexdigest() methods (GH-9751) (GH-9798) (GH-9801)

Re: ESR "Waning of Python" post

2018-10-10 Thread Gregory Ewing
Paul Rubin wrote [concerning GIL removal]: It's weird that Python's designers were willing to mess up the user language in the 2-to-3 transition but felt that the C API had to be kept sarcosanct. Huge opportunities were blown at multiple levels. You say that as though we had a solution for

Re: From Mathematica to Jypyter

2018-10-10 Thread Gregory Ewing
Thomas Jollans wrote: Sure it is. He's contrasting *private* gain with *public* loss. If there is any ambiguity here it is whether there is a threat *of* a public loss, or *to* a public loss ^_^ I don't think you've spotted the error yet. I'm trying to provide a clue as to which word you need

[issue34922] hashlib segmentation fault

2018-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8b040e55395b37bdb8fd4ec85a270cfc9ec95307 by Serhiy Storchaka in branch '3.7': [3.7] bpo-34922: Fix integer overflow in the digest() and hexdigest() methods (GH-9751) (GH-9798)

Re: From Mathematica to Jypyter

2018-10-10 Thread Gregory Ewing
Chris Angelico wrote: You mean at the level of words, or sentences? I mean at the word level, so that a dumb algorithm can find spelling errors. Auto-correcting errors at the semantic level would require considerably better AI than we have at the moment. -- Greg --

[issue34922] hashlib segmentation fault

2018-10-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +9184 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34953] Implement `mmap.mmap.__repr__`

2018-10-10 Thread Ram Rachum
Ram Rachum added the comment: There are a few ways we can go with this, depending on how verbose we want to be and how willing we are to make calls to the data. Here are a few pieces of information we could expose: - Length - Whether it's a file or anonymous memory - The entire contents

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f543e18708efb04ed3a0b78c8dc31fbb1404ac7d by Serhiy Storchaka in branch '3.6': [3.6] bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346) (GH-8581) (GH-9657)

[issue34922] hashlib segmentation fault

2018-10-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9183 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34922] hashlib segmentation fault

2018-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9b8c2e767643256202bb11456ba8665593b9a500 by Serhiy Storchaka in branch 'master': bpo-34922: Fix integer overflow in the digest() and hexdigest() methods (GH-9751)

Re: Python doesn't install

2018-10-10 Thread Ryan Johnson
Need more info than that. For a problem as unusual as that, it'll take a lot of scrutiny to find the problem. Dump as much info as you can about your system environment and your existing installations and upload them to https://hastebin.com/ (secure and private text host). Include relevant

[issue34922] hashlib segmentation fault

2018-10-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +9182 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34955] passing a dict to bytes() gives unhelpful error message

2018-10-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I'm not sure the error message can be improved, so I suggest closing this > issue. I concur. -- assignee: -> rhettinger nosy: +rhettinger resolution: -> not a bug ___ Python tracker

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-10 Thread miss-islington
miss-islington added the comment: New changeset 57038bcb24407a46e6d278d0ab4b6ad25bbf by Miss Islington (bot) in branch '3.7': bpo-34576 warn users on security for http.server (GH-9720) https://github.com/python/cpython/commit/57038bcb24407a46e6d278d0ab4b6ad25bbf --

[issue26005] Denial of Service in SimpleHTTPServer and BaseHTTPServer

2018-10-10 Thread miss-islington
miss-islington added the comment: New changeset 57038bcb24407a46e6d278d0ab4b6ad25bbf by Miss Islington (bot) in branch '3.7': bpo-34576 warn users on security for http.server (GH-9720) https://github.com/python/cpython/commit/57038bcb24407a46e6d278d0ab4b6ad25bbf --

[issue34930] sha1module: Switch sha1 implementation to sha1dc/hardened sha1

2018-10-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Assigning to Christian to make the call. +1 for option #1, replacing sha1 implementation with the harden version, helping us move close to more-secure-by-default. -- assignee: -> christian.heimes nosy: +rhettinger

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-10 Thread miss-islington
miss-islington added the comment: New changeset 3baee3b39765f5e8ec616b2b71b731b140486394 by Miss Islington (bot) in branch '3.6': bpo-34576 warn users on security for http.server (GH-9720) https://github.com/python/cpython/commit/3baee3b39765f5e8ec616b2b71b731b140486394 -- nosy:

[issue26005] Denial of Service in SimpleHTTPServer and BaseHTTPServer

2018-10-10 Thread miss-islington
miss-islington added the comment: New changeset 3baee3b39765f5e8ec616b2b71b731b140486394 by Miss Islington (bot) in branch '3.6': bpo-34576 warn users on security for http.server (GH-9720) https://github.com/python/cpython/commit/3baee3b39765f5e8ec616b2b71b731b140486394 -- nosy:

[issue34956] 3.7.0 _tkinter module links against /System/Library/Frameworks

2018-10-10 Thread Kevin Walzer
New submission from Kevin Walzer : I'm trying to build Python 3.7.0 on macOS 10.14, and Tkinter is not linking to my installation of Tcl/Tk 8.6.8 in /Library/Frameworks. Instead it is linking to the ancient 8.5 Tk installed in /System/Library/Frameworks. My usual way of forcing Python to

[issue34203] documentation: recommend Python 3 over 2 in faq

2018-10-10 Thread Gus Goulart
Gus Goulart added the comment: Thanks for pointing that out. If you don't mind, I have created a PR to address your requests. -- nosy: +gus, taleinat ___ Python tracker ___

[issue34203] documentation: recommend Python 3 over 2 in faq

2018-10-10 Thread Gus Goulart
Change by Gus Goulart : -- keywords: +patch pull_requests: +9180 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue26005] Denial of Service in SimpleHTTPServer and BaseHTTPServer

2018-10-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +9179 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +9176 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +9178 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26005] Denial of Service in SimpleHTTPServer and BaseHTTPServer

2018-10-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +9177 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26005] Denial of Service in SimpleHTTPServer and BaseHTTPServer

2018-10-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 1d26c72e6a9c5b28b27c158f2f196217707dbb0f by Senthil Kumaran (Felipe Rodrigues) in branch 'master': bpo-34576 warn users on security for http.server (#9720) https://github.com/python/cpython/commit/1d26c72e6a9c5b28b27c158f2f196217707dbb0f

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 1d26c72e6a9c5b28b27c158f2f196217707dbb0f by Senthil Kumaran (Felipe Rodrigues) in branch 'master': bpo-34576 warn users on security for http.server (#9720) https://github.com/python/cpython/commit/1d26c72e6a9c5b28b27c158f2f196217707dbb0f

Re: Observations on the List - "Be More Kind"

2018-10-10 Thread Gene Heskett
On Wednesday 10 October 2018 14:27:32 Larry Martell wrote: > On Fri, Oct 5, 2018 at 6:54 AM Bruce Coram wrote: > > I will declare at the outset, I am a lurker. I don't know enough > > about Python to give advice that I could 100% guarantee would be > > helpful. > > > > There have been two

[issue26467] Add async magic method support to unittest.mock.Mock

2018-10-10 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: From Mathematica to Jypyter

2018-10-10 Thread Thomas Jollans
On 11/10/2018 01:26, Chris Angelico wrote: On Thu, Oct 11, 2018 at 10:09 AM Thomas Jollans wrote: On 10/10/2018 23:32, Gregory Ewing wrote: Rhodri James wrote: I'm a great fan of erroneous spelling and this blog needs a spelling check as this quote shows "Mathematica exemplifies the horde

[issue34953] Implement `mmap.mmap.__repr__`

2018-10-10 Thread Eric V. Smith
New submission from Eric V. Smith : What do you propose the repr would look like? -- components: +Interpreter Core -Library (Lib) nosy: +eric.smith ___ Python tracker ___

[issue12978] Figure out extended attributes on BSDs

2018-10-10 Thread Ned Deily
Ned Deily added the comment: On 2018-10-02, worr asked on the python-dev mailing list: > Can I get a review for GH-1690[PR 1690]? It fixes bpo-12978 and > has been sitting for a handful of years now. This adds > support for os.*xattr on DragonflyBSD, FreeBSD and NetBSD. -- versions:

Re: From Mathematica to Jypyter

2018-10-10 Thread Chris Angelico
On Thu, Oct 11, 2018 at 10:09 AM Thomas Jollans wrote: > > On 10/10/2018 23:32, Gregory Ewing wrote: > > Rhodri James wrote: > >>> I'm a great fan of erroneous spelling and this blog needs a spelling > >>> check as this quote shows > >>> > >>> "Mathematica exemplifies the horde of new Vandals

Re: From Mathematica to Jypyter

2018-10-10 Thread Thomas Jollans
On 10/10/2018 23:32, Gregory Ewing wrote: Rhodri James wrote: I'm a great fan of erroneous spelling and this blog needs a spelling check as this quote shows "Mathematica exemplifies the horde of new Vandals whose pursuit of private gain threatens a far greater pubic loss–the collapse of

[issue34955] passing a dict to bytes() gives unhelpful error message

2018-10-10 Thread Eric V. Smith
Eric V. Smith added the comment: You can in fact pass a dict to bytes(), as long as the keys are ints in the correct range: >>> bytes({0:10, 1:20}) b'\x00\x01' I'm not claiming it's very useful, but it does conform to the docs. I'm not sure the error message can be improved, so I suggest

[issue34930] sha1module: Switch sha1 implementation to sha1dc/hardened sha1

2018-10-10 Thread Antoine Pietri
Antoine Pietri added the comment: On Wed, Oct 10, 2018 at 11:27 PM STINNER Victor wrote: > I dislike modifying a hash function to return its output but keep the same > name. For name, "SHA1" must remain "SHA1". If you want a variant, it should > have a different name, but I would expect

[issue34954] Getting an email's subject is error-prone

2018-10-10 Thread R. David Murray
R. David Murray added the comment: The new policies *make* the email library that higher level library, that was pretty much the whole point :) I don't know how to make getting the fully decoded subject more intuitive than: msg['subject'] The fact that you have to specify a policy is

Re: Python3 packages installation

2018-10-10 Thread Rich Shepard
On Wed, 10 Oct 2018, Jim wrote: I think you have to first install a package called 'python3-pip'. At least that's what I had to do on Ubuntu. Jim, Well, it did not occur to me to try a hyphenated name. I'm sure that's the solution. Thanks for the pointer! Best regards, Rich --

Re: Python3 packages installation

2018-10-10 Thread Jim
On 10/10/2018 03:05 PM, Rich Shepard wrote:   Here, both python-2.7.15 and python3-3.6.6 are installed. Using pip (which I understand works with both python versions) I was able to install ipython, matplotlib, numpy, and pandas. They're all in /usr/lib64/python2.7/site-packages.   Now I

[issue34914] Clarify text encoding used to enable UTF-8 mode

2018-10-10 Thread STINNER Victor
STINNER Victor added the comment: Well, I'm not saying that using gb18030 with UTF-8 will be just fine for everything. Mojibake is likely around the corner :-) C locale coercion and the UTF-8 mode are workarounds for the crappy and wild Unix world :-) --

[issue34914] Clarify text encoding used to enable UTF-8 mode

2018-10-10 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure that I understand your issue. There are 3 ways to enable the UTF-8 Mode: * if the LC_CTYPE locale is "C" or "POSIX" * if PYTHONUTF8 env var is equal to "1" * using -X utf8 or -X utf8=1 command line option For the first 2 cases are fine if the

Re: From Mathematica to Jypyter

2018-10-10 Thread Chris Angelico
On Thu, Oct 11, 2018 at 8:36 AM Gregory Ewing wrote: > > BTW, an automatic spelling checker wouldn't have helped here. > We really need to redesign English spelling so that it has > error correction built in. You mean at the level of words, or sentences? A sentence already has enough redundancy

Re: From Mathematica to Jypyter

2018-10-10 Thread Gregory Ewing
Rhodri James wrote: I'm a great fan of erroneous spelling and this blog needs a spelling check as this quote shows "Mathematica exemplifies the horde of new Vandals whose pursuit of private gain threatens a far greater pubic loss–the collapse of social systems that took centuries to build."

[issue21880] IDLE: Ability to run 3rd party code checkers

2018-10-10 Thread Tal Einat
Tal Einat added the comment: Update: I've nearly got an updated version ready and working based on the current master branch. I hope to have a PR up by tomorrow. -- ___ Python tracker

[issue34922] hashlib segmentation fault

2018-10-10 Thread Ned Deily
Ned Deily added the comment: We've reached the cutoff point for 3.7.1rc2 and 3.6.7rc2 and I don't see a PR or a resolution of this for either branch yet. If there's a chance for merged PRs in the next couple of hours, I'll wait a bit longer but otherwise these fixes will have to wait.

[issue34930] sha1module: Switch sha1 implementation to sha1dc/hardened sha1

2018-10-10 Thread STINNER Victor
STINNER Victor added the comment: I dislike modifying a hash function to return its output but keep the same name. For name, "SHA1" must remain "SHA1". If you want a variant, it should have a different name, but I would expect that the existing sha1 function remains unchanged. How do you

[issue23867] Argument Clinic: inline parsing code for 1-argument functions

2018-10-10 Thread STINNER Victor
STINNER Victor added the comment: I'm a little bit sad that the PR doesn't add new tests :-( -- ___ Python tracker ___ ___

[issue34955] passing a dict to bytes() gives unhelpful error message

2018-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: bytes() accepts: 1. An integer. 2. An object supporting the buffer protocol. 3. An iterable of integers in the range 0 to 255. Dict is an iterable. But iterating it produces string object which cannot be interpreted as an integer. -- nosy:

Re: ESR "Waning of Python" post

2018-10-10 Thread Neil Cerutti
On 2018-10-09, Paul Rubin wrote: > If anyone cares, Eric Raymond posted a big rant saying > basically he's giving up on Python and porting a big program > he's working on to Go. Reasons he gives are > performance (Go is 40x faster for his app) > memory footprint (high overhead of simple Python

[issue34951] cookielib/cookiejar cookies' Expires date parse fails with long month names

2018-10-10 Thread Martin Panter
Martin Panter added the comment: RFC 6265 says that only the first three letters of the month are significant, and the rest of the token should be ignored. See : month = ( "jan" / "feb" / "mar" / "apr" / "may" / "jun" / "jul" / "aug" /

Re: Creating dice game : NEED HELP ON CHECKING ELEMENTS IN A LIST

2018-10-10 Thread Abdur-Rahmaan Janhangeer
*if any(roll != 1 and roll != 5 for roll in result):* another extract of py's beauty! Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Python3 packages installation

2018-10-10 Thread Rich Shepard
Here, both python-2.7.15 and python3-3.6.6 are installed. Using pip (which I understand works with both python versions) I was able to install ipython, matplotlib, numpy, and pandas. They're all in /usr/lib64/python2.7/site-packages. Now I want to install the same packages for python3 so

Re: Creating dice game : NEED HELP ON CHECKING ELEMENTS IN A LIST

2018-10-10 Thread Neil Cerutti
On 2018-10-06, eliteanarchyra...@gmail.com wrote: > Hi, I am new to python and would like someones help on the > following: > > After rolling 5 dice and putting the results into a list, I > need to check if any dice is not a 1 or 5. if any(roll != 1 and roll != 5 for roll in result): > # -

[issue34955] passing a dict to bytes() gives unhelpful error message

2018-10-10 Thread Marnanel Thurman
New submission from Marnanel Thurman : bytes() doesn't accept a dict as parameter. If you attempt to pass one, you receive a TypeError with the baffling message "'str' object cannot be interpreted as an integer". >> bytes({'a':1}) Traceback (most recent call last): File "", line 1, in

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-10-10 Thread Mario
Mario added the comment: On 10/10/2018 01:11, Steve Dower wrote: > > Steve Dower added the comment: > > We'll need to bring in venv specialists to check whether using it outside of > Py_Main() is valid. Or perhaps you could explain what you are actually trying > to do? > Sure 1) Create

Re: Observations on the List - "Be More Kind"

2018-10-10 Thread Larry Martell
On Fri, Oct 5, 2018 at 6:54 AM Bruce Coram wrote: > > I will declare at the outset, I am a lurker. I don't know enough about > Python to give advice that I could 100% guarantee would be helpful. > > There have been two recent threads that summarise for me where the > Python Mailing List has lost

[issue34954] Getting an email's subject is error-prone

2018-10-10 Thread Alex Corcoles
Alex Corcoles added the comment: To clarify (and maybe help someone which might come across), you mean: In [1]: message_text = """To: a...@corcoles.net ...: Subject: ** ACKNOWLEDGEMENT Host Alert: archerc7.bcn.int.pdp7.net is DOWN ...: ** ...: User-Agent: Heirloom mailx 12.5 7/5/10

Re: Observations on the List - "Be More Kind"

2018-10-10 Thread Ethan Furman
On 10/10/2018 11:07 AM, Rhodri James wrote: Now I've had a chance to go back through the archive (it's been that kind of day at work), I'm going to have to recant.  I can't find anything that Rick wrote in the week or two before the ban Where are you looking? -- ~Ethan~ --

Re: From Mathematica to Jypyter

2018-10-10 Thread codewizard
On Wednesday, October 10, 2018 at 12:09:41 PM UTC-4, Rhodri James wrote: > On 10/10/18 08:32, Robin Becker wrote: > > > > I'm a great fan of erroneous spelling and this blog needs a spelling > > check as this quote shows > > > > "Mathematica exemplifies the horde of new Vandals whose pursuit of

Re: From Mathematica to Jypyter

2018-10-10 Thread jfine2358
Rhodri James wrote: > Robin Becker wrote: > > I'm a great fan of erroneous spelling and this blog needs a spelling > > check as this quote shows [Paul Romer's blog] > > "Mathematica exemplifies the horde of new Vandals whose pursuit of > > private gain threatens a far greater pubic loss–the

Re: Python doesn't install

2018-10-10 Thread Daan Kahmann
Op woensdag 10 oktober 2018 19:20:42 UTC+2 schreef Terry Reedy: > On 10/10/2018 9:53 AM, daankahman...@gmail.com wrote: > > > I have an annoying problem, I can download Python (from python.org) but it > > won't install on my laptop. If I try to open the installer, it closes > > again. I also

Re: Observations on the List - "Be More Kind"

2018-10-10 Thread Rhodri James
On 09/10/18 12:12, Rhodri James wrote: On 08/10/18 20:46, Ethan Furman wrote: Banning Rick Johnson: Hopefully no explanation needed [2]. Explanation/justification needed, but given :-)  Again, I killfiled Rick ages ago, and I agree his language does justify banning.

[issue34954] Getting an email's subject is error-prone

2018-10-10 Thread R. David Murray
R. David Murray added the comment: Use the new email policies in python3. It handles all the decoding for you. I'm afraid you are on your own for python2. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python

[issue34953] Implement `mmap.mmap.__repr__`

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

[issue34954] Getting an email's subject is error-prone

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

[issue34951] cookielib/cookiejar cookies' Expires date parse fails with long month names

2018-10-10 Thread Alberto Moral
Alberto Moral added the comment: Yes, I was thinking that it could be a matter of configuration of the server (?). By the way, and just for fun, I've just realized that truncating mon at the begining of the _str2time funtion is a very bad idea because mon could also be an int. A better

[issue34769] _asyncgen_finalizer_hook running in wrong thread

2018-10-10 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 ___ Python tracker ___

[issue34769] _asyncgen_finalizer_hook running in wrong thread

2018-10-10 Thread Yury Selivanov
Yury Selivanov added the comment: I'll close this issue now. If you find another bug in how asyncio handles async generators please open a new one. Thanks! -- ___ Python tracker

[issue34951] cookielib/cookiejar cookies' Expires date parse fails with long month names

2018-10-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: No problem, I am also not an expert and I just skimmed through the RFC and cannot find any point related to month full name. So I just wanted to check if there are any recent changes I am missing or if the server is configured to set cookie

[issue34769] _asyncgen_finalizer_hook running in wrong thread

2018-10-10 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset a14dda5df62369d01db6c7519e73aae71d0e7cfe by Yury Selivanov (twisteroid ambassador) in branch '3.6': [3.6] bpo-34769: Thread safety for _asyncgen_finalizer_hook(). (GH-9716) (GH-9792)

Re: Python doesn't install

2018-10-10 Thread Terry Reedy
On 10/10/2018 9:53 AM, daankahman...@gmail.com wrote: I have an annoying problem, I can download Python (from python.org) but it won't install on my laptop. If I try to open the installer, it closes again. I also don't get a error message. I'm using windows 10. I already tried most of the

[issue34951] cookielib/cookiejar cookies' Expires date parse fails with long month names

2018-10-10 Thread Alberto Moral
Alberto Moral added the comment: Thanks for your answer. I have not found any RFCs with full month names either. I'm afraid I'm not an expert here. But the case is that I get them in my work. Here is an example of response header: HTTP/1.1 200 OK Server: Oracle-iPlanet-Web-Server/7.0

[issue34954] Getting an email's subject is error-prone

2018-10-10 Thread Alex Corcoles
New submission from Alex Corcoles : Hi, This is something that has hit us a few times, as we write a significant quantity of software which parses email messages. The thing is, we use email.header.decode_header to decode the Subject: header and it is pretty common for headers to be

[issue34953] Implement `mmap.mmap.__repr__`

2018-10-10 Thread Ram Rachum
Change by Ram Rachum : -- components: Library (Lib) nosy: cool-RR priority: normal severity: normal status: open title: Implement `mmap.mmap.__repr__` type: enhancement versions: Python 3.8 ___ Python tracker

[issue29708] support reproducible Python builds

2018-10-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset a6b3ec5b6d4f6387820fccc570eea08b9615620d by Victor Stinner (Elvis Pranskevichus) in branch 'master': bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_EPOCH (GH-9607)

[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-10-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset a6b3ec5b6d4f6387820fccc570eea08b9615620d by Victor Stinner (Elvis Pranskevichus) in branch 'master': bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_EPOCH (GH-9607)

[issue34769] _asyncgen_finalizer_hook running in wrong thread

2018-10-10 Thread twisteroid ambassador
Change by twisteroid ambassador : -- pull_requests: +9174 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: From Mathematica to Jypyter

2018-10-10 Thread Rhodri James
On 10/10/18 08:32, Robin Becker wrote: On 10/10/2018 02:17, Terry Reedy wrote: https://paulromer.net/jupyter-mathematica-and-the-future-of-the-research-paper/ Jupyter, Mathematica, and the Future of the Research Paper Paul Romer, new Nobel prize winner in economics, for research on how ideas

Re: From Mathematica to Jypyter

2018-10-10 Thread Robin Becker
On 10/10/2018 02:17, Terry Reedy wrote: https://paulromer.net/jupyter-mathematica-and-the-future-of-the-research-paper/ Jupyter, Mathematica, and the Future of the Research Paper Paul Romer, new Nobel prize winner in economics, for research on how ideas interact with economic growth, explained

[issue24209] Allow IPv6 bind in http.server

2018-10-10 Thread Radek Podgorny
Change by Radek Podgorny : -- nosy: +rpodgorny ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Paul Romer, 2018 Economics Nobel Laureate, uses Python and Jupyter

2018-10-10 Thread jfine2358
Terry Reedy wrote: > https://paulromer.net/jupyter-mathematica-and-the-future-of-the-research-paper/ > Jupyter, Mathematica, and the Future of the Research Paper > Paul Romer, new Nobel prize winner in economics, for research on how > ideas interact with economic growth, explained last April why

[issue34926] Allow querying a Path's mime-type

2018-10-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 7e18deef652a9d413d5dbd19d61073ba7eb5460e by Antoine Pitrou (Mayank Asthana) in branch 'master': bpo-34926: Make mimetypes.guess_type accept os.PathLike objects (GH-9777)

[issue34878] Lock Objects documentation clarification

2018-10-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Benjamin that the docs are reasonable as-is. -- nosy: +rhettinger resolution: -> rejected status: open -> closed ___ Python tracker

text2num: Parse and convert numbers written in French

2018-10-10 Thread Romuald Texier-Marcadé
We're glad to announce the release of version 1.0 of text2num, the first Python library for parsing and converting numbers written in French into their digit representation. The parser is quite robust and is able to segment and convert number expressions within a stream of words. It recognizes

pytest 3.8.2 released!

2018-10-10 Thread Anthony Sottile
pytest 3.8.2 has just been released to PyPI. This is a bug-fix release, being a drop-in replacement. To upgrade:: pip install --upgrade pytest The full changelog is available at https://docs.pytest.org/en/latest/changelog.html. Thanks to all who contributed to this release, among them: *

[issue34866] CGI DOS vulnerability via long post list

2018-10-10 Thread Matthew Belisle
Matthew Belisle added the comment: Sorry, looks like I forgot to attach example.py. Attaching now. -- Added file: https://bugs.python.org/file47861/example.py ___ Python tracker

[issue34906] Fix typo in the documentation

2018-10-10 Thread Julien Palard
Change by Julien Palard : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34951] cookielib/cookiejar cookies' Expires date parse fails with long month names

2018-10-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. As far as I can see from the RFC month seems to follow three letter code. Is there a part of RFC where Python is not compliant? I can't find any related issues or RFC links allowing month format specified in the report. Can

Re: Python on 10.14 Mojave

2018-10-10 Thread Thomas Jollans
On 2018-10-10 14:52, Kevin Walzer wrote: > I'm trying to build Python 3.7.0 on macOS 10.14, and Tkinter is not > linking to my installation of Tcl/Tk 8.6.8 in /Library/Frameworks. > Instead it is linking to the ancient 8.5 Tk installed in > /System/Library/Frameworks. My usual way of forcing

Python doesn't install

2018-10-10 Thread daankahmann01
Hi Guys! I have an annoying problem, I can download Python (from python.org) but it won't install on my laptop. If I try to open the installer, it closes again. I also don't get a error message. I'm using windows 10. I already tried most of the obvious things like restarting, deleting the

[issue34906] Fix typo in the documentation

2018-10-10 Thread Julien Palard
Julien Palard added the comment: New changeset e7ebf1453beb1a40e65630897fa1e35a3c2d3ec1 by Julien Palard (Stéphane Wirtel) in branch '3.6': [3.6] bpo-34906: Doc: Fix typos (2) (GH-9735) https://github.com/python/cpython/commit/e7ebf1453beb1a40e65630897fa1e35a3c2d3ec1 --

[issue34948] Document __warningregister__

2018-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And this case looks like playing with implementation details. The official way to make the specified warning emitted more than once is to use warnings.filterwarnings(): >>> import warnings >>> warnings.filterwarnings('always', "NOBODY expects the Spanish

[issue34906] Fix typo in the documentation

2018-10-10 Thread Julien Palard
Julien Palard added the comment: New changeset a4910c2498b1d6ad61d5ae34ba991d61d6a3 by Julien Palard (Stéphane Wirtel) in branch '3.7': [3.7] bpo-34906: Doc: Fix typos (2) (GH-9735) https://github.com/python/cpython/commit/a4910c2498b1d6ad61d5ae34ba991d61d6a3 --

[issue34951] cookielib/cookiejar cookies' Expires date parse fails with long month names

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

[issue34839] doctest: Change example under warnings section

2018-10-10 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Raymond and Tim, I just updated the PR with your recommendations. Have a nice day, -- ___ Python tracker ___

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2018-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After implementing PEP 565, are there reasons to keep this issue open? -- status: open -> pending ___ Python tracker ___

[issue34952] Problems with the warningregistry() decorator in Lib/unittest/test/test_loader.py

2018-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The decorator was added in issue16662. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34952] Problems with the warningregistry() decorator in Lib/unittest/test/test_loader.py

2018-10-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There are other issues in the warningregistry() decorator in Lib/unittest/test/test_loader.py. It contains a code: missing = [] saved = getattr(warnings, '__warningregistry__', missing).copy() ... if saved is missing: The problem is

[issue23420] python -m cProfile -s fails with non informative message

2018-10-10 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >