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

2016-07-25 Thread Guido van Rossum
Changes by Guido van Rossum : -- assignee: -> docs@python components: +Documentation nosy: +docs@python versions: +Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue27614] Race in test_docxmlrpc.py

2016-07-25 Thread Martin Panter
Martin Panter added the comment: I don’t understand why we have so many tests that assign the server port in the server thread, and then use some sort of synchronization to get it to the client thread. IMO it would be simpler in this case to do something like: def setUp(self): serv =

[issue27579] Add a tutorial for AsyncIO in the documentation

2016-07-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ludovic: Thank you for the offer. When I post a proposed text with code to #27546, I will nosy you if you have not already done so by then. Viktor: 'full integration' by adding a tk update in the standard _run_once is not possible as tkinter is not always

[issue27581] Fix overflow check in PySequence_Tuple

2016-07-25 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue27614] Race in test_docxmlrpc.py

2016-07-25 Thread Martin Panter
Martin Panter added the comment: The whole point of my suggestion was to bind and set the server socket to listing mode before starting the other thread. The socketserver constructor should do this before returning: >>> s = DocXMLRPCServer(("localhost", 0)) # Calls bind() and listen() >>>

[issue27546] Integrate tkinter and asyncio (and async)

2016-07-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: [On #27579, Lodovic Gasc volunteered to open and help with an issue on the github asyncio-doc project.] Ludovic, here is my current suggestion for the asyncio tutorial or how-to. Adding a Tkinter GUI to an Asyncio Program

[issue27620] IDLE: Add keyboard equivalents for mouse actions.

2016-07-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 352fc11b9fd2 by Terry Jan Reedy in branch 'default': Issue #27620: Escape key closes Query box as cancelled. https://hg.python.org/cpython/rev/352fc11b9fd2 -- nosy: +python-dev ___ Python tracker

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-25 Thread Martin Panter
Martin Panter added the comment: Just confirming that my Casablanca failure is restricted to the 32-bit build, though I think you already figured this out. -- ___ Python tracker

[issue27614] Race in test_docxmlrpc.py

2016-07-25 Thread R. David Murray
R. David Murray added the comment: Because the real port number doesn't exist until the server thread starts running and binds the socket using port number 0. -- nosy: +r.david.murray ___ Python tracker

[issue27619] getopt should strip whitespace from long arguments

2016-07-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: Thanks for the quick review, I've fixed the issues you mentioned. -- Added file: http://bugs.python.org/file43886/getopt.patch ___ Python tracker

[issue27619] getopt should strip whitespace from long arguments

2016-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > On my Centos system, getopt ignores leading and trailing whitespace on long > options. This is not related to how getopt_long in C works with leading and trailing whitespace on long options, but is related to how command-line utility getopt parses a list

[issue27619] getopt should strip whitespace from long arguments

2016-07-25 Thread Steven D'Aprano
New submission from Steven D'Aprano: As reported here: https://mail.python.org/pipermail/python-list/2016-July/711333.html there's a possible annoyance with getopt when you accidentally leave whitespace on a long option. On my Centos system, getopt ignores leading and trailing whitespace on

[issue27620] IDLE: Add keyboard equivalents for mouse actions.

2016-07-25 Thread Terry J. Reedy
New submission from Terry J. Reedy: Reading https://en.wikipedia.org/wiki/IBM_Common_User_Access and in particular "All operations could be done with either the mouse or the keyboard;", I checked IDLE's dialogs. The Windows dialogs accessed as common dialogs work correctly. I will assume

[issue26462] Patch to enhance literal block language declaration

2016-07-25 Thread Martin Panter
Changes by Martin Panter : Added file: http://bugs.python.org/file43885/issue26462.v4_regen.diff ___ Python tracker ___

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The remaining failures all seems to be related to the Morocco rules: both Africa/El_Aaiun [1] and Africa/Casablanca [2] use those rules. The affected date is October 4, 2037, for which Morocco has a special rule. [3] It looks like the problem is with

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Could our Morocco issue be similar to Fiji issue? https://github.com/eggert/tz/commit/6d00980f1ff2ac665f3de027c79faacf4f26d1b0 -- ___ Python tracker

[issue27619] getopt should strip whitespace from long arguments

2016-07-25 Thread Berker Peksag
Berker Peksag added the comment: I left some review comments on Rietveld. I think we can treat this as a bug and fix it in 3.5 too. -- nosy: +berker.peksag stage: -> patch review ___ Python tracker

[issue27619] getopt should strip whitespace from long arguments

2016-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It makes Python getopt behave less like the C getopt. -- ___ Python tracker ___

[issue27619] getopt should strip whitespace from long arguments

2016-07-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Tue, Jul 26, 2016 at 04:50:33AM +, Serhiy Storchaka wrote: > My answer: if you don't want a space in your long_option, don't put a > space in there. There is no a bug in Python, That's why I listed it as an enhancement, not a bug. > and the patch

[issue27604] More details about `-O` flag

2016-07-25 Thread Ram Rachum
Ram Rachum added the comment: I'm sorry everyone, for being unpleasant on this thread. Rereading the thread from the beginning, I think I misunderstood Brett's message and immediately saw it as someone trying to block my efforts rather than just answering the question I asked. Anyway, I

[issue27613] Empty iterator is rendered as a single bracket ] when using json's iterencode

