[issue30484] Garbage Collector can cause Segfault whilst iterating dictionary items

2017-05-30 Thread Jim Wright
Jim Wright added the comment: Hi Jelle, I think you're right about master; it looks like this very recent change: https://github.com/python/cpython/pull/1657 could have fixed the issue, but I didn't find it whilst doing my original investigation of the issue on our side. --

[issue30509] Optimize calling type slots

2017-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have other patch that makes `a + b` yet tens percents faster, faster than `a.__add__(b)`, by adding functions and declarations that are never used. Confusing. -- ___ Python tracker

[issue30509] Optimize calling type slots

2017-05-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file46912/type-slot-calls.diff ___ Python tracker ___ ___ Python-bugs-list

[issue30509] Optimize calling type slots

2017-05-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file46913/type-slot-calls.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue30501] Produce optimized code for boolean conditions

2017-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Any high-level benchmarks (i.e. other than pybench and similar programs) > impacted by this? Sorry, I don't have any data. Currently I'm not able to run large benchmarks. I would be surprised if this increases the performance of a macrobenchmark even by 1

[issue11822] Improve disassembly to show embedded code objects

2017-05-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30484] Garbage Collector can cause Segfault whilst iterating dictionary items

2017-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 3.4 is open only for security fixes. Can this crash be considered a security issue? In that case I can backport the issue27945 patch to 3.4. -- nosy: +larry, serhiy.storchaka versions: -Python 3.5, Python 3.6 ___

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-30 Thread Louie Lu
Louie Lu added the comment: Fix on Windows platform, the behavior was different on Linux and Windows when calling acw.focus_get(), it will need to delay to get the correct focus. -- ___ Python tracker

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2017-05-30 Thread Jan Hnatek
Jan Hnatek added the comment: Attached an updated patch against 3.7 fixing the remaining mentions of string. -- Added file: http://bugs.python.org/file46914/issue9544.2.patch ___ Python tracker _

[issue30510] c_bool type not supported for BigEndianStructure on little-endian machine

