[issue32722] Mislabeling of a dict comprehension as a generator expression in the tutorial

2018-01-31 Thread Xiang Zhang
Xiang Zhang added the comment: I treat it as an enhancement so only merge it into 3.8. Thanks Soothsayer for the report and Stéphane for the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.4,

[issue32722] Mislabeling of a dict comprehension as a generator expression in the tutorial

2018-01-31 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset ab328756d7fd969ee4882458b07892dff135013c by Xiang Zhang (Stéphane Wirtel) in branch 'master': bpo-32722: Remove useless example in the Classes tutorial (#5446)

Re: Dependency injection: overriding defaults

2018-01-31 Thread dieter
Victor Porton writes: > I am writing a library, a command line utility which uses the library, and a > I am going to use dependency_injector package. > > Consider loggers: > > For the core library the logger should default to stderr. > > For the command line utility, we use the

Re: Object-oriented gettext

2018-01-31 Thread Victor Porton
Victor Porton wrote: > I want to write a multiuser application which uses multiple languages (one > language for logging and a language per user). > > https://docs.python.org/3/library/gettext.html describes a procedural > gettext interface. The language needs to be switched before each

Advice on where to define dependency injection providers

2018-01-31 Thread Victor Porton
I define ExecutionContext in xmlboiler.core.execution_context module. ExecutionContext is meant to contain a common "environment" suitable for different kinds of tasks. Currently ExecutionContext contains a logger and a translator of messages: class ExecutionContext(object): def

Object-oriented gettext

2018-01-31 Thread Victor Porton
I want to write a multiuser application which uses multiple languages (one language for logging and a language per user). https://docs.python.org/3/library/gettext.html describes a procedural gettext interface. The language needs to be switched before each gettext() call. I want an object

Re: Help to debug my free library

2018-01-31 Thread Rustom Mody
On Thursday, February 1, 2018 at 1:11:50 AM UTC+5:30, Victor Porton wrote: > wxjmfauth wrote: > > > Le mercredi 31 janvier 2018 20:13:06 UTC+1, Chris Angelico a écrit : > >> On Thu, Feb 1, 2018 at 5:58 AM, Victor Porton wrote: > >> > LibComCom is a C library which passes a string as stdin of an

Dependency injection: overriding defaults

2018-01-31 Thread Victor Porton
I am writing a library, a command line utility which uses the library, and a daemon which uses the library. I am going to use dependency_injector package. Consider loggers: For the core library the logger should default to stderr. For the command line utility, we use the default logger of the

Re: Handle SIGINT in C and Python (Posting On Python-List Prohibited)

2018-01-31 Thread eryk sun
On Thu, Feb 1, 2018 at 4:57 AM, Victor Porton wrote: > Lawrence D’Oliveiro wrote: > >> On Thursday, February 1, 2018 at 8:10:24 AM UTC+13, Victor Porton wrote: >>> Lawrence D’Oliveiro wrote: >>> The usual behaviour for POSIX is that the call is aborted with EINTR after

Re: Handle SIGINT in C and Python (Posting On Python-List Prohibited)

2018-01-31 Thread Victor Porton
Lawrence D’Oliveiro wrote: > On Thursday, February 1, 2018 at 5:57:58 PM UTC+13, Victor Porton wrote: >> I meant to call poll() from C code, not Python code. > > Do you need to use C code at all? Python is quite capable of handling this > . I

Re: [OT] Dutch Reach [was Re: Where has the practice of sending screen shots as source code come from?]

2018-01-31 Thread Rustom Mody
On Wednesday, January 31, 2018 at 11:17:45 PM UTC+5:30, Adriaan Renting wrote: > I am Dutch and after googling the term, I can confirm that the "Dutch > Reach" is taught in driving school here. > I was taught this maneuvre when getting my licence 20 years ago. > And in the Netherlands, we

[issue32739] collections.deque rotate(n=1) default value not documented

2018-01-31 Thread Yang Yu
New submission from Yang Yu : https://docs.python.org/3/library/collections.html#collections.deque rotate() works the same as rotate(1). The documentation did not mention the default for n. -- assignee: docs@python components: Documentation messages: 311403 nosy:

Re: Handle SIGINT in C and Python (Posting On Python-List Prohibited)

2018-01-31 Thread Victor Porton
Lawrence D’Oliveiro wrote: > On Thursday, February 1, 2018 at 8:10:24 AM UTC+13, Victor Porton wrote: >> Lawrence D’Oliveiro wrote: >> >>> The usual behaviour for POSIX is that the call is aborted with EINTR >>> after you get the signal. >> >> That poll() is interrupted does not imply that

[issue32738] CDLL : Can't find module

2018-01-31 Thread twinkim2
Change by twinkim2 : -- title: CDLL : Can't fine module -> CDLL : Can't find module ___ Python tracker ___

Re: Help to debug my free library

2018-01-31 Thread Victor Porton
Dennis Lee Bieber wrote: > On Wed, 31 Jan 2018 20:58:56 +0200, Victor Porton > declaimed the following: > >>LibComCom is a C library which passes a string as stdin of an OS command >>and stores its stdout in another string. >> >>I wrote this library recently:

wxPython 4.0.0 final

2018-01-31 Thread Robin Dunn
Announcing wxPython 4.0.0 = PyPI: https://pypi.python.org/pypi/wxPython/4.0.0 Extras: https://extras.wxPython.org/wxPython4/extras/ Pip:``pip install wxPython==4.0.0`` Changes in this release include the following: * Fixes in wx.aui to properly transfer ownership

Developer docker images

2018-01-31 Thread Barry Warsaw
With the release of 3.7b1, I’ve updated the semi-official python-dev big ol’ docker image you can use in various CI and development tasks, such as for GitLab CI runners. This image is based on Ubuntu 16.04 LTS, and comes with the latest Python 2.7, 3.4, 3.5, 3.6, 3.7, and git master (now

Re: [wxPython-dev] wxPython 4.0.0 final

2018-01-31 Thread Eric Fahlgren
Excellent work, Robin (and other committers)! Thanks for all your continued efforts to keep wxPython alive and growing. On Wed, Jan 31, 2018 at 5:37 PM, Robin Dunn wrote: > > Announcing wxPython 4.0.0 > = > > PyPI:

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread Nick Coghlan
Nick Coghlan added the comment: A useful heuristic is that if something is named with CapWords, then class-like *usage* is explicitly supported (inheritance, isinstance checks, etc). If it's named with snake_case or wordsruntogether, then calling it is OK, but you may run

[issue31368] Add os.preadv() and os.pwritev()

2018-01-31 Thread YoSTEALTH
Change by YoSTEALTH : -- pull_requests: +5293 ___ Python tracker ___ ___

[issue32394] socket lib beahavior change in 3.6.4

2018-01-31 Thread Steve Dower
Steve Dower added the comment: Nice. Think you can turn that into a pull request on GitHub? -- ___ Python tracker ___

Re: [OT] Dutch Reach [was Re: Where has the practice of sending screen shots as source code come from?]

2018-01-31 Thread Steven D'Aprano
On Wed, 31 Jan 2018 16:14:45 +0100, Adriaan Renting wrote: > I am Dutch and after googling the term, I can confirm that the "Dutch > Reach" is taught in driving school here. I was taught this maneuvre when > getting my licence 20 years ago. Thanks for the data point. Was it a requirement of the

[issue32394] socket lib beahavior change in 3.6.4

2018-01-31 Thread Ma Lin
Ma Lin added the comment: Base on Kamil's code, a little improvements. if hasattr(sys, 'getwindowsversion'): WIN_MAJOR, _, WIN_BUILD, *_ = sys.getwindowsversion() if WIN_MAJOR == 10: if WIN_BUILD >= 15063:# Windows 10 1703 pass elif

[issue32476] Add concat functionality to ElementTree xpath find

2018-01-31 Thread Ned Deily
Ned Deily added the comment: Sorry, I think this qualifies as a new feature and thus needs to go in 3.8. Plus it should get a wider review from those with ET experience. Perhaps @scoder would be willing go take a look. -- nosy: +scoder versions: -Python 3.7

[issue32738] CDLL : Can't fine module

2018-01-31 Thread twinkim2
New submission from twinkim2 : I just try to import ./so created by c language. However , if some c function library is added in c souce code such as "fopen" and "sscanf" related with stdio , runtime error is happend like as below.

[RELEASE] Python 3.7.0b1 is now available for testing

2018-01-31 Thread Ned Deily
On behalf of the Python development community and the Python 3.7 release team, I'm happy to announce the availability of Python 3.7.0b1. b1 is the first of four planned beta releases of Python 3.7, the next major release of Python, and marks the end of the feature development phase for 3.7. You

[RELEASE] Python 3.7.0b1 is now available for testing

2018-01-31 Thread Ned Deily
On behalf of the Python development community and the Python 3.7 release team, I'm happy to announce the availability of Python 3.7.0b1. b1 is the first of four planned beta releases of Python 3.7, the next major release of Python, and marks the end of the feature development phase for 3.7. You

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread YoSTEALTH
YoSTEALTH added the comment: Actually i don't remember the last time where i saw anyone call a function using a "with" statement. This is very sloppy, sure PEP8 isn't ironclad but this is going to lead to confusion and we might have another case of datetime model

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread Josh Rosenberg
Josh Rosenberg added the comment: YoSTEALTH: I think this is one of those cases where the fact of it being a class is incidental; it's used the same as if it were a function, and just happens to be implemented as a class (the docs actually describe it in terms

[issue32737] str.format not producing strings for nan argument in accordance with documentation

2018-01-31 Thread D. Michael Parrish
D. Michael Parrish added the comment: Thank you so much for that reply. Maybe with that I can push for an upgrade. -- ___ Python tracker

[issue32737] str.format not producing strings for nan argument in accordance with documentation

2018-01-31 Thread Zachary Ware
Zachary Ware added the comment: I think you need to clarify with whoever is restricting your Python version which version you can actually use: Python 3.0.1 has been out of support for the better part of 10 years now and hardly anybody ever actually used that

[issue32737] str.format not producing strings for nan argument in accordance with documentation

2018-01-31 Thread D. Michael Parrish
New submission from D. Michael Parrish : >>> version_info (3, 0, 1, 'final', 0) # I know this is an older version---stuck with it at work. # I did not see this issue in the tracker (380 results for nan). # Perhaps there is better documentation for how to use the issue #

[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-01-31 Thread Bar Harel
Bar Harel added the comment: Alright. Fixed, added tests, news and acks. Besides PR5466, we'll need another one for the 3.6 branch. -- ___ Python tracker

[issue32736] random.triangular yields unexpected distribution when args mixed

2018-01-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, while appreciate the sentiment and how well you articulated it, I'm going to decline this one for the reasons listed in the original discussion at https://bugs.python.org/issue13355 and because it is important to keep

[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-01-31 Thread Bar Harel
Change by Bar Harel : -- keywords: +patch pull_requests: +5292 stage: needs patch -> patch review ___ Python tracker ___

[issue32726] macOS installer and framework enhancements and changes for 3.7.0

2018-01-31 Thread Ned Deily
Ned Deily added the comment: New changeset 7fdefac8e8fdca29b329b27e6e50f3b265bd8900 by Ned Deily in branch '3.7': bpo-32726: Build macOS 10.9+ installer with private copy of Tcl/Tk 8.6 https://github.com/python/cpython/commit/7fdefac8e8fdca29b329b27e6e50f3b265bd8900

[issue32726] macOS installer and framework enhancements and changes for 3.7.0

2018-01-31 Thread Ned Deily
Ned Deily added the comment: New changeset 1ca2ffdc532622ef001418585c146e6b0f31027f by Ned Deily in branch 'master': bpo-32726: Build macOS 10.9+ installer with private copy of Tcl/Tk 8.6 https://github.com/python/cpython/commit/1ca2ffdc532622ef001418585c146e6b0f31027f

[issue30693] tarfile add uses random order

2018-01-31 Thread Ned Deily
Ned Deily added the comment: New changeset 57750be4ad3fa2cfd3473b5be1f1e1a5d0fa9f50 by Ned Deily (Bernhard M. Wiedemann) in branch '3.7': bpo-30693: zip+tarfile: sort directory listing (#2263) https://github.com/python/cpython/commit/57750be4ad3fa2cfd3473b5be1f1e1a5d0fa9f50

[issue32583] Crash during decoding using UTF-16/32 and custom error handler

2018-01-31 Thread Ned Deily
Ned Deily added the comment: New changeset 86fdad093b863db7ef6a3a00c9cff724c09442e7 by Ned Deily (Xiang Zhang) in branch '3.7': bpo-32583: Fix possible crashing in builtin Unicode decoders (#5325)

[issue32735] Typo in f-string example in docs

2018-01-31 Thread Ned Deily
Ned Deily added the comment: New changeset 70e304252af34dfde3d89c9a1aa48c0c4af17dd3 by Ned Deily (Cheryl Sabella) in branch '3.7': bpo-32735: Fix typo in f-strings datetime format specifier example (GH-5464)

[issue32727] smtplib's SMTP.send_message behaves differently with from_addr and to_addrs

2018-01-31 Thread Ned Deily
Ned Deily added the comment: New changeset 209108bd6997258948d13f48f2b5a2f1220c1a35 by Ned Deily (Stéphane Wirtel) in branch '3.7': bpo-32727: smtplib's SMTP.send_message behaves differently with from_addr and to_addrs (#5451)

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-01-31 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy stage: -> needs patch type: -> enhancement ___ Python tracker ___

[issue27923] PEP 467 -- Minor API improvements for binary sequences

2018-01-31 Thread INADA Naoki
INADA Naoki added the comment: ML meant mailing list. There is guide for it. http://devguide.python.org/communication/ If you really want this new API, you can search previous discussion and post new mail with summary of the previous discussion. --

[issue27923] PEP 467 -- Minor API improvements for binary sequences

2018-01-31 Thread Elias Zamaria
Elias Zamaria added the comment: INADA, what is ML? How do I restart the discussion? -- ___ Python tracker ___

[issue27923] PEP 467 -- Minor API improvements for binary sequences

2018-01-31 Thread INADA Naoki
INADA Naoki added the comment: PEP should be accepted before review and merge. So what you can do is restart discussion on ML again. -- nosy: +inada.naoki ___ Python tracker

Re: Help to debug my free library

2018-01-31 Thread Chris Angelico
On Thu, Feb 1, 2018 at 9:31 AM, alister via Python-list wrote: > On Thu, 01 Feb 2018 06:48:03 +1100, Chris Angelico wrote: > >> On Thu, Feb 1, 2018 at 6:41 AM, Victor Porton wrote: >>> wxjmfa...@gmail.com wrote: >>> Le mercredi 31 janvier 2018

Re: Help to debug my free library

2018-01-31 Thread alister via Python-list
On Thu, 01 Feb 2018 06:48:03 +1100, Chris Angelico wrote: > On Thu, Feb 1, 2018 at 6:41 AM, Victor Porton wrote: >> wxjmfa...@gmail.com wrote: >> >>> Le mercredi 31 janvier 2018 20:13:06 UTC+1, Chris Angelico a écrit : On Thu, Feb 1, 2018 at 5:58 AM, Victor Porton

[issue32735] Typo in f-string example in docs

2018-01-31 Thread STINNER Victor
STINNER Victor added the comment: @Cheryl: I concur with Mariatta, good catch, thanks! -- nosy: +vstinner ___ Python tracker

[issue32735] Typo in f-string example in docs

2018-01-31 Thread Mariatta Wijaya
Change by Mariatta Wijaya : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32735] Typo in f-string example in docs

2018-01-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks! -- ___ Python tracker ___ ___

[issue32735] Typo in f-string example in docs

2018-01-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 581ce25e1ffa374e62547ef266b6326bee0c54e5 by Mariatta (Miss Islington (bot)) in branch '3.6': bpo-32735: Fix typo in f-strings datetime format specifier example (GH-5464) (GH-5465)

[issue20984] 'Add/Remove Programs' dialog missing entries for 32-bit CPython 'current user only' installations on 64-bit Windows

2018-01-31 Thread Steve Dower
Change by Steve Dower : -- resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue32730] Allow py launcher to launch other registered Pythons

2018-01-31 Thread Steve Dower
Steve Dower added the comment: Yep, this was part of the plan. Just hasn't happened yet (it probably requires a significant rewrite of the launcher which nobody has volunteered to do or found the time for). I thought I had another open bug on this too... if someone

[issue32736] random.triangular yields unexpected distribution when args mixed

2018-01-31 Thread Edward Preble
New submission from Edward Preble : The random.triangular function produces an unexpected distribution result (instead of an error or warning message) when the order of the 3 arguments are mixed up. Python notebook with demo of issue here:

[issue32735] Typo in f-string example in docs

2018-01-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset b299393cc372f3ecbef4304f8eaa4c7838e975ca by Mariatta (Cheryl Sabella) in branch 'master': bpo-32735: Fix typo in f-strings datetime format specifier example (GH-5464)

[issue32735] Typo in f-string example in docs

2018-01-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +5291 ___ Python tracker ___

[issue32735] Typo in f-string example in docs

2018-01-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Good catch! I checked my presentation slides (where this example comes from). It appeared that I meant it as %b, so the output should have been `Jan` instead of `January`. But no strong preference, the idea is to demonstrate how

[issue32727] smtplib's SMTP.send_message behaves differently with from_addr and to_addrs

2018-01-31 Thread R. David Murray
R. David Murray added the comment: Thanks, Stéphane. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.4, Python 3.5 ___ Python tracker

[issue32689] shutil.move raises AttributeError if first argument is a pathlib.Path object and destination is a directory

2018-01-31 Thread Emily Morehouse
Emily Morehouse added the comment: Ah, you're right. That was a typo when I was redacting my full path. The path object remains unchanged even though the directory has moved. Should have been: >>> import os, pathlib, shutil >>> os.mkdir('test1') >>>

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread YoSTEALTH
YoSTEALTH added the comment: ps, maybe a better name "DisabledZone" ? -- ___ Python tracker ___

[issue32735] Typo in f-string example in docs

2018-01-31 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5290 stage: -> patch review ___ Python tracker ___

[issue32735] Typo in f-string example in docs

2018-01-31 Thread Cheryl Sabella
New submission from Cheryl Sabella : On the lexical analysis doc page, in f-strings example, the following example isn't quite right: >>> f"{today:%b %d, %Y}" # using date format specifier 'January 27, 2017' Submitting a patch shortly to use %B instead of %b. --

[issue32727] smtplib's SMTP.send_message behaves differently with from_addr and to_addrs

2018-01-31 Thread R. David Murray
R. David Murray added the comment: New changeset 85a92d00bd278022cc00fda6b124c06f614c5ebb by R. David Murray (Miss Islington (bot)) in branch '3.6': bpo-32727: smtplib's SMTP.send_message behaves differently with from_addr and to_addrs (GH-5451) (#5455)

[issue32733] test_coroutines is failed when run with -We

2018-01-31 Thread Yury Selivanov
Yury Selivanov added the comment: Or to use assertWarnsRegex -- ___ Python tracker ___

[issue32733] test_coroutines is failed when run with -We

2018-01-31 Thread Yury Selivanov
Yury Selivanov added the comment: I think assertWarns just handles it. Maybe the test should be converted to use it? -- ___ Python tracker

[issue32733] test_coroutines is failed when run with -We

2018-01-31 Thread Nathaniel Smith
Nathaniel Smith added the comment: Ok, yeah, that's a test that a warning is emitted, which fails when the warning is converted into an error instead. Need to normalize the warnings filter settings inside that test, I guess. How does this not cause the same problem for every

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread YoSTEALTH
YoSTEALTH added the comment: Since "ensure_disabled" is a class https://docs.python.org/3.7/library/gc.html#gc.ensure_disabled it should be "EnsureDisabled" according to https://www.python.org/dev/peps/pep-0008/#class-names -- nosy: +YoSTEALTH

Re: Help to debug my free library

2018-01-31 Thread breamoreboy
On Wednesday, January 31, 2018 at 7:41:50 PM UTC, Victor Porton wrote: > wxjmfa...@gmail.com wrote: > > > Le mercredi 31 janvier 2018 20:13:06 UTC+1, Chris Angelico a écrit : > >> On Thu, Feb 1, 2018 at 5:58 AM, Victor Porton wrote: > >> > LibComCom is a C library which passes a string as stdin

[issue27923] PEP 467 -- Minor API improvements for binary sequences

2018-01-31 Thread Elias Zamaria
Elias Zamaria added the comment: What else needs to be done with this issue? Can someone merge my pull request? -- ___ Python tracker

Re: Help to debug my free library

2018-01-31 Thread Chris Angelico
On Thu, Feb 1, 2018 at 6:41 AM, Victor Porton wrote: > wxjmfa...@gmail.com wrote: > >> Le mercredi 31 janvier 2018 20:13:06 UTC+1, Chris Angelico a écrit : >>> On Thu, Feb 1, 2018 at 5:58 AM, Victor Porton wrote: >>> > LibComCom is a C library which passes a

Re: Help to debug my free library

2018-01-31 Thread Chris Angelico
On Thu, Feb 1, 2018 at 6:26 AM, Victor Porton wrote: > Chris Angelico wrote: > >> On Thu, Feb 1, 2018 at 5:58 AM, Victor Porton wrote: >>> LibComCom is a C library which passes a string as stdin of an OS command >>> and stores its stdout in another string. >> >>

Re: Help to debug my free library

2018-01-31 Thread Victor Porton
wxjmfa...@gmail.com wrote: > Le mercredi 31 janvier 2018 20:13:06 UTC+1, Chris Angelico a écrit : >> On Thu, Feb 1, 2018 at 5:58 AM, Victor Porton wrote: >> > LibComCom is a C library which passes a string as stdin of an OS >> > command and stores its stdout in another string.

Re: Help to debug my free library

2018-01-31 Thread Victor Porton
Chris Angelico wrote: > On Thu, Feb 1, 2018 at 5:58 AM, Victor Porton wrote: >> LibComCom is a C library which passes a string as stdin of an OS command >> and stores its stdout in another string. > > Something like the built-in subprocess module does? I was going to write:

[issue18876] Problems with files opened in append mode with io module

2018-01-31 Thread Cheryl Sabella
Cheryl Sabella added the comment: I believe Erik opened #20082 for the BufferedWriter bug, so I think this issue can be closed as Resolved? -- nosy: +csabella ___ Python tracker

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread Ned Deily
Ned Deily added the comment: > Agree that this is invisible enough that no release note is warranted. OK > Can I go ahead and do a reversion on the master branch or I should I wait a > day or so? Please hold off for the moment until the 3.7 branch is announced. It will

[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-01-31 Thread Yury Selivanov
Change by Yury Selivanov : -- priority: normal -> high stage: -> needs patch type: security -> behavior versions: -Python 3.4, Python 3.5 ___ Python tracker

Re: Handle SIGINT in C and Python (Posting On Python-List Prohibited)

2018-01-31 Thread Victor Porton
Lawrence D’Oliveiro wrote: > On Wednesday, January 31, 2018 at 9:55:45 PM UTC+13, Victor Porton wrote: >> Lawrence D’Oliveiro wrote: >> >>> On Wednesday, January 31, 2018 at 8:58:18 PM UTC+13, Victor Porton >>> wrote: For this reason I cannot use Python signals because "A Python signal

Re: Help to debug my free library

2018-01-31 Thread Chris Angelico
On Thu, Feb 1, 2018 at 5:58 AM, Victor Porton wrote: > LibComCom is a C library which passes a string as stdin of an OS command and > stores its stdout in another string. Something like the built-in subprocess module does? ChrisA --

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Agree that this is invisible enough that no release note is warranted. Can I go ahead and do a reversion on the master branch or I should I wait a day or so? -- assignee: lisroach -> rhettinger

Help to debug my free library

2018-01-31 Thread Victor Porton
LibComCom is a C library which passes a string as stdin of an OS command and stores its stdout in another string. I wrote this library recently: https://github.com/vporton/libcomcom Complete docs are available at https://vporton.github.io/libcomcom-docs/ Now I am trying to make Python bindings

[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-01-31 Thread Bar Harel
New submission from Bar Harel : Hey guys, I found a pretty dangerous bug that allows acquiring locks in asyncio without them being free. This happens due to double release (calling _wake_up_first) from both release and acquire in case of cancellation. The example I've

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg311359 ___ Python tracker ___

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread Ned Deily
Ned Deily added the comment: (If anyone downstream is having problems with test aborts, a workaround until b2 is to simply skip test_gc by adding -x test_gc, like: python3.7 -m test -We -x test_gc ) -- ___ Python tracker

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread Ned Deily
Ned Deily added the comment: (If anyone downstream is having problems with test aborts, a workaround until b2 is to simply skip test_gc by adding -x test_gc, like: python3.7 -m test -We -x test_gc". ) -- ___ Python tracker

[issue32731] getpass.getuser() raises an unspecified exceptions (ImportError, OSError, etc)

2018-01-31 Thread Yaron de Leeuw
Yaron de Leeuw added the comment: What kind of exception did you have in mind? As the 'someone' you mentioned, I can contribute this. btw, os.getuid() on windows raises an attribute error, so we need to check that too. -- ___

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread Ned Deily
Ned Deily added the comment: OK, it sounds like we have enough of a consensus to remove it for 3.7.0b2. Unfortunately, 3.7.0b1 is already finished. We are not going to do an emergency brown bag b2 just for this. We could add a warning note to the release notice that is

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: I also think this should be reverted if that is still possible. I didn't put in sufficient review effort at the outset. No need to publish embarrassing code, especially for such a minor feature. --

[issue32733] test_coroutines is failed when run with -We

2018-01-31 Thread Yury Selivanov
Yury Selivanov added the comment: Nathaniel, this seems to be related to coro-origin-tracking. -- nosy: +njs ___ Python tracker

[issue32732] LoggingAdapter ignores extra kwargs of Logger#log()

2018-01-31 Thread Cyril Martin
New submission from Cyril Martin : - LoggerAdapter processes only extra kwargs given during its __init__ So extra kwargs, given to Logger#log are ignored when we configure a LoggerAdapter (same for: debug, info, warning etc). - I expect extras are merged. More precisely, I

[issue32733] test_coroutines is failed when run with -We

2018-01-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : $ ./python -We -m test test_coroutines Run tests sequentially 0:00:00 load avg: 0.29 [1/1] test_coroutines Exception ignored in: .corofn at 0x7fc5fc692cb8> Traceback (most recent call last): File

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread Yury Selivanov
Yury Selivanov added the comment: > But, more importantly, this is a new feature so it doesn't break any existing > code. I imagine you're almost done with the beta-1 release, Ned, so I'd hate to create more work for you here. Let's release beta-1 as is. > and in that

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread Ned Deily
Ned Deily added the comment: > 2. The merged PR crashes on debug build of CPython. Actually, for me, it only crashes on a debug build when using -We with tests, an option I don't normally use, otherwise, I would have noticed it before. And, as noted, few downstream users

[issue32731] getpass.getuser() raises an unspecified exceptions (ImportError, OSError, etc)

2018-01-31 Thread Yaron de Leeuw
Change by Yaron de Leeuw : -- nosy: +jarondl ___ Python tracker ___ ___ Python-bugs-list

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Yury. -- ___ Python tracker ___

[issue32731] getpass.getuser() raises an unspecified exceptions (ImportError, OSError, etc)

2018-01-31 Thread Gregory P. Smith
New submission from Gregory P. Smith : This has been true since Python 1.x. getpass.getuser() is documented as "raising an exception" but doesn't specify what exception. On Windows when the environment variables it looks at are not set, an ImportError (!) escapes due to

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread Yury Selivanov
Yury Selivanov added the comment: A few thoughts: 1. The merged PR releases GIL for any Python code run in `with gc.ensure_disabled()`. This is just plain wrong. 2. The merged PR crashes on debug build of CPython. 3. I don't actually understand this feature. Our GC

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't understand why PyGILState_Ensure() and PyGILState_Release() are used at all. I think it is better to revert PR 4224 until we understood this code. Currently the code contains a bug which leads to a crash in some

Re: for info

2018-01-31 Thread Joel Goldstick
On Wed, Jan 31, 2018 at 10:55 AM, wrote: > from where we learn python for free of cost. i am begineer in python.plzz > help me > -- > https://mail.python.org/mailman/listinfo/python-list > Start with python.org tutorial pages -- Joel Goldstick

for info

2018-01-31 Thread harnali70
from where we learn python for free of cost. i am begineer in python.plzz help me -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] Dutch Reach [was Re: Where has the practice of sending screen shots as source code come from?]

2018-01-31 Thread Adriaan Renting
Adriaan Renting| Email: rent...@astron.nl Software Engineer Radio Observatory ASTRON | Phone: +31 521 595 100 (797 direct) P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 595 101 The Netherlands| Web:

  1   2   >