[issue17972] inspect module docs omits many functions

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

[issue22355] inconsistent results with inspect.getsource / .getsourcelines

2018-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this issue is covered with issue35101. It has an open PR as per the proposed fix with tests : https://github.com/python/cpython/pull/10209/files -- nosy: +xtreak ___ Python tracker

[issue33000] IDLE Doc: Text consumes unlimited RAM, consoles likely not

2018-11-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33000] IDLE Doc: Text consumes unlimited RAM, consoles likely not

2018-11-06 Thread miss-islington
miss-islington added the comment: New changeset 25bd1073996f26ad4895d3eb2d09315361c3cc84 by Miss Islington (bot) in branch '3.6': bpo-33000: Document that IDLE's shell has no line limit. (GH-10373) https://github.com/python/cpython/commit/25bd1073996f26ad4895d3eb2d09315361c3cc84 --

[issue33000] IDLE Doc: Text consumes unlimited RAM, consoles likely not

2018-11-06 Thread miss-islington
miss-islington added the comment: New changeset 2b2a8c130ceb47842cfbd0c725b5b6599b26cf27 by Miss Islington (bot) in branch '3.7': bpo-33000: Document that IDLE's shell has no line limit. (GH-10373) https://github.com/python/cpython/commit/2b2a8c130ceb47842cfbd0c725b5b6599b26cf27 --

[issue33000] IDLE Doc: Text consumes unlimited RAM, consoles likely not

2018-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +9675 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33000] IDLE Doc: Text consumes unlimited RAM, consoles likely not

2018-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +9676 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33000] IDLE Doc: Text consumes unlimited RAM, consoles likely not

2018-11-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 76cd0c30d60961d1a10e2673834a455d2b51f695 by Terry Jan Reedy in branch 'master': bpo-33000: Document that IDLE's shell has no line limit. (#10373) https://github.com/python/cpython/commit/76cd0c30d60961d1a10e2673834a455d2b51f695 --

[issue33000] IDLE Doc: Text consumes unlimited RAM, consoles likely not

2018-11-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +9674 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2018-11-06 Thread Guido van Rossum
Guido van Rossum added the comment: Since this is how it works since 3.6, I think it's reasonable to make this part of the spec. For dictionary order we waited a release between implementing it that way and making it part of the spec; effectively we've already waited two releases (3.6 and

[issue35180] Ctypes segfault or TypeError tested for python2.7 and 3

2018-11-06 Thread Josh Rosenberg
Josh Rosenberg added the comment: As soon as you use ctypes, you sign up for all the security vulnerabilities, including denial of service, buffer overrun, use-after-free, etc. that plain old C programs are subject to. In this case, it's just a NULL pointer dereference (read: segfault in

[issue33529] Infinite loop on folding email if headers has no spaces

2018-11-06 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +9673 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2018-11-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I would kindly suggest waiting until there is some consensus on this before doing any Pull Request. -- ___ Python tracker ___

[issue33678] selector_events.BaseSelectorEventLoop.sock_connect should preserve socket type

2018-11-06 Thread Gus Goulart
Gus Goulart added the comment: This error seems to come from base_events.py, lines 142-145, and since it's an OS specific limitation, I can't see Sebastien's suggestion as a feasible solution. Maybe we could come up with something along the lines of the following patch. What do you think

[issue35170] 3.7.1 compile failure on CentOS 6.10; _ctypes did not build

2018-11-06 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: -> closed ___ Python tracker ___ ___

[issue35081] Move internal headers to Include/internal/

2018-11-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9fc57a384825530635ef5ec093a31d864ea14f7c by Victor Stinner in branch 'master': bpo-35081: Add pycore_fileutils.h (GH-10371) https://github.com/python/cpython/commit/9fc57a384825530635ef5ec093a31d864ea14f7c --

[issue35181] Doc: Namespace Packages: Inconsistent documentation of __loader__ being None

2018-11-06 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35170] 3.7.1 compile failure on CentOS 6.10; _ctypes did not build

2018-11-06 Thread lana.deere
lana.deere added the comment: I did 'yum install libffi-devel' on my machine as suggested and that cured the ctypes issue. This issue can be closed; if I run into any other problems I can open other issues for them. -- ___ Python tracker

[issue35179] Limit max sendfile chunk to 0x7ffff000

