Neal Norwitz wrote: > On 5/29/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >> >> > OTOH, perhaps a deprecation warning on PyArgs_Parse() is sufficient? >> > What about that? It doesn't address other cases where OLDARGS are >> > used without PyArgs_Parse though. >> >> What other cases remain? People might have complex argument processing >> procedure not involving PyArg_Parse, these would just break with a >> runtime error in Py3k. If the module is maintained, it should be easy >> to fix it. If the module is unmaintained, producing a warning now >> might not help, either. > > One case would be if the function doesn't take any args, but the args > aren't checked, just ignored. Another case I was thinking about was > PyArg_NoArgs which is a macro, but that just calls PyArg_Parse, so it > would get flagged. I can't imagine there would be enough of these > cases to matter. > > I'd be satisfied with a deprecation warning for PyArg_Parse, though we > (*) should really figure out how to make it work on Windows. I > haven't seen anyone object to the C compiler deprecation warning.
There is something at http://msdn2.microsoft.com/en-us/library/044swk7y.aspx but it says only "C++". Georg _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com