[issue26355] Emit major version based canonical URLs for docs

2016-02-13 Thread Nick Coghlan
New submission from Nick Coghlan: Based on a recent comment on one of the mailing lists, I spent a bit of time looking into canonical URLs and their implications for how search engines treat versioned documentation. The most relevant resource for that in relation to the CPython docs appears

[issue25833] pyvenv: venvs cannot be moved because activate scripts hard-code paths

2016-02-13 Thread Vinay Sajip
Vinay Sajip added the comment: Indeed, and in fact *all* scripts written to a venv's bin directory hard-code the path to that venv's interpreter. This confers the benefit that such scripts never need the venv to be explicitly activated - you can e.g. point crontab entries to them directly.

[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT) in tests

2016-02-13 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___

[issue26355] Emit major version based canonical URLs for docs

2016-02-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Stefan Krah
Stefan Krah added the comment: I like the feature for literals, but I'm not sure about conversions from string. It slows down the conversion for (IMO) a very small benefit. Other languages allow it, but I've never attempted to use the feature: $ ocaml OCaml version 4.02.1 #

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: It's mostly for consistency. For example, ``int(x, 0)`` is defined by the docs as "interpret x as in a literal". Other bases have special cases as well, e.g. "0x" is accepted by base 16. In the current version of the conversions, the string is scanned for "_"

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Stefan Krah
Stefan Krah added the comment: If the string conversions stay, may I suggest two functions: 1) PyUnicode_NumericAsAscii() 2) PyUnicode_NumericAsAsciiWS() The first one eliminates only underscores, the second one both underscores and leading/trailing whitespace. Decimal must support both:

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Stefan Krah
Stefan Krah added the comment: Correction: The explanation of the functions should be reversed. -- ___ Python tracker ___

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: Thanks, I hadn't looked at cdecimal yet - I was planning to ask you to do the necessary changes there :) But there are a few versions of this (e.g. converting unicode digits to ASCII) scattered throughout the codebase, it would make sense to consolidate on this

[issue25726] sys.setprofile / sys.getprofile asymetry

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: Ok, this is because internally, sys.setprofile (or to be exact, PyEval_SetProfile) sets two things: a C function, and a "profileobj", which is the argument to setprofile(). sys.setprofile sets the C function to the "profile_trampoline", which supports calling

[issue5150] IDLE to support reindent.py

2016-02-13 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2016-02-13 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue694339] IDLE: Dedenting with Shift+Tab

2016-02-13 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Stefan Krah
Stefan Krah added the comment: > Georg Brandl added the comment: > > Thanks, I hadn't looked at cdecimal yet - I was planning to ask you to do the > necessary changes there :) Oh, well. :) > But there are a few versions of this (e.g. converting unicode digits to > ASCII) scattered

[issue13504] Meta-issue for "Invent with Python" IDLE feedback

2016-02-13 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2016-02-13 Thread Irmen de Jong
Irmen de Jong added the comment: Ran into this today when trying to provide a fallback sound output on windows when the user hasn't got pyaudio installed. It seems that this module has been forgotten and didn't get fixed when the str/bytes change happened in Python 3.0? -- nosy:

