[issue21720] "TypeError: Item in ``from list'' not a string" message

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >>> __import__('encodings', fromlist=iter(('aliases', b'foobar'))) -- ___ Python tracker

[issue21720] "TypeError: Item in ``from list'' not a string" message

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think the index in error message is needed. Unlike to str.join() which accepts arbitrary iterables of arbitrary names, the fromlist usually is a short tuple. Interesting, what happen if the fromlist is not a list or

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2017-10-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes, we could memcpy things around to obtain the desired alignment. It would be nicer to have a builtin solution, though. -- ___ Python tracker

[issue29116] Make str and bytes error messages on concatenation conform with other sequences

2017-10-24 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: -4084 ___ Python tracker ___ ___

[issue29116] Make str and bytes error messages on concatenation conform with other sequences

2017-10-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: In the future, I don't think this sort of thing should be backported. It isn't a bug, rather, it is a "thing x doesn't exactly look like thing y". -- ___ Python tracker

[issue29116] Make str and bytes error messages on concatenation conform with other sequences

2017-10-24 Thread Antoine Pietri
Change by Antoine Pietri : -- keywords: +patch pull_requests: +4084 stage: -> patch review ___ Python tracker ___

[issue30762] Misleading message “can't concat bytes to str”

2017-10-24 Thread Berker Peksag
Change by Berker Peksag : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue21720] "TypeError: Item in ``from list'' not a string" message

2017-10-24 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +4083 stage: needs patch -> patch review ___ Python tracker ___

[issue31865] html.unescape does not work as per documentation

2017-10-24 Thread Jun Hui Lee
New submission from Jun Hui Lee : html.unescape(s) Convert all named and numeric character references (e.g. , , ) But running this gives: >>> html.unescape(', , ') '>, >, ' -- assignee: docs@python components: Documentation messages: 304957 nosy: Jun Hui Lee,

[issue31845] PYTHONDONTWRITEBYTECODE and PYTHONOPTIMIZE have no effect

2017-10-24 Thread Nick Coghlan
Nick Coghlan added the comment: We could still use some more comprehensive test cases for the env var handling and the way that interacts with the command line settings, but the merged PR includes at least a rudimentary check for the four that directly affect sys.flags

[issue31845] PYTHONDONTWRITEBYTECODE and PYTHONOPTIMIZE have no effect

2017-10-24 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset d7ac06126db86f76ba92cbca4cb702852a321f78 by Nick Coghlan in branch 'master': bpo-31845: Fix reading flags from environment (GH-4105) https://github.com/python/cpython/commit/d7ac06126db86f76ba92cbca4cb702852a321f78 --

[issue21720] "TypeError: Item in ``from list'' not a string" message

2017-10-24 Thread Berker Peksag
Berker Peksag added the comment: issue21720_python3.diff hasn't been applied. I'll convert my issue21720_python3.diff patch to a pull request. I like the format of Nick's "".join() example in msg278794. Here's my proposal for Python 3: f"Item {i} in 'from list'

Re: h5py.File() gives error message

2017-10-24 Thread Rob Gaddi
On 10/24/2017 10:58 AM, C W wrote: Dear list, The following Python code gives an error message # Python code starts here: import numpy as np import h5py train_dataset = h5py.File('datasets/train_catvnoncat.h5', "r") # Python code ends The error message: train_dataset =

h5py.File() gives error message

2017-10-24 Thread C W
Dear list, The following Python code gives an error message # Python code starts here: import numpy as np import h5py train_dataset = h5py.File('datasets/train_catvnoncat.h5', "r") # Python code ends The error message: train_dataset = h5py.File('train_catvnoncat.h5', "r") Traceback (most

[issue30768] PyThread_acquire_lock_timed() should recompute the timeout when interrupted by a signal

2017-10-24 Thread STINNER Victor
STINNER Victor added the comment: Oh, the pthread condvar+mutex implementation still has the bug, so I reopen the issue. -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue30768] PyThread_acquire_lock_timed() should recompute the timeout when interrupted by a signal

