851 Posted Topics

Member Avatar for lllllIllIlllI

You might have to uninstall a partially installed version of eric before reinstalling. I would stick with an IDE that uses wxPython as its GUI toolkit, like DrPython, Boa or PythonWin.

Member Avatar for Tommymac501
0
821
Member Avatar for Aia

I have no idea who this person is, but it is always a sad story to read that someone died of cancer. My sympathy to the many friends of this C programmer.

Member Avatar for sureronald
9
625
Member Avatar for vmanes
Member Avatar for cwarn23

It just doesn't make much sense to give a chicken elaborate rights and then eat it.

Member Avatar for GrimJack
1
453
Member Avatar for Ancient Dragon

Wow, even the picture is a fraud. Is anybody honest anymore? The gun looks a lot like my bb-gun.

Member Avatar for johnnybgood
0
450
Member Avatar for BestJewSinceJC

Isn't that standard operating procedure for wall street bankers?

Member Avatar for sneekula
1
119
Member Avatar for mrnutty
Member Avatar for stabzagg

You can create all the lines within one for loop. Your coordinates are incremented in given steps, so you can calculate them in each loop around. It might be simpler to do one for loop for horizontal lines and one for vertical lines.

Member Avatar for morgadao
0
5K
Member Avatar for s_sridhar
Member Avatar for BestJewSinceJC

If the cook spits into the food and the waitress puts her finger into the soup, I usually pay only a 5% tip.

Member Avatar for avatar103
0
657
Member Avatar for Qwazil

Read the comments in this example code, it should show you how to solve your problem. [code]# data string for testing data = """\ line one line two line three""" # data list for testing listOfLines = data.split('\n') listofWordsinLines = [] for line in listOfLines: # words is a list …

Member Avatar for TrustyTony
0
159
Member Avatar for Dave Sinkula

McCain is a very old man, he is bound to have very old skeletons in his closet, so what? He acts like a leader, that is all that counts, and is exactly what the country needs right now.

Member Avatar for jephthah
0
6K
Member Avatar for jpl1993

self.tennisPro.append(tennisPro("Roger Federer", "1", "18", "SUI", "Wilson")) needs to be self.tennisPro.append(tennis("Roger Federer", "1", "18", "SUI", "Wilson")) It is customary to start class names with an uppercase letter, this way you may not have made this mistake!

Member Avatar for woooee
0
147
Member Avatar for happygeek
Member Avatar for catch

So, if a little old lady slips on these things on the floor, you will gladly pay for her broken hip!

Member Avatar for Lardmeister
0
141
Member Avatar for Steven.T

Here is a good text to try with your spell checker program: Eye halve a spelling chequer It came with my pea sea It plainly marques four my revue Miss steaks eye kin knot sea. Eye strike a key and type a word And weight four it two say Weather …

Member Avatar for TrustyTony
0
185
Member Avatar for mrnutty
Member Avatar for HiHe
Member Avatar for ArtemisFowl

[QUOTE=tonyjv;1198523]Can you mark solved or tell what is still unclear/post results?[/QUOTE]You did the person's homework, I doubt he/she will be back.

Member Avatar for ArtemisFowl
0
4K
Member Avatar for cwarn23

I love Bing, it is far better than Google! I wonder if [B]C Sharp lol[/B] is the new version of C#? May I ought to bing for it. Hehe!

Member Avatar for Ene Uran
0
217
Member Avatar for The Dude
Member Avatar for lllllIllIlllI
Member Avatar for bumsfeld
10
248
Member Avatar for Sabryan

I would pick: Don’t take life so seriously you will regret it otherwise and it will be too late.

Member Avatar for Lardmeister
-3
46
Member Avatar for ana12

[QUOTE=BestJewSinceJC;1176270]Their seeds are, because they contain cyanide. It is a low amount, but eating a ton of apple seeds could harm you.[/QUOTE]I love apple seeds! What should i do now?

Member Avatar for Lardmeister
-5
256
Member Avatar for customtshirts

I've more than enough red T shirts to last me 3 years, thank you very much.

Member Avatar for Lardmeister
-8
157
Member Avatar for Wraithmanilian

[QUOTE=Ancient Dragon;1144642]Oh well, win some, lose some. Congratulations to Canada for that win. But we still have more medals than they do.[/QUOTE]So, who was the overall winner of that macho event.

Member Avatar for vegaseat
0
143
Member Avatar for ArtphotoasiA

[QUOTE=jwenting;1146975]Italian justice system has learned to not be corrupt. Had to deal with the Mafia for decades. Maybe Google didn't realise that and tried to bribe a judge...[/QUOTE] Ah, they learned the trade from the best in the field!

Member Avatar for Lardmeister
0
189
Member Avatar for AnnetteM

Since you are not showing any indentations, your question will be hard to answer. For code tags info see: [url]http://www.daniweb.com/forums/announcement114-3.html[/url]

Member Avatar for AnnetteM
0
1K
Member Avatar for lrh9
Member Avatar for jwenting
1
768
Member Avatar for The Dude

