[issue33460] "..." is used to confusingly indicate many different things in chapter 3

2018-11-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15245] ast.literal_eval fails on some literals

2018-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ast.literal_eval('...') works in 3.8. The question is should we make it working in older versions? -- nosy: +serhiy.storchaka ___ Python tracker

[issue35166] BUILD_MAP_UNPACK doesn't function as expected for dict subclasses

2018-11-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: How weird... after restarting the interpreter, I can't reproduce that TypeError. I get the AssertionError Serhiy showed. -- ___ Python tracker

[issue35166] BUILD_MAP_UNPACK doesn't function as expected for dict subclasses

2018-11-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: You say it doesn't work as expected, but you don't say what you expect or why. (Don't make me guess what you mean -- explicit is better than implicit.) When I try your subclass in 3.6, I get an unexpected TypeError: py> class Dict(dict): ... def

[issue35166] BUILD_MAP_UNPACK doesn't function as expected for dict subclasses

2018-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Traceback (most recent call last): File "", line 1, in File "", line 2, in keys AssertionError This works as expected to me. -- nosy: +serhiy.storchaka ___ Python tracker

[issue35166] BUILD_MAP_UNPACK doesn't function as expected for dict subclasses

2018-11-04 Thread Dan Snider
New submission from Dan Snider : >>> class Dict(dict): def keys(self): assert 0 def update(*args, **kwds): assert 0 def __getitem__(self, key): assert 0 def __iter__(self): assert 0 >>> {**Dict(a=1)} {'a': 1} The opcode uses PyDict_Update,

[issue10536] Enhancements to gettext docs

2018-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is worth to enhance documentation for other versions too. See also my comments on GitHub. -- ___ Python tracker ___

[issue9842] Document ... used in recursive repr of containers

2018-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 10330 adds few references for using an ellipsis as a placeholder. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue9842] Document ... used in recursive repr of containers

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

[issue29183] Unintuitive error handling in wsgiref when a crash happens in write() or close()

2018-11-04 Thread Chris Jerdonek
Chris Jerdonek added the comment: This may or may not be the same as what you're suggesting, Martin. But is another option to make close() a no-op if it is called a second time? Otherwise, it seems we'd need to make sure that no code path can result in close() being called twice (even

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

2018-11-04 Thread Jonathan Gossage
Change by Jonathan Gossage : -- pull_requests: +9633 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35018] Sax parser provides no user access to lexical handlers

2018-11-04 Thread Jonathan Gossage
Change by Jonathan Gossage : -- keywords: +patch pull_requests: +9631 stage: -> patch review ___ Python tracker ___ ___

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2018-11-04 Thread Jonathan Gossage
Change by Jonathan Gossage : -- pull_requests: +9632 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32285] In `unicodedata`, it should be possible to check a unistr's normal form without necessarily copying it

2018-11-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 2810dd7be9876236f74ac80716d113572c9098dd by Benjamin Peterson (Max Bélanger) in branch 'master': closes bpo-32285: Add unicodedata.is_normalized. (GH-4806) https://github.com/python/cpython/commit/2810dd7be9876236f74ac80716d113572c9098dd

[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-11-04 Thread Elvis Pranskevichus
Elvis Pranskevichus added the comment: https://github.com/python/cpython/pull/10327 fixes the remaining test failures. -- ___ Python tracker ___

[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-11-04 Thread Elvis Pranskevichus
Change by Elvis Pranskevichus : -- pull_requests: +9630 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35165] Possible wrong method name in attribute references doc

2018-11-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: https://docs.python.org/3/reference/expressions.html#attribute-references __getattr__ is the correct method to override in most (but not all) cases. I don't think we should encourage people to override __getattribute__ as the first resort.

[issue19675] Pool dies with excessive workers, but does not cleanup

2018-11-04 Thread ppperry
Change by ppperry : -- nosy: -ppperry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19675] Pool dies with excessive workers, but does not cleanup

