[issue25067] Spam

2015-09-10 Thread Zachary Ware
Changes by Zachary Ware : Removed file: http://bugs.python.org/file40433/attachment.zip ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue25067] Spam

2015-09-10 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: -petri.lehtinen resolution: -> not a bug stage: -> resolved status: open -> closed title: Hello -> Spam ___ Python tracker ___ _

[issue25038] test_os.TestSendfile.test_keywords() introduced a regression

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: Sure, close the issue if the regression is fixed. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue24225] Idlelib: changing file names

2015-09-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: A new factor has entered the picture: the opportunity to move dialogs from using tk widgets to ttk widgets. However, we cannot yet drop support for systems that do not have ttk widgets. We could accommodate using both sets of dialog widgets by adding lots of

[issue25065] https://docs.python.org/library should redirect to Python 3 doc

2015-09-10 Thread Zachary Ware
Zachary Ware added the comment: This is by design, see PEP 430 for rationale. Eventually the Python 3 docs will be the default, but that day isn't quite here yet. -- nosy: +zach.ware resolution: -> not a bug stage: -> resolved status: open -> closed _

[issue25067] Hello

2015-09-10 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- files: attachment.zip nosy: petri.lehtinen priority: normal severity: normal status: open title: Hello Added file: http://bugs.python.org/file40433/attachment.zip ___ Python tracker _

[issue23484] SemLock acquire() keyword arg 'blocking' is invalid

2015-09-10 Thread Davin Potts
Davin Potts added the comment: @berker.peksag, @r.david.murray: Could I gently nudge one of you into committing the final versions of these patches? -- ___ Python tracker ___ __

[issue25066] Better repr for multiprocessing.synchronize objects

2015-09-10 Thread Davin Potts
Davin Potts added the comment: To Antoine's point in issue24391, here too, these modifications to the format of the repr are estimated to have very little impact or risk to breaking existing code. -- ___ Python tracker

[issue25030] io.[Text]IOBase.seek doesn't take keyword parameter

2015-09-10 Thread Martin Panter
Martin Panter added the comment: Thanks for the patch. I took the liberty of also fixing the doc string of BytesIO.seek(). -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue24391] Better repr for threading objects

2015-09-10 Thread Davin Potts
Davin Potts added the comment: Echoing Larry's insightful summary, it would not be particularly rewarding to pursue a goal of making the whole world of reprs consistent. But as Antoine and Serhiy began to point out, the multiprocessing module not only has its own Event, Semaphore, BoundedSema

[issue25030] io.[Text]IOBase.seek doesn't take keyword parameter

2015-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0ca216f5276e by Martin Panter in branch '3.4': Issue #25030: Do not document seek() as if it accepts keyword arguments https://hg.python.org/cpython/rev/0ca216f5276e New changeset 77784422da4d by Martin Panter in branch '2.7': Issue #25030: Do not

[issue25066] Better repr for multiprocessing.synchronize objects

2015-09-10 Thread Davin Potts
Davin Potts added the comment: This patch implements the majority opinion from issue24391 for the desired format of the reprs produced by Event, Semaphore, BoundedSemaphore, and Barrier. It provides tests around each, inspired by Serhiy's preliminary patch for that same issue but adapted for

[issue25066] Better repr for multiprocessing.synchronize objects

2015-09-10 Thread Davin Potts
Changes by Davin Potts : -- dependencies: +Better repr for threading objects ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25066] Better repr for multiprocessing.synchronize objects

2015-09-10 Thread Davin Potts
New submission from Davin Potts: Inspired by issue24391 and the changes proposed to the threading module's reprs for Event, Semaphore, BoundedSemaphore, and Barrier, the corresponding objects in the multiprocessing module should have their reprs updated accordingly. -- assignee: davin

[issue25065] https://docs.python.org/library should redirect to Python 3 doc

2015-09-10 Thread Martín Gaitán
New submission from Martín Gaitán: The canonical link for documentation https://docs.python.org/ redirect to the index page of the stable Python 3's documentation However, https://docs.python.org/library still redirects to the Python 2 standard lib's docs. To be consequent https://docs.pyth

[issue25060] BUILD_MAP stack effect suboptimal