[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2016-02-13 Thread Irmen de Jong
Changes by Irmen de Jong : -- versions: +Python 3.5 ___ Python tracker ___ ___

[issue26355] Emit major version based canonical URLs for docs

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: So we'd have to add a tag? Should be easy. -- ___ Python tracker ___ ___

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-02-13 Thread Nick Coghlan
Nick Coghlan added the comment: At least list() and potentially other container constructors are also affected. While it's mentioned in the thread, I'll explicitly note here that the problem is specifically with iterators implemented in C, like itertools.count(). Iterators implemented in

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-02-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rhettinger ___ Python tracker ___ ___

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Stefan Krah
Stefan Krah added the comment: I still wonder about the complexity of all this for decimal. We now have two grammars on top of each other, this being the actual one for decimal: http://speleotrove.com/decimal/daconvs.html For string conversions I'd prefer a lax way (similar to OCaml) that

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: Hm. On the one hand there is a spec, so it can be argued that underscores don't belong to Decimal. On the other hand, if we get Decimal literals at one point, there will be a strong argument for allowing underscores in them as in all other number literals.

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: Raymond, you've also worked on Decimal - do you have an opinion on allowing underscores in Decimal(string) conversions? -- nosy: +rhettinger ___ Python tracker

[issue25924] investigate if getaddrinfo(3) on OSX is thread-safe

2016-02-13 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: I think we have consensus for "try 2". I'm not a core dev, would one of you please merge 25924-getaddrinfo-is-thread-safe-2.patch? Thanks! -- ___ Python tracker

[issue26348] activate.fish sets VENV prompt incorrectly

2016-02-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset cfc66e37eb8e by Vinay Sajip in branch '3.5': Fixes #26348: Corrected typos in activate.fish script. https://hg.python.org/cpython/rev/cfc66e37eb8e New changeset 0f1ac94d2f98 by Vinay Sajip in branch 'default': Fixes #26348: Merged fix from 3.5.

[issue26348] activate.fish sets VENV prompt incorrectly

2016-02-13 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2016-02-13 Thread Ralf Gommers
Changes by Ralf Gommers : -- nosy: +ralf.gommers ___ Python tracker ___ ___

[issue23114] "dist must be a Distribution instance" check fails with setuptools

2016-02-13 Thread Ralf Gommers
Changes by Ralf Gommers : -- nosy: +ralf.gommers ___ Python tracker ___ ___

[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2016-02-13 Thread Ralf Gommers
Ralf Gommers added the comment: Any chance to get this merged? -- versions: +Python 3.6 ___ Python tracker ___

[issue26209] TypeError in smtpd module with string arguments

2016-02-13 Thread Anish Shah
Changes by Anish Shah : -- nosy: -anish.shah ___ Python tracker ___ ___

[issue26349] Ship python35.lib with the embedded distribution, please

2016-02-13 Thread Steve Dower
Steve Dower added the comment: It shouldn't make any difference as the lib file is not needed at runtime. While developing your app, you should use a regular installation to make sure you have all the header files you need. The embeddable distro is for runtime. --

[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: How do I run it? "tcl is not recognized ..." -- ___ Python tracker ___ ___

[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: As near as I can tell, the Windows installer installs tcl/tk libraries but no executable. Perhaps your example could be converted to root.tk.call(? ? ?) form, but I do not know how to do do. Passing the entire tcl program as one python string argument does

[issue25887] awaiting on coroutine more than once should be an error

2016-02-13 Thread André Caron
André Caron added the comment: > I believe you're not using the asyncio.task() function correctly. I assume you meant asyncio.wait(). I just updated my gist with a variant of my example that uses the (done, pending) pair returned by asyncio.wait() as you suggested. The set of done futures

[issue26356] Registration

2016-02-13 Thread Haroun Rauni
New submission from Haroun Rauni: Yes -- messages: 260249 nosy: harounrauni priority: normal severity: normal status: open title: Registration ___ Python tracker

[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is an equivalent code on Tcl. It behaves as expected on Linux with Tk 8.6 and 8.4. The parent window responds to minimize, maximize, and close events. The modal dialog window iconifies and closes together with the parent window. Could you test it on

[issue26355] Emit major version based canonical URLs for docs

2016-02-13 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___

[issue26357] asyncio.wait loses coroutine return value

2016-02-13 Thread André Caron
New submission from André Caron: When the asyncio.wait() function with coroutine objects as inputs, it is impossbible to extract the results reliably. This issue arises because asyncio.wait() returns an unordered set of futures against which membership tests of coroutine objects always fail.

[issue26349] Ship python35.lib with the embedded distribution, please

2016-02-13 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue26349] Ship python35.lib with the embedded distribution, please

2016-02-13 Thread Steve Dower
Changes by Steve Dower : -- resolution: not a bug -> rejected ___ Python tracker ___

[issue25887] awaiting on coroutine more than once should be an error

2016-02-13 Thread André Caron
André Caron added the comment: After thinking about this some more, I think my problem with asyncio.wait() is a bit bigger than the simple fact that coroutine objects cannot be awaited multiple times. It seems to me like asyncio.wait() is completely broken for coroutine objects as inputs and

[issue26356] Registration

2016-02-13 Thread SilentGhost
Changes by SilentGhost : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You need to install Tcl/Tk separately (e.g. ActiveTcl) and use the "wish" command. -- ___ Python tracker ___

[issue25887] awaiting on coroutine more than once should be an error

2016-02-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset c2a2685ab89b by Yury Selivanov in branch '3.5': Issue #25887: Raise a RuntimeError when a coroutine is awaited more than once. https://hg.python.org/cpython/rev/c2a2685ab89b New changeset 23297d5bbd29 by Yury Selivanov in branch 'default': Merge

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-02-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, this doesn't seem to be solving any real life problems, only contrived examples. If any changes are made, they should be very restricted in scope, taking care to not wreck the performance of tools designed for speed and not to add useless crud to

[issue5150] IDLE to support reindent.py

2016-02-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: One other thought, it would be nice if there were an option (on by default) to automatically strip trailing whitespace when a file is saved. That would be much nicer than making the user remember to do periodic clean-ups as they edit. --

[issue26357] asyncio.wait loses coroutine return value

2016-02-13 Thread Guido van Rossum
Guido van Rossum added the comment: I wonder if the right solution isn't to insist that the arguments to await() are Futures, not coroutines. While in many cases (e.g. gather(), wait_for()) it's a useful convention to support either coroutines or Futures, for wait() it does seem pretty

[issue26316] Probable typo in Arg Clinic's linear_format()

2016-02-13 Thread Martin Panter
Martin Panter added the comment: I did look into testing, but I gave up. :) The test file doesn’t even import. I got the following error (without exception or traceback), cause by the line that reads “c = clinic.Clinic(language='C')”: $ (cd Tools/clinic/ && ../../python clinic_test.py) Error:

[issue26316] Probable typo in Arg Clinic's linear_format()

2016-02-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset aec2eae8933e by Martin Panter in branch '3.5': Issue #26316: Fix variable name typo in Argument Clinic https://hg.python.org/cpython/rev/aec2eae8933e New changeset 6c122e4e1cb2 by Martin Panter in branch 'default': Issue #26316: Merge Arg Clinic

[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

2016-02-13 Thread Martin Panter
Martin Panter added the comment: I think the new regular expression will still find the wrong library in my libm example above. In 32-bit mode, it will be only looking to match \(libc6.*\). Since my example has the 64-bit line first, that one will match first. (I haven’t actually tested this,

[issue26358] mmap.mmap.__iter__ is broken (yields bytes instead of ints)

2016-02-13 Thread Antti Haapala
New submission from Antti Haapala: Just noticed when answering a question on StackOverflow (http://stackoverflow.com/q/35387843/918959) that on Python 3 iterating over a mmap object yields individual bytes as bytes objects, even though iterating over slices, indexing and so on gives ints

[issue12806] argparse: Hybrid help text formatter

2016-02-13 Thread Stephan Sokolow
Stephan Sokolow added the comment: @GraylinKim: In the interest of people like myself who wander in here via Google, would you mind stating, for the record, what license argparse_formatter.py is under? -- nosy: +ssokolow ___ Python tracker

[issue5824] SocketServer.DatagramRequestHandler Broken under Linux

2016-02-13 Thread Martin Panter
Martin Panter added the comment: Also see the three commented-out tests in test_socketserver. I presume the code needs to ensure the client binds to a name, and then the tests will be able to receive something back from the server. -- stage: -> needs patch

[issue26309] socketserver.BaseServer._handle_request_noblock() don't shutdwon request if verify_request is False

2016-02-13 Thread Martin Panter
Martin Panter added the comment: Thanks for the test, but it is a bit confusing to have the shutdown_request() method call finish_request() and actually do normal request handling. Maybe it would be better to not handle the request (and not test that a response is received), and just check

[issue20598] argparse docs: '7'.split() is confusing magic

2016-02-13 Thread Martin Panter
Martin Panter added the comment: Here is a more conservative patch. What do you think Paul? * Keep all the changes to single-item and empty lists * Revert many of the other changes, except where there are only a few arguments and I feel it would make the section or piece of code too

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-02-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg260255 ___ Python tracker ___