2018-11-04 Thread Julien Palard
Julien Palard added the comment: New changeset 5d236cafd7126e640fb25541fcc7e0a494450143 by Julien Palard in branch 'master': bpo-19675: Terminate processes if construction of a pool is failing. (GH-5614) https://github.com/python/cpython/commit/5d236cafd7126e640fb25541fcc7e0a494450143

[issue9842] Document ... used in recursive repr of containers

2018-11-04 Thread miss-islington
miss-islington added the comment: New changeset b4db249c9544fc4425c32feb86d610f3224ca3d8 by Miss Islington (bot) (Pablo Galindo) in branch 'master': bpo-9842: Add cross-reference to the ellipsis object (GH-4063)

[issue35118] Add peek() or first() method in queue

2018-11-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35118] Add peek() or first() method in queue

2018-11-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 98b85354153883b0a080f678f213729cd0764fee by Raymond Hettinger (Windson yang) in branch 'master': bpo-35118: Improve docs regarding indexing (GH-10265) https://github.com/python/cpython/commit/98b85354153883b0a080f678f213729cd0764fee

[issue10536] Enhancements to gettext docs

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

[issue10536] Enhancements to gettext docs

2018-11-04 Thread Julien Palard
Julien Palard added the comment: New changeset 55f3317e984cc35bd18ba0326ed98766a2750ffd by Julien Palard (Stéphane Wirtel) in branch 'master': bpo-10536: Enhancements to gettext docs (GH-10324) https://github.com/python/cpython/commit/55f3317e984cc35bd18ba0326ed98766a2750ffd --

[issue35034] Add closing and iteration to threading.Queue

2018-11-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've put some more thought into this and have discussed it with another core developer. While the idea was inspired, I think we should decline the API expansion. When I last talked with Guido about this module, he opined that he didn't want to module

[issue31887] docs for email.generator are missing a comment on special multipart/signed handling

2018-11-04 Thread miss-islington
miss-islington added the comment: New changeset 622935d9a69d12e125e470ce9a9ff3cad9e8e296 by Miss Islington (bot) (Saptak Sengupta) in branch 'master': bpo-31887: Adds documentations for special multipart/signed handling (GH-4268)

[issue31873] Inconsistent capitalization of proper noun - Unicode.

2018-11-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: If you want to do this correctly, you have to check each case: * if "unicode object" refers to a C PyUnicode object, it's probably better to use "PyUnicode object" * if "unicode object" refers to a C PyObject object, with type "unicode", it's probably

[issue30999] statistics module: add "key" keyword argument to median, mode, ...

2018-11-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: This issue (as originally proposed) should be closed. A key function for median() and mode() likely isn't a good idea. Those two functions should be kept parallel with mean() as returning simple descriptive statistics. Work towards a select()

[issue24916] In sysconfig, don't rely on sys.version format

2018-11-04 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Following up on https://github.com/python/cpython/pull/10321#discussion_r230604393 I would like to summarise here what's been going on, in order to move the discussion here forward. I've tried to make a PR for this issue, in which _PY_VERSION in

[issue31873] Inconsistent capitalization of proper noun - Unicode.

2018-11-04 Thread Julien Palard
Julien Palard added the comment: Currently in our documentation there's 89 "Unicode obj" vs 8 "unicode obj" so I'll go for it. -- nosy: +mdk ___ Python tracker ___

[issue21263] test_gdb failures on os x 10.9.2

2018-11-04 Thread Ned Deily
Ned Deily added the comment: Thanks, everyone! Fixed for 3.8.0, 3.7.2, and 3.6.8. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.5 ___ Python tracker

[issue21263] test_gdb failures on os x 10.9.2

2018-11-04 Thread Ned Deily
Ned Deily added the comment: New changeset f574ce79729ecb01f1f5b3e1a34c8aa7480b79e8 by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-21263: Skip test_gdb when python has been compiled with LLVM clang (GH-10318) (GH-10326)

[issue21263] test_gdb failures on os x 10.9.2

2018-11-04 Thread Ned Deily
Ned Deily added the comment: New changeset 96fb350bfd2c9b66d7804ae27ea8c4adbfabad5b by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-21263: Skip test_gdb when python has been compiled with LLVM clang (GH-10318) (GH-10325)