2015-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6c1b0dd07340 by Benjamin Peterson in branch '3.5': compute stack effect of BUILD_MAP correctly (closes #25060) https://hg.python.org/cpython/rev/6c1b0dd07340 New changeset 7d76df6dafde by Benjamin Peterson in branch 'default': merge 3.5 (#25060) htt

[issue25064] Adjust tempfile documentation for bytes filename support

2015-09-10 Thread Martin Panter
New submission from Martin Panter: This is a followup to Issue 24230, which added support for bytes filenames to “tempfile” module. Currently I think the documentation is misleading, for example it suggests the default values are prefix="tmp" and suffix="", when they are actually None to avoid

[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-10 Thread Zachary Ware
Zachary Ware added the comment: I'd be happy to work on making an 'idledoc' target for the Doc/ makefiles that works with Mark's viewer. I can't guarantee any kind of timeframe, but the idledoc target wouldn't be necessary right off the bat; it could be done after the main bulk of the patch i

[issue25022] Remove PC/example_nt/

2015-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8ba735b018d2 by Martin Panter in branch '3.4': Issue #25022: Avoid warning about unused suspicious rule https://hg.python.org/cpython/rev/8ba735b018d2 New changeset b75b4a6e1c9b by Martin Panter in branch '3.5': Issue #25022: Merge susp-ignored.cs

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-10 Thread Martin Panter
Changes by Martin Panter : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 00db99149cdd by Martin Panter in branch '3.4': Issue #24984: BTPROTO_SCO supports only bytes objects https://hg.python.org/cpython/rev/00db99149cdd New changeset b507a7e79154 by Martin Panter in branch '3.5': Issue #24984: Merge BTPROTO_SCO doc fi

[issue25047] xml.etree.ElementTree encoding declaration should be capital ('UTF-8') rather than lowercase ('utf-8')

2015-09-10 Thread Martin Panter
Changes by Martin Panter : -- stage: -> needs patch versions: +Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mai

[issue25053] Possible race condition in Pool

2015-09-10 Thread Stanislaw Izaak Pitucha
Stanislaw Izaak Pitucha added the comment: I agree with what you said mostly. I wonder though if the message could be clearer in the docs. I remember that the rule about the module being importable without side-effects, but didn't even consider that for the interactive session. If I understand

[issue13559] Use sendfile where possible in httplib

2015-09-10 Thread Martin Panter
Martin Panter added the comment: The multiple personalities of HTTPConnection.send() and friends is a bit of a can of worms. I suggest working on Issue 23740 to get an idea of what kinds of file objects are meant to be supported, and what things may work by accident and be used in the real wor

[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: In msg185726 Ned said "Ironically, the Tk text widget is perfectly capable of rendering richer text styles." He was and is correct. Mark Roseman offered to take up the challenge. In spite of my skepticism, he went ahead and built sphinxview around HTMLParser

[issue25038] test_os.TestSendfile.test_keywords() introduced a regression

2015-09-10 Thread Martin Panter
Martin Panter added the comment: Victor, the BSD and OS X buildbots seem to be passing test_os now. E.g.: http://buildbot.python.org/all/buildslaves/koobs-freebsd10 http://buildbot.python.org/all/buildslaves/intel-yosemite-icc Do you agree we can close this? -- nosy: +berker.peksag __

[issue25061] Add native enum support for argparse

2015-09-10 Thread paul j3
paul j3 added the comment: Here's a type function that enumerates the enum in the error message: def enumtype(astring): try: return CustomEnumType[astring.upper()] except KeyError: msg = ', '.join([t.name.lower() for t in CustomEnumType]) msg = 'CustomEnumType: us

[issue22980] C extension naming doesn't take bitness into account

2015-09-10 Thread Steve Dower
Steve Dower added the comment: There's no dot before the debug marker on Windows. Otherwise, looks good to me. Thanks for writing this up. -- ___ Python tracker ___

[issue25043] document socket constants for Bluetooth

2015-09-10 Thread Martin Panter
Martin Panter added the comment: Well if the constant is not very useful then maybe we shouldn’t add it :) For testing, nothing complicated. Maybe check the module attributes exist, and are strings. In the past, people have converted module-level constants to enums, and introduced a typo in a

[issue25061] Add native enum support for argparse

2015-09-10 Thread paul j3
paul j3 added the comment: The `type` parameter is a *function* that takes a string, and returns a valid value. If it can't convert the string it is supposed to raise an error. The default one is a do-nothing identity (take a string, return the string). `int` is the Python function that con

[issue25057] Make parameter of io.base to be positional and keyword

2015-09-10 Thread Martin Panter
Martin Panter added the comment: I’m not sure this is a good idea. IOBase is a base class, so adding to its API really means everybody’s subclasses may need to be updated to support the proper keyword argument names. Even ignoring classes outside Python’s standard library, it looks like you wo

[issue25058] Right square bracket argparse metavar

2015-09-10 Thread paul j3
paul j3 added the comment: This assertion error caused by brackets (and other 'odd' characters) in the metavar is a known issue. http://bugs.python.org/issue11874 http://bugs.python.org/issue14046 The formatter that handles line wrapping of the usage line is fragile. -- nosy: +paul.j3

[issue25063] shutil.copyfileobj should internally use os.sendfile when possible

2015-09-10 Thread Martin Panter
Martin Panter added the comment: I agree it is a nice idea, but have the same concern as David. Many pseudo file objects wrap real file descriptors. E.g. BufferedReader hides unread data in a buffer, GzipFile decompresses data, HTTPResponse decodes chunks. Detecting when sendfile() is appropri

[issue22980] C extension naming doesn't take bitness into account

2015-09-10 Thread Yury Selivanov
Yury Selivanov added the comment: Larry, Matthias, Steve, Berker - I've mentioned this issue in the whatsnew (applied Larry's patch with some modifications to address comments from Steve and Matthias). Please review. -- ___ Python tracker

[issue22980] C extension naming doesn't take bitness into account

2015-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1744d65705d0 by Yury Selivanov in branch '3.5': whatsnew/3.5: Describe changes in issue #22980 https://hg.python.org/cpython/rev/1744d65705d0 New changeset cfbcb3a6a848 by Yury Selivanov in branch 'default': Merge 3.5 (issue #22980, whatsnew/3.5) ht

[issue25035] Getter/setter for argparse keys

2015-09-10 Thread Sworddragon
Sworddragon added the comment: In this case probably all is fine then. But there is a minor thing I noticed from one of your previous posts: You said parser.add_argument returns an Action object but I noticed that this is not mentioned on "16.4.3. The add_argument() method". Is it maybe mentio

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-10 Thread Eric V. Smith
Eric V. Smith added the comment: The good news is that the performance is pretty good, and finally I have a case where I can beat %-formatting: $ ./python.bat -mtimeit -s 'a=2' "'%s' % a" 100 loops, best of 3: 0.883 usec per loop $ ./python.bat -mtimeit -s 'a=2' '"{}".format(a)' 100 lo

[issue25022] Remove PC/example_nt/

2015-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3456af022541 by Zachary Ware in branch '2.7': Issue #25022: Add NEWS, fix docs to not mention the old example. https://hg.python.org/cpython/rev/3456af022541 New changeset c535bf72aa60 by Zachary Ware in branch '3.4': Issue #25022: Add NEWS, fix doc

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-10 Thread Eric V. Smith
Changes by Eric V. Smith : Added file: http://bugs.python.org/file40430/pep-498-4.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-10 Thread Eric V. Smith
Eric V. Smith added the comment: This version does dynamic allocation for the expression list, and fixes some memory leaks and early decrefs. I think it's complete, but I'll take some more passes through it checking for leaks. -- ___ Python tracker

[issue24821] The optimization of string search can cause pessimization

2015-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I was going to provide another optimization (I had an idea), but it is not so easy as looked to me at first glance. This issue exists rather as a reminder to me. I should make a second attempt. -- resolution: -> remind _

[issue25022] Remove PC/example_nt/

2015-09-10 Thread Zachary Ware
Zachary Ware added the comment: Erk...just discovered there's a section of Doc/extending/windows.rst that depends on example_nt that will need to be excised. -- resolution: fixed -> stage: resolved -> needs patch status: closed -> open ___ Python tr

[issue25022] Remove PC/example_nt/

2015-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset a30598e59964 by Zachary Ware in branch '2.7': Issue #25022: Remove PC/example_nt/ https://hg.python.org/cpython/rev/a30598e59964 New changeset de3e1c81ecd7 by Zachary Ware in branch '3.4': Issue #25022: Remove PC/example_nt/ https://hg.python.org/cp

[issue25029] MemoryError in test_strptime

2015-09-10 Thread Steve Dower
Steve Dower added the comment: Done. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-09-10 Thread John Beck
John Beck added the comment: Sorry, let me try to clarify. ENOSYS is the correct errno value to check for, for the situation (e.g., Solaris < 11.3) of a non-existent system call. But EINVAL should also be checked for to make sure the system call was invoked with proper parameters. My builds

[issue25062] Doc linter error: [2] library/typing.rst:358: default role used

2015-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks everyone! This episode shows I should not try to commit CPython stuff. Period. -- ___ Python tracker ___ _

[issue25053] Possible race condition in Pool

2015-09-10 Thread Davin Potts
Changes by Davin Potts : -- status: open -> pending versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue25062] Doc linter error: [2] library/typing.rst:358: default role used