2018-11-06 Thread STINNER Victor
STINNER Victor added the comment: > I've checked it, everything works as Victor described. Yeah! That's great when it just works! -- ___ Python tracker ___

[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2018-11-06 Thread Pekka Klärck
Pekka Klärck added the comment: Haven't created a PR yet. Go ahead and great one if you have time Luna! We'd need a decision about this too, but if the decision is no, then it would nevertheless be a good idea to mention in the docs that the order is not guaranteed. --

[issue34655] Support sendfile in asyncio streams API

2018-11-06 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35179] Limit max sendfile chunk to 0x7ffff000

2018-11-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: My initial thought was that os.sendfile() raises OSError on sending more than 0x7fff_f000 but I was wrong. I've checked it, everything works as Victor described. Thank you guys for the feedback. -- resolution: -> not a bug stage: -> resolved

[issue35181] Doc: Namespace Packages: Inconsistent documentation of __loader__ being None

2018-11-06 Thread Julien Palard
New submission from Julien Palard : The documentation states that a __loader__ of a namespace package should be None: - [1] "For namespace packages this should be set to None." - [2] "To indicate to the import machinery that the spec represents a namespace portion. the path entry finder sets

[issue23220] IDLE: Document how Shell displays user code output

2018-11-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I merged a first edition of the new section. It does not include Mac behavior, so will need revision. But I want to do some experiments with tk/inter on various systems before doing so. -- dependencies: +IDLE Doc: Text consumes unlimited RAM,

[issue35081] Move internal headers to Include/internal/

2018-11-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9672 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35179] Limit max sendfile chunk to 0x7ffff000

2018-11-06 Thread STINNER Victor
STINNER Victor added the comment: The manual page says: sendfile() will transfer at most 0x7000 (2,147,479,552) bytes, returning the number of bytes actually transferred. (This is true on both 32-bit and 64-bit systems.) I understand that you can pass a

