[issue30534] error message for incorrect call degraded in 3.7

2017-05-31 Thread Stefan Behnel
New submission from Stefan Behnel: I'm seeing doctest failures in Cython's test suite with Py3.7 due to the change of an error message: Failed example: func1(arg=None) Expected: Traceback (most recent call last): ... TypeError: func1() takes no keyword arguments Got: Traceba

[issue30509] Optimize calling type slots

2017-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4e624ca50a665d7e4d527ab98932347ff43a19b0 by Serhiy Storchaka in branch 'master': bpo-30509: Clean up calling type slots. (#1883) https://github.com/python/cpython/commit/4e624ca50a665d7e4d527ab98932347ff43a19b0 --

[issue11783] email parseaddr and formataddr should be IDNA aware

2017-05-31 Thread Milan Oberkirch
Changes by Milan Oberkirch : -- pull_requests: +1979 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30499] Deprecated note in set documentation

2017-05-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is good to go. -- assignee: rhettinger -> Mariatta nosy: +Mariatta ___ Python tracker ___ __

[issue30436] importlib.find_spec raises AttributeError when parent is not a package/module

2017-05-31 Thread Milan Oberkirch
Milan Oberkirch added the comment: I added a PR changing the exception raised as suggested, reviews welcome! -- nosy: +zvyn ___ Python tracker ___ ___

[issue30436] importlib.find_spec raises AttributeError when parent is not a package/module

2017-05-31 Thread Milan Oberkirch
Changes by Milan Oberkirch : -- pull_requests: +1977 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22702] to improve documentation for join() (str method)

2017-05-31 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: backport needed -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue22702] to improve documentation for join() (str method)

2017-05-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 9139f23464ed0f71cb0e34a535a5b7ddf7fad748 by Mariatta in branch '2.7': bpo-22702: Clarify documentation of str.join & bytes.join (GH-156) (GH-1898) https://github.com/python/cpython/commit/9139f23464ed0f71cb0e34a535a5b7ddf7fad748 -- ___

[issue22702] to improve documentation for join() (str method)

2017-05-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 9522159bc41f2be0f4aafd0fa182669876aca47f by Mariatta in branch '3.6': bpo-22702: Clarify documentation of str.join & bytes.join (GH-156) (GH-1897) https://github.com/python/cpython/commit/9522159bc41f2be0f4aafd0fa182669876aca47f -- ___

[issue22702] to improve documentation for join() (str method)

2017-05-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 1721b06a78a4fd7942d9658ac8add6911a1a03e3 by Mariatta in branch '3.5': bpo-22702: Clarify documentation of str.join & bytes.join (GH-156) (GH-1896) https://github.com/python/cpython/commit/1721b06a78a4fd7942d9658ac8add6911a1a03e3 -- nosy

[issue22702] to improve documentation for join() (str method)

2017-05-31 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1976 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22702] to improve documentation for join() (str method)

2017-05-31 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1975 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22702] to improve documentation for join() (str method)

2017-05-31 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1974 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22702] to improve documentation for join() (str method)

2017-05-31 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: resolved -> backport needed versions: +Python 3.6, Python 3.7 -Python 3.4 ___ Python tracker ___ __

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-05-31 Thread Yury Selivanov
Yury Selivanov added the comment: > I can experiment with memcached as well but I think this proposal is a good > idea and would work well with Redis. I like it! Let's use Redis as an example. Please open an issue at asyncio-docs to discuss the details. -- ___

[issue30499] Deprecated note in set documentation

2017-05-31 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> patch review versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-05-31 Thread Yury Selivanov
Yury Selivanov added the comment: I propose to start using the issues [1] as there are so many topics we'll have to discuss. Feel free to create new issue for whatever idea you have! [1] https://github.com/asyncio-docs/cpython-aiodocs/issues -- ___

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-05-31 Thread Yury Selivanov
Yury Selivanov added the comment: I've created a repo for discussing and making next version of asyncio docs: https://github.com/asyncio-docs/cpython-aiodocs. Feel free to join! -- ___ Python tracker _

[issue27618] docs for threading.Lock claim it's a class (since 3.3), but it's not (and has never been, apparently)

2017-05-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks :) -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed versions: -Python 2.7 ___ Python tracker ___

[issue27618] docs for threading.Lock claim it's a class (since 3.3), but it's not (and has never been, apparently)