2017-10-24 Thread STINNER Victor
STINNER Victor added the comment: I merged my PR. Thanks Antoine Pitrou for the review! This change only impacts the io.BufferedWriter and io.BufferedReader during Python finalization. It has no effect on theading.Lock.acquire(). It might impact

[issue30768] PyThread_acquire_lock_timed() should recompute the timeout when interrupted by a signal

2017-10-24 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30768] PyThread_acquire_lock_timed() should recompute the timeout when interrupted by a signal

2017-10-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 850a18e03e8f8309bc8c39adc6e7d51a4568cd9a by Victor Stinner in branch 'master': bpo-30768: Recompute timeout on interrupted lock (GH-4103) https://github.com/python/cpython/commit/850a18e03e8f8309bc8c39adc6e7d51a4568cd9a

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

2017-10-24 Thread Elvis Pranskevichus
Elvis Pranskevichus added the comment: I think that both the pyiso8601 and boxed/iso8601 implementations parse ISO 8601 strings incorrectly. The standard explicitly says that all truncated datetime strings are *reduced accuracy timestamps*. In other words, "2017-10" is

[issue31664] Add support of new crypt methods

2017-10-24 Thread STINNER Victor
STINNER Victor added the comment: Failure on s390x SLES 3.x: http://buildbot.python.org/all/#/builders/16/builds/65 == FAIL: test_invalid_log_rounds (test.test_crypt.CryptTestCase)

[issue31803] time.clock() should emit a DeprecationWarning

2017-10-24 Thread STINNER Victor
STINNER Victor added the comment: Marc-Andre: "Yes, to avoid yet another Python 2/3 difference. It should be replaced with the appropriate variant on Windows and non-Windows platforms. From Serhiy's response that's time.process_time() on non-Windows platforms and

[issue31864] datetime violates Postel's law

2017-10-24 Thread Ned Deily
Change by Ned Deily : -- resolution: -> third party status: open -> closed ___ Python tracker ___

Re: Compression of random binary data

2017-10-24 Thread Richard Damon
On 10/24/17 6:30 PM, Steve D'Aprano wrote: On Wed, 25 Oct 2017 07:09 am, Peter J. Holzer wrote: On 2017-10-23 04:21, Steve D'Aprano wrote: On Mon, 23 Oct 2017 02:29 pm, Stefan Ram wrote: If the probability of certain codes (either single codes, or sequences of

[issue31864] datetime violates Postel's law

2017-10-24 Thread Geoff Kuenning
Geoff Kuenning added the comment: Duh, my mistake. The problem is in dateutil, which AFAICT is indeed not part of the Python standard library. I'll hang my head in shame and go report the problem in the right place. -- resolution: third party -> status: closed ->

Re: Compression of random binary data

2017-10-24 Thread Chris Angelico
On Wed, Oct 25, 2017 at 9:11 AM, Steve D'Aprano wrote: > On Wed, 25 Oct 2017 02:40 am, Lele Gaifax wrote: > >> Steve D'Aprano writes: >> >>> But given an empty file, how do you distinguish the empty file you get >>> from 'music.mp3' and the

[issue31864] datetime violates Postel's law

2017-10-24 Thread R. David Murray
R. David Murray added the comment: I meant the python standard library datetime package doesn't parse files, of course :) Other parts of the stdlib certainly do parse files. -- ___ Python tracker

[issue31864] datetime violates Postel's law

2017-10-24 Thread R. David Murray
R. David Murray added the comment: The python standard library does not parse files, nor does it have a _parse_rfc message. You say you reported the problem you are having to "the program's maintainer", and that is appropriate. There does not appear to be anything in

[issue31864] datetime violates Postel's law

2017-10-24 Thread Geoff Kuenning
Change by Geoff Kuenning : -- components: +Library (Lib) type: -> behavior versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue31864] datetime violates Postel's law

2017-10-24 Thread Geoff Kuenning
New submission from Geoff Kuenning : The datetime package is too eager to reject nonconforming VCALENDAR-format files. The particular issue I encountered is related to time zones. RFC 5545 clearly states that the DTSTART field is required. However, there are situations

Re: Compression of random binary data