[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2018-11-06 Thread Luna Chen
Luna Chen added the comment: Hi Pekka Klärck, I would like to work on this issue and make a PR if you haven't done it yet. Thanks!:) -- nosy: +BNMetrics ___ Python tracker

[issue35179] Limit max sendfile chunk to 0x7ffff000

2018-11-06 Thread STINNER Victor
STINNER Victor added the comment: > In that case I think asyncio's sendfile() should simply do the math to > transmit that many bytes by taking into account that os.sendfile() may return > less bytes than requested. The internal sendfile() implementation in asyncio already loops until all

[issue35179] Limit max sendfile chunk to 0x7ffff000

2018-11-06 Thread STINNER Victor
STINNER Victor added the comment: os.write(data) can write less than len(data) bytes. It's by contract, as socket.send(data) can send less than len(data). It is used to truncated the length argument to INT_MAX, to be able to cast it to an int on Windows. Extract of _Py_write(): #ifdef

[issue35179] Limit max sendfile chunk to 0x7ffff000

2018-11-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Do you mean raising an exception if "count" argument is passed and > 2,147,479,552? In that case I think asyncio's sendfile() should simply do the math to transmit that many bytes by taking into account that os.sendfile() may return less bytes than

[issue35178] Typo/trivial mistake in warnings.py (may be related to 2.x to 3.x conversion)

2018-11-06 Thread STINNER Victor
STINNER Victor added the comment: > Typo/trivial mistake in warnings.py (may be related to 2.x to 3.x conversion) It's not a typo: it's that my change now requires the last argument of formatwarning() to be a keyword argument called 'line'. The error comes from numpy. But I'm fine to now

[issue35170] 3.7.1 compile failure on CentOS 6.10; _ctypes did not build

2018-11-06 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: The in-tree copy of libffi was removed in #27979 (between 3.6 and 3.7) for all platforms except Windows and macOS. Therefore, you need libffi development package installed in your system to build CPython 3.7. As for PIP, personally, I think that's an

[issue22393] multiprocessing.Pool shouldn't hang forever if a worker process dies unexpectedly

2018-11-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: You should start from master. Bugfixes can backported afterwards if appropriate. Thanks! -- ___ Python tracker ___

[issue34155] email.utils.parseaddr mistakenly parse an email

2018-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Ah sorry, I was typing so long and had an idle session that I didn't realize @r.david.murray added a comment with the explanation. Just to add I tried using Perl module (https://metacpan.org/release/Email-Address) that uses regex for parsing that

[issue22393] multiprocessing.Pool shouldn't hang forever if a worker process dies unexpectedly

2018-11-06 Thread Oscar Esteban
Oscar Esteban added the comment: Hi Antoine, I may take a stab at it. Before I start, should I branch from master or from 3.7.1 (as 3.7 is still accepting bugfixes). Best, Oscar -- ___ Python tracker

[issue34155] email.utils.parseaddr mistakenly parse an email

2018-11-06 Thread Mark Sapiro
Mark Sapiro added the comment: I agree that my example with an @ in the 'display name', although actually seen in the wild, is non-compliant, and that the behavior of parseaddr() in this case is not a bug. Sorry for the noise. -- ___ Python

[issue34155] email.utils.parseaddr mistakenly parse an email

2018-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this a case of realname having @ inside an unquoted string? As I can see from the RFC the acceptable characters of an atom other than alphabets and digits that comprises a phrase are ['!', '#', '$', '%', '&', "'", '*', '+', '-', '/', '=', '?',

[issue17560] problem using multiprocessing with really big objects?

2018-11-06 Thread Antoine Pitrou
Change by Antoine Pitrou : -- assignee: davin -> resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.7 ___ Python tracker

[issue17560] problem using multiprocessing with really big objects?

2018-11-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset bccacd19fa7b56dcf2fbfab15992b6b94abb by Antoine Pitrou (Alexander Buchkovsky) in branch 'master': bpo-17560: Too small type for struct.pack/unpack in mutliprocessing.Connection (GH-10305)

[issue30455] Generate all tokens related code and docs from Grammar/Tokens

2018-11-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: Generate C code from token.py and not vice versa -> Generate all tokens related code and docs from Grammar/Tokens versions: +Python 3.8 -Python 3.7 ___ Python tracker

[issue34155] email.utils.parseaddr mistakenly parse an email

2018-11-06 Thread R. David Murray
R. David Murray added the comment: The formatting of that doctest paragraph got messed up. Let me try again: >>> m = message_from_string("From: John Doe j...@example.com \n\n", policy=default) >>> m['From'].addresses (Address(display_name='', username='John Doe jdoe',

[issue34155] email.utils.parseaddr mistakenly parse an email

2018-11-06 Thread R. David Murray
R. David Murray added the comment: >>> m = message_from_string("From: John Doe j...@example.com >>> \n\n", policy=default) >>> m['From'].addresses(Address(display_name='', username='John Doe jdoe', domain='example.com'),) The new policies have more error recovery for non-RFC compliant

[issue30455] Generate C code from token.py and not vice versa

2018-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Alternate PR 10370 generates all files from a single file Grammar/Tokens using a single script Tools/scripts/generate_token.py. In addition, the script doesn't write files when the content is not changed. Thus it can be used with read-only sources.

[issue30455] Generate C code from token.py and not vice versa

2018-11-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9671 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23220] IDLE: Document how Shell displays user code output

2018-11-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 7476fefb65075161d57435c8dd7e92437578d3c1 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': bpo-23220: Explain how IDLE's Shell displays output (GH-10356) (#10369)

[issue35169] Improve error messages for assignment

2018-11-06 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23220] IDLE: Document how Shell displays user code output

2018-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +9670 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23220] IDLE: Document how Shell displays user code output

2018-11-06 Thread miss-islington
miss-islington added the comment: New changeset 34fcee9ed81c954d6418241ad546f71e103d3b9b by Miss Islington (bot) in branch '3.7': bpo-23220: Explain how IDLE's Shell displays output (GH-10356) https://github.com/python/cpython/commit/34fcee9ed81c954d6418241ad546f71e103d3b9b --

[issue9731] Add ABCMeta.has_methods and tests that use it

2018-11-06 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23220] IDLE: Document how Shell displays user code output

2018-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +9669 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34155] email.utils.parseaddr mistakenly parse an email

2018-11-06 Thread Mark Sapiro
Mark Sapiro added the comment: The issue is illustrated much more simply as follows: email.utils.parseaddr('John Doe j...@example.com ') returns ('', 'John Doe j...@example.com') whereas it should return ('John Doe j...@example.com', 'ot...@example.net') I'll look at developing a patch.

[issue22021] shutil.make_archive() root_dir do not work

2018-11-06 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +9668 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue22021] shutil.make_archive() root_dir do not work

