[issue20438] inspect: Deprecate getfullargspec?

2021-09-29 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
nosy: +hugovk
nosy_count: 11.0 -> 12.0
pull_requests: +26990
pull_request: https://github.com/python/cpython/pull/28618

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2017-03-24 Thread Nick Coghlan

Nick Coghlan added the comment:


New changeset 0246422b974b1a0c50dd30b0e1a1138674ef87a5 by Nick Coghlan (Berker 
Peksag) in branch '3.5':
bpo-28814: Undeprecate inadvertently deprecated inspect functions. (#122) (#244)
https://github.com/python/cpython/commit/0246422b974b1a0c50dd30b0e1a1138674ef87a5


--

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2017-03-24 Thread Nick Coghlan

Nick Coghlan added the comment:


New changeset 2197eac6104311472f200645bc844adb46444b10 by Nick Coghlan (Berker 
Peksag) in branch '3.6':
bpo-28814: Undeprecate inadvertently deprecated inspect functions. (#122) (#243)
https://github.com/python/cpython/commit/2197eac6104311472f200645bc844adb46444b10


--

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2017-02-22 Thread Berker Peksag

Changes by Berker Peksag :


--
pull_requests: +207

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2017-02-22 Thread Berker Peksag

Changes by Berker Peksag :


--
pull_requests: +209

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2017-02-21 Thread Berker Peksag

Berker Peksag added the comment:


New changeset 0899b9809547ec2894dcf88cf4bba732c5d47d0d by Berker Peksag in 
branch 'master':
bpo-28814: Undeprecate inadvertently deprecated inspect functions. (#122)
https://github.com/python/cpython/commit/0899b9809547ec2894dcf88cf4bba732c5d47d0d


--

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2017-02-15 Thread Matthias Bussonnier

Changes by Matthias Bussonnier :


--
pull_requests: +84

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2016-12-01 Thread Nick Coghlan

Nick Coghlan added the comment:

Noting for the record, as the general way of querying an unbound method for the 
name of the first parameter and adding it to the bound arguments:

def add_instance_arg(callable, bound_args):
try:
self = callable.__self__
func = callable.__func__
except AttributeError:
return # Not a bound method
unbound_sig = inspect.signature(func)
for name in unbound_sig.parameters:
bound_args.arguments[name] = self
break

>>> method = C().method
>>> sig = inspect.signature(method)
>>> sig

>>> args = sig.bind(1)
>>> args

>>> add_instance_arg(method, args)
>>> args
)>

--

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2015-11-19 Thread Vedran Čačić

Vedran Čačić added the comment:

> Also, it is worth noting, that Signature API does not provide 100%
of functionality that deprecated APIs have.  It is important to do
a soft deprecation of outdated APIs in 3.5 to gather users feedback,
and improve Signature object.

Well, here is a feedback about lost functionality. inspect.getcallargs had a 
very nice property that it automatically bound the first argument to the 
instance of bound methods. It seems I have no general way to do it with 
Signature.bind. Of course I can put

arguments['self'] = method.__self__

afterwards, but theoretically, the argument doesn't have to be called 'self'. 
And anyway, I would like something that works seamlessly with bound methods and 
ordinary functions.

--
nosy: +Vedran.Čačić

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2015-11-19 Thread R. David Murray

R. David Murray added the comment:

Please open a new issue for that observation/request.

--

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2015-10-26 Thread Yury Selivanov

Yury Selivanov added the comment:

> This is the situation I am in: coverage.py uses getargspec in a very simple 
> way in its tooling.  I support 2.7 and 3.5, so I have to do this:

try:
getargspec = inspect.getfullargspec
except AttributeError:
getargspec = inspect.getargspec
argspec = getargspec(function)

I think it was me who submitted this code to coverage.py.. :)  It might be 
worthwhile to keep it anyways, as getfullargspec uses the signature API, which 
supports a wider range of callables.

--

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2015-10-26 Thread Yury Selivanov

Yury Selivanov added the comment:

> The thing is, we've adopted a policy that if something exists in python2.7 we 
> shouldn't delete it in python3 until after 2.7 is officially out of 
> maintenance (at the earliest), in order to facilitate single-source porting 
> to python3.  That policy was adopted relatively recently, after the 
> deprecation warning mentioning 3.6 was added in this issue, as I recall it.

In this case we better resurrect getargspec().  Here's an issue for that: #25486

--
dependencies: +Resurrect inspect.getargspec() in 3.6

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2015-10-26 Thread R. David Murray

R. David Murray added the comment:

The thing is, we've adopted a policy that if something exists in python2.7 we 
shouldn't delete it in python3 until after 2.7 is officially out of maintenance 
(at the earliest), in order to facilitate single-source porting to python3.  
That policy was adopted relatively recently, after the deprecation warning 
mentioning 3.6 was added in this issue, as I recall it.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2015-10-26 Thread Ned Batchelder

Ned Batchelder added the comment:

This is the situation I am in: coverage.py uses getargspec in a very simple way 
in its tooling.  I support 2.7 and 3.5, so I have to do this:

try:
getargspec = inspect.getfullargspec
except AttributeError:
getargspec = inspect.getargspec
argspec = getargspec(function)

It seems like needless churn.

--

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2015-10-25 Thread Ned Batchelder

Ned Batchelder added the comment:

I'm confused: the discussion here is mostly about updating docs to note 
deprecation.  Then at the very end, is an off-hand remark about removing 
getargspec.

The docs for getargspec currently read, "This function will be removed in 
Python 3.6."  Why?  We keep all sorts of old APIs for the sake of backward 
compatibility, why is this one different?

--
nosy: +nedbat

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2015-10-25 Thread Yury Selivanov

Yury Selivanov added the comment:

> The docs for getargspec currently read, "This function will be removed in 
> Python 3.6."  Why?  We keep all sorts of old APIs for the sake of backward 
> compatibility, why is this one different?

getargspec was deprecated since 3.0.  Besides that, it returns incomplete 
information about function parameters: keyword-only parameters won't be 
introspected at all for instance.

Migration path is very simple and clear -- just use getfullargspec (almost 100% 
backwards compatible), which won't be removed probably till Python 4.

--

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2015-09-15 Thread Markus Unterwaditzer

Markus Unterwaditzer added the comment:

It should be properly noted that the API isn't going to be actually removed 
anytime soon.

Also I think issuing a warning about this was a mistake. For software that 
wants to stay compatible with both Python 2 and 3 it's basically useless.

--
nosy: +untitaker

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2015-09-15 Thread Markus Unterwaditzer

Markus Unterwaditzer added the comment:

My last comment was in reference to getfullargspec, which is, as far as I 
understand, not going to be deprecated until after 3.7.

--

___
Python tracker 

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



[issue20438] inspect: Deprecate getfullargspec?

2015-05-22 Thread Yury Selivanov

Yury Selivanov added the comment:

I'm copying/pasting my latest commit message on this issue here:

Add a note about deprecating old inspect APIs to whatsnew.

Also, deprecate formatargspec, formatargvalues, and getargvalues
functions.  Since we are deprecating 'getfullargspec' function in
3.5 (documentation only, no DeprecationWarning), it makes sense
to also deprecate functions designed to be directly used with it.

In 3.6 we will remove 'getargsspec' function (was deprecated since
Python 3.0), and start raising DeprecationWarnings in other
'getarg*' family of functions.  We can remove them in 3.7 or later.

Also, it is worth noting, that Signature API does not provide 100%
of functionality that deprecated APIs have.  It is important to do
a soft deprecation of outdated APIs in 3.5 to gather users feedback,
and improve Signature object.

--

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



[issue20438] inspect: Deprecate getfullargspec?

2015-05-22 Thread Berker Peksag

Berker Peksag added the comment:

Just a minor comment on the patch:

+warnings.warn(inspect.getargspec() is deprecated, 
+  use inspect.signature() instead, DeprecationWarning)

Can you also add stacklevel=2?

--
nosy: +berker.peksag

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



[issue20438] inspect: Deprecate getfullargspec?

2015-05-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 666e5b554f32 by Yury Selivanov in branch 'default':
Issue 20438: Adjust stacklevel of inspect.getargspec() warning.
https://hg.python.org/cpython/rev/666e5b554f32

--

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



[issue20438] inspect: Deprecate getfullargspec?

2015-05-22 Thread Yury Selivanov

Yury Selivanov added the comment:

Thanks Berker!

--

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



[issue20438] inspect: Deprecate getfullargspec?

2015-05-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 621e98bfc74b by Yury Selivanov in branch 'default':
Issue 20438: Add a note about deprecating old inspect APIs to whatsnew.
https://hg.python.org/cpython/rev/621e98bfc74b

--

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



[issue20438] inspect: Deprecate getfullargspec?

2015-05-22 Thread Yury Selivanov

Changes by Yury Selivanov yseliva...@gmail.com:


--
resolution:  - fixed
stage:  - resolved
status: open - closed

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



[issue20438] inspect: Deprecate getfullargspec?

2015-05-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3a5fec5e025d by Yury Selivanov in branch 'default':
Issue 20438: Deprecate inspect.getargspec() and friends.
https://hg.python.org/cpython/rev/3a5fec5e025d

--
nosy: +python-dev

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



[issue20438] inspect: Deprecate getfullargspec?

2015-05-21 Thread Yury Selivanov

Yury Selivanov added the comment:

Please see the new patch.

So it's time to deprecate getargspec with a warning (was softly deprecated in 
3.0).

