[issue16520] subprocess.Popen() TypeError message incorrect without args argument

2019-07-13 Thread Carl Bordum Hansen


Carl Bordum Hansen  added the comment:

I think changing the message will break a lot of tests.

Here are some examples just from CPython:
https://github.com/python/cpython/blob/master/Lib/test/test_dataclasses.py#L2655
https://github.com/python/cpython/blob/master/Lib/test/test_extcall.py

It would also outdate some documentation examples.

--
nosy: +carlbordum

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16520] subprocess.Popen() TypeError message incorrect without args argument

2019-04-18 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


--
nosy: +nanjekyejoannah

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16520] subprocess.Popen() TypeError message incorrect without args argument

2012-11-24 Thread Chris Jerdonek

Changes by Chris Jerdonek chris.jerdo...@gmail.com:


--
dependencies: +improve TypeError messages for missing arguments (meta issue)

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16520
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16520] subprocess.Popen() TypeError message incorrect without args argument

2012-11-21 Thread Chris Jerdonek

New submission from Chris Jerdonek:

The TypeError message when a call to subprocess.Popen() lacks the args argument 
is incorrect.

For 3.3 and 3.4, the message incorrectly says that a positional argument is 
required when a keyword argument will do:

 import subprocess
 subprocess.Popen()
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: __init__() missing 1 required positional argument: 'args'
 subprocess.Popen(args=['test'])
subprocess.Popen object at 0x10bed4840

For 3.2 and 2.7, the problem is slightly different.  It says that two arguments 
are needed and that two have been given:

 subprocess.Popen()
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: __init__() takes at least 2 arguments (1 given)
 subprocess.Popen(shell=True)
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: __init__() takes at least 2 arguments (2 given)

I don't know if this issue affects other functions in the standard library, but 
I suspect it might.

--
components: Library (Lib)
messages: 176047
nosy: chris.jerdonek
priority: normal
severity: normal
status: open
title: subprocess.Popen() TypeError message incorrect without args argument
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16520
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16520] subprocess.Popen() TypeError message incorrect without args argument

2012-11-21 Thread Mark Dickinson

Mark Dickinson added the comment:

I don't think the first part of the report has anything to do with 
subprocess.Popen:

 def f(x):
... return
... 
 f()
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: f() missing 1 required positional argument: 'x'

See the related discussion starting at:

http://mail.python.org/pipermail/python-dev/2012-September/121760.html

--
nosy: +mark.dickinson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16520
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16520] subprocess.Popen() TypeError message incorrect without args argument

2012-11-21 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Also see the terminology-related issue 15990 created from that thread.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16520
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16520] subprocess.Popen() TypeError message incorrect without args argument

2012-11-21 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti
stage:  - needs patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16520
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16520] subprocess.Popen() TypeError message incorrect without args argument

2012-11-21 Thread Mark Dickinson

Mark Dickinson added the comment:

By the way, I think this message from Nick is the closest to a resolution from 
that thread:

We've already had this terminology discussion and documented the results in 
PEP 362. The rest of the docs may require updates to be brought in line with 
that.

(http://mail.python.org/pipermail/python-dev/2012-September/121791.html)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16520
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16520] subprocess.Popen() TypeError message incorrect without args argument

2012-11-21 Thread Chris Jerdonek

Chris Jerdonek added the comment:

 TypeError: __init__() missing 1 required positional argument: 'args'

I think something like the following would be more correct:

__init__() missing argument for parameter 'args'

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16520
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com