2016-07-25 Thread Grigory Statsenko
Grigory Statsenko added the comment: If __len__ is not defined, then the iterator is considered empty and is always rendered as [] even if it really isn't empty -- ___ Python tracker

[issue27607] Importing the main module twice leads to two incompatible instances

2016-07-25 Thread Sylvia van Os
Sylvia van Os added the comment: My apologies, I can't get that test case to run here either. Here is a slightly older one that does reproduce the issue too. I specifically run it with python3 main.py. -- Added file: http://bugs.python.org/file43877/issue27607.zip

[issue27613] Empty iterator is rendered as a single bracket ] when using json's iterencode

2016-07-25 Thread Grigory Statsenko
New submission from Grigory Statsenko: JSONEncoder.iterencode doesn't work with empty iterators correctly. Steps: 1. Define an iterator that is recognized by json as a list (inherit from list and define nonzero __len__). 2. Use json.dump with data containing an empty iterator defined as

[issue27613] Empty iterator is rendered as a single bracket ] when using json's iterencode

2016-07-25 Thread SilentGhost
SilentGhost added the comment: The question is why are you defining __len__ if you don't know the size of your final object? Or at least, why are you starting with a potentially wrong initial value? This issue doesn't exist if you either don't define the method or return correct value.

[issue27576] An unexpected difference between dict and OrderedDict

2016-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think this case (fast path for exact dict) is not needed at all. Exact dict is not ordered, and OrderedDict created from exact dict has nondetermined order (unless a dict has size 0 or 1). -- nosy: +serhiy.storchaka

[issue27613] Empty iterator is rendered as a single bracket ] when using json's iterencode

2016-07-25 Thread Grigory Statsenko
Grigory Statsenko added the comment: My bad - it doesn't work with non-empty iterators if you set len to 0, so not a solution -- ___ Python tracker ___

[issue27579] Add a tutorial for AsyncIO in the documentation

2016-07-25 Thread Ludovic Gasc
Ludovic Gasc added the comment: Hi Terry, > I don't yet know how to work with git and github. I don't yet know how to work with tkinter and TK. I propose to combine our respective knowledge to improve the documentation together. If you give an all in one python file example with tkinter,

[issue26944] android: test_posix fails

2016-07-25 Thread STINNER Victor
STINNER Victor added the comment: > ValueError: invalid literal for int() with base 10: 'uid=0(root)' Hum, does the id program supports -G on Android? The output looks like the regular id output (without -G). Example on my Linux (Fedora 24): $ id uid=1000(haypo) gid=1000(haypo)

[issue27607] Importing the main module twice leads to two incompatible instances