2015-09-10 Thread Zachary Ware
Changes by Zachary Ware : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5 ___ Python tracker ___ ___

[issue25062] Doc linter error: [2] library/typing.rst:358: default role used

2015-09-10 Thread Zachary Ware
Zachary Ware added the comment: Oh right, Berker already beat me to it: changeset 97861:72e696bc480a 3.5 Fix typos and improve markup in typing.rst. author Berker Peksag dateThu, 10 Sep 2015 21:55:50 +0300 (35 minutes ago) parents a380841644b2 childrenc52194da1ae2 47e9d7dd

[issue25062] Doc linter error: [2] library/typing.rst:358: default role used

2015-09-10 Thread Zachary Ware
Zachary Ware added the comment: Guido van Rossum added the comment: > That link gives me a timeout right now. How can I run the doc linter > manually? "make html" in the Doc tree didn't alert me to this issue. "make check" is the doc linter. I've considered whether to back that buildbot off to

[issue25062] Doc linter error: [2] library/typing.rst:358: default role used

2015-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe Zach knows how to fix this since he fixed it for an earlier version? (Sorry Zach!) -- nosy: +zach.ware ___ Python tracker ___ _

[issue24821] The optimization of string search can cause pessimization

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: > I think we should use more robust optimization. What do you propose? I don't understand the purpose of the issue. Do you want to remove the optimization? -- ___ Python tracker