2017-05-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 9abd0bf68f73b3beb56954e22740f0efcf04bc79 by Mariatta (csabella) in branch '3.6': bpo-27618: Clarify that threading.Lock is a factory function (GH-1307) (GH-1894) https://github.com/python/cpython/commit/9abd0bf68f73b3beb56954e22740f0efcf04bc79

[issue27618] docs for threading.Lock claim it's a class (since 3.3), but it's not (and has never been, apparently)

2017-05-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 958e815fe014e9a3c64f3568b883c2a7b32a4e2e by Mariatta (csabella) in branch '3.5': bpo-27618: Clarify that threading.Lock is a factory function (GH-1307) (GH-1895) https://github.com/python/cpython/commit/958e815fe014e9a3c64f3568b883c2a7b32a4e2e

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-05-31 Thread Eric Appelt
Eric Appelt added the comment: > 2b - I propose to take a simple protocol like Memcache or > Redis and simply implement it using the streams API. We’ll only > need two methods: set and get; and in the end we’ll teach the user > how things really work and how to design async APIs. I decided to

[issue27618] docs for threading.Lock claim it's a class (since 3.3), but it's not (and has never been, apparently)

2017-05-31 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks, Mariatta. I've backported to 3.5 and 3.6 with the new cherry_picker instructions. -- ___ Python tracker ___ __

[issue27618] docs for threading.Lock claim it's a class (since 3.3), but it's not (and has never been, apparently)

2017-05-31 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +1973 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue27618] docs for threading.Lock claim it's a class (since 3.3), but it's not (and has never been, apparently)

2017-05-31 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +1972 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-31 Thread Zachary Ware
Zachary Ware added the comment: > do we have any buildbots running as admin for symlink tests? No, as far as I know. I just took Eryk's suggestion and gave the buildslave user on my Windows 8.1 bot rights to create symbolic links, though. It's now rebooting after updates, we'll see how it do

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-31 Thread Eryk Sun
Eryk Sun added the comment: > Ah, looks like they require symlinks for the whole test, > which means you need to be admin when running them on Windows. The privilege to create symlinks isn't filtered out of a standard user's token. Are there any buildbots already running as a standard user? In

[issue27618] docs for threading.Lock claim it's a class (since 3.3), but it's not (and has never been, apparently)

2017-05-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks for the PR Cheryl. You can backport using cherry_picker.py Note that there's a recent update to it: https://github.com/python/core-workflow/tree/master/cherry_picker -- stage: patch review -> backport needed _

[issue27618] docs for threading.Lock claim it's a class (since 3.3), but it's not (and has never been, apparently)

2017-05-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 56ddfd2eea4d98456a9a99bf2a718f21ee6b2be2 by Mariatta (csabella) in branch 'master': bpo-27618: Clarify that threading.Lock is a factory function (GH-1307) https://github.com/python/cpython/commit/56ddfd2eea4d98456a9a99bf2a718f21ee6b2be2 ---

[issue27618] docs for threading.Lock claim it's a class (since 3.3), but it's not (and has never been, apparently)

2017-05-31 Thread Cheryl Sabella
Cheryl Sabella added the comment: *bump* The PR was approved by R. David Murray a while ago. I can backport once it's merged. Thanks! -- nosy: +csabella ___ Python tracker __

[issue30531] Windows 10 3.6.1 install disallows pip installs of packages

2017-05-31 Thread Steve Dower
Steve Dower added the comment: You can try installing with "--user" to install to a per-user directory, start running pip from an administrative command/PowerShell prompt, or use the venv module to create a virtual environment. Alternatively, if you select the default installation options you

[issue30531] Windows 10 3.6.1 install disallows pip installs of packages

2017-05-31 Thread Eryk Sun
Eryk Sun added the comment: You installed Python for all users, which defaults to installing in %ProgramFiles% or %ProgramFiles(x86)%. Python's installation directory inherits the security of its parent directory, which in this case grants full control only to SYSTEM, TrustedInstaller, and Adm

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-31 Thread Antoine Pietri
Antoine Pietri added the comment: I added a fix for the tests and the code. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-31 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1969 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-31 Thread Steve Dower
Steve Dower added the comment: Ah, looks like they require symlinks for the whole test, which means you need to be admin when running them on Windows. Zach - do we have any buildbots running as admin for symlink tests? -- nosy: +zach.ware ___ Python

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-31 Thread Steve Dower
Steve Dower added the comment: The initial fix should be easy: --- a/Lib/pathlib.py +++ b/Lib/pathlib.py @@ -329,8 +329,6 @@ class _PosixFlavour(_Flavour): if e.errno != EINVAL: if strict: raise -e

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-31 Thread Antoine Pietri
Antoine Pietri added the comment: I'm on it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue30532] email.policy.SMTP.fold() mangles long headers

