Questions tagged [python-extensions]

Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability.

323 questions
-1
votes
1 answer

Python Extension for visual studio code not showing error or warning messages

When i write python code on my visual studio code editor i can't find any warnings or errors. I installed python extension, I also change the version of that extension.. I also read many documentations of python extension and visual studio but can't…
Mahi
  • 13
  • 4
-1
votes
1 answer

(python) print keep saying 'None'

i'm making a some code for project, the all i want to do in test function is i want to print out each of 'list_total[y]' values i input input example 1 # forget this input for now, 1 # the lines how many input i want to 100, 200 , 300 # i used a…
GG OTL
  • 1
  • 2
-1
votes
1 answer

re-run Python file in visual studio code

I am working on data science using python and visual studio code but every time i run the code even the single line file starts from the begging which again upload the data and give the result which is not the same case with jupyter. Is there any…
-1
votes
1 answer

python random function not working , I am very new at python

I have used a random function in python but its not working , I am very new at python. Please review below code def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['number'] =…
-1
votes
1 answer

PyObject_Call segfaults when invoked with bound method

PyObject_Call segfaults when it is called with an instance of a bound method, but works fine when invoked with regular (unbound) procedures or with an instance of a class that implements __call__, or with subclasses of type. Any reason it should…
wvxvw
  • 8,089
  • 10
  • 32
  • 61
-1
votes
1 answer

`unique_ptr`s causing 'undefined symbol' in python extension

I have a C++ project which uses a couple of c++14 features including std::make_unique. The project compiles and runs fine and has done for a while however, now I am trying to add a python interface and I'm having some troubles. In my python…
JMzance
  • 1,704
  • 4
  • 30
  • 49
-1
votes
2 answers

Why would Python on Windows require using the same version of Microsoft Visual C++ to build native extensions?

Extensions are just dynamic link library, which should not have problem across different version of MSVC.
xuhdev
  • 8,018
  • 2
  • 41
  • 69
1 2 3
21
22