[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: I rebased patch because faster-decode-ascii-surrogateescape.patch was generated in git format, and the git format is not accepted by Rietveld (the Review button). -- Added file: http://bugs.python.org/file40429/faster-decode-ascii-surrogateescape.patc

[issue25062] Doc linter error: [2] library/typing.rst:358: default role used

2015-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: That link gives me a timeout right now. How can I run the doc linter manually? "make html" in the Doc tree didn't alert me to this issue. -- ___ Python tracker _

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: > The one potential problem that I see is that it looks like specifying > PROC_THREAD_ATTRIBUTE_HANDLE_LIST means that no other handles are inherited, > even if they are inheritable. We can maybe add a parameter to configure the behaviour: keep current behavio

[issue25063] shutil.copyfileobj should internally use os.sendfile when possible

2015-09-10 Thread R. David Murray
R. David Murray added the comment: No, it's to copy file like objects that aren't necessarily true file system objects. The only requirement is that they support a minimal file-like object interface. There is no suggestion or requirement that the object supports file descriptors (which would

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: Alexander: can you please review attached round_half_even_py34.patch? It's the minimum patch to fix datetime/timedelta rounding for Python 3.4 (and 3.5). -- ___ Python tracker ___

[issue25029] MemoryError in test_strptime

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: The test doesn't fail anymore on buildbots. I ran manually test_strptime with a memory limit of 1 GB on Python 3.5 and 3.6: the test pass. Can we close the issue? -- ___ Python tracker

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris

2015-09-10 Thread STINNER Victor
Changes by STINNER Victor : -- title: os.urandom() should call getrandom(2) not getentropy(2) -> os.urandom() should call getrandom(2) not getentropy(2) on Solaris ___ Python tracker __

[issue25003] os.urandom() should call getrandom(2) not getentropy(2)

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: > Yes, the syscall was failing with EINVAL. Sorry, I don't understand. Do you mean that calling a non-existant syscall on Solaris fails with EINVAL? Calling the getrandom() syscall on Solaris < 11.3 fails with EINVAL? -- _

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-09-10 Thread STINNER Victor
Changes by STINNER Victor : -- title: os.urandom() should call getrandom(2) not getentropy(2) on Solaris -> os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer ___ Python tracker ___

[issue1103213] Adding a recvexactly() to socket.socket: receive exactly n bytes

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: Oh, in fact recvall() is a bad name. The io module uses the "readall()" name to really read all content of a file, whereas "recvall(N)" here only read up to N bytes. It would be better to reuse the same name than asyncio, "readexactly(N)": https://docs.python.

[issue25063] shutil.copyfileobj should internally use os.sendfile when possible

2015-09-10 Thread desbma
New submission from desbma: Sorry if it has already been discussed, or if this is a stupid idea. By looking at the signature, my thought was that the only use of shutil.copyfileobj was to wrap the use of sendfile, and use a fallback if it is not available on the system or not usable with "fake

[issue25061] Add native enum support for argparse

2015-09-10 Thread desbma
Changes by desbma : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue25062] Doc linter error: [2] library/typing.rst:358: default role used

2015-09-10 Thread STINNER Victor
New submission from STINNER Victor: The Docs buildbot is red since the changeset 7fc4306d537b5feedb7f9dac54d96ed378c093a7. http://buildbot.python.org/all/builders/Docs%203.x/builds/52 -- assignee: docs@python components: Documentation messages: 250400 nosy: docs@python, gvanrossum, hay

[issue3548] subprocess.pipe function

2015-09-10 Thread desbma
Changes by desbma : -- nosy: +desbma ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mai

[issue25061] Add native enum support for argparse

2015-09-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue25061] Add native enum support for argparse