2017-05-31 Thread Joel Hillacre
Joel Hillacre added the comment: I added a pull request that causes Chris's test to pass. I can confirm that the Chris's was not pass for me on master branch. -- nosy: +jhillacre ___ Python tracker ___

[issue30533] missing feature in inspect module: getmembers_static

2017-05-31 Thread Carl Meyer
New submission from Carl Meyer: The inspect module contains a getattr_static() function, for accessing an arbitrary attribute on a Python object without risking descriptor or __getattr__ code execution. This is useful for introspection tools that don't want to trigger any side effects. The in

[issue30532] email.policy.SMTP.fold() mangles long headers

2017-05-31 Thread Joel Hillacre
Changes by Joel Hillacre : -- pull_requests: +1968 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30532] email.policy.SMTP.fold() mangles long headers

2017-05-31 Thread Ned Deily
Changes by Ned Deily : -- nosy: +barry, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue30530] Descriptors HowTo: Example on function.__get__ needs update

2017-05-31 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue30532] email.policy.SMTP.fold() mangles long headers

2017-05-31 Thread Chris Bradley
New submission from Chris Bradley: When email.policy.SMTP.fold() attempts to wrap a line in which a chunk that does not contain a space is longer than the maximum line length, two things go wrong: - The second line does not begin with a space, creating an invalid header. - The space before th

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2017-05-31 Thread Barry Davis
Barry Davis added the comment: I meant my cross compiled python, not my cross compiler. -- ___ Python tracker ___ ___ Python-bugs-list

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2017-05-31 Thread Barry Davis
Barry Davis added the comment: Looks like I was mistaken. My cross compiler was trying to load libgcc_s.so.1 from the standard location and not liking the one it found. Fixed for now by setting LD_LIBRARY_PATH to point at the dir containing the right libgcc_s.so.1 -- versions: -Python

[issue30531] Windows 10 3.6.1 install disallows pip installs of packages

2017-05-31 Thread Ned Deily
Changes by Ned Deily : -- components: +Windows -Installation nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue30531] Windows 10 3.6.1 install disallows pip installs of packages

2017-05-31 Thread Thomas Shinnick
New submission from Thomas Shinnick: Installed using python-3.6.1-amd64.exe then tried to pip install a package. Repeatedly had to manually intervene to open up permissions on python install subdirs, after getting these errors one at a time from pip: PermissionError: [WinError 5] Access is d

[issue30530] Descriptors HowTo: Example on function.__get__ needs update

2017-05-31 Thread Mariano Anaya
New submission from Mariano Anaya: The example on which tries to create a method from the function's __get__ doesn't work for Python 3.5+. It would give this error: TypeError: method expected 2 arguments, got 3 The 3rd parameter, needs to be removed. -- assignee: docs@python component

[issue28791] update sqlite to 3.19.2

2017-05-31 Thread Big Stone
Changes by Big Stone : -- title: update sqlite to 3.17.0 -> update sqlite to 3.19.2 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue30529] Incorrect error messages for invalid whitespaces in f-string subexpressions

2017-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 1888 makes error messages for f-string subexpressions consistent with error messages for expressions out of f-strings, simplifies and speeds up the parsing code. -- ___ Python tracker

[issue30529] Incorrect error messages for invalid whitespaces in f-string subexpressions

2017-05-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue30529] Incorrect error messages for invalid whitespaces in f-string subexpressions

2017-05-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1966 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30529] Incorrect error messages for invalid whitespaces in f-string subexpressions