2016-07-25 Thread Sylvia van Os
Changes by Sylvia van Os : Removed file: http://bugs.python.org/file43867/a040de8b978dcc4c272c0571d456a382-ea6d8fb8acc988a1f060c94070f70a6ed8439069.zip ___ Python tracker

[issue27607] Importing the main module twice leads to two incompatible instances

2016-07-25 Thread Cameron Simpson
Cameron Simpson added the comment: On 25Jul2016 02:56, Python Bug Reports wrote: > >Emanuel Barry added the comment: > >I'm fairly sure enums aren't related to this issue, so I'm unassigning Ethan >(but feel free to self-assign back if you so desire :). As I said on IRC

[issue27613] Empty iterator is rendered as a single bracket ] when using json's iterencode

2016-07-25 Thread SilentGhost
SilentGhost added the comment: Why does your __len__ method returns 1? Shouldn't it be 0 since this is an empty iterator? Changing it to zero seems to fix the "issue" too. -- nosy: +SilentGhost ___ Python tracker

[issue27607] Importing the main module twice leads to two incompatible instances

2016-07-25 Thread Emanuel Barry
Emanuel Barry added the comment: @Cameron - I don't think this issue can be solved without the PEP, so possibly that the best move would be to work on the PEP and submit it for another round on Python-Dev, to get it reviewed. Thanks! -- ___ Python

[issue27613] Empty iterator is rendered as a single bracket ] when using json's iterencode

2016-07-25 Thread Grigory Statsenko
Grigory Statsenko added the comment: Actually, it does work with len = 0 even if the iterator is not empty. So, I guess that is a solution. But still, I think the more correct way would be to make it work with > 0 -- ___ Python tracker

[issue27613] Empty iterator is rendered as a single bracket ] when using json's iterencode

2016-07-25 Thread Grigory Statsenko
Grigory Statsenko added the comment: I can't do that if I don't know how many entries there will be ahead of time. In my real-life situation I'm fetching the data from a database not knowing how many entries I'll get before I actually get them (in the iterator). In most cases there are huge

[issue27614] Race in test_docxmlrpc.py

2016-07-25 Thread earl.chew
New submission from earl.chew: The test test_docxmlrpc.py will sometimes hang because of a timing race. I've verified that this code is the same up to version 3.5 and master at https://github.com/python/cpython/blob/master/Lib/test/test_docxmlrpc.py A proposed patch is attached. --

[issue26944] android: test_posix fails

2016-07-25 Thread STINNER Victor
STINNER Victor added the comment: Ooops, I missed the part where you say that it works on API level >= 23. So I suggest to only skip the test on Android API level < 23. -- ___ Python tracker

[issue27366] PEP487: Simpler customization of class creation

2016-07-25 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue26462] Patch to enhance literal block language declaration

2016-07-25 Thread Martin Panter
Martin Panter added the comment: I think generating it with Mercurial (and not using Mercurial’s Git patch format) is the best way. I just left some more notes at . -- ___ Python tracker

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-25 Thread R. David Murray
R. David Murray added the comment: To clarify: by platform OS issue, I mean that the octal-conversion-or-not is none of Python's doing, it is done by the C library call that gethostbyname is a thin wrapper around. -- ___ Python tracker

[issue27604] More details about `-O` flag

2016-07-25 Thread R. David Murray
R. David Murray added the comment: Ram: Brett gave you the benefit of the doubt on whether or not your comment was *intended* to be antagonistic. Brett's comment was giving you the historical context for why it isn't documented, but said nothing about what we might do now. In fact, his use

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-25 Thread Xiang Zhang
Xiang Zhang added the comment: On Linux, it seems it's not an accident. inet_addr(3) explicitly says it can handle octal or haxadecimal forms. -- nosy: +xiang.zhang ___ Python tracker

[issue26851] android compilation and link flags