2018-11-06 Thread Tobias Kunze
Tobias Kunze added the comment: Yes, this is a documentation issue: A patch clarifying what root_dir and base_dir do, and how they interact (or how they are to be used in combination) would be sufficient to close this issue. -- ___ Python tracker

[issue23220] IDLE: Document how Shell displays user code output

2018-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +9667 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23220] IDLE: Document how Shell displays user code output

2018-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +9666 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23220] IDLE: Document how Shell displays user code output

2018-11-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 75d9d59ab3a372d3d78e6a1f5e9f256e29d0a9a6 by Terry Jan Reedy in branch 'master': bpo-23220: Explain how IDLE's Shell displays output (GH-10356) https://github.com/python/cpython/commit/75d9d59ab3a372d3d78e6a1f5e9f256e29d0a9a6 --

[issue35180] Ctypes segfault or TypeError tested for python2.7 and 3

2018-11-06 Thread Bob
Bob added the comment: Hi Josh thanks for answering me and so quick. So if I understood correctly, by inserting an unexpected and unchecked on value, it could lead to a potential vulnerability in the program? Or just a plain failure (which could be a denial of service also)? Thanks again.

[issue35180] Ctypes segfault or TypeError tested for python2.7 and 3

2018-11-06 Thread Josh Rosenberg
Josh Rosenberg added the comment: The TypeError on Py3 would be because functions taking c_char_p need bytes-like objects, not str, on Python 3. '%s' % directory is pointless when directory is a str; instead you need to encode it to a bytes-like object, e.g. opendir(os.fsencode(directory))

[issue35180] Ctypes segfault or TypeError tested for python2.7 and 3

2018-11-06 Thread Bob
New submission from Bob : ~Description of the problem: I was using ctypes to get a directory file descriptor, and to do so I found this mailing list (https://lists.gt.net/python/dev/696028) from 2008 where a user wrote a piece that could do what the asking user and me were looking for. What

[issue35179] Limit max sendfile chunk to 0x7ffff000

2018-11-06 Thread Andrew Svetlov
Change by Andrew Svetlov : -- nosy: +giampaolo.rodola -ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list

[issue35179] Limit max sendfile chunk to 0x7ffff000

2018-11-06 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +Library (Lib), asyncio -macOS nosy: +yselivanov ___ Python tracker ___ ___

[issue35179] Limit max sendfile chunk to 0x7ffff000

2018-11-06 Thread Andrew Svetlov
New submission from Andrew Svetlov : On Linux maximum data size for sendfile call is 0x7000: sendfile() will transfer at most 0x7000 (2,147,479,552) bytes, returning the number of bytes actually transferred. (This is true on both 32-bit and 64-bit systems.) Limiting max block

[issue22021] shutil.make_archive() root_dir do not work

2018-11-06 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Since Serhiy said that this is a pure documentation issue, I thought that a doc PR is all that was needed, which I would be happy to make. Am I missing something here? -- ___ Python tracker

[issue35178] Typo/trivial mistake in warnings.py (may be related to 2.x to 3.x conversion)

2018-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This may be a consequence of issue26568. -- nosy: +serhiy.storchaka, vstinner ___ Python tracker ___

[issue35081] Move internal headers to Include/internal/

2018-11-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9664 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35178] Typo/trivial mistake in warnings.py (may be related to 2.x to 3.x conversion)