2015-09-10 Thread desbma
New submission from desbma: I often find myself using the following pattern with argparse: import argparse import enum CustomEnumType = enum.Enum("CustomEnumType", ("VAL1", "VAL2", "VAL3", ...)) arg_parser = argparse.ArgumentParser(...) ... arg_parser.add_argument("-

[issue24272] PEP 484 docs

2015-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: I suck at merge. :-( No idea what happened. To fix it, I have now just copied the file again from the larry branch and committed that in 3.5, then merged up to 3.6 (default). changeset: 97856:8a7814a3613b branch: 3.5 parent: 97847:6c8e2c6e3a99 user

[issue25059] Mistake in input-output tutorial regarding print() seperator

2015-09-10 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Agreed with both David Murray and Eric. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue24272] PEP 484 docs

2015-09-10 Thread Berker Peksag
Berker Peksag added the comment: By the way, for some reason the changes in revision e361130782d4 are not in Doc/library/typing.rst. For example, io documentation on current default branch: https://hg.python.org/cpython/file/default/Doc/library/typing.rst#l376 io documentation on current 3.5

[issue25059] Mistake in input-output tutorial regarding print() seperator

2015-09-10 Thread Eric V. Smith
Eric V. Smith added the comment: +1 on the "by default" change. -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list maili

[issue25059] Mistake in input-output tutorial regarding print() seperator

2015-09-10 Thread R. David Murray
R. David Murray added the comment: Well, it's a tutorial. I'm not sure it makes sense to introduce sep at that point, that's more appropriate for when the user is more advanced and looking at the reference documentation. (Frankly, I've *never* used that feature, and I've been using python fo

[issue25053] Possible race condition in Pool

2015-09-10 Thread Davin Potts
Davin Potts added the comment: I have been able to reproduce the behavior you described under 3.5 under one set of circumstances so far. When attempting to use classes/functions/other not defined in an importable module, an AttributeError is expected as you observed. The viability of that ex

[issue25054] Capturing start of line '^'

2015-09-10 Thread Matthew Barnett
Matthew Barnett added the comment: Just to confirm, it _is_ a bug. It tries to avoid getting stuck, but the way it does that causes it to skip a character, sometimes missing a match it should have found. -- ___ Python tracker

[issue25060] BUILD_MAP stack effect suboptimal

2015-09-10 Thread Antoine Pitrou
New submission from Antoine Pitrou: In PyCompile_OpcodeStackEffect() compile.c: case BUILD_MAP: return 1; But starting from 3.5, BUILD_MAP pops 2*oparg objects from the stack. -- components: Interpreter Core messages: 250391 nosy: benjamin.peterson, georg.brandl, pi

[issue25059] Mistake in input-output tutorial regarding print() seperator

2015-09-10 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : Added file: http://bugs.python.org/file40428/issue25059 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue25059] Mistake in input-output tutorial regarding print() seperator

2015-09-10 Thread Saimadhav Heblikar
New submission from Saimadhav Heblikar: Feel free to make changes to the patch if you want to improve the sentence structure. -- assignee: docs@python components: Documentation messages: 250390 nosy: docs@python, sahutd priority: normal severity: normal status: open title: Mistake in in

[issue25058] Right square bracket argparse metavar

2015-09-10 Thread Juan Jimenez-Anca
Juan Jimenez-Anca added the comment: My apologies for the formatting of the last line. This is my issue corrected: When trying to assign the metavar in add_argument() method of argparse module I'm unable to include characters after a right square bracket. Trying to set something like this: me

[issue25058] Right square bracket argparse metavar

2015-09-10 Thread Juan Jimenez-Anca
New submission from Juan Jimenez-Anca: When trying to assign the metavar in add_argument() method of argparse module I'm unable to include characters after a right square bracket. Trying to set something like this: metavar="[host:database:collection:]field" would raise an AssertionError, whic

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2015-09-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: The idea looks ok to me, but you'd have to provide a patch. -- ___ Python tracker ___ ___ Python-bug

[issue24900] Raising an exception that cannot be unpickled causes hang in ProcessPoolExecutor

2015-09-10 Thread Benedikt Reinartz
Benedikt Reinartz added the comment: That would touch 2, but as this is happening in the exception handling already that would need to be catched and handled by itself. However, one could then do without a "pickle -> unpickle" dance. -- ___ Python t

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2015-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm inclined to reject this idea too. -- nosy: +georg.brandl, ncoghlan, pitrou, serhiy.storchaka ___ Python tracker ___ __

[issue21657] pip.get_installed_distributions() Does not return packages in the current working directory

2015-09-10 Thread David Fraser
David Fraser added the comment: Filed with pypa at https://github.com/pypa/pip/issues/3091 -- nosy: +davidfraser ___ Python tracker ___ __

[issue25050] windows installer does not allow 32 and 64 installs side by side

2015-09-10 Thread Steve Dower
Steve Dower added the comment: This is an issue with 3.4.3 only, and I suspect it was something funny in the build config that should just work with 3.4.4 - adding Martin to make sure. Basically, the upgrade code in the 32-bit installer was (I think) the code used for dev snapshots. Both insta

[issue25057] Make parameter of io.base to be positional and keyword

2015-09-10 Thread shiyao.ma
New submission from shiyao.ma: The parameters for io.[Text]IOBase.seek are currently positional only, as discussed in http://bugs.python.org/issue25030. We make the parameters to be both positional and keyword based. -- files: patch.diff keywords: patch messages: 250382 nosy: berker.pe

[issue15012] test issue

2015-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Test. -- nosy: +serhiy.storchaka status: open -> closed ___ Python tracker ___ ___ Python-bugs-lis

[issue15012] test issue

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: victor test -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue15012] test issue