2017-05-30 Thread Hassan El Karouni
New submission from Hassan El Karouni: When trying to create a BigEndianStructure containing a c_bool field (on a windows machine), i get the following traceback: File "/home/elkarouh/anaconda2/lib/python2.7/ctypes/_endian.py", line 24, in _other_endian raise TypeError("This type does no

[issue30503] It should be possible to use a module name with the same name as a package name

2017-05-30 Thread Nick Coghlan
Nick Coghlan added the comment: As Steven notes, packages are simply modules that reserve the right to contain other submodules As a result, Python considers "aaa.py", "aaa.pyc", "aaa.", "aaa/__init__.py", and "aaa/__init__.pyc" all to be candidate filesystem mappings for a module named "aaa"

[issue30509] Optimize calling type slots

2017-05-30 Thread STINNER Victor
STINNER Victor added the comment: > I have other patch that makes `a + b` yet tens percents faster, faster than > `a.__add__(b)`, by adding functions and declarations that are never used. > Confusing. It seems like you are a victim of the "deadcode" issue related to code locality: https://hayp

[issue30509] Optimize calling type slots

2017-05-30 Thread STINNER Victor
STINNER Victor added the comment: type-slot-calls.diff: Can you please create a pull request? > `a + b` still is 25-30% slower than `a.__add__(b)` Hum, can you please post a microbenchmark results to see the effect of the patch? > After analyzing the article and comparing it with the current

[issue25324] Importing tokenize modifies token

2017-05-30 Thread STINNER Victor
STINNER Victor added the comment: https://github.com/python/cpython/pull/1608 doesn't include a Misc/NEWS entry, but I don't want to stress albertjan with Misc/NEWS since I was already annoying enough on the review :-) I'm not sure that the change deserves a NEWS entry. If you consider that ye

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

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

[issue30403] Running extension modules using -m switch

2017-05-30 Thread Petr Viktorin
Petr Viktorin added the comment: This is now waiting to be added to the PEPs repo: https://github.com/python/peps/pull/266 -- ___ Python tracker ___

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

2017-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 1860 makes following files be generated from token.py: * Include/token.h * Parser/token.c. New file containing the array of token names _PyParser_TokenNames, and functions PyToken_OneChar(), PyToken_TwoChars(), PyToken_ThreeChars(), moved from Parser/toke

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

2017-05-30 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: I think this covers all the changes from PR #1608. Looks a lot nicer too, building it every time from the make file. You may want to add to the docs that token.py is now the source of the tokens. -- ___ Python

[issue25324] Importing tokenize modifies token

2017-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Albert-Jan's patch should be merged prior my patch for issue30455, because it can be backported, by my patch shouldn't. But first we should compare them and find differences in results. My patch adds COMMENT, NL and ENCODING in the documentation, Albert-Jan'

[issue30511] shutil.make_archive should not need to chdir (alternatively: make shutil.make_archive thread-safe)

2017-05-30 Thread Alex Gaynor
New submission from Alex Gaynor: Currently shutil.make_archive uses os.chdir, however there's no need for that. Everything that's done could be equally accomplished with path manipulation: https://github.com/python/cpython/blob/master/Lib/shutil.py#L773-L779 We should switch to using path mani

[issue30509] Optimize calling type slots

2017-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > type-slot-calls.diff: Can you please create a pull request? I provided just a patch because I expected that you perhaps will want to play with it and propose alternative patch. It is simpler to compare patches with Rietveld than on GitHub. But if you prefe

[issue30509] Optimize calling type slots

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

[issue30511] shutil.make_archive should not need to chdir (alternatively: make shutil.make_archive thread-safe)

2017-05-30 Thread Alex Gaynor
Alex Gaynor added the comment: None of those functions are a public API, so changing them shouldn't be a problem IMO. -- ___ Python tracker ___ _

[issue30511] shutil.make_archive should not need to chdir (alternatively: make shutil.make_archive thread-safe)

2017-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Unfortunately this is not possible. The signature of functions registered with register_archive_format() doesn't support this. -- nosy: +serhiy.storchaka ___ Python tracker

[issue30511] shutil.make_archive should not need to chdir (alternatively: make shutil.make_archive thread-safe)

2017-05-30 Thread Alex Gaynor
Alex Gaynor added the comment: Ugh, except via |register_archive_format|. |register_archive_format| could wrap callables passed to it to maintain the current behavior. -- ___ Python tracker ___

[issue30509] Optimize calling type slots

2017-05-30 Thread STINNER Victor
STINNER Victor added the comment: > I provided just a patch because I expected that you perhaps will want to play > with it and propose alternative patch. It is simpler to compare patches with > Rietveld than on GitHub. It seems like Rietveld is broken: there is no [Review] button on your patc

[issue25324] Importing tokenize modifies token

2017-05-30 Thread STINNER Victor
STINNER Victor added the comment: I suggest to only modify the master branch. Nobody complained before. It's only a very minor surprising behaviour. -- ___ Python tracker ___ __

[issue30509] Optimize calling type slots

2017-05-30 Thread STINNER Victor
STINNER Victor added the comment: The PR makes different changes: * replace lookup_method() with lookup_maybe_method() * specialize call_xxx() functions for a fixed number of parameters * rename lookup_maybe() to _PyObject_LookupSpecial() If possible, I would prefer to not have to duplicate fun

[issue30512] CAN Socket support for NetBSD

2017-05-30 Thread Thomas Klausner
New submission from Thomas Klausner: NetBSD recently got support for CAN. The existing Linux support for CAN partially detects this, but then fails to build. The attached patch against 3.6.1 (from Manuel Bouyer ) fixes this problem and adds proper NetBSD support for CAN sockets. -- co

[issue11874] argparse assertion failure with brackets in metavars

2017-05-30 Thread wim glenn
Changes by wim glenn : -- nosy: +wim.glenn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue30393] test_readline hangs

2017-05-30 Thread wmayner
wmayner added the comment: Output of `./python3 -m unittest -v test.test_readline`: testHistoryUpdates (test.test_readline.TestHistoryManipulation) ... ok test_nonascii_history (test.test_readline.TestHistoryManipulation) ... ok test_write_read_append (test.test_readline.TestHistoryManipulation)

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Almost there. Clicking on a list item or the scrollbar works to select an item or scroll. Clicking outside the box *before* clicking elsewhere works to dismiss box. Clicking outside the box *after* clicking inside dismisses the box, but also results in the