[issue25410] Clean up and fix OrderedDict

2018-11-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Maybe it's considered undefined behavior for a subclass to use > a method of one of its bases which it has overriden. In general, it's true that if OrderedDict is a subclass of dict, then it would have no defense against someone making a direct call to

[issue21263] test_gdb failures on os x 10.9.2

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

[issue21263] test_gdb failures on os x 10.9.2

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

[issue21263] test_gdb failures on os x 10.9.2

2018-11-04 Thread Ned Deily
Ned Deily added the comment: New changeset 59668aa8b7f174b59304eab833c1c1181886c3c6 by Ned Deily (Lysandros Nikolaou) in branch 'master': bpo-21263: Skip test_gdb when python has been compiled with LLVM clang (GH-10318)

[issue10536] Enhancements to gettext docs

2018-11-04 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10536] Enhancements to gettext docs

2018-11-04 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Serhiy & Éric, I have ported the patch to a PR for master (3.8). I have removed the double spaces and some useless diffs. You will find my diff file I have used for the PR. the git revision was 5d744a8855bb4d411e5f32cfd365f0581e30ef48 Author: Stefan Krah

[issue10536] Enhancements to gettext docs

2018-11-04 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +9627 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35159] Add a link to the devguide in the sidebar of the documentation

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

[issue35159] Add a link to the devguide in the sidebar of the documentation

2018-11-04 Thread Julien Palard
Julien Palard added the comment: New changeset 0edc7b1b1a2b22d4d200f80995454d01927bf93e by Julien Palard (Stéphane Wirtel) in branch 'master': bpo-35159: Add a link to the devguide in the sidebar of the index (Doc/) (GH-10316)

[issue35154] subprocess.list2cmdline() does not allow running some commands.

2018-11-04 Thread Eryk Sun
Eryk Sun added the comment: > he himself puts double quotes or calls CommandLineToArgvW CommandLineToArgvW has nothing to do with creating a command line for use with CreateProcess. It's used by a process to parse its own command line using the common VC++ rules. >

[issue30533] missing feature in inspect module: getmembers_static

2018-11-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: +1 from me too. issue35108 could help from this implementation where properties execute code that might cause runtime exception. Initially I tried using getattr_static inside getmembers at msg329254 but I think a separate function or an option to

[issue35108] inspect.getmembers passes exceptions from object's properties through

2018-11-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There are some relevant docs in the inspect module about properties triggering code execution and thus using getattr_static to fetch attributes. Ref : https://docs.python.org/3/library/inspect.html#fetching-attributes-statically . I tried the

[issue35154] subprocess.list2cmdline() does not allow running some commands.

2018-11-04 Thread Roffild
Roffild added the comment: Yes, the string with spaces must be enclosed in double quotes. But when a programmer calls CreateProcess(), he himself puts double quotes or calls CommandLineToArgvW(). subprocess.list2cmdline() is always called and can spoil the launch string. I propose to add

[issue10536] Enhancements to gettext docs

2018-11-04 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Serhyi and Eric, for which version of Python, only 2.7? or master, 3.6 & 3.7? -- nosy: +matrixise ___ Python tracker ___

[issue10536] Enhancements to gettext docs

2018-11-04 Thread Éric Araujo
Éric Araujo added the comment: I will try to find some time in the next month! -- ___ Python tracker ___ ___ Python-bugs-list

[issue33486] regen autotools related files

2018-11-04 Thread Ned Deily
Change by Ned Deily : -- pull_requests: -9626 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33486] regen autotools related files

2018-11-04 Thread Ned Deily
Change by Ned Deily : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33486] regen autotools related files

2018-11-04 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +9626 stage: commit review -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33486] regen autotools related files

2018-11-04 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Ned, thanks for this clarification -- nosy: +matrixise ___ Python tracker ___ ___

[issue33486] regen autotools related files

2018-11-04 Thread Ned Deily
Change by Ned Deily : -- resolution: fixed -> stage: resolved -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33486] regen autotools related files