getfullargspec() and getcallargs() deprecation is documented.

I also want to deprecate formatargspec() and formatargvalues(), but Signature 
does not provide equivalents. Should we add them?

--
Added file: http://bugs.python.org/file39459/getargspec.diff

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-30 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

@Larry Hasting: If  you check my patch, it's the case where I modify the 
documentation and add a DeprecationWarning in the code.

@Yury Selivanov, @Nick Coghlan, @Brett Cannon: From your point of views, 
I need to propose a patch just for the documentation, I agree with that.

@Brett Cannon: In the current patch, I implemented a test with the 
python version. If the version is greater or equal than 3.7, in this 
case, I raise an exception.

I propose to follow the solution of @Yury Selinanov, just deprecate the 
function in the documentation and keep the check in the unit test for 
the version.

Are you agree?

Thanks

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-16 Thread Larry Hastings

Larry Hastings added the comment:

+1 to doc deprecation and adding a DeprecationWarning for 3.5.

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

In this patch, I deprecate the inspect.getfullargspec function in the 
documentation and raise an warnings.warn with DeprecationWarning.

Need feedback, because the inspect.getargspec() informs the user that it can 
use the getfullargspec() and I think we should use inspect.signature instead of 
inspect.getfullargspec() and inspect.getargspec().

Thank you