[issue30300] asyncio.Controller

2017-05-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 29, 2017, at 11:42 PM, Yury Selivanov wrote: >- detailed logging or hooks to implement it >- hooks on thread start / stop >- coroutines to run before starting the server >- coroutines to run before stopping the loop >- custom undhandled exceptions handle

[issue30513] getrusage returns platform-dependent value

2017-05-30 Thread sam-s
New submission from sam-s: `resource.getrusage(resource.RUSAGE_SELF).ru_maxrss` returns the peak memory usage, in *bytes* on BSD (including Mac OS X) and in *kilobytes* on Linux. This means that to get a cross-platform value, the user has to check `sys.platform`, which is fairly inconvenient.

[issue30513] getrusage returns platform-dependent value

2017-05-30 Thread sam-s
sam-s added the comment: Experiment shows that the Linux multiplier is 1024 (not 1000). -- ___ Python tracker ___ ___ Python-bugs-list

[issue30514] test_poplib replace asyncore

2017-05-30 Thread Grzegorz Grzywacz
New submission from Grzegorz Grzywacz: sub-issue of issue28533 -- components: Tests messages: 294770 nosy: grzgrzgrz3 priority: normal severity: normal status: open title: test_poplib replace asyncore versions: Python 3.6, Python 3.7 ___ Python tracke

[issue28533] Replace asyncore

2017-05-30 Thread Grzegorz Grzywacz
Grzegorz Grzywacz added the comment: ./Lib/test/test_poplib.py sub-issue issue28533 -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue30515] unittest: assertAlmostEqual rounding error

2017-05-30 Thread sam-s
New submission from sam-s: I get this `unittest` failure: ``` Traceback (most recent call last): File "zzz.py", line 348, in test_opposite self.assertAlmostEqual(a, b, places=2) AssertionError: 1.1036640046288428 != 1.0986122886681098 within 2 places ``` This seems incorrect: 1.1036640046

[issue28533] Replace asyncore

2017-05-30 Thread Grzegorz Grzywacz
Grzegorz Grzywacz added the comment: ./Lib/test/test_poplib.py sub-issue issue30514 Fixed issue number from previous comment -- ___ Python tracker ___ __

[issue28533] Replace asyncore

2017-05-30 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- dependencies: +test_poplib replace asyncore ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue28533] Replace asyncore

2017-05-30 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30514] test_poplib replace asyncore

2017-05-30 Thread Grzegorz Grzywacz
Changes by Grzegorz Grzywacz : -- pull_requests: +1947 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue25324] Importing tokenize modifies token

2017-05-30 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: Let me know if you want me to add/change anything about my PR :) I'm happy to do so. -- ___ Python tracker ___

[issue26949] IDLE restarts when one debugs code raising SystemExit

2017-05-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Louie> If you run your example in Python with -i, you will see the same behavior, except for the traceback, as with IDLE. F:\dev\cpython>python -i -c "x=10; print(x); raise SystemExit" Running Debug|Win32 interpreter... 10 Traceback (most recent call last): F

[issue30386] Add a build infrastructure for Android

2017-05-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: Details of commit "Update the native interpreter build on Setup.dist and version changes." in 408c05d44c6310b4a2f0659333560eca6071c8a5: Native interpreter build: * Copy Setup.dist to Setup when Setup.dist has been changed. * Run 'make distclean' upon a Python v

[issue30386] Add a build infrastructure for Android

2017-05-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: I don't intend to change the current code in PR 1629 until there is a review or comments asking for changes. Ned Deily has self-requested a review, reviews from other people are also welcome. -- ___ Python tracker

[issue11978] Report correct coverage.py data for tests that invoke subprocesses

2017-05-30 Thread Brett Cannon
Changes by Brett Cannon : -- pull_requests: +1948 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30515] unittest: assertAlmostEqual rounding error