2018-11-04 Thread Ned Deily
Ned Deily added the comment: If we are going to bump the tools version from 2.65 to 2.69 for master, we should probably bump them for all active branches. It creates confusion and makes backporting more difficult. Besides, it appears that, at the moment, the checked-in configure files for

[issue35119] Customizing module attribute access example raises RecursionError

2018-11-04 Thread Denis Osipov
Change by Denis Osipov : -- keywords: +patch pull_requests: +9625 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35163] locale: setlocale(..., 'eo') sets non-existing locale

2018-11-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2018-11-04 Thread Petter S
Petter S added the comment: > I think this is what Petter is trying to do in > . That's right. -- ___ Python tracker ___

[issue35157] Missing pyconfig.h when building from source and pgo flag is enabled

2018-11-04 Thread Jorge Ramos
Jorge Ramos added the comment: Hello: I followed the same command: PCBuild\build.bat -d -p x64 -r --pgo and in summary, it found 5 errors (the last part of this messages contains the PGInstrument|x64 interpreter verbose). I include a number between parenthesis to show the test number:

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2018-11-04 Thread Petter S
Change by Petter S : -- keywords: +patch pull_requests: +9624 stage: test needed -> patch review ___ Python tracker ___ ___

[issue35160] PyObjects initialized with PyObject_New have uninitialized pointers to set to 0x1

2018-11-04 Thread Serafeim Mellos
Serafeim Mellos added the comment: Ok, I understand your point about PyObject_New not initializing custom fields (although it looks like something is initializing the memory since it's not random, it's either 0x0 or 0x1). However, if that's the expected behavior, it's not very clear why

[issue31583] 2to3 call for file in current directory yields error

2018-11-04 Thread Denis Osipov
Change by Denis Osipov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35165] Possible wrong method name in attribute references doc

2018-11-04 Thread Denis Osipov
New submission from Denis Osipov : 6.3.1. Attribute references says: "The primary must evaluate to an object of a type that supports attribute references, which most objects do. This object is then asked to produce the attribute whose name is the identifier. This production can be customized

[issue35160] PyObjects initialized with PyObject_New have uninitialized pointers to set to 0x1

2018-11-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: PyObject_New is a low-level allocation function. It doesn't initialize anything but the type pointer and ref count. If you want a field to be NULL, set it to NULL. -- nosy: +benjamin.peterson resolution: -> not a bug stage: -> resolved status:

[issue35119] Customizing module attribute access example raises RecursionError

2018-11-04 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Ah, sorry, I didn't understand this was a documentation issue. Please feel free to submit a PR that fixes the example to use `super().__setattr__()`. -- resolution: not a bug -> stage: resolved -> needs patch status: closed -> open

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2018-11-04 Thread Sorin Sbarnea
Sorin Sbarnea added the comment: It seems that the bug is still present. There is some additional information on the new report https://bugs.python.org/issue35164 -- nosy: +ssbarnea ___ Python tracker

[issue35160] PyObjects initialized with PyObject_New have uninitialized pointers to set to 0x1

2018-11-04 Thread Serafeim Mellos
Serafeim Mellos added the comment: Actually, I'm not so sure it's related to memory management after all judging by this (but I don't really know how the compilation part is supposed to work :)): (gdb) watch *0x77ec0680 Hardware watchpoint 1: *0x77ec0680 (gdb) b Custom_dealloc

[issue35164] socket.getfqdn and socket.gethostbyname fail on MacOS

2018-11-04 Thread Ned Deily
Ned Deily added the comment: See also Issue29705. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35119] Customizing module attribute access example raises RecursionError

2018-11-04 Thread Denis Osipov
Denis Osipov added the comment: I understand that it's expected behavior. But why don't use completely working example in the docs, which one could just copy and paste? It requires to add just seven chars) -- ___ Python tracker

[issue35164] socket.getfqdn and socket.gethostbyname fail on MacOS