2017-10-24 Thread Steve D'Aprano
On Wed, 25 Oct 2017 07:09 am, Peter J. Holzer wrote: > On 2017-10-23 04:21, Steve D'Aprano wrote: >> On Mon, 23 Oct 2017 02:29 pm, Stefan Ram wrote: >>> >> If the probability of certain codes (either single codes, or sequences of >> codes) are non-equal, then you can

Re: Compression of random binary data

2017-10-24 Thread Steve D'Aprano
On Wed, 25 Oct 2017 02:40 am, Lele Gaifax wrote: > Steve D'Aprano writes: > >> But given an empty file, how do you distinguish the empty file you get >> from 'music.mp3' and the identical empty file you get from 'movie.avi'? > > That's simple enough: of course one

Re: Compression of random binary data

2017-10-24 Thread Ian Kelly
On Tue, Oct 24, 2017 at 12:20 AM, Gregory Ewing wrote: > danceswithnumb...@gmail.com wrote: >> >> I did that quite a while ago. 352,954 kb. > > > Are you sure? Does that include the size of all the > code, lookup tables, etc. needed to decompress it? My bet is that

Re: Compression of random binary data

2017-10-24 Thread Peter Pearson
On Tue, 24 Oct 2017 14:51:37 +1100, Steve D'Aprano wrote: On Tue, 24 Oct 2017 01:27 pm, danceswithnumb...@gmail.com wrote: > Yes! Decode reverse is easy..sorry so excited i could shout. Then this should be easy for you:

[issue25172] Unix-only crypt should not be present on Windows.

2017-10-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: -> needs patch type: -> behavior versions: +Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker

[issue28503] [Patch] '_crypt' module: fix implicit declaration of crypt(), use crypt_r() where available

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the performance of crypt_r() in comparison with crypt()? -- nosy: +serhiy.storchaka ___ Python tracker

[issue31702] Allow to specify the number of rounds for SHA-* hashing in crypt

2017-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'd raise a ValueError in that case. -- ___ Python tracker ___

[issue31803] time.clock() should emit a DeprecationWarning

2017-10-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 24.10.2017 11:23, STINNER Victor wrote: > > Marc-Andre Lemburg: "Thanks for pointing that out. I didn't know." > > Do you still think that we need to modify time.clock() rather than > deprecating it? Yes, to avoid yet another Python

[issue25287] test_crypt fails on OpenBSD

