Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Resolving ImportError: No module named gdb (Python in C++)
Post: RE: Resolving ImportError: No module named gdb (Py...

mingw64\share\gdb ├── python/ │ └── gdb/ │ └── ... ├── syscalls/ ├── system-gdbinit/ └── gdbinitIt's quite challenging. I finally know how to import but can anyone tell me what is the location...
mandaxyz General Coding Help 3 1,314 Oct-04-2023, 02:43 PM
    Thread: Resolving ImportError: No module named gdb (Python in C++)
Post: RE: Resolving ImportError: No module named gdb (Py...

@Larz60+, I know how to use GDB with command line but I don't know how to use with Python. I forgot to generalize my question to make it easier to answer. The question should be: "How to fix Import...
mandaxyz General Coding Help 3 1,314 Oct-04-2023, 10:57 AM
    Thread: Resolving ImportError: No module named gdb (Python in C++)
Post: Resolving ImportError: No module named gdb (Python...

The following serves as the foundation of my code; however, I encounter an error: "ImportError: No module named gdb". How can I resolve this issue? Google Bard AI has suggested using the command pip i...
mandaxyz General Coding Help 3 1,314 Oct-04-2023, 10:14 AM
    Thread: I want to simplify this python code into fewer lines, it's about string
Post: RE: I want to simplify this python code into fewer...

Thank you so much.
mandaxyz General Coding Help 5 2,047 Jan-15-2022, 01:28 PM
    Thread: I want to simplify this python code into fewer lines, it's about string
Post: RE: I want to simplify this python code into fewer...

My question for clearer, is how to turn a list of characters into one single string? c = ['a', 'b', 'a', 'b', 'a', 'b', 'a', 'b'] c = ... # What should be this line? print(c)It should print: abababab ...
mandaxyz General Coding Help 5 2,047 Jan-15-2022, 01:17 PM
    Thread: I want to simplify this python code into fewer lines, it's about string
Post: I want to simplify this python code into fewer lin...

Hi, I want to simplify this python code into fewer lines as possible, but I'm less experienced and I cannot do it: code = [0, 1, 0, 1, 0, 1, 0, 1] # This is a separated line, which will be used as an...
mandaxyz General Coding Help 5 2,047 Jan-15-2022, 12:41 PM
    Thread: How to align two 2D images?
Post: How to align two 2D images?

Hello, I have total of 400 images that should be aligned, it would be a pain if I align them manually by mouse because there are a lot of images, and because I like precision. As I shown in the image...
mandaxyz Data Science 0 2,292 Aug-24-2020, 07:21 AM
    Thread: How to assign a module to a variable even if it's not defined?
Post: RE: How to assign a module to a variable even if i...

I'm sorry. The terms say that I come back if I find the solution. I use 'exec' to create a variable from string. >>> exec("abc = 123") >>> abc 123 Bye, I will make effort next time...
mandaxyz General Coding Help 5 3,165 Aug-12-2020, 03:16 PM
    Thread: How to assign a module to a variable even if it's not defined?
Post: RE: How to assign a module to a variable even if i...

New question: "How to create a module or variable with the name from a string?" import sys import os import importlib dir = os.path.dirname(bpy.data.filepath) dir = os.path.join(dir, "Scripts") # The...
mandaxyz General Coding Help 5 3,165 Aug-12-2020, 02:48 PM
    Thread: How to assign a module to a variable even if it's not defined?
Post: How to assign a module to a variable even if it's ...

Hello, I want to import modules from files, I need to store them into variables and I need their names as strings because I must check if the modules python files exist or not for example. My question...
mandaxyz General Coding Help 5 3,165 Aug-12-2020, 02:00 PM
    Thread: How to convert a string "<... object at POINTER>" to an object?
Post: RE: How to convert a string "<... object at POINTE...

@Gribouillis, it's impossible to solve the problem if we talk about python only, I even tried to use the keyword 'global' but it didn't work because the global variable is killed and it doesn't exist ...
mandaxyz General Coding Help 5 3,540 Aug-08-2020, 10:44 PM
    Thread: How to convert a string "<... object at POINTER>" to an object?
Post: RE: How to convert a string "<... object at POINTE...

(Aug-08-2020, 07:17 PM)ndc85430 Wrote: What? I'm not really understanding why you want to store the object as a string. Can't you use the pickle module? Thank you, but I cannot use the pickle module...
mandaxyz General Coding Help 5 3,540 Aug-08-2020, 07:54 PM
    Thread: How to convert a string "<... object at POINTER>" to an object?
Post: How to convert a string "<... object at POINTER>" ...

I want to convert a string "<... object at POINTER>" to an object. Python version: 3.7.4 class MyClass: def Test(self): print("Hello!") c = MyClass() s = str(c) print("The value of...
mandaxyz General Coding Help 5 3,540 Aug-08-2020, 06:59 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020