--
keywords: +patch
nosy: +matrixise
Added file: 
http://bugs.python.org/file34877/issue20438_deprecate_inspect-getfullargspec.patch

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

Here is the output of my test:

 ./python3.5 -Wd test.py
test.py:9: DeprecationWarning: Deprecated
  warnings.warn('Deprecated', DeprecationWarning)

/private/tmp/python/lib/python3.5/inspect.py:955: DeprecationWarning: Use 
inspect.signature() instead of inspect.getfullargspec()
  warnings.warn(Use inspect.signature() instead of inspect.getfullargspec(), 
DeprecationWarning)
FullArgSpec(args=[], varargs='args', varkw='kwargs', defaults=None, 
kwonlyargs=[], kwonlydefaults=None, annotations={})

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Brett Cannon

Brett Cannon added the comment:

I was thinking about suggesting we don't code deprecate getfullargspec() but 
the function seems to be new to Python 3 and so that worry for Python 2/3 code 
is not founded.

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Yury Selivanov

Yury Selivanov added the comment:

How about we deprecate with a warning getfullargspec(); deprecate getargspec() 
in docs only (in 3.6 we'll fully deprecate all function parameters API except 
Signature)?

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

Just one thing, how do you work for the deprecation?

1. you deprecate in the doc for 3.5?
2. you deprecate in the code for 3.6?
3. you remove the code in 3.7?