2017-05-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Python parser supports only ' ', '\t', '\x0c' and '\r' as whitespaces. The parser of f-strings raises incorrect error messages for subexpressions consistent only from whitespaces, if they contain whitespaces out this set. >>> eval("\xa0") Traceback (most r

[issue17852] Built-in module _io can loose data from buffered files at exit

2017-05-31 Thread Neil Schemenauer
Neil Schemenauer added the comment: Well, I just spent a couple of hours debugging a problem caused by this issue. You could argue that I should be calling close() on all of my file-like objects but I agree with Armin that the current "most of the time it works" behaviour is quite poor. In m

[issue30527] PyMemoryView_FromBuffer memory leak

2017-05-31 Thread Christoph Reiter
Christoph Reiter added the comment: In case someone ends up here with a similar problem, here is my solution using a proxy object: https://github.com/pygobject/pycairo/blob/4ab80df68dd99a8e4bfb0c6a88dc5b2a9b0f3f10/cairo/bufferproxy.c -- ___ Python t

[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2017-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have concerns about following cases. * f-string containing multiple equivalent subexpressions: f'{x} {x}' or f''' {x} {x} ''' * f-string containing escaped newlines: f'''\ \ {x}\ \ ''' The tests look slightly verbose and fragile to me. If once the pars

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-31 Thread Ned Deily
Ned Deily added the comment: Good news! Apple appears to have fixed the osascript regression in the most recent macOS 10.12.6 public beta (version 2). So I'm going to mark this issue as "pending fixed" until the official release of 10.12.6. -- resolution: -> out of date stage: -> r

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-31 Thread Ned Deily
Ned Deily added the comment: We have less than 2 weeks until cutoff for 3.6.2 so it would be great if someone would take this on. -- ___ Python tracker ___ _

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-31 Thread Zopieux
Zopieux added the comment: I agree bpo-30177 is not a suitable fix for this issue, as it fixes the doc instead of fixing the actual underlying bug in the function behavior. This bug can lead to files being added to the wrong (parent) directory, which is quite critical. -- nosy: +zopie

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-31 Thread Steve Dower
Steve Dower added the comment: Ah, didn't catch that it doesn't occur on Windows - that explains why I've never seen it before. Yes, definitely fix and backport. Adding the RMs in case they want to delay any upcoming releases to get the fix. -- nosy: +larry, ned.deily priority: normal

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is definitely a bug and I think the fixes should be backported. -- versions: +Python 3.5 ___ Python tracker ___ ___

[issue30527] PyMemoryView_FromBuffer memory leak

2017-05-31 Thread Stefan Krah
Stefan Krah added the comment: Sorry, actually I wasn't totally clear: The exporting object just needs a getbufferproc() that can respond to buffer requests and keeps track of how many views are exported. "View in the object" is misleading and not necessary; it can be used for some advanced

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-31 Thread Antoine Pietri
Antoine Pietri added the comment: By the way, I'm pasting what I said on the PR here: For what it's worth, this bug was the cause of an important downtime in our organization, because someone needed to normalize a path that was later passed to a .mkdir(parents=True), and it was, in some cases

[issue30527] PyMemoryView_FromBuffer memory leak

2017-05-31 Thread Christoph Reiter
Christoph Reiter added the comment: Ah, so if I understand correctly, exposing always requires something implementing the buffer interface in some way. I might require multiple different memoryviews for this object, so maybe some proxy object implementing it might work. Thanks Stefan for your

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-31 Thread Steve Dower
Steve Dower added the comment: This is definitely a bug if it really behaves as described. PRs for fixing the functionality are welcome - I'm inclined to say fix it in 3.6 as well, but it might be too big a behavioural change if people are already working around it. -- nosy: +steve.do

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-31 Thread Antoine Pietri
Antoine Pietri added the comment: In Windows/Python 3.6, the behavior matches the documented one, so this could actually be an important silent bug when executing a code wrote for Windows in another OS. I'd argue to fix it in 3.6 too. -- ___ Python

[issue30527] PyMemoryView_FromBuffer memory leak

2017-05-31 Thread Stefan Krah
Stefan Krah added the comment: "Py_buffer view" needs to go into the exporting object. That object needs a getbufferproc(). That getbufferproc() can use PyBuffer_FillInfo() to fill in the view that is now kept alive because it's in the object. The object then supports the buffer protocol a

[issue30528] ipaddress.IPv{4,6}Network.reverse_pointer is broken

2017-05-31 Thread Hristo Venev
New submission from Hristo Venev: `ipaddress.IPv4Network('127.0.0.0/16').reverse_pointer = '0/16.0.0.127.in-addr.arpa'` is definitely wrong. I think it should be '0.127.in-addr.arpa'. A funnier case, `ipaddress.IPv6Network('2001:db8::/32').reverse_pointer = '2.3./.0.0.0.0.0.0.0.0.0.0.0.0.0.0.

[issue30527] PyMemoryView_FromBuffer memory leak

2017-05-31 Thread Christoph Reiter
Christoph Reiter added the comment: hm, ok. Any idea how I can create a memoryview that is usable from Python then? -- ___ Python tracker ___ ___

[issue30527] PyMemoryView_FromBuffer memory leak

2017-05-31 Thread Stefan Krah
Stefan Krah added the comment: "Py_buffer view" is stack allocated. One can use memoryviews based on such buffers *inside* a function, but not return them. -- nosy: +skrah ___ Python tracker __

[issue30526] Allow setting line_buffering on existing TextIOWrapper

2017-05-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +1965 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30527] PyMemoryView_FromBuffer memory leak

2017-05-31 Thread Christoph Reiter
New submission from Christoph Reiter: I'm using the following code PyObject * get_memoryview (PyObject *self) { Py_buffer view; ... // this takes a ref on self if (PyBuffer_FillInfo (&view, self, buffer, length, 0, 0) < 0) return NULL; // this returns a object

[issue30526] Allow setting line_buffering on existing TextIOWrapper

2017-05-31 Thread Antoine Pitrou
New submission from Antoine Pitrou: Currently, if you want to change the line buffering behaviour of standard streams, you can create a new stream and assign it to sys.{stdout,stderr,stdin}. Unfortunately, it is common for references to the old streams to be stored in various places (such as

[issue30504] Allow inspecting buffering attribute of IO objects

2017-05-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, I had forgotten about the `line_buffering` attribute. Thank you. -- ___ Python tracker ___ ___ P

[issue30509] Optimize calling type slots

2017-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you, I know about this, but it takes twice more time, so I don't use it regularly. And it doesn't allow to compare three versions. :-( -- ___ Python tracker __

[issue30524] iter(classmethod, sentinel) broken for Argument Clinic class methods?

2017-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: next(iter(datetime.now, None)) can be turned into a nice test. -- ___ Python tracker ___ ___ Pytho

[issue30095] HTMLCalendar allow custom classes

2017-05-31 Thread Walter Dörwald
Walter Dörwald added the comment: See my comments on the pull request: https://github.com/python/cpython/pull/1439 After you address those, IMHO this is ready to be merged. -- ___ Python tracker __

[issue30524] iter(classmethod, sentinel) broken for Argument Clinic class methods?

2017-05-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue30524] iter(classmethod, sentinel) broken for Argument Clinic class methods?

2017-05-31 Thread STINNER Victor
STINNER Victor added the comment: Oh, it's my fault: it's a bug coming from FASTCALL optimizations. The strange thing is that the bug wasn't catched by the giant Python test suite :-( I knew that _PyStack_UnpackDict() has a bug in Python 3.6, but I completely forgot to fix it :-( https://gith

[issue30524] iter(classmethod, sentinel) broken for Argument Clinic class methods?

2017-05-31 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1962 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29259] Add tp_fastcall to PyTypeObject: support FASTCALL calling convention for all callable objects

2017-05-31 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1963 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29286] Use METH_FASTCALL in str methods

2017-05-31 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1964 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30507] Elements reports it is a list on Element.remove

2017-05-31 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Thanks for the feedback, Raymond. I'll try to shift my focus on more pressing issues. (Closing as rejected) -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue30509] Optimize calling type slots

2017-05-31 Thread STINNER Victor
STINNER Victor added the comment: FYI you can use "./python -m perf timeit --compare-to=./python-ref" if you keep the "reference" Python (unpatched), so perf computes for you the "?.??x slower/faster" factor ;-) -- ___ Python tracker

[issue25324] Importing tokenize modifies token

2017-05-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset fc354f07855a9197e71f851ad930cbf5652f9160 by Victor Stinner (Albert-Jan Nijburg) in branch 'master': bpo-25324: copy tok_name before changing it (#1608) https://github.com/python/cpython/commit/fc354f07855a9197e71f851ad930cbf5652f9160 --

[issue30524] iter(classmethod, sentinel) broken for Argument Clinic class methods?

2017-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It works in 3.5 and 3.7, but raises a StopIteration in 3.6. -- components: +Interpreter Core keywords: +3.6regression versions: -Python 3.7 ___ Python tracker __

[issue30523] unittest: add --list-tests option to only display the list of test names, don't run tests

2017-05-31 Thread STINNER Victor
STINNER Victor added the comment: I used testr which has a --list-tests option: http://testrepository.readthedocs.io/en/latest/MANUAL.html#listing-tests -- ___ Python tracker ___

[issue30509] Optimize calling type slots

2017-05-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- Removed message: http://bugs.python.org/msg294837 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30509] Optimize calling type slots

2017-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, wrong data. PR 1883 makes indexing 1.2 times faster, PR 1861 makes it 1.7 times faster $ ./python -m perf timeit -s 'class A:' -s ' def __getitem__(s, i): return t[i]' -s 'a = A(); t = tuple(range(1000))' --duplicate 100 'list(a)' Unpatched: Mean +

[issue30525] Expose SCTs on TLS connections

2017-05-31 Thread Alex Gaynor
New submission from Alex Gaynor: CT (https://www.certificate-transparency.org/) is starting to become a thing! It'd be great if we exposed SCTs (whether from TLS extensions, OCSP, or embedded in the certificate) for TLS connections. This would allow higher level protocols to begin acting on th

[issue30524] iter(classmethod, sentinel) broken for Argument Clinic class methods?

2017-05-31 Thread Emanuel Barry
Changes by Emanuel Barry : -- nosy: +haypo, serhiy.storchaka stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Pyth

[issue30509] Optimize calling type slots

2017-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 1883 seems doesn't affect indexing, PR 1861 makes it 1.7 times faster. $ ./python -m perf timeit -s 'class A:' -s ' def __getitem__(s, i): return t[i]' -s 'a = A(); t = tuple(range(1000))' --duplicate 100 'list(a)' Unpatched: Mean +- std dev: 498 us +-

[issue30524] iter(classmethod, sentinel) broken for Argument Clinic class methods?

2017-05-31 Thread Martijn Pieters
Martijn Pieters added the comment: Forgot to addthis: this bug was found via https://stackoverflow.com/questions/44283540/iter-not-working-with-datetime-now -- ___ Python tracker __

[issue30524] iter(classmethod, sentinel) broken for Argument Clinic class methods?

2017-05-31 Thread Martijn Pieters
New submission from Martijn Pieters: I'm not sure where exactly the error lies, but issue 27128 broke iter() for Argument Clinic class methods. The following works in Python 3.5, but not in Python 3.6: from datetime import datetime from asyncio import Task next(iter(datetime.now, None)) next(

[issue6721] Locks in the standard library should be sanitized on fork

2017-05-31 Thread Daniel Birnstiel
Daniel Birnstiel added the comment: While having to deal with this bug for a while I have written a small library using `pthread_atfork`: https://github.com/Birne94/python-atfork-lock-release It allows registering atfork-hooks (similar to the ones available by now) and frees the stdout/stderr

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

2017-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The regular expression tokenize.Funny also can be generated. Information is not enough for distinguish between Operator, Bracket and Special, but seems this isn't needed. Some token names can be generated from Grammar/Grammar. But needed an additional mappi

[issue25324] Importing tokenize modifies token

2017-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If move COMMENT, NL and ENCODING to the token module, their documentation should be moved from tokenize.rst to token.rst. I have asked on Python-Dev whether this is a right way. [1] [1] https://mail.python.org/pipermail/python-dev/2017-May/148080.html -

[issue30517] Enum does not recognize enum.auto as unique values

2017-05-31 Thread Max
Max added the comment: Ah sorry about that ... Yes, everything works fine when used properly. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker _

[issue30523] unittest: add --list-tests option to only display the list of test names, don't run tests

2017-05-31 Thread Julien Palard
Julien Palard added the comment: If it can be of any help, pytest have a "pytest --collect-only", it may make sense to use the same option name for consistency. I also though about "--dry-run" but I still prefer --list-tests or --collect-only. -- nosy: +mdk ___

[issue30523] unittest: add --list-tests option to only display the list of test names, don't run tests

2017-05-31 Thread STINNER Victor
STINNER Victor added the comment: I wrote this patch because I'm trying to find which test of test_threading leaks a reference: ./python -m test -R 3:3 test_threading Usually, I modify Lib/test/test_threading.py to remove tests one by one. I "bisect" the test manually. But this process is slo

  1   2   >