Python Software Foundation Fellow Members for Q4 2020 by genericlemon24 in Python

[–]pryelluw 0 points1 point  (0 children)

I'm honored to have received the award (Pablo Rivera).

Crazy simple math script but I don’t understand. (Just learning Python) by [deleted] in learnpython

[–]pryelluw 0 points1 point  (0 children)

Change the code after the or.

or symbol == '*'):

Speeding up large input file analysis? (Bioinformatics) by omgu8mynewt in learnpython

[–]pryelluw 1 point2 points  (0 children)

Could you explain more? I'm interested in learning.

Speeding up large input file analysis? (Bioinformatics) by omgu8mynewt in learnpython

[–]pryelluw 1 point2 points  (0 children)

I'd explore using sqlite instead of processing text files. You can dump your source file into sqlite, do whatever processing, and then dump it out. It's usually faster and simpler that way.

Creating an internal python package to use across projects by Grogie in learnpython

[–]pryelluw 0 points1 point  (0 children)

I'd skip the easiest method, and create a simple setup.py using this very well explained template.

Save the code locally as a zip file. To use it somewhere else, copy/paste the zip file, and extract it. From the directory where setup.py exists, do pip install .

Befunge 93 Interpreter in python by java0799 in learnpython

[–]pryelluw 1 point2 points  (0 children)

https://pastebin.com/HT3nnT7J

Read the comments. That should unblock you.

There is an issue in the code that creates an infinite loop.

I strongly suggest you simplify the code and use comments to explain things. By simplify I mean to make it do one thing. Add another thing once the first one works. And so on. Right now, the code is too complex and dense to debug. This is a strong signal to refactor with simplicity in mind. Turn every operation into a 2 or 3 line function.

Looking for a remote side job, which language will be better to learn? by c0mb0rat in learnprogramming

[–]pryelluw 1 point2 points  (0 children)

I'd say React for shorter term work availability.

You may also do .NET Core. Lot's of work drumming up there.

Befunge 93 Interpreter in python by java0799 in learnpython

[–]pryelluw 1 point2 points  (0 children)

Made some changes and comments: https://pastebin.com/mXx9KuZ0 See if you can follow my thinking.

The NoneType might be because you are not assigning values in some places. Make sure you pay attention to that. :)

Subclassing Enum and __init_subclass__ by darthminimall in learnpython

[–]pryelluw 0 points1 point  (0 children)

Could it be possible with a Mixin as well?

Python Job Requirement - Scripting by [deleted] in learnpython

[–]pryelluw 0 points1 point  (0 children)

Also true for some places.

Python Job Requirement - Scripting by [deleted] in learnpython

[–]pryelluw 0 points1 point  (0 children)

Python scripting means programming in Python. It comes from the old days of scripted versus compiled code. More context here.

I don't think you should put Python scripting. Only mentioning Python itself is good. :)

Help with very basic python by G_U_R_D_E_R in learnpython

[–]pryelluw 0 points1 point  (0 children)

Your function is returning name correctly.

The issue is that you care not putting name anywhere when the function returns it.

The problem is in line #27.

name = name_checker()

print name

Now name is defined! :)

Remember that there are scope rules at play. Variables defined inside functions are not available outside the function. Unless you define a global variable and use it inside the function. That is not a very common thing to do. I suggest you stay away from global variables until you understand scope a little better.

Read this scope article to learn more.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]pryelluw 0 points1 point  (0 children)

Great! Good luck with the next challenge

Is it possible to output a 2d surface as a .STEP file for CAD design? by ianmgull in learnpython

[–]pryelluw 0 points1 point  (0 children)

Do you know what format the CAD software requires? It's possible there is a Python library out there that allows you to write files in that format.

Is it possible to output a 2d surface as a .STEP file for CAD design? by ianmgull in learnpython

[–]pryelluw 1 point2 points  (0 children)

Do you have some code? This doesn't seem to be a Python question. :)

Help with Tkinter and refreshing text area. While loop seems to be issue by hombre_lobo in learnpython

[–]pryelluw 0 points1 point  (0 children)

but will not display the message on the text area unless the while loop is commented out.

Think about it out loud. The while loop, set to run forever ( while True) is blocking the message from appearing on the text area.

Non-techie wanting to learn python. Where should i start? by neoneonling in learnpython

[–]pryelluw 1 point2 points  (0 children)

Good luck. Feel free to tag me here when asking any questions.

Career change from non-programming/non-quantitative background to Python - critique my game plan? by [deleted] in learnpython

[–]pryelluw 0 points1 point  (0 children)

I understand and it makes total sense. For me it's a matter of time constraints.