1,175 Posted Topics

Member Avatar for TheNational22

I would rewrite your code like this: [code=python]import os import zipfile import datetime today = datetime.date.today() yesterday = (today + datetime.timedelta(days=-1)) zfilename = "c:\\crunchtime\\CT" + yesterday.strftime('%m%d%y') +".zip" # test it print zfilename tFile = zipfile.ZipFile(zfilename, "w") directory = "c:\\crunchtime" files = os.listdir(directory) for file in files: if os.path.isfile(file): fullpath = …

Member Avatar for sneekula
0
129
Member Avatar for thane33

Just some initial observations: How are you importing pylab? Do you have module numpy installed? Pylab needs that internally. Where does finTempNum come from? If it's a list then use: etemp = finTempNum[i]

Member Avatar for sneekula
0
141
Member Avatar for blackcorner

If you don't mind learning regex, which is almost another language, but used by many popular computer languages for text manipulation: [code=python]import re p = re.compile(r'[;,.]') s = 'hi;your,face.is;on,fire' print p.sub('_', s) # hi_your_face_is_on_fire [/code]

Member Avatar for ZZucker
0
213
Member Avatar for F@brice
Member Avatar for sneekula
0
23
Member Avatar for babybuff205

[QUOTE=babybuff205;695004]I need help any one ???? link exchange possible <URL SNIPPED>[/QUOTE]Linking to a website for commercial gains is called spam and is frowned upon!

Member Avatar for Lardmeister
0
283
Member Avatar for The Dude
Member Avatar for zeroth

Do you trust the Phone Companies? After all they all too easily went along with the Bush/Chainy 'spy on your customer game'. They could intercept your signal and change it to vote Republican all the way!

Member Avatar for Dave Sinkula
1
185
Member Avatar for meedo4ever

[QUOTE=meedo4ever;693931]Iam new user nice to meet you[/QUOTE]Welcome! It would be nice if you could let us know a little about you and your skills.

Member Avatar for LabASSistant
0
44
Member Avatar for sahana
Member Avatar for LabASSistant
0
32
Member Avatar for Makgopelo
Re: Hi

[QUOTE=Makgopelo;694499]Hello everyone, I am a newbie her and also to the python programing language, I m trying to learn wxPython........[/QUOTE]Welcome, see you in the DaniWeb Python Forum then. Read though the "Starting wxPython" sticky and ask question in the Python forum. Many of us are glad to help! [url]http://www.daniweb.com/forums/thread128350.html[/url]

Member Avatar for LabASSistant
0
34
Member Avatar for Peter Waihura
Member Avatar for LabASSistant
0
28
Member Avatar for ptwoms

Hallo P2MS! What are you interested in and what skill do you want to learn?

Member Avatar for LabASSistant
0
187
Member Avatar for heavenkid

Hello Kid! What are you interested in and what skills do you want to learn?

Member Avatar for LabASSistant
0
48
Member Avatar for jkavecy

While the fates permit, live happily; life speeds on with hurried step, and with winged days the wheel of the headlong year is turned.

Member Avatar for LabASSistant
0
44
Member Avatar for VbRider
Member Avatar for sharkymo

Hallo Sharky! What are you interested in and what skills do you want to improve?

Member Avatar for LabASSistant
0
79
Member Avatar for christina>you
Member Avatar for GrimJack
0
2K
Member Avatar for vmanes
Member Avatar for sneekula

Yup, here are the hypocrites! [url]http://www.youtube.com/watch?v=wQK1al91drs[/url]

Member Avatar for Dave Sinkula
0
67
Member Avatar for Feenix45

Come on people, you need to do your homework yourself or you will not learn anything! Salem's advice is your best start.

Member Avatar for woooee
0
727
Member Avatar for The Dude
Member Avatar for vmanes
Member Avatar for dinilkarun

This will show you one way to do this: [url]http://www.daniweb.com/forums/post694993-77.html[/url]

Member Avatar for dinilkarun
0
81
Member Avatar for Ancient Dragon
Member Avatar for GrimJack
0
90
Member Avatar for The Dude