2016-07-25 Thread STINNER Victor
STINNER Victor added the comment: Note: build-flags_3.patch includes configure.ac and configure. Usually, we suggest to not included generated files (configure) in patches, but push them when the patch is ready. -- ___ Python tracker

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-25 Thread R. David Murray
R. David Murray added the comment: Hmm. Since gethostbyname is a deprecated interface, perhaps there is nothing to do here. However, if someone wants to investigate further and finds a fix, we will evaluate it. -- ___ Python tracker

[issue26944] android: test_posix fails

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: The test is already skipped by the patch, for Android API level < 23, with the statement: raise unittest.SkipTest("need working 'id -G'") Do you mean that the test should be skipped instead more explicitly with something like:

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2016-07-25 Thread Mark
Mark added the comment: I have the same problem on a standard installation of Python 3.5 (on OS X via Homebrew). This bug is almost a year old, and it is a doozy: it utterly defeats the purpose of --system-site-packages. In the hope of getting some momentum going, I tried out the option

[issue26944] android: test_posix fails

2016-07-25 Thread STINNER Victor
STINNER Victor added the comment: Sorry but I don't see the point of trying to "fix" the unit test on Android if "id -G" doesn't work as expected. In fact, I don't really understand the point of such functional test. Are we still testing Python? Or are we testing the OS itself? I suggest to

[issue11193] test_subprocess error on AIX

2016-07-25 Thread Michael Felt
Michael Felt added the comment: Seems to be okay at least with Python 3.6 "test" version - but maybe there is better way to call these tests - just to be sure the one needed is not being skipped. On AIX 5.3 TL7 SP0: root@x064:[/data/prj/aixtools/python/python-3.6.0.162/Lib/test]../../python

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-25 Thread Matt Robenolt
Matt Robenolt added the comment: And lastly, it seems that `socket.gethostbyname_ex` _does_ work correctly on both platforms. ``` >>> socket.gethostbyname_ex('0177...0001') ('0177...0001', [], ['127.0.0.1']) ``` -- ___ Python

[issue11190] test_locale error on AIX