2017-05-30 Thread Mark Dickinson
Mark Dickinson added the comment: The `assertAlmostEqual` comparison looks at the difference between the two values, and rounds that to 2 decimal places. In this case, the difference is approximately 0.00505, which rounded to 2 decimal places is 0.01. If instead each of the two values were rou

[issue30515] unittest: assertAlmostEqual rounding error

2017-05-30 Thread sam-s
sam-s added the comment: you are right, sorry. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue17188] Document 'from None' in raise statement doc.

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

[issue30303] IDLE: Add _utest to textview and add textview tests

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

[issue17188] Document 'from None' in raise statement doc.

2017-05-30 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 00b381b9a7b6b15350d1dcf7c688bf808cbf0ebb by Mariatta (csabella) in branch '3.6': bpo-17188: DOC: Document 'from None' in raise statement (GH-1671) (GH-1867) https://github.com/python/cpython/commit/00b381b9a7b6b15350d1dcf7c688bf808cbf0ebb -

[issue17188] Document 'from None' in raise statement doc.

2017-05-30 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Patch has been applied to 3.7 and 3.6. Thanks everyone :) -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___

[issue30354] Change data model documentation to zero-argument super()

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

[issue30354] Change data model documentation to zero-argument super()

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

[issue25237] Add doc for tkinter commondialog.Dialog and subclasses

2017-05-30 Thread Nikhil Patel
Changes by Nikhil Patel : -- pull_requests: +1953 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30354] Change data model documentation to zero-argument super()

2017-05-30 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> backport needed versions: +Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-li

[issue30354] Change data model documentation to zero-argument super()

2017-05-30 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 75ea91bb736f2a061a3ebc689ff17629bdc15568 by Mariatta (csabella) in branch '3.5': bpo-30354: Update data model documentation for super() (GH-1561) (GH-1869) https://github.com/python/cpython/commit/75ea91bb736f2a061a3ebc689ff17629bdc15568 --

[issue30354] Change data model documentation to zero-argument super()

2017-05-30 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset ad13d54646d189cea8e6f7a9bc4a87e20df33ac4 by Mariatta (csabella) in branch '3.6': bpo-30354: Update data model documentation for super() (GH-1561) (GH-1868) https://github.com/python/cpython/commit/ad13d54646d189cea8e6f7a9bc4a87e20df33ac4 --

[issue30354] Change data model documentation to zero-argument super()

2017-05-30 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks for the PR and the backports, Cheryl :) -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker __

[issue25324] Importing tokenize modifies token

2017-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If merge this only in master, the new members of the token module should be documented (add a versionchanged directive in token.rst). This also needs a Misc/NEWS entry. -- ___ Python tracker

[issue17188] Document 'from None' in raise statement doc.

2017-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems periods at the ends of sentences are missed. -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue30516] Documentation for datetime substract operation incorrect?

2017-05-30 Thread René Hernández Remedios
New submission from René Hernández Remedios: In the documentation for the supported arithmetic operations for a datetime object, there is the following note, among other: datetime2 = datetime1 - timedelta Comment: Computes the datetime2 such that datetime2 + timedelta == datetime1. As for add

[issue12383] subprocess.Popen(..., env={}) fails to pass empty env.

2017-05-30 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- pull_requests: +1954 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue17188] Document 'from None' in raise statement doc.

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

[issue25237] Add doc for tkinter commondialog.Dialog and subclasses

2017-05-30 Thread Nikhil Patel
Nikhil Patel added the comment: I've written rst files containing documentation for the tkinter modules and submitted a PR. Attempted to mimic the wording as well as style of existing documentation to keep it consistent. -- nosy: +npatel ___ Python

[issue12383] subprocess.Popen(..., env={}) fails to pass empty env.