Nice educational toy, for grown-ups too. We had one around the house for years.

Member Avatar for R0bb0b
0
147
Member Avatar for mercer88
Member Avatar for The Dude
0
46
Member Avatar for TheNational22

Something like this can do: [code=python]import datetime today = datetime.date.today() yesterday = (today + datetime.timedelta(days=-1)) filename = "CF" + yesterday.strftime("%m%d%y") + ".csv" print filename # for instance --> CF092108.csv [/code]

Member Avatar for sneekula
0
84
Member Avatar for Salem

Pirate Meeting Fun: [url]http://www.eonline.com/uberblog/b29981_yo-ho_yo-ho_some_booty_pirate_day.html[/url] Got to leave! Got to run over to Arrrrrrrrrrrrrrby's for one of those great sandwiches.

Member Avatar for Nick Evan
1
353
Member Avatar for sneekula
Member Avatar for Ancient Dragon
0
104
Member Avatar for scru

[QUOTE=jwenting;691656]Other: hanging, drawing, and quartering comes to mind. First hang them from the neck until NEARLY dead. Next drag them through the city behind a horse (or car). Then tear out their intestines out of their living bodies. After that attach each limb to a horse (or car) and tear …

Member Avatar for bumsfeld
0
182
Member Avatar for GrimJack
Member Avatar for harry truman
Member Avatar for Lardmeister

Ernest Bevin (England Politico): "If you let that sort of thing go on, your bread and butter will be cut right out from under your feet."

Member Avatar for sneekula
0
70
Member Avatar for LabASSistant

Shalom and howdy-do Lab! What are you interested in and what skills are you anxious about? Don't spend too much time in the Geek's Lounge. The stick-in-the-muds will pull you down to their level and make a conservative out of you. Who needs more of those? :)

Member Avatar for meksikatsi
0
90
Member Avatar for lllllIllIlllI

The widget wx.FileDialog() is most likely in the core DLL of wx, which is written and compiled C++. So the button label of the widget itself cannot be altered without going back to the C++ source code and recompiling. Not a task for the faint at heart. You could however …

Member Avatar for sneekula
0
83
Member Avatar for Dave Sinkula

[QUOTE]“We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defence, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constitution for the United States …

Member Avatar for Aia
0
420
Member Avatar for The Dude
Member Avatar for TheBuzzer
Member Avatar for The Dude
Member Avatar for Lardmeister

ACME Cemetery Marker Ltd.: "People are dying to get our products."

Member Avatar for sneekula
0
115
Member Avatar for The Dude
Member Avatar for The Dude
Member Avatar for The Dude
Member Avatar for Lardmeister

[COLOR="Red"][I]Infertility Unlikely To Be Passed On[/I][/COLOR]

Member Avatar for sneekula
2
98
Member Avatar for Zone_enterprise
Member Avatar for The Dude
Member Avatar for vmanes
Member Avatar for sneekula
0
75
Member Avatar for zandiago
Re: Ufo

[QUOTE=jwenting;516690]there are things in the sky that are at some stage unidentified, these are UFOs. Once they are identified (as they invariably are) they're UFOs no longer. So yes, there are UFOs but no, they're not extraterrestrial spaceships. And yes, there's likely life on other planets but no, they're not …

Member Avatar for R0bb0b
0
487
Member Avatar for Dave Sinkula

ANCHORAGE, Alaska (AP) -- Gov. Sarah Palin may eventually have said ''no thanks'' to a federally funded Bridge to Nowhere. But a bridge to her hometown of Wasilla, that's a different story. A $600 million bridge and highway project to link Alaska's largest city to Palin's town of 7,000 residents …

Member Avatar for Lardmeister
0
142
Member Avatar for jasimp

[QUOTE=jasimp;683214]Has anyone tried [URL="http://www.google.com/chrome"]Google Chrome[/URL] yet? It's Google's web browser they released today for the first time as a public beta. Still quite buggy but it's looking pretty nice. If you try it lets hear what you think.[/QUOTE]It's free, how can it be buggy? Buggy software is only written by …

Member Avatar for stephen84s
0
625

The End.