What's the strategy in this case or in general?

Thanks

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Brett Cannon

Brett Cannon added the comment:

How warnings are handled vary from case to case. Typically its 
documentation-only if we want to warn people that they shouldn't use something 
because there is a better alternative but the code is not fundamentally broken 
and its in Python 2. If there is something wrong with it or it's just in Python 
3 then a deprecation warning with a decided amount of time for when the code 
will be removed.

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

ok, so in this case, I can only change the documentation with a .. 
deprecated:. But for the future, how can we know we have to deprecate this 
function for = 3.6 ? Will you parse the documentation and check there is an 
deprecation to add in the code?

Or is there a file with the future deprecations?

Are you agree with the deprecation in the documentation?

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Yury Selivanov

Yury Selivanov added the comment:

I'd +1 for:

1. Deprecating getfullargsspec in docs;
2. Deprecating getargspec in docs and code (since it's an ancient and outdated 
API)

Brett?

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

Brett,

If you agree with Yury, I will provide a patch with these tasks.

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Brett Cannon

Brett Cannon added the comment:

Since getfullargspec is new in Python 3 and inspect.signature fundamentally 
improves things in Python 3 due to Argument Clinic I would say go ahead and 
code deprecate getfullargspec (we can do a DeprecationWarning for 3.5 and 3.6 
and remove in 3.7; people needing compatibility can just use getargspec). As 
for getargspec, it was already deprecated so just leave it deprecated and 
update its message to say to use inspect.signature.

As for keeping track of this stuff, Stéphane, as part of the test that makes 
sure the warning is raised, add to that test -- don't need a separate method -- 
some code that will fail if the function exists in Python 3.7 or later.

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

Need your feedback for this patch

Thank you

--
Added file: 
http://bugs.python.org/file34890/issue20438_deprecate_inspect_getfullargspec-2.patch

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Nick Coghlan

Nick Coghlan added the comment:

Note that getargspec() depends on getfullargspec() so deprecating the latter 
*will* cause issues for single-source code (unless they switch to using the 
funcsigs backport).

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Yury Selivanov

Yury Selivanov added the comment:

Nick, good catch. OK, let's just deprecate it in the docs for 3.5, so people 
(hopefully) will not write new code with it.

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Yury Selivanov

New submission from Yury Selivanov:

Should we finally deprecate getfullargspec? With the AC and positional-only 
parameters support, getfullargspec doesn't provide full information anymore.

By deprecation I mean changing its existing note Consider using the new 
Signature Object interface, which provides a better way of introspecting 
functions. to Deprecated since version 3.4: Use inspect.signature() instead.

--
messages: 209658
nosy: brett.cannon, larry, ncoghlan, yselivanov
priority: normal
severity: normal
status: open
title: inspect: Deprecate getfullargspec?
type: enhancement
versions: Python 3.4

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



[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Brett Cannon

Brett Cannon added the comment:

Although I say do it in 3.5.

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Brett Cannon

Brett Cannon added the comment:

I vote deprecation with no stated plans of removal

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Nick Coghlan

Nick Coghlan added the comment:

As Brett said - let's do a documented deprecation in 3.5.

--

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



[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Yury Selivanov

Changes by Yury Selivanov yselivanov...@gmail.com:


--
versions: +Python 3.5 -Python 3.4

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