2017-05-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset b351248c1fa74277b886b0c9a2e1c2f65fabe9ef by Gregory P. Smith in branch 'master': bpo-12383: Refactor subprocess test_empty_env (#1874) https://github.com/python/cpython/commit/b351248c1fa74277b886b0c9a2e1c2f65fabe9ef -- __

[issue30300] asyncio.Controller

2017-05-30 Thread STINNER Victor
STINNER Victor added the comment: Barry: would you be ok to start by adding Controller to asyncio.test_utils, and wait later to expose it in the public API? -- ___ Python tracker ___

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2017-05-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: I am not a Windows person... but is there a reason that handle_list must be an attribute of a STARTUPINFO class rather than just a special case of pass_fds such that people could supply windows handles in the pass_fds parameter rather than using STARTUPINFO?

[issue17188] Document 'from None' in raise statement doc.

2017-05-30 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 9efad1e5aef32a6d8ca288793e8ee6df8782f615 by Mariatta in branch 'master': bpo-17188: add missing periods at the end of sentences (GH-1875) https://github.com/python/cpython/commit/9efad1e5aef32a6d8ca288793e8ee6df8782f615 --

[issue17188] Document 'from None' in raise statement doc.

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

[issue12383] subprocess.Popen(..., env={}) fails to pass empty env.

2017-05-30 Thread Ned Deily
Ned Deily added the comment: Greg, b351248c1fa74277b886b0c9a2e1c2f65fabe9ef appears to have broken the macOS buildbots: http://buildbot.python.org/all/builders/x86-64%20Sierra%203.x/builds/233 http://buildbot.python.org/all/builders/x86-64%20El%20Capitan%203.x/builds/235 -- nosy: +ned.d

[issue30300] asyncio.Controller

2017-05-30 Thread Yury Selivanov
Yury Selivanov added the comment: > STINNER Victor added the comment: > > Barry: would you be ok to start by adding Controller to asyncio.test_utils, > and wait later to expose it in the public API? Sorry, but we are going to deprecate and remove test_utils soon. It's a bunch of internal unit

[issue17188] Document 'from None' in raise statement doc.

2017-05-30 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 60b257b01ca497d7a556e3f526704aa1b923d1ac by Mariatta in branch '3.6': bpo-17188: add missing periods at the end of sentences (GH-1875) (GH-1876) https://github.com/python/cpython/commit/60b257b01ca497d7a556e3f526704aa1b923d1ac -- _

[issue17188] Document 'from None' in raise statement doc.

2017-05-30 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks Serhiy. I added the missing periods. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12383] subprocess.Popen(..., env={}) fails to pass empty env.

2017-05-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: i wondered if that might happen. the test skipping logic that wasn't correct was added for macos; probably needs to be written another way. i've got a mac today, i'll figure it out. -- ___ Python tracker

[issue30300] asyncio.Controller

2017-05-30 Thread Yury Selivanov
Yury Selivanov added the comment: > There's also value in doing one simple thing that adds convenience for users. > I don't personally have any interest in building something as elaborate as the > above, but I've used the simple idea here several times in different projects. Yeah, I understand.

[issue12383] subprocess.Popen(..., env={}) fails to pass empty env.

2017-05-30 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- pull_requests: +1957 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue12383] subprocess.Popen(..., env={}) fails to pass empty env.

2017-05-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixed in https://github.com/python/cpython/commit/85aba238e49abd2d5a604102981d28a50f305443 -- ___ Python tracker ___

[issue12383] subprocess.Popen(..., env={}) fails to pass empty env.

2017-05-30 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ __

[issue30495] IDLE: modernize textview module

2017-05-30 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks for all the info. I've made another patch for textfile.py with removing ButtonFrame. I've also included test_textfile.py and help_about.py in the patch. I had worked on help_about yesterday, so if you don't like the button classes, I may need to undo

[issue30300] asyncio.Controller

2017-05-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 30, 2017, at 10:36 PM, Yury Selivanov wrote: >Again, the natural way of something like Controller to end up in asyncio is >to either go through full PEP process, or live some time on PyPI and prove to >be useful. A PEP feels like overkill; we don't requ

[issue30516] Documentation for datetime substract operation incorrect?

2017-05-30 Thread Martin Panter
Martin Panter added the comment: The C "_datetime" implementation seems to handle this as documented. But either way, the "timedelta" range is greater than the "datetime" range, so it seems to be just a difference in OverflowError messages, not a big practical problem: Python "datetime" implem

[issue30300] asyncio.Controller

