Skip to main content
0 votes
1 answer
31 views

python file # -*- coding: utf-8 -*- print 'original python file' fix_print.py class FixPrint(fixer_base.BaseFix): BM_compatible = True PATTERN = """ ...
haifu_qin's user avatar
0 votes
1 answer
3k views

I'm trying to install the package pyminifier at the command prompt, this happens: C:\Users\[my name]\Downloads\JKLMBombpartyHelper-master\JKLMBombpartyHelper-master>python -m pip install pyminifier ...
envi's user avatar
  • 33
0 votes
0 answers
139 views

I am converting a large project I didn't write from python2 to python3. Most the conversion is working but some parts of our UI that applies configs does nothing. I think it is the way the method ...
Codejoy's user avatar
  • 3,856
0 votes
1 answer
88 views

I'm working on migrating an exsting Python 2.7 project to Python 3.9. I'm facing a directory structure-related issue in Python 3. My current project directory structure is: ├───project │ ├───core | ...
Maksim Vi.'s user avatar
  • 9,245
2 votes
2 answers
5k views

Trying to run a script that works fine in maya 2018 but wont in 2022 import gw_anim_clip reload(gw_anim_clip) gw_anim_clip.anim_clip_ui() I'm getting this error: Error: name 'reload' is not defined ...
Rebecca Quinn's user avatar
0 votes
1 answer
33 views

I am migrating a Django project from 2 to 3 and am running into an import(?) error. One of the apps/modules contains an __init__.py, admin.py, forms.py, models.py, urls.py, and view.py, but when the ...
thekthuser's user avatar
0 votes
0 answers
72 views

I have a small chunk of code which not being a python guru I am not sure what it is really 'doing', but it fails under python3: if indSoundsToPlay: indSoundsToPlay = list(indSoundsToPlay) ...
Codejoy's user avatar
  • 3,856
1 vote
1 answer
156 views

I am working on migrating an old Python code base to Python3. There are many strings which have the "u" prefix. Example u'Umlaut üöö' Is there an automated way to remove the leading "u&...
guettli's user avatar
  • 27.7k
0 votes
0 answers
93 views

While I am able to fix this and it is not a huge issue. I am curious if I am doing something wrong or went about something wrong. I inherited a codebase that is python2 to upgrade it to python3. So ...
Codejoy's user avatar
  • 3,856
0 votes
0 answers
37 views

It will be more helpful if you answer the following questions as well. Dealing with models.CharField. In python2, how the CharField value is stored in the database and how it is different from the ...
Mahendra Badu's user avatar
0 votes
0 answers
94 views

I am porting some code from python 2 to 3. data = {'direction': '->', 'src_port': 'any', 'src_ip': 'any', 'dst_port': 'any', 'dst_ip': 'any', 'action': 'alert', 'protocol': 'http'} Iterating the ...
Priyank Chheda's user avatar
2 votes
0 answers
314 views

I am working on porting a python2 project to python3 while keeping the compatibility with python2. I started fixing small things: indentation, print calls, some imports using six etc. The Makefile ...
Teodor's user avatar
  • 21
0 votes
1 answer
157 views

hi I have some python code which is generated dynamically which produces python2 code and this python generated code is executed and it's output is then used by downstream application, the problem I ...
vector8188's user avatar
  • 1,403
0 votes
0 answers
63 views

I want to be able to check if a function is compatible with Python 3 from the python code (not through a terminal). A string containing the function would be passed into the check. As far as I know I ...
ImCoding2907's user avatar
0 votes
1 answer
111 views

a = 310.97 b = 233.33 sum= 0.0 for i in [a,b]: sum += i print(sum) py2 o/p: 544.3 py3 o/p: 544.3000000000001 Any way to report py3 output as same as py2 with futurizing? without using round-off ?
Bhanu's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
13