2018-11-06 Thread Tashrif Billah
New submission from Tashrif Billah : ``` 2018-11-06 09:51:27,314 /home/tb571/Downloads/pnlpipe/pnlscripts/wmql.py DEBUG Running ['/home/tb571/Downloads/pnlpipe/soft_dir/tract_querier-c57d670/scripts/tract_math',

[issue35081] Move internal headers to Include/internal/

2018-11-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5ed6995675b084fe583b71f96fdde4413bb2a77b by Victor Stinner in branch 'master': bpo-35081: Add _PyCoreConfig_AsDict() (GH-10362) https://github.com/python/cpython/commit/5ed6995675b084fe583b71f96fdde4413bb2a77b --

[issue35168] shlex punctuation_chars inconsistency

2018-11-06 Thread tphh
tphh added the comment: So a documentation update and a better run time error message which clarifies that shlex.punctuation_chars is read-only? -- ___ Python tracker ___

[issue35081] Move internal headers to Include/internal/

2018-11-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9662 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35176] for loop range bug

2018-11-06 Thread Dan Armentrout
Dan Armentrout added the comment: Thank you for your quick explanation of this to me. Dan On Tue, Nov 6, 2018 at 8:04 AM Steven D'Aprano wrote: > > Steven D'Aprano added the comment: > > This is not a bug, this is standard behaviour, working as designed. > > 'a' is not a copy of the list

[issue35177] Add missing dependencies between AST/parser header files

2018-11-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +9661 stage: -> patch review ___ Python tracker ___ ___

[issue35177] Add missing dependencies between AST/parser header files

2018-11-06 Thread STINNER Victor
New submission from STINNER Victor : Currently, there are *implicit* dependencies between AST/parser header files. For example, ast.h uses node and mod_ty types but don't include node.h nor Python-ast.h. And parsetok.h uses node and grammer but don't include nor grammar.h. Because of that,

[issue35176] for loop range bug

2018-11-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug, this is standard behaviour, working as designed. 'a' is not a copy of the list 'x', 'a' is another name for the same list as 'x'. Any in-place modifications you make to 'a' happens to the object itself, the list, which is visible

[issue35176] for loop range bug

2018-11-06 Thread Dan Armentrout
New submission from Dan Armentrout : If you run the following code: x=[3,4,5] a=x for i in range(0,len(a)): a[i]=0 All x values are changed to equal a. -- components: Windows messages: 329357 nosy: darmentr, paul.moore, steve.dower, tim.golden, zach.ware priority: normal

[issue35175] Builtin function all() is handling dict() types in a weird way.

2018-11-06 Thread Josh Rosenberg
Change by Josh Rosenberg : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35175] Builtin function all() is handling dict() types in a weird way.

2018-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Dictionary iterates over keys and this is expected behavior. If you need to iterate by values you should use dict().values() $ python3 -c 'for i in dict(a=1): print(i)' a $ python3 -c 'print(all(dict(a=False)))' # Iterate by keys and thus 'a' is

[issue22021] shutil.make_archive() root_dir do not work

2018-11-06 Thread STINNER Victor
STINNER Victor added the comment: > Is anybody working on this or can I submit a PR? Yes: Joannah Nanjekye wrote PR 10191 (from Issue22021.patch) which has been rejected. This issue is more complex from what it looks. -- ___ Python tracker

[issue35175] Builtin function all() is handling dict() types in a weird way.

2018-11-06 Thread Daniel Stoinov
New submission from Daniel Stoinov : When a dictionary is passed to all() function, it iterates the keys instead of the values. -- files: all-dict-example.py messages: 329354 nosy: stnv priority: normal severity: normal status: open title: Builtin function all() is handling dict()

[issue34205] Ansible: _PyImport_LoadDynamicModuleWithSpec() crash on an invalid object (UNREF invalid object)

2018-11-06 Thread Julien Palard
Julien Palard added the comment: Can't reproduce in 3.6.7. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue35174] Calling for super().__str__ seems to call self.__repr__ in list subclass

2018-11-06 Thread Camion
Camion added the comment: @Serhiy Storchaka, this doesn't seem logical, is certainly counter intuitive, and I fear there is a lack of expressivity. - first of all, this is NOT about having str and repr returning the same at all, but about building the same _kind of_ structure

[issue34589] Py_Initialize() and Py_Main() should not enable C locale coercion

2018-11-06 Thread Nick Coghlan
Nick Coghlan added the comment: The discussion with Victor on https://bugs.python.org/issue34914 highlighted the fact that it's OK to use 8-bit string comparisons to check for "-E", "-I", and a "-X coerce_legacy_c_locale=0" due to the fact that all encodings used as locale encodings are

[issue35145] sqlite3: "select *" should optionally sniff and autoconvert TEXT datetime fields

2018-11-06 Thread Robert Pollak
Robert Pollak added the comment: Here is now a reduced version of my real use case: 2017v2-reduced.db. The file was originally created with "Oracle DBConvert". This file contains a table without rows. I was wrong in my last comment: There's also no sniffing needed here, see either of the

[issue35015] availability directive breaks po files

2018-11-06 Thread Julien Palard
Change by Julien Palard : -- keywords: +patch pull_requests: +9660 stage: -> patch review ___ Python tracker ___ ___