Re: The state of asyncio in 2019

2019-05-19 Thread Chris Angelico
On Mon, May 20, 2019 at 11:56 AM Becaree wrote: > > So i started to use asyncio some times ago. I see a lots of threads/forums > which date back from 2015 or older. My question is what the state of asyncio > in 2019? I guess, the major constrain of having async/await is quiet a > drawback. I

[issue24653] Mock.assert_has_calls([]) is surprising for users

2019-05-19 Thread Inada Naoki
Inada Naoki added the comment: I concur with Serhiy. Current document and example describe clearly that this API is for checking inclusion, not equality. Current example: """ >>> mock = Mock(return_value=None) >>> mock(1) >>> mock(2) >>> mock(3) >>> mock(4) >>> calls = [call(2), call(3)]

[issue36958] IDLE should print exit message or status if one is provided

2019-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +13346 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36958] IDLE should print exit message or status if one is provided

2019-05-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 6d965b39b7a486dd9e96a60b19ee92382d668299 by Terry Jan Reedy in branch 'master': bpo-36958: In IDLE, print exit message (GH-13435) https://github.com/python/cpython/commit/6d965b39b7a486dd9e96a60b19ee92382d668299 --

[issue36958] IDLE should print exit message or status if one is provided

2019-05-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +13345 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

The state of asyncio in 2019

2019-05-19 Thread Becaree
So i started to use asyncio some times ago. I see a lots of threads/forums which date back from 2015 or older. My question is what the state of asyncio in 2019? I guess, the major constrain of having async/await is quiet a drawback. I do love asyncio but reinventing the wheel using it is

[issue36630] failure of test_colors_funcs in test_curses with ncurses 6.1

2019-05-19 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: The test fails because curses.pair_content(curses.COLOR_PAIRS-1) validates its parameter against the limits for signed short (max 32767) while curses.COLOR_PAIRS-1 has the value 65535. Unfortunately, re-plumbing curses.pair_content() to use signed

[issue36951] Wrong types for PyMemberDefs in Objects/typeobject.c

2019-05-19 Thread miss-islington
miss-islington added the comment: New changeset 64b0bdba7ee30ecc5c4c5ad46fb6afd6c0ddd487 by Miss Islington (bot) in branch '3.7': closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403)

[issue36951] Wrong types for PyMemberDefs in Objects/typeobject.c

2019-05-19 Thread miss-islington
miss-islington added the comment: New changeset eda691dd9d076e175c396dc6f85dee2795572f6c by Miss Islington (bot) in branch '2.7': closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403)

[issue36951] Wrong types for PyMemberDefs in Objects/typeobject.c

2019-05-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 53d378c81286644138415cb56da52a7351e1a477 by Benjamin Peterson (Zackery Spytz) in branch 'master': closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403)

[issue36951] Wrong types for PyMemberDefs in Objects/typeobject.c

2019-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +13344 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36951] Wrong types for PyMemberDefs in Objects/typeobject.c

2019-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +13343 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13342 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2019-05-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset fd1e0e93b15af018184476ea0b3af0eabef37d89 by Victor Stinner in branch 'master': bpo-35134: Register new traceback.h header files (GH-13431) https://github.com/python/cpython/commit/fd1e0e93b15af018184476ea0b3af0eabef37d89 --

[issue36963] PyDict_GetItem SegFaults on simple dictionary lookup when using Ctypes

2019-05-19 Thread Larry Hastings
Larry Hastings added the comment: Inada-san, while it is best to not call PyDict_ functions without holding the GIL, it doesn't matter unless one creates a second thread. The GIL doesn't even exist until Python creates a second thread. But, I too don't want bugs.python.org to become a

Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Terry Reedy
On 5/19/2019 5:34 PM, Christian Heimes wrote: By the way, I'm working on removing some dead battieres since last year, see proto PEP https://github.com/tiran/peps/blob/oldbatteries/pep-.rst and LWN article https://lwn.net/Articles/755229/ Hooray! I believe that there are other modules,

[issue35252] test_functools dead code after FIXME

2019-05-19 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36963] PyDict_GetItem SegFaults on simple dictionary lookup when using Ctypes

2019-05-19 Thread Inada Naoki
Inada Naoki added the comment: At first glance, you used ctypes.cdll, which releases GIL. But you called Python/C API in extension module. You shouldn't do it. Try ctypes.pydll, which don't release GIL. If it doesn't help you, please continue it in another communities. I don't want to make

Re: Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Andrew Z
The pg python lib requires https://www.postgresql.org/docs/current/libpq.html pip pulls it as a part of the lib install, whereas in oracle case you install the driver yourself first.(suize matters) //for some reason i thought the driver libs come as part of cx . But it was a year ago and my

Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Terry Reedy
On 5/19/2019 4:48 PM, Chris Angelico wrote: On Mon, May 20, 2019 at 5:41 AM John Ladasky wrote: On Saturday, May 18, 2019 at 2:21:59 PM UTC-7, Paul Rubin wrote: http://pyfound.blogspot.com/2019/05/amber-brown-batteries-included-but.html This was a controversial talk at the Python language

[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-19 Thread daniel hahler
New submission from daniel hahler : With a program like the following, `args` will not display the keyword-only argument: ``` def f1(arg=None, *, kwonly=None): __import__('pdb').set_trace() f1() ``` ``` (Pdb) args arg = 'arg' kw = 'kw' ``` Related code:

[issue34580] sqlite doc: clarify the scope of the context manager

2019-05-19 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6 ___ Python tracker ___

[issue34580] sqlite doc: clarify the scope of the context manager

2019-05-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset 205c1f0e36e00e6e7cb7fbabaab4f52732859f9e by Berker Peksag (Miss Islington (bot)) in branch '3.7': bpo-34580: Update sqlite3 examples to call close() explicitly (GH-9079)

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2019-05-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13341 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2019-05-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset ed48866c55b8e4ee14faa8b5ad97819e8e74c98b by Victor Stinner in branch 'master': bpo-35134: Split traceback.h header (GH-13430) https://github.com/python/cpython/commit/ed48866c55b8e4ee14faa8b5ad97819e8e74c98b --

[issue35252] test_functools dead code after FIXME

2019-05-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset d673810b9d9df6fbd29f5b7db3973d5adae10fd3 by Łukasz Langa (Lysandros Nikolaou) in branch 'master': bpo-35252: Remove FIXME from test_functools (GH-10551) https://github.com/python/cpython/commit/d673810b9d9df6fbd29f5b7db3973d5adae10fd3 --

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2019-05-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13340 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34580] sqlite doc: clarify the scope of the context manager

2019-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +13339 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34580] sqlite doc: clarify the scope of the context manager

2019-05-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset 287b84de939db47aa8c6f30734ceb8aba9d1db29 by Berker Peksag (Xtreak) in branch 'master': bpo-34580: Update sqlite3 examples to call close() explicitly (GH-9079) https://github.com/python/cpython/commit/287b84de939db47aa8c6f30734ceb8aba9d1db29

Re: Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Andrew Z
Marco, You clearly know more about python/java universe than i do. But im infinitely thankful to cx team for putting out the package. Feature and performance wise , even with non supported oracle timesten, it was fantastic. Id always go after "native" vs jdbc. But i understand that most of apps

Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Chris Angelico
On Mon, May 20, 2019 at 7:38 AM Christian Heimes wrote: > > On 19/05/2019 22.48, Chris Angelico wrote: > >> the sslmodule requires a monkeypatch to connect to non-ASCII domain names, > > It's not correct. There were some bugs in IDNA support in the SSL > module. Nathaniel and I worked on the

Re: Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Chris Angelico
On Mon, May 20, 2019 at 7:34 AM Marco Sulla via Python-list wrote: > > I programmed in Python 2 and 3 for many years, and I find it a fantastic > language. > > Now I'm programming in Java by m ore than 2 years, and even if I found its > code much more boilerplate, I admit that JDBC is fantastic.

Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Christian Heimes
On 19/05/2019 22.48, Chris Angelico wrote: >> the sslmodule requires a monkeypatch to connect to non-ASCII domain names, It's not correct. There were some bugs in IDNA support in the SSL module. Nathaniel and I worked on the topic and fixed it in 3.7, see https://bugs.python.org/issue28414

[issue36968] Top level transient modal windows stopping deiconify on windows 10

2019-05-19 Thread Daniel Law
Change by Daniel Law : Removed file: https://bugs.python.org/file48337/arrow_rotate_clockwise_48x48.png ___ Python tracker ___ ___

Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Marco Sulla via Python-list
I programmed in Python 2 and 3 for many years, and I find it a fantastic language. Now I'm programming in Java by m ore than 2 years, and even if I found its code much more boilerplate, I admit that JDBC is fantastic. One example over all: Oracle. If you want to access an Oracle DB from Python,

[issue36967] Eliminate unnecessary check in _strptime when determining AM/PM

2019-05-19 Thread Gordon P. Hemsley
Change by Gordon P. Hemsley : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36967] Eliminate unnecessary check in _strptime when determining AM/PM

2019-05-19 Thread Gordon P. Hemsley
Change by Gordon P. Hemsley : -- keywords: +patch pull_requests: +13338 stage: -> patch review ___ Python tracker ___ ___

[issue36968] Top level transient modal windows stopping deiconify on windows 10

2019-05-19 Thread Daniel Law
New submission from Daniel Law : python 3.6 and also found it in 3.7.3, on windows 10. when a main application window built with Tkinter has a modal top level window (transient, grab_set) if it is minimised (which get blocked unless you click show desktop or shake another application around)

[issue36967] Eliminate unnecessary check in _strptime when determining AM/PM

2019-05-19 Thread Gordon P. Hemsley
New submission from Gordon P. Hemsley : Since __calc_am_pm() explicitly limits self.am_pm to 2 values, there are only ever 3 possible values of %p: AM, PM, or blank. Since blank is treated the same as AM, there is only the need to check whether %p is PM. This eliminates an unnecessary

[issue22865] Document how to make pty.spawn not copy data

2019-05-19 Thread Geoff Shannon
Geoff Shannon added the comment: @martin.panter I removed the mention of inserting null bytes and restricted the documentation updates to more fully documenting the current behaviour. -- ___ Python tracker

[issue36881] isinstance raises TypeError for metaclass with metaclass=ABCMeta

2019-05-19 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: I think this is related to how `__subclasscheck__` is implemented in `ABCMeta`. I just checked this also happens in Python 3.6 (i.e. it is not something specific to the C version introduced in Python 3.7). --

[issue35814] Syntax quirk with variable annotations

2019-05-19 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Is PEP the best place for such updates? Maybe we can add a `versionchanged` note in https://docs.python.org/3/reference/simple_stmts.html#annotated-assignment-statements instead? -- ___ Python tracker

Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Chris Angelico
On Mon, May 20, 2019 at 5:41 AM John Ladasky wrote: > > On Saturday, May 18, 2019 at 2:21:59 PM UTC-7, Paul Rubin wrote: > > http://pyfound.blogspot.com/2019/05/amber-brown-batteries-included-but.html > > > > This was a controversial talk at the Python language summit, giving > > various

[issue36721] Add pkg-config python-3.8-embed

2019-05-19 Thread Ned Deily
Ned Deily added the comment: I don't understand the need for this. AFAICT, the purpose of python-config is to provide configuration info for embedding Python (Issue1161914 and https://docs.python.org/3/extending/embedding.html#compiling-and-linking-under-unix-like-systems). At some point,

Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread John Ladasky
On Saturday, May 18, 2019 at 2:21:59 PM UTC-7, Paul Rubin wrote: > http://pyfound.blogspot.com/2019/05/amber-brown-batteries-included-but.html > > This was a controversial talk at the Python language summit, giving > various criticisms of Python's standard library, I will try to find some time

Re: Tkinter optionMenu Resize

2019-05-19 Thread Terry Reedy
On 5/18/2019 10:40 AM, Cummins, Hayden wrote: Hi! I've been having a lot of trouble resizing the Tkinter optionMenu feature due to my inexperience in Python. Is there a way to resize the option menu? If so, how? I've tried using the config function and it makes it so the program no longer

[issue35647] Cookie path check returns incorrect results

2019-05-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +13337 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35121] Cookie domain check returns incorrect results

2019-05-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +13336 stage: commit review -> patch review ___ Python tracker ___ ___

[issue36962] Cant sort ModuleInfo instances

2019-05-19 Thread Eric V. Smith
Eric V. Smith added the comment: I agree. Sorry, BTaskaya, but I just don't think the benefit of this change is worth the disruption. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

Re: Import module from a different subdirectory

2019-05-19 Thread Peter J. Holzer
On 2019-05-18 16:15:34 -0700, Rich Shepard wrote: > My apologies to all who patiently tried to get me to see what I kept > missing. I've certainly made similar mistakes in the past (and probably will in the future). And I didn't see it when I read your mail the first time. But then I read Piet's

[issue21315] email._header_value_parser does not recognise in-line encoding changes

2019-05-19 Thread Abhilash Raj
Change by Abhilash Raj : -- pull_requests: +13335 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: Checking network input processing by Python for a multi-threaded server

2019-05-19 Thread Markus Elfring
>> I get an other impression from the statements “self._threads.append(t)” >> (process_request) >> and “thread.join()” (server_close). > > Okay -- v3.7 has added more logic that didn't exist in the v3.5 code > I was examining... (block_on_close is new). Thanks for such a version

Re: PyCharm installation

2019-05-19 Thread Jorge Gimeno
On Sun, May 19, 2019, 3:27 AM Syed Rizvi wrote: > Hi, > > I tried to install PyCharm. First time when I installed it, it worked > well. It developed some problem and when I reinstalled PyCharm, it gives me > error. I have installed it several times but could not install it > > I am unable to

[issue36759] datetime: astimezone() results in OSError: [Errno 22] Invalid argument

2019-05-19 Thread SilentGhost
SilentGhost added the comment: I'm going to close this issue as a duplicate of #29097. If you're still experience this problem on python3.7, please re-open. -- resolution: -> duplicate stage: -> resolved status: pending -> closed superseder: -> [Windows] datetime.fromtimestamp(t)

Re: Why is augmented assignment of a tuple with iterable unpacking invalid syntax?

2019-05-19 Thread Piet van Oostrum
Eugene Alterman writes: > a = 1, 2, 3 > > b = *a, # assignment - OK > b += *a, # augmented assignment - syntax error > > Need to enclose in parenthesis: > > b += (*a,) > > Why isn't it allowed with an augmented assignment, while it is OK with a > regular assignment? >

Re: The if is not working properly

2019-05-19 Thread MRAB
On 2019-05-19 11:29, Cameron Simpson wrote: On 18May2019 13:22, nobelio wrote: When you print the variable “a” it appears as True, but the program is it is not getting in the if a==True: It may be that "a" is not the Boolean value True but something else. But that is just a guess. Please

[issue36957] Speed up math.isqrt

2019-05-19 Thread Mark Dickinson
Mark Dickinson added the comment: Calling this done for now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36957] Speed up math.isqrt

2019-05-19 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 5c08ce9bf712acbb3f05a3a57baf51fcb534cdf0 by Mark Dickinson in branch 'master': bpo-36957: Speed up math.isqrt (#13405) https://github.com/python/cpython/commit/5c08ce9bf712acbb3f05a3a57baf51fcb534cdf0 --

[issue35894] Apparent regression in 3.8-dev: 'TypeError: required field "type_ignores" missing from Module'

2019-05-19 Thread David Lord
Change by David Lord : -- nosy: +davidism ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29183] Unintuitive error handling in wsgiref when a crash happens in write() or close()

2019-05-19 Thread Berker Peksag
Change by Berker Peksag : -- components: +Library (Lib) resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue29183] Unintuitive error handling in wsgiref when a crash happens in write() or close()

2019-05-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset f393e8eb463d60ce559982613429568c518ab8d9 by Berker Peksag (Miss Islington (bot)) in branch '3.7': bpo-29183: Fix double exceptions in wsgiref.handlers.BaseHandler (GH-12914)

Re: The if is not working properly

2019-05-19 Thread Alister via Python-list
On Sun, 19 May 2019 20:29:35 +1000, Cameron Simpson wrote: > On 18May2019 13:22, nobelio wrote: >>When you print the variable “a” it appears as True, but the program is >>it is not getting in the if a==True: > > It may be that "a" is not the Boolean value True but something else. But > that is

[issue36691] SystemExit & sys.exit : Allow both exit status and message

2019-05-19 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35894] Apparent regression in 3.8-dev: 'TypeError: required field "type_ignores" missing from Module'

2019-05-19 Thread Anthony Sottile
Anthony Sottile added the comment: there's other optional fields in the ast, type ignores don't seem essential to the `Module`, could those be made optional as well? -- nosy: +Anthony Sottile ___ Python tracker

[issue29183] Unintuitive error handling in wsgiref when a crash happens in write() or close()

2019-05-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset 7c59362a15dfce538512ff1fce4e07d33a925cfb by Berker Peksag in branch 'master': bpo-29183: Fix double exceptions in wsgiref.handlers.BaseHandler (GH-12914) https://github.com/python/cpython/commit/7c59362a15dfce538512ff1fce4e07d33a925cfb

[issue29183] Unintuitive error handling in wsgiref when a crash happens in write() or close()

2019-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +13334 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35328] Set a environment variable for venv prompt

2019-05-19 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Is anybody still working on this? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27141] Fix collections.UserList shallow copy

2019-05-19 Thread miss-islington
miss-islington added the comment: New changeset 3645d29a1dc2102fdb0f5f0c0129ff2295bcd768 by Miss Islington (bot) in branch '3.7': bpo-27141: Fix collections.UserList and UserDict shallow copy. (GH-4094) https://github.com/python/cpython/commit/3645d29a1dc2102fdb0f5f0c0129ff2295bcd768

[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-05-19 Thread SilentGhost
Change by SilentGhost : -- nosy: +vinay.sajip versions: +Python 3.8 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35328] Set a environment variable for venv prompt

2019-05-19 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- nosy: +lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36966] Export __VENV_PROMPT__ as environment variable

2019-05-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- superseder: -> Set a environment variable for venv prompt ___ Python tracker ___ ___

[issue36966] Export __VENV_PROMPT__ as environment variable

2019-05-19 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- resolution: -> duplicate ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36966] Export __VENV_PROMPT__ as environment variable

2019-05-19 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: It is. Somehow search failed me big time. I'm closing the issue. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue36966] Export __VENV_PROMPT__ as environment variable

2019-05-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this same as issue35328? -- nosy: +xtreak ___ Python tracker ___ ___

[issue36963] PyDict_GetItem SegFaults on simple dictionary lookup when using Ctypes

2019-05-19 Thread Apoorv Reddy
Apoorv Reddy added the comment: Greetings Larry ! I apologize for spamming so many people. I was hoping to get some insight into this ! Could you let me know to whom I could reach out for help ? I've included tehybel as I saw that he has raised/resolved some issues with PyDict in the past.

[issue36966] Export __VENV_PROMPT__ as environment variable

2019-05-19 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : For those, who use custom tools for their terminals, prepending __VENV_PROMPT__ to PS1 doesn't really help all that much, because it gets overwritten by those tools. Would it make sense to export __VENV_PROMPT__ as an environment variable upon

[issue36963] PyDict_GetItem SegFaults on simple dictionary lookup when using Ctypes

2019-05-19 Thread Larry Hastings
Larry Hastings added the comment: It's not surprising that you crashed the CPython interpreter by using ctypes--it's very easy to do by accident, or via a bug in your own code. That's why we don't accept crash reports involving ctypes. Also, it's rude to "nosy" so many people, particularly

[issue27141] Fix collections.UserList shallow copy

2019-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27141] Fix collections.UserList shallow copy

2019-05-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f4e1babf44792bdeb0c01da96821ba0800a51fd8 by Serhiy Storchaka (Bar Harel) in branch 'master': bpo-27141: Fix collections.UserList and UserDict shallow copy. (GH-4094)

[issue36962] Cant sort ModuleInfo instances

2019-05-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Dataclasses are even more heavyweight than namedtuples. I am not sure that they should be used in the stdlib now. Especially in this case. I think the common use of iter_modules() is immediate unpacking of the yielded tuple: for importer, modname,

[issue36948] NameError in urllib.request.URLopener.retrieve

2019-05-19 Thread Berker Peksag
Berker Peksag added the comment: Thanks! Apparently, backport to 3.7 isn't needed, so I just closed PR 13422. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36567] DOC: manpage directive doesn't create hyperlink

2019-05-19 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36948] NameError in urllib.request.URLopener.retrieve

2019-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +13332 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36948] NameError in urllib.request.URLopener.retrieve

2019-05-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset c661b30f89ffe7a7995538d3b1649469b184bee4 by Berker Peksag (Xtreak) in branch 'master': bpo-36948: Fix NameError in urllib.request.URLopener.retrieve (GH-13389) https://github.com/python/cpython/commit/c661b30f89ffe7a7995538d3b1649469b184bee4

[issue36962] Cant sort ModuleInfo instances

2019-05-19 Thread Berker Peksag
Berker Peksag added the comment: I agree with Eric that this use case can be easily covered by using sorted(..., key=...). I suggest closing this as 'rejected'. -- nosy: +berker.peksag ___ Python tracker

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-19 Thread Erik Janssens
Erik Janssens added the comment: According to the Microsoft documentation at https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/using-ntstatus-values system-supplied status codes are defined in ntstatus.h. and the NTSTATUS type is defined in ntdef.h PR 13421 includes both

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-19 Thread Erik Janssens
Change by Erik Janssens : -- keywords: +patch pull_requests: +13330 stage: -> patch review ___ Python tracker ___ ___

[issue36962] Cant sort ModuleInfo instances

2019-05-19 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not sure all of this churn is worth it for an unusual use case that can be satisfied by: >>> sorted(pkgutil.iter_modules(None), key=lambda x: (x[1], x[2]) or even: >>> sorted(pkgutil.iter_modules(None), key=operator.itemgetter(1)) (assuming that ispkg

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-19 Thread SilentGhost
Change by SilentGhost : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-19 Thread Erik Janssens
New submission from Erik Janssens : in Modules/main.c STATUS_CONTROL_C_EXIT is included conditionally if compiling when _MSC_VER is defined. Later on STATUS_CONTROL_C_EXIT is used if MS_WINDOWS is defined. This breaks compilation of main.c with any non MSC compiler while compiling for MS

[issue36962] Cant sort ModuleInfo instances

2019-05-19 Thread Batuhan
Batuhan added the comment: Can you review the PR, i implemented it there. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36962] Cant sort ModuleInfo instances

2019-05-19 Thread Batuhan
Batuhan added the comment: You're right. I am thinking implementing 4 sequence methods (contains/len/iter/getitem) and set a depraction warning for them. We can remove this methods in next relase On Sun, May 19, 2019, 2:37 PM Eric V. Smith wrote: > > Eric V. Smith added the comment: > >

[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-05-19 Thread Marco Sulla
New submission from Marco Sulla : I'm telling about python3 -m venv VIRTUALENV_NAME, not about the virtualenv binary. Some remarks: 1. `VIRTUAL_ENV` variable in `activate` script is the absolute path of the virtualenv folder 2. A symlink to the `python3` bin of the machine is created.

[issue36962] Cant sort ModuleInfo instances

2019-05-19 Thread Eric V. Smith
Eric V. Smith added the comment: Unfortunately your change isn't backward compatible with the existing (namedtuple) version. I expect this to fail in the dataclass version: >>> finder, name, ispkg = list(pkgutil.iter_modules(None))[0] And since this is an enhancement, it can only go in to

[issue36957] Speed up math.isqrt

2019-05-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a5119e7d75c9729fc36c059d05f3d7132e7f6bb4 by Serhiy Storchaka in branch 'master': bpo-36957: Add _PyLong_Rshift() and _PyLong_Lshift(). (GH-13416) https://github.com/python/cpython/commit/a5119e7d75c9729fc36c059d05f3d7132e7f6bb4 --

Why is augmented assignment of a tuple with iterable unpacking invalid syntax?

2019-05-19 Thread Eugene Alterman
a = 1, 2, 3 b = *a, # assignment - OK b += *a, # augmented assignment - syntax error Need to enclose in parenthesis: b += (*a,) Why isn't it allowed with an augmented assignment, while it is OK with a regular assignment? --

Leo 5.9 released

2019-05-19 Thread Edward K. Ream
Leo 5.9 final, http://leoeditor.com, is now available on [GitHub]( https://github.com/leo-editor/leo-editor). Leo is an IDE, outliner and PIM, as described [here]( http://leoeditor.com/preface.html). **The highlights of Leo 5.9** This will be the last version of Leo that supports Python 2.

EuroPython 2019: Sponsor brochure available

2019-05-19 Thread M.-A. Lemburg
We are pleased to present our EuroPython 2019 Sponsor Brochure: * https://ep2019.europython.eu/sponsor/brochure/ * We have worked with our designer to compile all relevant information about the conference in a nice to read brochure, you can use to discuss a possible sponsorship in your

Re: The if is not working properly

2019-05-19 Thread Cameron Simpson
On 18May2019 13:22, nobelio wrote: When you print the variable “a” it appears as True, but the program is it is not getting in the if a==True: It may be that "a" is not the Boolean value True but something else. But that is just a guess. Please reply and paste in a small example programme

ANN: distlib 0.2.9 released on PyPI

2019-05-19 Thread Vinay Sajip via Python-announce-list
I've recently released version 0.2.9 of distlib on PyPI [1]. For newcomers,distlib is a library of packaging functionality which is intended to beusable as the basis for third-party packaging tools. The main changes in this release are as follows: * Updated default PyPI URL to

  1   2   >