473,554 Members | 2,995 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
0
1,292
thread by: NoMustache | last post Dec 2 '16 by: NoMustache
Creating a website/marketplace similar to https://zoptamo.com/s-pilates-c-us-place in python with django or other plugins/cms/frameworks is possible? if it is where to begin with project like this? Which addon for python should be used to make a site-catalog like in example?
0
1,334
thread by: learningToCode | last post Dec 22 '16 by: learningToCode
I have been trying to make a bot that selects an option from a drop down list. The select tag is in a div tag. I have been trying for hours to get it to select the option with 12 in the text, but it doesn't work. I have watched multiple videos and checked stackoverflow for a solution and everything i try wont work. I have imported select and have...
0
1,070
thread by: rspvsanjay | last post Jan 14 '17 by: rspvsanjay
i made a servlet project from eclipse , what and where should i add extra file like pom.xml to deploy from github to heroku server ? consider servlet java file name is ESUMTest.java where class name declared as public and html file name is index.html, here java file present in default package. what code will be for pom.xml file with respect...
0
1,119
thread by: zgrimmi | last post Mar 26 '17 by: zgrimmi
Hi. Have a problem - I have very small but detailed polygon(bbox = -1, 345, 50, 401). Want to be displayed(scaled)to whole canvas(400x400 i.e.). When use canvas.scale it moves
0
1,112
thread by: paratYosef | last post Mar 31 '17 by: paratYosef
from pyparsing import * cislo = Word(nums) levaZavorka = Suppress('(') pravaZavorka = Suppress(')') vyraz = Forward() vyraz << Or( ) celyVyraz = vyraz + StringEnd()
-
-
thread by: boby | last post Apr 12 '17 by: boby
how to select a file name or file path after clicking a button and display that file name in entry box and also diaplaying the content of file in the text box? plzz help. im using tkinter for gui thanku in advance
Moved:
0
1,074
thread by: mikeywade | last post Apr 14 '17 by: mikeywade
getting error formatCtypesStructToPrint not defined when trying to printout some ctypes stuff
0
1,204
thread by: Davy jones | last post May 2 '17 by: Davy jones
OK so i have been reading "learn python the hard way" by zed shaw Everything went well till ex46-47 So can anyone describe the layout of the skeleton...😓😓😓😓 like which one is unit tests skeleton??? Thanks in advance!!!!😊😊 ======== Ex47 :- https://learnpythonthehardway.org/book/ex47.html == Ex46 :-
0
1,181
thread by: lolipoli | last post May 8 '17 by: lolipoli
Hi , I am beginner at python and programming. I have been doing some exercises about counting average from txt file. txt file data is like this. 1 : 4.25 2 : 3.97 3 : 1.45 4 : 2.33 python code is like this.
0
1,286
thread by: smsdeen937 | last post May 13 '17 by: smsdeen937
Dear All, I am an Electrical engineer. I am completely new for programming and coding.. Actually i am working as estimation engineer, where i am doing the same estimation again and again with excel. As same in design stage also i am doing the same again and again. I thought i will create a application which will automatically do the...
0
3,548
thread by: jinson2k | last post May 14 '17 by: jinson2k
in setup process,(See the picture) "Download debugging symbols" "Download debug binaries(requires VS 2015 or later)" 1、what is "debugging symbols"? what's it use for ? 2、what is "debug binaries"? what's it use for ? and is it just use in VS2015 or later) https://bytes.com/attachment.php?attachmentid=9146&stc=1&d=1494736692
0
1,086
amahj777
thread by: amahj777 | last post May 25 '17 by: amahj777
Hi all I have many questions about python first : can I design web site by python with out HTML or any design language? second : which privately language " python or php " ?
0
1,131
thread by: Freebutter | last post May 26 '17 by: Freebutter
I'm making an 3d shooter in python opengl, now I can click on my 'crystals' because they are white and using pixeldata. But it won't work well, because you only get 1/6 of the crystals gives you color data. The rest of them just printing the background color. Any tips? Here's my code: https://github.com/ItzJeButterknife/3dshooter
0
1,366
thread by: jenyjeny | last post Jun 15 '17 by: jenyjeny
Hi!!! I have a txt file with many lines. I want to add a serial number and ':' in each line starting from the firtst line. For example: I have: line1 line2 end i want: 1:line1 2:line2
0
1,308
thread by: celebrety | last post Jul 4 '17 by: celebrety
I can call python script from java if de python script only does not contains other import package,if I call Python script contains import package(like numpy),I got no output and have no error message to show.I invoke Python like this: Process rt=Runtime.getRuntime().exec("python /usr/tmp/"+scriptName + " " +parameter);
0
1,231
thread by: ckpkhill | last post Aug 4 '17 by: ckpkhill
import pickle f = open("filepath/test.txt","w") f.write(" writing to a output file") # works pickle.dump(,f) # fails with error "TypeError: write() argument must be str, not bytes" f.close() Is pickle module not meant to overcome the issue of having to convert to string before writing to a file?
0
1,956
thread by: kacglobal | last post Aug 5 '17 by: kacglobal
Hi guys so am new to python trying to see if i can parch thinsgs up but no wont work kkeep getting thhis error. Traceback (most recent call last): File "crack.py", line 434, in <module> quee.put((i.split('@'),i,p)) IndexError: list index out of range
0
2,467
thread by: HIPE8743 | last post Sep 16 '17 by: HIPE8743
The file parser.log consists of a sensor with the following structure: 0x7E 0x40 0x51 Data (17 bytes) FCS(CRC) 0x7E Inside the Data stream the speed is from the 9th bit to the 20th (including). The data is in little endian. Whenever 7E should have appeared in the data or FCS calculation it was replaced by “7D 5E” and 7D was replaced by “7D...
0
1,675
thread by: guest182443 | last post Sep 26 '17 by: guest182443
I need to create a truth table (as a list of lists) given an expression (string). I was given a function to extract the variables. I need to complete this method recursively. An expression could be "a or b", "(a and b) or c", etc. I am very new to python, so I am not familiar with a lot of the built in functions. Some of the things I'm...
0
664
thread by: Chilet01 | last post Oct 7 '17 by: Chilet01
I' created the directory in Python and save the notepad plus file to it... Tried to open the file in Python using Python new1.py but it says no such file or directory. Can't open file 'new1.py'
0
1,366
thread by: saad shakil | last post Oct 25 '17 by: saad shakil
I know how to save a python program on code block but don't know how to run the program.
0
1,339
thread by: jyoti thorat | last post Oct 28 '17 by: jyoti thorat
def post_edit(request,pk): post =get_object_or_404(Post, pk=pk) if request.method=="POST": form=PostForm(request.POST,instance=post) if form.is_valid(): post=form.save(commit=False) post.author= request.user post.published_date=timezone.now() post.save() return redirect('post_detail',pk=post.pk)
0
1,623
thread by: egavandit | last post Nov 7 '17 by: egavandit
Hello all, I have the following problem. Any help would be appreciated :) I am trying to call a C function from Python using ctypes. I have been successful already in sharing the shared library (.dll on Windows with MS Visual Studio 2017) to Python 3.6.3. Also, simple functions like __declspec(dllexport) int add_int(int num1, int num2)...
0
1,858
thread by: beforcoffe | last post Nov 10 '17 by: beforcoffe
Hello everyone I am not sure if this is the right place to ask questions if not please refer me to the right place and I will move my question there . I am trying to make GUI application and implement Oanda API in it so I can stream forex pairs prices in my own GUI using matplotlib. i have everything set but the problem is i don't know how to...
0
1,803
thread by: Tresa | last post Nov 12 '17 by: Tresa
I have a scenario where I am extracting a row value from a csv file(attached). Here I am trying to get the value of "server_hit_rate" which is 99% & belongs to 3rd row data. But with this below code I am able to get the data which is in first row only. any advice to achieve the following will be helpful. df =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.