I played it with my cousin, who is a real candy bar bon vivant. She got 18 out of 20. A flash player hickup saved me from absolute washout.

Member Avatar for zortec
2
189
Member Avatar for donnyv

Looks like using module glob is pretty cool! This will give a sorted file list: [code=python]import os import glob os.chdir('C:/Windows/') file_list = glob.glob('*.ini') # sort case independent print( sorted(file_list, key=str.lower) ) [/code]Works with IronPython 2.6 too.

Member Avatar for donnyv
0
114
Member Avatar for eva yang

Sorry, please use code tags around your Python code! Run this code: [code]print("Please enclose your code in code tags like this:") print("["+"code]") print("... your code goes here ...") print("[/"+"code]") [/code]

Member Avatar for eva yang
0
92
Member Avatar for zrin

So, if your file eg. numbers.txt contained [B]44 36 11 66 24 92 3 8[/B] you could simply use: [code=python]mylist = [] for line in open('numbers.txt'): sublist = [float(item) for item in line.split()] mylist.append(sublist) # test it print(mylist) [/code]I tested it with Ironpython 2.6 and assume it will work with …

Member Avatar for Lardmeister
0
93
Member Avatar for samarudge

[QUOTE=Ancient Dragon;1100347]I've been using that for quite some time.[/QUOTE]How many solved threads to you attribute to that?

Member Avatar for WaltP
4
189
Member Avatar for Ancient Dragon

[QUOTE=vegaseat;1099230]Infinity dear Watson, Infinity![/QUOTE]Does that mean Universes have always been there in one state or another? I simple mindedly understood that Universes come an go, or pulse, or form nodes. I think the question should have been How Old Is Our Universe Right Now?

Member Avatar for WaltP
1
324
Member Avatar for mrnutty

Makes sense with IronPython: [code=Python]data = """\ 01011001 01101111 01110101 00100000 01101011 01101110 01101111 01110111 00100000 01111001 01101111 01110101 00100000 01100001 01110010 01100101 00100000 01100001 00100000 01100111 01100101 01100101 01101011 00100000 01110111 01101000 01100101 01101110 00100000 01111001 01101111 01110101 00100000 01100001 01110010 01100101 00100000 01101001 01101110 01110100 01100101 01110010 01100101 …

Member Avatar for mrnutty
1
329
Member Avatar for sneekula
Member Avatar for cwarn23

Did you hear that big bang? What a stupid name for one hell of an explosion!

Member Avatar for Dope 7560
0
318
Member Avatar for cwarn23
Member Avatar for vegaseat
0
192
Member Avatar for leegeorg07
Member Avatar for Destray
Re: Hi

Give the Python forum right here at DaniWeb a try. Seems to be quite active.

Member Avatar for anushri
0
85
Member Avatar for rehber344
Member Avatar for tortuga

Eventually you will grow a long beard and people will climb the mountain to ask for your advice!

Member Avatar for tortuga
0
233
Member Avatar for pogson
Member Avatar for ShadyTyrant

[QUOTE=ShadyTyrant;1090123][CODE] prompt = "Did you get your new laptop with windows 7? (y/n) " answer = raw_input(prompt).lower() if 'y' in answer: print "Phantasmagoric!" else: print "Epic Fail" [/CODE] $Did you get your new laptop with windows 7? (y/n): n $Epic Fail[/QUOTE]So what bad did you do so Santa didn't bring …

Member Avatar for ShadyTyrant
0
167
Member Avatar for amoghmasur

[QUOTE=simonday;1089705]happy to be a part of this community[/QUOTE]I bet you do, so you can spam us with your junk!

Member Avatar for Lardmeister
0
21
Member Avatar for emir_gradacac

[QUOTE=fallopiano;1089446]even faster would be: [CODE=python]key = pygame.key.get_pressed() event = pygame.event.poll() # exit if event.type == QUIT or key[K_ESCAPE]: pygame.quit(); sys.exit() # left arrow if key[K_LEFT]: # do something pass [/CODe][/QUOTE]Let's hope you tested out which approach is faster.

Member Avatar for Lardmeister
0
426
Member Avatar for El Duke

It will be easier to modifiy the jlm699 code: [code=python]import re regex_compiled = re.compile('^<Ranking: (.*) \((.*)\)>$') input_data = """<Ranking: AA (John)> <Ranking: CA (Peter)> <Ranking: TA-A (Samantha)> """ data_list = input_data.split('\n') # remove any empty list item data_list.remove("") # slice into second to last item data_list = data_list[len(data_list)-2:-1] print data_list …

Member Avatar for vegaseat
0
139
Member Avatar for fatalblade

Python also has a raw string designator that ignores escape characters. Simply use initial_drive = r"C:\\"

Member Avatar for fatalblade
0
170
Member Avatar for python.noob

The QTdesigner created code simply looks too strange. I don't think anyone on DaniWeb uses this utility.

Member Avatar for python.noob
0
738

The End.