2018-11-04 Thread Ned Deily
Ned Deily added the comment: Thanks for the report but I don't think the problem you are seeing is that simple. On my 10.14.1 system, I don't see that problem: $ scutil --get HostName HostName: not set $ /usr/local/bin/python3.7 Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 03:13:28) [Clang

[issue35164] socket.getfqdn and socket.gethostbyname fail on MacOS

2018-11-04 Thread Sorin Sbarnea
New submission from Sorin Sbarnea : It seems that when the MacOS machine does not have a FQDN name manually configured using `scutil`, python will be fail to resolve domain names and timeout after ~30 seconds. I mention that the DNS resolution works correctly on the machine and that the

[issue26660] tempfile.TemporaryDirectory() cleanup exception if nonwriteable or non-searchable files or directories created

2018-11-04 Thread Eryk Sun
Eryk Sun added the comment: > file mode and flags which can be set by os.chmod() and os.chflags() > by unprivileged user. I remembered incorrectly about chflags. It's not a single immutable flag, but several (depending on the OS). The owner or superuser can modify UF_IMMUTABLE,

[issue35163] locale: setlocale(..., 'eo') sets non-existing locale

2018-11-04 Thread Carmen Bianca Bakker
New submission from Carmen Bianca Bakker : See the following script: >>> import locale >>> locale.setlocale(locale.LC_ALL, 'eo') 'eo' >>> my_locale = locale.getlocale() >>> my_locale ('eo_XX', 'ISO8859-3') >>> locale.setlocale(locale.LC_ALL, my_locale) Traceback (most recent call last): File

[issue35161] ASAN: stack-use-after-scope in grp.getgr{nam, gid} and pwd.getpw{nam, uid}

2018-11-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35161] ASAN: stack-use-after-scope in grp.getgr{nam, gid} and pwd.getpw{nam, uid}

2018-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e359bc24b1f3a6ce311b9ef3043d1fdf5f1bf1cd by Serhiy Storchaka (Alexey Izbyshev) in branch 'master': bpo-35161: Fix stack-use-after-scope in grp.getgr{nam,gid} and pwd.getpw{nam,uid}. (GH-10319)

[issue24916] In sysconfig, don't rely on sys.version format

2018-11-04 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +9623 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35162] Inconsistent behaviour around __new__

2018-11-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Assigning and deleting __new__ attr on the class does not allow to create instances of this class ___ Python tracker

[issue35161] ASAN: stack-use-after-scope in grp.getgr{nam, gid} and pwd.getpw{nam, uid}

2018-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26660] tempfile.TemporaryDirectory() cleanup exception if nonwriteable or non-searchable files or directories created

2018-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 10320 solves problems with file mode and flags which can be set by os.chmod() and os.chflags() by unprivileged user. Was tested on Linux, FreeBSD and Windows. It doesn't solve problem when files was made immutable by chattr on Linux. --

[issue33275] glob.glob should explicitly note that results aren't sorted

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

[issue35162] Inconsistent behaviour around __new__

2018-11-04 Thread Barney Stratford
New submission from Barney Stratford : >>> class Eggs (object): ... def __init__ (self, number): ... self.__number = number ... def __repr__ (self): ... return "{} eggs".format (self.__number) ... >>> Eggs (4) 4 eggs >>> del Eggs.__new__ Traceback (most recent call last): File "", line

[issue35144] TemporaryDirectory clean-up fails with unsearchable directories

2018-11-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +9622 stage: -> patch review ___ Python tracker ___ ___

[issue26660] tempfile.TemporaryDirectory() cleanup exception if nonwriteable or non-searchable files or directories created

2018-11-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +9621 stage: -> patch review ___ Python tracker ___ ___

[issue26660] tempfile.TemporaryDirectory() cleanup exception if nonwriteable or non-searchable files or directories created

2018-11-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: tempfile.TemporaryDirectory() cleanup exception on Windows if readonly files created -> tempfile.TemporaryDirectory() cleanup exception if nonwriteable or non-searchable files or directories created versions: +Python 3.7, Python 3.8 -Python 3.5

[issue35161] ASAN: stack-use-after-scope in grp.getgr{nam, gid} and pwd.getpw{nam, uid}

2018-11-04 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +9620 stage: -> patch review ___ Python tracker ___ ___