2017-05-30 Thread Yury Selivanov
Yury Selivanov added the comment: > I appreciate that you want to be careful not to saddle asyncio with too much > baggage, or that you don't feel Controller is significant enough to generalize > and put in the package. Perhaps a middle ground would be to label parts of > the asyncio API provisi

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

2017-05-30 Thread Max
New submission from Max: This probably shouldn't happen: import enum class E(enum.Enum): A = enum.auto B = enum.auto x = E.B.value print(x) # print(E(x)) # E.A The first print() is kinda ok, I don't really care about which value was used by the implementatio

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-30 Thread Louie Lu
Louie Lu added the comment: I fix this as: if not self.autocompletewindow: return I think this another different behavior on different platform. I can't reproduce this on Linux... -- ___ Python tracker

[issue27115] IDLE: replace uses of tkinter simpledialog with query.Query

2017-05-30 Thread Louie Lu
Louie Lu added the comment: Ok, changed to query.Query will be good. But the problem still exist, query.Query use "" to bind at button ok, should it re-bind to "" at subclass such as AskInteger(Query) ? -- versions: +Python 3.5 -Python 3.7 ___ Pytho

[issue30518] Import type aliases from another module

2017-05-30 Thread John Jackson
New submission from John Jackson: I have a 'base' module where I define some type aliases, such as: from typing import List, Tuple Block = [int, Tuple[int]] Blocks = List[Block] Tags = List[str] I would like to import these aliases into other modules so that the 'base' module p

[issue30519] Add daemon argument to Timer

2017-05-30 Thread Andre Wolokita
New submission from Andre Wolokita: Currently in order to have daemonic Timer objects one must instantiate the class, set daemonic status through the property (Timer.daemon=True), and then start the Timer. It would be nice to have the ability to set the daemonic status of the Timer class durin

[issue30519] Add daemon argument to Timer

2017-05-30 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue30519] Add daemon argument to Timer

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

[issue30519] Add daemon argument to Timer

2017-05-30 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- nosy: +Mariatta ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue30518] Import type aliases from another module

2017-05-30 Thread John Jackson
John Jackson added the comment: I just found out that the problem is even worse. While PyCharm accepts the syntax below, I still can't compile 'Blocks'. -- ___ Python tracker _

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2017-05-30 Thread Eryk Sun
Eryk Sun added the comment: We can't reliably distinguish file descriptors from OS handles. They're overlapping sets of integers. A separate pass_handles parameter would be needed. The bigger problem with that idea is that the handles in the list have to be made inheritable before calling Crea

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

2017-05-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> ethan.furman nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue30518] Import type aliases from another module

2017-05-30 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: This is likely an issue with the setup of your project, not with type aliases. You haven't given enough information to tell me what the real problem is. I'm not sure what you mean by "I still can't compile 'Blocks'". -- nosy: +Jelle Zijlstra _

[issue27115] IDLE: replace uses of tkinter simpledialog with query.Query

2017-05-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Louie, please don't revert header corrections made by a core developer. I see no mention of binding to press versus release in the original query issue: #27380. Since the original query code is an edited version of previous code, I suspect I left the binding

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

2017-05-30 Thread Josh Rosenberg
Josh Rosenberg added the comment: You didn't instantiate auto; read the docs ( https://docs.python.org/3/library/enum.html#using-automatic-values ): auto is a class, you instantiate it to make instances for use. If you omit the parens, it's just a plain class, not a special value for automatic

[issue27115] IDLE: replace uses of tkinter simpledialog with query.Query

2017-05-30 Thread Louie Lu
Louie Lu added the comment: Terry, on the original issue about goto dialog, I would like to propose another approach, instead of using query.Query or simpledialog, how about to make it as a single-window application like sublime text: http://docs.sublimetext.info/en/latest/file_management/file

[issue30495] IDLE: modernize textview module

2017-05-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: 1. I prefer to not deal with ttk styles yet, unless forced, and we don't seem to be here. 2. Yes, I wanted to get rid of that useless frame as part of refactoring. 3. 'self.x = x = expr' is a semi-common idiom. A local name is nice when there are multiple loca

  1   2   >