Reduce check type for 2.5 and update bug reporting

This commit is contained in:
rocky
2022-03-05 04:55:11 -05:00
parent 09c10f51fa
commit 82456c15e1
2 changed files with 21 additions and 6 deletions

View File

@@ -15,7 +15,22 @@
- [Ethics](#ethics)
<!-- markdown-toc end -->
# The difficulty of the problem
# The importance of your bug report
For many open-source projects bugs where the expectation is that bugs are rare, reporting bugs in a *thoughtful* way can be helpful. (See also [How to Ask Questions the Smart Way](https://www.osadl.org/Eric-Raymond-How-to-ask-questions-the-s.questions-the-smart-way.0.html).
In this project though, most of the bug reports boil down to the something like: I have I am trying to reverse engineer some code that I am not the author/onwer and that person doesn't want me to have access to. I am hitting a problem somewhere along the line which might have to do with decompilation, but it could be something else like how I extracted the bytecode, or some problem in deliberately obfuscated code, or the use some kind of Python bytecode version that isn't supported by the decompiler.
While you are free to report these, unless you sponsor the project, I may close them with about the same amount of effort spent that I think was used to open the report them. And if you spent a considerable amount of time to create the bug report but didn't follow instructions given here and in the issue template - I am sorry in advance. Just go back, read and follow instructions.
This project already has an infinite supply of bugs that have been narrowed to the most minimal form and where I have source code to compare against. And in the unlikely event this supply runs out, I have automated means for generating *another* infinite supply.
In this project the task of justifying why addressing your bug is of use to the community and why it should be prioritized over the others is the bug reporter's responsibility.
While in the abstract, I have no problem answering questions about how to read a Python traceback or install Python software, or try to understand what is going wrong in your particular setup, I am not a paid support person. So save us both time, effort and aggrivation and use other avenues like StackOverflow. Again, justifying why you should receive unpaid help is the help requester's responsibility.
# The difficulty of the problem and your bug
This decompiler is a constant work in progress: Python keeps
changing, and so does its code generation.
@@ -27,7 +42,7 @@ But at any given time, there are a number of valid Python bytecode files that I
There are far more bug reporters than there are bug fixers.
Unless you are a sponsor of this project, it may take a while, maybe a week or so, before the bug report is noticed, let alone acted upon. Things eventually get fixed, but it may take years.
Unless you are a sponsor of this project, it may take a while, maybe a week or so, before the bug report is noticed, let alone acted upon. Things eventually get fixed, but it may take years. And if your bug hasn't been narrowed it might happen as a result of some other bug fix.
# Is it really a bug?
@@ -35,7 +50,7 @@ Unless you are a sponsor of this project, it may take a while, maybe a week or s
## Do you have valid bytecode?
As mentioned in README.rst, this project doesn't handle obfuscated
code or release candidates. See README.rst for suggestions for how to remove some kinds of
code, release candidates and the most recent versions of Python. See README.rst for suggestions for how to remove some kinds of
obfuscation.
Checking if bytecode is valid is pretty simple: disassemble the code.
@@ -189,8 +204,8 @@ That said, bugs sometimes get fixed even though these instructions are not follo
I may take into consideration is the bug reporter's karma.
* Have you demonstrably contributed to open source? I may look at your github profile to see what contributions you have made, how popular those contributions are, or how popular you are.
* How appreciative are you? Have you starred this project that you are seeking help from? Have you starred _any_ github project? And the above two kind of feed into ...
* Have you demonstrably contributed to open source? I may look at your github profile to see what contributions you have made, how popular those contributions are, or how popular you are.
* How appreciative are you? Have you starred this project that you are seeking help from? Have you starred _any_ github project? And the above two kind of feed into ...
* Attitude. Some people feel that they are doing me and the world a great favor by just pointing out that there is a problem whose solution would greatly benefit them. (This might account partially those that have this attitude often don't read or follow instructions such as those given here.)

View File

@@ -90,7 +90,7 @@ class Python25Parser(Python26Parser):
""")
super(Python25Parser, self).customize_grammar_rules(tokens, customize)
if self.version[:2] == (2, 5):
self.check_reduce["try_except"] = "tokens"
self.check_reduce["try_except"] = "AST"
self.check_reduce["aug_assign1"] = "AST"
self.check_reduce["ifelsestmt"] = "AST"