[issue35161] ASAN: stack-use-after-scope in grp.getgr{nam, gid} and pwd.getpw{nam, uid}

2018-11-04 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : ==24122==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7fffb1c62550 at pc 0x006ec66c bp 0x7fffb1c62450 sp 0x7fffb1c62448 READ of size 8 at 0x7fffb1c62550 thread T0 #0 0x6ec66b in mkpwent

[issue35160] PyObjects initialized with PyObject_New have uninitialized pointers to set to 0x1

2018-11-04 Thread Serafeim Mellos
Serafeim Mellos added the comment: Backtrace from segfault is below but I'm not very familiar with python's memory internals in order to figure out where is the value initialized at the first place (gdb) bt #0 _Py_XDECREF (op=0x1) at

[issue35157] Missing pyconfig.h when building from source and pgo flag is enabled

2018-11-04 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Jorge, I am really sorry but I don't have any issue for the compilation of Python 3.6 under Windows 8.1 C:\Users\pydev\cpython-bpo-35157>PCbuild\amd64\python.exe -m test.pythoninfo

[issue21263] test_gdb failures on os x 10.9.2

2018-11-04 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- keywords: +patch pull_requests: +9619 stage: needs patch -> patch review ___ Python tracker ___

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

2018-11-04 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ok in this case, I re-open the issue. -- resolution: fixed -> status: closed -> open ___ Python tracker ___

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

2018-11-04 Thread Robert Pollak
Robert Pollak added the comment: Stéphane, your example does not match my use case with unknown table structure. Does everyone agree that such a sniffing is out of scope for sqlite3? That's not what I'd call "batteries included" :-( -- title: sqlite3: "select *" should optionally

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

2018-11-04 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: For my part, we could close this issue just because I am sure they sniff the format of the string. If you use sqliteman you get a TEXT and not "datetime" You can read this doc about the read_sql

[issue35160] PyObjects initialized with PyObject_New have uninitialized pointers to set to 0x1

2018-11-04 Thread Serafeim Mellos
New submission from Serafeim Mellos : I looked but I couldn't find any mention of this either in the bug tracker or the docs so I assume this is not a desired behavior or a known proble but feel free to correct me if I'm wrong. I have noticed a weird behavior in Python3.7 onwards with the

[issue29183] Unintuitive error handling in wsgiref when a crash happens in write() or close()

2018-11-04 Thread Martin Panter
Martin Panter added the comment: Looks like the error handling is broken by Issue 16220, which calls the “BaseHandler.close” method before the exception is caught for the error handler. Perhaps it is better to just close the iterator without messing with the other attributes in the exception

[issue35157] Missing pyconfig.h when building from source and pgo flag is enabled

2018-11-04 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I started a compilation with PCBuild\build.bat -d -p x64 -r --pgo on a Windows machine but I am not the owner of this machine. -- nosy: +matrixise, zach.ware title: Missing pyconfig.h when building from source -> Missing pyconfig.h when building

[issue35157] Missing pyconfig.h when building from source and pgo flag is enabled

2018-11-04 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden ___ Python tracker ___ ___

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2018-11-04 Thread Martin Panter
Martin Panter added the comment: There seem to be at least two different issues raised here (and in Issue 34547): 1. Double exceptions due to “self.environ” and “self.status” being None when the error handler is called. This problem was specifically raised in Issue 29183. 2. What to do

[issue25410] Clean up and fix OrderedDict

2018-11-04 Thread Dan Snider
Dan Snider added the comment: It might be more appropriate to start a new issue for this, but I'll leave that decision to somehow who would know for sure. Anyway, basically the entire dict/PyDictObject api functions do not appear work at all with OrderedDict. Or rather, OrderedDict doesn't

[issue35159] Add a link to the devguide in the sidebar of the documentation

2018-11-04 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- versions: +Python 2.7, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue35159] Add a link to the devguide in the sidebar of the documentation

2018-11-04 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- nosy: +mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35159] Add a link to the devguide in the sidebar of the documentation

2018-11-04 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +9618 stage: -> patch review ___ Python tracker ___ ___

  1   2   >