2015-09-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka https://t.co/JxJCL5FSwT>: -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue15012] test issue

2015-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Test again. -- nosy: +serhiy.storchaka status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue15012] test issue

2015-09-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka https://t.co/JxJCL5FSwT>: -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue15012] test issue

2015-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Test. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue25054] Capturing start of line '^'

2015-09-10 Thread Alcolo Alcolo
Alcolo Alcolo added the comment: Naively, I thinked that ^ is be considered as a 0-length token (like $, \b, \B), then after capturing it, we can read the next token : 'a' (for the input string "a"). I use a simple work around: prepending my string with ' ' (because ' ' is neutral with my reg

[issue25041] document AF_PACKET socket address format

2015-09-10 Thread Adam
Changes by Adam : -- nosy: +azsorkin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue25056] no support for Bluetooth LE in socket

2015-09-10 Thread Tim Tisdall
New submission from Tim Tisdall: When Bluetooth LE support was added to Bluez they expanded sockaddr_l2 (the struct for making L2CAP connections) to include a l2_bdaddr_type. Since the existing code initializes the struct with 0's the type is set to regular Bluetooth (BDADDR_BREDR). An addit

[issue25055] Test

2015-09-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Just test if the tracker works for me now. -- messages: 250375 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Test ___ Python tracker

[issue23270] Use the new __builtin_mul_overflow() of Clang and GCC 5 to check for integer overflow

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: Implementation for any compiler using the new builtin if available: http://thread.gmane.org/gmane.linux.kernel/204 -- ___ Python tracker ___

[issue23270] Use the new __builtin_mul_overflow() of Clang and GCC 5 to check for integer overflow

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: Implementation for any compiler using the new builtin if available: http://thread.gmane.org/gmane.linux.kernel/204 -- ___ Python tracker ___

[issue25051] 'compile' refuses BOM.

2015-09-10 Thread eryksun
eryksun added the comment: You're passing an already decoded string, so the BOM is treated as text. Instead open the file in binary mode, i.e. open("bom3.py", "rb"). This way the BOM will be detected when decoding the source bytes. Here's an example that passes the source as a bytes object:

  1   2   >