2017-10-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25287] test_crypt fails on OpenBSD

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 04c0a4038e8764f742de8505600b8ee97ee50776 by Serhiy Storchaka in branch '2.7': [2.7] bpo-25287: Backport new tests for crypt and skip test_crypt on OpenBSD. (GH-4111). (#4112)

[issue31690] Make RE "a", "L" and "u" inline flags local

2017-10-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31690] Make RE "a", "L" and "u" inline flags local

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3557b05c5a7dfd7d97ddfd3b79aefd53d25e5132 by Serhiy Storchaka in branch 'master': bpo-31690: Allow the inline flags "a", "L", and "u" to be used as group flags for RE. (#3885)

[issue25287] test_crypt fails on OpenBSD

2017-10-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4082 ___ Python tracker ___ ___

[issue25287] test_crypt fails on OpenBSD

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f52dff611cff2fb9e90340b4787eda50ab2d40c6 by Serhiy Storchaka in branch '3.6': bpo-25287: Backport new tests for crypt and skip test_crypt on OpenBSD. (#4111)

Re: Compression of random binary data

2017-10-24 Thread Peter J. Holzer
On 2017-10-23 04:21, Steve D'Aprano wrote: > On Mon, 23 Oct 2017 02:29 pm, Stefan Ram wrote: >> > If the probability of certain codes (either single codes, or sequences of > codes) are non-equal, then you can take advantage of that by encoding the > common cases into a

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Keep islice() non-converted. For the r parameter of permutations() use "r: object = None". -- ___ Python tracker

[issue25287] test_crypt fails on OpenBSD

2017-10-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4081 stage: -> patch review ___ Python tracker ___

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2017-10-24 Thread Tal Einat
Tal Einat added the comment: What about islice? Does AC now support complex enough signatures to support it? If not, should I leave the comment as is? -- ___ Python tracker

Re: right list for SIGABRT python binary question ?

2017-10-24 Thread M.-A. Lemburg
On 22.10.2017 22:15, Karsten Hilbert wrote: > On Sat, Oct 21, 2017 at 07:10:31PM +0200, M.-A. Lemburg wrote: > >>> Running a debug build of py27 gave me a first lead: this >>> Debian system (Testing, upgraded all the way from various >>> releases ago) carries an incompatible mxDateTime which

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: All correct. The final patch should be in the form of GitHub PR. Don't specify the self parameter explicitly, just rename the corresponding variable. The rest of the patch LGTM. --

[issue9305] Don't use east/west of UTC in date/time documentation

2017-10-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: Would one of the original authors of the patches like to create a GitHub pull request for this issue? -- nosy: +csabella ___ Python tracker

[issue31702] Allow to specify the number of rounds for SHA-* hashing in crypt

2017-10-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4080 stage: -> patch review ___ Python tracker ___

[issue28281] Remove year limits from calendar

2017-10-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I submitted Mark's patch unchanged as PR 4109. If we don't hear from Mark, I will address my own comments and merge. -- ___ Python tracker

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-10-24 Thread Tal Einat
Tal Einat added the comment: I'd be happy to update the patches. I asked for a bit of clarification on what this entails in msg304931 on issue #20180, once that's clear I'll do the same for these patches and create PRs. -- ___

[issue28281] Remove year limits from calendar

2017-10-24 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- pull_requests: +4079 stage: commit review -> patch review ___ Python tracker ___

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2017-10-24 Thread Tal Einat
Tal Einat added the comment: Id be happy to update the itertools patch. I haven't been following AC work for quite a while. I would expect this to entail: 1. applying the patch to the master branch 2. merging any conflicts 3. running the clinic.py script again 4. review

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2017-10-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset fdd9b217c60b454ac6a82f02c8b0b551caeac88b by Alexander Belopolsky in branch 'master': Closes bpo-28292: Implemented Calendar.itermonthdays3() and itermonthdays4(). (#4079)

[issue25287] test_crypt fails on OpenBSD

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: issue31664 fixes test_crypt in 3.7. In other versions the test should be just skipped on OpenBSD. Blowfish is the only method supported on OpenBSD, but it was not supported by the Python's crypt module. --

[issue14518] Add bcrypt $2a$ to crypt.py

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The support of the Blowfish hashing (prefix '$2a$') has been added in issue31664. -- nosy: +serhiy.storchaka resolution: -> out of date stage: needs patch -> resolved status: pending -> closed superseder: -> Add

[issue31664] Add support of new crypt methods

2017-10-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31664] Add support of new crypt methods

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset eab3ff72ebe79416cc032b8508ae13332955a157 by Serhiy Storchaka in branch 'master': bpo-31664: Add support for the Blowfish method in crypt. (#3854)

[issue31861] aiter() and anext() built-in functions

2017-10-24 Thread Yury Selivanov
Yury Selivanov added the comment: > No, just this tracker issue, a PR and a reviewer. (Sorry, I can't review CPython code myself any more.) Alright, I'll work on a PR after PEP 55x. -- ___ Python tracker

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2017-10-24 Thread Stefan Krah
Stefan Krah added the comment: Since we have "#define PYMEM_FUNCS PYOBJ_FUNCS", I think extensions that use PyMem_Malloc() also won't get the glibc max_align_t alignment. But guess technically they should. -- nosy: +skrah ___

[issue31861] aiter() and anext() built-in functions

2017-10-24 Thread Guido van Rossum
Guido van Rossum added the comment: > do we need a PEP to add aiter() and anext() builtins? No, just this tracker issue, a PR and a reviewer. (Sorry, I can't review CPython code myself any more.) -- ___ Python tracker

[issue31861] aiter() and anext() built-in functions

2017-10-24 Thread Yury Selivanov
Yury Selivanov added the comment: Guido, do we need a PEP to add aiter() and anext() builtins? -- ___ Python tracker ___

[issue31861] aiter() and anext() built-in functions

2017-10-24 Thread Davide Rizzo
Change by Davide Rizzo : -- nosy: +gvanrossum, yselivanov ___ Python tracker ___ ___

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2017-10-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Can we use memcpy()? Hmm, perhaps. Do you want to try it out (and measure any performance degradation)? -- ___ Python tracker

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-10-24 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Ping. (this issue needs a decision on ignore_modules vs filter callback, and/or patch review) -- ___ Python tracker

[issue31863] Inconsistent returncode/exitcode for terminated child processes on Windows

2017-10-24 Thread Akos Kiss
New submission from Akos Kiss : I've been working with various approaches for running and terminating subprocesses on Windows and I've obtained surprisingly different results if I used different modules and ways of termination. Here is the script I wrote, it uses the

Re: Compression of random binary data

2017-10-24 Thread Tim Golden
On 24/10/2017 16:40, Lele Gaifax wrote: Steve D'Aprano writes: But given an empty file, how do you distinguish the empty file you get from 'music.mp3' and the identical empty file you get from 'movie.avi'? That's simple enough: of course one empty file would be

Re: Compression of random binary data

2017-10-24 Thread Lele Gaifax
Steve D'Aprano writes: > But given an empty file, how do you distinguish the empty file you get > from 'music.mp3' and the identical empty file you get from 'movie.avi'? That's simple enough: of course one empty file would be "music.mp3.zip.zip.zip", while the other

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2017-10-24 Thread STINNER Victor
STINNER Victor added the comment: Change by Antoine Pitrou: "versions: -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6" The undefined behaviour exists and should be fixed in Python 2.7 and 3.6, no? Can we use memcpy()? --

Re: choice of web-framework

2017-10-24 Thread John Black
In article , ros...@gmail.com says... > > On Tue, Oct 24, 2017 at 6:57 AM, Chris Warrick wrote: > > On 23 October 2017 at 21:37, John Black wrote: > >> Chris, thanks for all this detailed information. I

Re: choice of web-framework

2017-10-24 Thread justin walters
On Tue, Oct 24, 2017 at 4:14 AM, Chris Angelico wrote: > > (There are other ORMs than SQLAlchemy, of course; I can't recall the > exact syntax for Django's off the top of my head, but it's going to be > broadly similar to this.) > > ChrisA > -- >

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2017-10-24 Thread STINNER Victor
STINNER Victor added the comment: What matters when a Python object is allocated? The start of the PyObject structure, or the start of the PyGC_Head structure? Would it be possible to align the PyObject start? The simplest option is to store data which needs to be

[issue31862] Port the standard library to PEP 489 multiphase initialization

2017-10-24 Thread Marcel Plch
Change by Marcel Plch : -- keywords: +patch pull_requests: +4078 stage: -> patch review ___ Python tracker ___

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2017-10-24 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2017-10-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > My suggestion would be to pass alignof(type) into the allocator via macro. Do you mean using some new PyMem_ function? Or as as new tp_ field on the type declaration? -- ___ Python tracker

[issue31862] Port the standard library to PEP 489 multiphase initialization

2017-10-24 Thread Petr Viktorin
Petr Viktorin added the comment: FWIW, Marcel is an intern in my team, tasked to learn CPython internals by trying to improve subinterpreter support. If I don't comment on his issues it's because we discussed privately beforehand. --

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

2017-10-24 Thread Guido van Rossum
Guido van Rossum added the comment: I think this is very minor but if you two can agree that the code is right I think it's a nice little improvement, and I like that that particular test's usefulness is restored. PS. Long-term we should really build error recovery into

[issue31862] Port the standard library to PEP 489 multiphase initialization

2017-10-24 Thread Marcel Plch
New submission from Marcel Plch : PEP 489 introduced multiphase initialization of extension and built-in modules. Now, almost no module in the standard library supports this feature. This should be improved to prepare Python for better testing of subinterpreters. Many

[issue30817] Abort in PyErr_PrintEx() when no memory

2017-10-24 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30817] Abort in PyErr_PrintEx() when no memory

2017-10-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset d5d79545b73110b2f4c2b66d150409514e2ca8e0 by xdegaye in branch '3.6': [3.6] bpo-30817: Fix PyErr_PrintEx() when no memory (GH-2526). (#4107) https://github.com/python/cpython/commit/d5d79545b73110b2f4c2b66d150409514e2ca8e0

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2017-10-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: My suggestion would be to pass alignof(type) into the allocator via macro. Then the allocator could at least assert it's providing good enough alignment if not provide the correct alignment. I believe 16-byte alignment is special

[issue31834] BLAKE2: the (pure) SSE2 impl forced on x86_64 is slower than reference

2017-10-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Tue, Oct 24, 2017, at 00:25, Christian Heimes wrote: > > Christian Heimes added the comment: > > I'm pretty sure that your PR has disabled all SSE optimizations. AFAIK > gcc does not enable SSE3 and SSE4 on X86_64

[issue31430] [Windows][2.7] Python 2.7 compilation fails on mt.exe crashing with error code C0000005

2017-10-24 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +db3l ___ Python tracker ___ ___ Python-bugs-list

[issue30817] Abort in PyErr_PrintEx() when no memory

2017-10-24 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4077 ___ Python tracker ___ ___

Re: Compression of random binary data

2017-10-24 Thread Ben Bacarisse
Steve D'Aprano writes: > On Tue, 24 Oct 2017 06:46 pm, danceswithnumb...@gmail.com wrote: > >> Greg, you're very smart, but you are missing a big key. I'm not padding, >> you are still thinking inside the box, and will never solve this by doing >> so. Yes! At least

Re: Compression of random binary data

2017-10-24 Thread Ben Bacarisse
Steve D'Aprano writes: > On Tue, 24 Oct 2017 09:23 pm, Ben Bacarisse wrote: > >> Forget random data. For one thing it's hard to define, > > That bit is true. > >> but more importantly no one cares about it. > > But that's wrong. All generalisations are false. I

[issue31861] aiter() and anext() built-in functions

2017-10-24 Thread Davide Rizzo
New submission from Davide Rizzo : PEP 525 suggested that adding aiter() and anext() would need to wait until async __aiter__ is dropped in 3.7. Issue 31709 solved that, so now it would be possible to add them. -- components: Library (Lib) messages: 304910 nosy:

[issue31860] IDLE: Make font sample editable

2017-10-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4076 stage: -> patch review ___ Python tracker ___

[issue31860] IDLE: Make font sample editable

2017-10-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed patch makes the font sample in IDLE font configuration dialog editable. This allows users to test fonts with arbitrary samples. -- assignee: terry.reedy components: IDLE messages: 304909 nosy:

[issue31585] Refactor the enumerate.__next__ implementation

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added a patch for history. -- Added file: https://bugs.python.org/file47235/enum_next.diff ___ Python tracker

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tal, do you mind to update your patches and create pull requests? -- ___ Python tracker

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-10-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- Removed message: https://bugs.python.org/msg304906 ___ Python tracker ___

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tail, do you mind to update your patches and create pull requests? -- ___ Python tracker

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-10-24 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you, Thomas. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2017-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems Raymond have changed his mind about using Argument Clinic in itertools (msg302908). Tal, do you mind to update your itertools patch and create a pull request? -- ___ Python

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-10-24 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset e968bc735794a7123f28f26d68fdf5dc8c845280 by Yury Selivanov (Thomas Kluyver) in branch 'master': bpo-30639: Lazily compute repr for error (#2132)

Re: Installing tkinter on FreeBSD

2017-10-24 Thread Stephan Houben
Op 2017-10-23, Thomas Jollans schreef : > On 24/10/17 00:16, Dick Holmes wrote: >> I am trying to use tkinter on a FreeBSD system but the installed >> versions of Python (2.7 and 3.6) don't have thinter configured. I tried >> to download the source (no binaries available for

[issue31859] sharedctypes.RawArray initialization

2017-10-24 Thread Tim
New submission from Tim : In the initialization of a new `RawArray` the `size_or_initializer` parameter is tested for being an instance of `int`. When passing something like numpy.int64 here, the code crashes, because it does not recognize this as an integer. The

  1   2   >