2016-07-25 Thread STINNER Victor
STINNER Victor added the comment: I know that test_locale fails on AIX, but I don't think that it's an issue in Python itself. Python exposes OS functions. I suggest to simply skip failing tests on AIX! -- ___ Python tracker

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-25 Thread Matt Robenolt
Matt Robenolt added the comment: Sorry, to add a data point, in C, `gethostbyname` also does the correct thing on macOS. See: ``` #include #include #include #include #include #include #include int main(int argc, char *argv[]) { int i; struct hostent *lh =

[issue27366] PEP487: Simpler customization of class creation

2016-07-25 Thread Martin Teichmann
Martin Teichmann added the comment: I looked over the patch once more and found some places where I didn't follow normal coding standards. I changed that, namely now the code returns -1 meaning an exception happened and 0 on success, which is what many functions in typeobject.c do. So I think

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-25 Thread Matt Robenolt
Matt Robenolt added the comment: Is it worth investigating the different behavior then with `getaddrinfo` between platforms? As far as I know, that's the only method that works with both ipv6 and will tell you "here are all the IP addresses this resolves to". --

[issue11190] test_locale error on AIX

2016-07-25 Thread Michael Felt
Michael Felt added the comment: FYI: this seems to still be current, although issue11193 seems okay. michael@x071:[/data/prj/aixtools/python/python-3.6.0.162/Lib/test]../../python test_locale.py ..testing with 'en_US.ISO8859-1'... .testing with 'en_US.ISO8859-1'... Ftesting

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-25 Thread koobs
koobs added the comment: koobs-freebsd-* 3.x builds are now passing, but I'd like to make an additional (trivial) proposal, and that is: If the tests that were previously failling, aren't *specifically* testing for 'backward compatible' timezone definitions, that the tests that currently use

[issue26462] Patch to enhance literal block language declaration

2016-07-25 Thread Julien
Julien added the comment: Upladed a new patch, I was working on 3.5 branch so I did not get all errors. I'm still having: WARNING: Could not parse literal_block as "ini". highlighting skipped. But it may be considered another bug: pygments ini parser can't parse ini syntax used in

[issue26462] Patch to enhance literal block language declaration

2016-07-25 Thread Julien
Julien added the comment: Oh and, is there a proper way for me to generate a diff that rietveld can eat without someone regeneratig it? -- ___ Python tracker

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-25 Thread SilentGhost
Changes by SilentGhost : -- components: +Macintosh nosy: +ned.deily, ronaldoussoren ___ Python tracker ___

[issue26851] android compilation and link flags

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the review and the suggestions Martin :) New patch. -- Added file: http://bugs.python.org/file43875/build-flags_3.patch ___ Python tracker

[issue27576] An unexpected difference between dict and OrderedDict

2016-07-25 Thread Xiang Zhang
Xiang Zhang added the comment: Submit a patch to fix this. Hope it helps. -- keywords: +patch nosy: +xiang.zhang Added file: http://bugs.python.org/file43876/odict_update.patch ___ Python tracker

[issue27604] More details about `-O` flag

2016-07-25 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___

[issue27604] More details about `-O` flag

2016-07-25 Thread Brett Cannon
Brett Cannon added the comment: If you had viewed the comment as esoteric, Ram, then you could have politely asked for a more in-depth explanation. To me the explanation seemed clear: the optimizations had not been documented so we could feel free in changing what -O meant without breaking

[issue27615] IDLE's debugger steps into PyShell.py for calls to print() et al

2016-07-25 Thread Al Sweigart
New submission from Al Sweigart: Currently if the user "steps into" a print(), input(), sys.stdout.write() or other stdio-related call with the Source checkbox checked, it brings up PyShell.py. This is often confusing for beginner programmers (the target audience of IDLE) and most often not

[issue27616] filedialog.askdirectory inconsistent on Windows between returning "C:/" and "C:/users" (no trailing slash)

2016-07-25 Thread Grant Hillebrand
New submission from Grant Hillebrand: When running the following code on Windows 7 (64bit os), and selecting a root drive letter, eg C:, it returns "C:/", with a slash appended. When selecting any other path below root level, eg "C:/users" it returns "C:/users" - no slash appended. This then

[issue27616] filedialog.askdirectory inconsistent on Windows between returning "C:/" and "C:/users" (no trailing slash)

2016-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "C:" is current directory on drive C, "C:/" is root directory on drive C. This is not related to Python or Tk, this is how paths work. Use os.path or pathlib for processing paths. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: ->

[issue27590] tarfile module next() method hides exceptions

2016-07-25 Thread Yujie Chen
Yujie Chen added the comment: I do want tarfile module to stop at the first invalid header. My question is why does tarfile module NOT throw exception about the error in header, instead it just hide it silently. -- ___ Python tracker

[issue27607] Importing the main module twice leads to two incompatible instances

2016-07-25 Thread R. David Murray
R. David Murray added the comment: If you have any sort of implementation of the pep, proving that it does fix this issue would be informative. -- ___ Python tracker

[issue27604] More details about `-O` flag

2016-07-25 Thread Ram Rachum
Ram Rachum added the comment: Thanks for your understanding David. I'll submit a patch for this issue soon. -- ___ Python tracker ___

[issue26944] android: test_posix fails

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Hum, does the id program supports -G on Android? It does on Android 6.0 but prints the same result as 'id' (without -G) on previous Android versions. Here is the output of the commands involved in the test for the root user on my archlinux box, the Android

[issue27576] An unexpected difference between dict and OrderedDict

2016-07-25 Thread Xiang Zhang
Xiang Zhang added the comment: I didn't think about order. I just thought using concrete API may be faster. But after your comment, I tested the performance and it seems PyDict_Items makes it much slower (it does more work, eg, make tuples). So I agree it is not needed at all. --

[issue27613] Empty iterator is rendered as a single bracket ] when using json's iterencode

2016-07-25 Thread Grigory Statsenko
Grigory Statsenko added the comment: With streaming you never know the real length before you're done iterating. Anyway, the fix really shouldn't be that complicated: In _iterencode_list just yield the '[' instead of saving it to buf -- ___ Python

[issue11192] test_socket error on AIX

2016-07-25 Thread Michael Felt
Michael Felt added the comment: FYI: test fails on AIX 5.3 TL7 SP0 (as expected. The IBM document refers to 5.3 TL8) On AIX 6.1 TL9 SP5 (and probably earlier) the test passes. IMHO - can be closed (and README.AIX can be updated).

[issue27604] More details about `-O` flag

2016-07-25 Thread Stefan Krah
Stefan Krah added the comment: I can see nothing wrong with msg271168. It's polite, informative, not apodictic and does not rule out the possibility of accepting a patch. Also, it answers a direct question from msg271142. -- nosy: +skrah ___ Python

[issue13963] dev guide has no mention of mechanics of patch review

2016-07-25 Thread Martin Panter
Martin Panter added the comment: FTR: The Mercurial bug has wandered to . It suggests using “hg --config diff.git=0 diff”. Also, this 2011 post has some details of how the Git patch format is accepted or not (not sure if anything has changed

[issue25170] 3.4.4, 3.4.5, 3.5.0, 3.5.1, 3.5.2 documentation archives missing

2016-07-25 Thread Martin Panter
Martin Panter added the comment: The documentation for recent releases looks nice and functional now, thanks. So at least that aspect is fixed. -- ___ Python tracker

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-25 Thread R. David Murray
R. David Murray added the comment: This would appear to be a platform OS issue. Is it "broken" also for FreeBSD? (I put broken in quotes because interpreting ocatal isn't part of the posix speck for gethostbyname. It could even be an accident that it works on Linux. I'm not going to close

[issue25170] 3.4.4, 3.4.5, 3.5.0, 3.5.1, 3.5.2 documentation archives missing

2016-07-25 Thread Ned Deily
Ned Deily added the comment: The actions in PEP 101 cited by Georg in msg251105 above still need to be done. -- ___ Python tracker ___

[issue13963] dev guide has no mention of mechanics of patch review

2016-07-25 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue27604] More details about `-O` flag

2016-07-25 Thread R. David Murray
R. David Murray added the comment: Heh, clarification on "we're explicit about this". I was referring to Nick's aphorism, "The status quo wins a tie", which means that there has to be a *postive* reason to change the status quo. That's what we're explicit about. --

[issue27613] Empty iterator is rendered as a single bracket ] when using json's iterencode

2016-07-25 Thread R. David Murray
R. David Murray added the comment: If you break the invariants (in this case: a list has an accurate len) code that expects lists is only going to work by accident. What you really want to do is define your own json encoder for your type. If that isn't possible for a streamed sequence of

[issue26851] android compilation and link flags

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: The first 'build-flags_3.patch' file that was uploaded did not get a review button because ssh://h...@hg.python.org/cpython was down at that time. The second upload has been successfull ! -- ___ Python tracker

[issue26851] android compilation and link flags

2016-07-25 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file43878/build-flags_3.patch ___ Python tracker ___

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8cc06070e98b by Alexander Belopolsky in branch 'default': Issue 24773: Added a time_t overflow check. https://hg.python.org/cpython/rev/8cc06070e98b -- ___ Python tracker

[issue27604] More details about `-O` flag

2016-07-25 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list

[issue27615] IDLE's debugger steps into PyShell.py for calls to print() et al

2016-07-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whether or not to step in idlelib/pyshell.py is part of the general issue of stepping into any idlelib file #15335. I copied the above to that issue. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE -

[issue27617] Compiled bdist_wininst missing from embedded distribution

2016-07-25 Thread Ned Deily
Changes by Ned Deily : -- components: +Windows -Distutils nosy: +paul.moore, steve.dower, tim.golden, zach.ware -dstufft, eric.araujo ___ Python tracker

[issue27617] Compiled bdist_wininst missing from embedded distribution

2016-07-25 Thread Michael Smith
New submission from Michael Smith: It seems that the embedded distribution is missing bdist_wininst.pyc from the python35.zip . If you go to distutils\command, you'll notice only 23 compiled python files, where in the regular web based installer for the same Python version there are 24

[issue15335] IDLE - debugger steps into print and over rpc.py code

2016-07-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: In #27615, which I will close as a duplicate of this, Al Sweigart wrote "Currently if the user "steps into" a print(), input(), sys.stdout.write() or other stdio-related call with the Source checkbox checked, it brings up PyShell.py. This is often confusing

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

2016-07-25 Thread R. David Murray
R. David Murray added the comment: The relevant issue is #10968. Apparently while editing the doc changes I caught the fact that RLock wasn't actually converted, but I missed the fact that Lock wasn't converted. So, it is a doc error and should be corrected. -- nosy: +r.david.murray

[issue27617] Compiled bdist_wininst missing from embedded distribution

2016-07-25 Thread Steve Dower
Steve Dower added the comment: This is deliberate. You should "vendor" packages into the embedded distro by copying them from an install into a regular one. Your application installer should put the correct files onto the user's machine - don't rely on pip. If that last sentence didn't make

[issue27617] Compiled bdist_wininst missing from embedded distribution

2016-07-25 Thread Steve Dower
Steve Dower added the comment: Also, the doc page at https://docs.python.org/3.5/using/windows.html describes this in more detail. (Though it doesn't yet refer to the Nuget packages as those are an experiment that I may or may not continue.) -- ___

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-25 Thread Xiang Zhang
Xiang Zhang added the comment: A similar bug report can be seen at https://github.com/dotnet/corefx/issues/8362. There someone makes a conclusion that getaddrinfo (Python seems to use getaddrinfo to implement gethostbyname) doesn't work correctly with octal form. They finally ignore this

[issue26851] android compilation and link flags

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the suggestion, I won't include them anymore in patches then. -- ___ Python tracker ___

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-25 Thread Matt Robenolt
Matt Robenolt added the comment: Ah, I just confirmed broken behavior in macOS as well using `getaddrinfo()` in C. I guess I'd be ok with python ignoring this as well. Maybe worth a change to documentation to note this? -- ___ Python tracker

[issue25170] 3.4.4, 3.4.5, 3.5.0, 3.5.1, 3.5.2 documentation archives missing

2016-07-25 Thread Larry Hastings
Larry Hastings added the comment: Okay, I've updated the doc, and verified that the links work. The releases/3.5.0 directory had problems; it had bad permissions, and was stuck on 3.5.0a3 or something. I blew it away and installed the 3.5.0 final docs from the tarball and set the

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-25 Thread Matt Robenolt
New submission from Matt Robenolt: This also affects socket.getaddrinfo on macOS only, but is fine on Linux. I've not tested on Windows to see behavior there. Given the IP address `0177...0001`, which is a valid octal format representing `127.0.0.1`, we can see varying results.

[issue27546] Integrate tkinter and asyncio (and async)

2016-07-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was thinking of starting (Mon. afternoon/evening, its now 2:40 am) with updating done stats with every done fetcher, updating stat display every second, and listing urls with html body, with a way to view the body. Log to text easy too. Table of

[issue27604] More details about `-O` flag

2016-07-25 Thread Ram Rachum
Ram Rachum added the comment: Yes, my comment was antagonistic. I'm baffled that the first response to someone who wants to contribute to Python is an esoteric argument against the contribution. I understand that sometimes not all contributions can be accepted because they break existing

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-25 Thread Eryk Sun
Eryk Sun added the comment: socket.gethostbyname calls the internal function setipaddr, which tries to avoid a name resolution by first calling either inet_pton or inet_addr. Otherwise it calls getaddrinfo. Windows --- setipaddr calls inet_addr, which supports octal [1]. ctypes example:

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

2016-07-25 Thread Guido van Rossum
New submission from Guido van Rossum: The docs for threading.Lock say 79534:.. versionchanged:: 3.3 79534: Changed from a factory function to a class. but the implementation in threading.py doesn't define a class named Lock, and in fact it is an alias for _thread.allocate_lock.