Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 8th, 2006, 10:40 PM   #11
splinter9x
Hobbyist Programmer
 
splinter9x's Avatar
 
Join Date: Jun 2006
Posts: 137
Rep Power: 0 splinter9x is an unknown quantity at this point
And DaWei said that I can't understand/read english...
__________________
Visit my Blog
I support WINDOWS...
splinter9x is offline   Reply With Quote
Old Jun 8th, 2006, 10:49 PM   #12
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile

Quote:
Originally Posted by splinter9x
And DaWei said that I can't understand/read english...
Can you read/understand Python?
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Old Jun 8th, 2006, 10:53 PM   #13
splinter9x
Hobbyist Programmer
 
splinter9x's Avatar
 
Join Date: Jun 2006
Posts: 137
Rep Power: 0 splinter9x is an unknown quantity at this point
Very little, but yes, I can read/uderstand/program in Python. I know little Python, I mean I could probably make a pretty basic program but I quit learning Python and started learning C++ and now I have left my Python days behind me.
__________________
Visit my Blog
I support WINDOWS...
splinter9x is offline   Reply With Quote
Old Jun 9th, 2006, 2:47 AM   #14
jaeusm
Programmer
 
jaeusm's Avatar
 
Join Date: Feb 2006
Location: Columbus, OH
Posts: 84
Rep Power: 3 jaeusm is on a distinguished road
Quote:
I know little Python, I mean I could probably make a pretty basic program but I quit learning Python and started learning C++ and now I have left my Python days behind me.
Too bad for you.
jaeusm is offline   Reply With Quote
Old Jun 9th, 2006, 3:06 AM   #15
splinter9x
Hobbyist Programmer
 
splinter9x's Avatar
 
Join Date: Jun 2006
Posts: 137
Rep Power: 0 splinter9x is an unknown quantity at this point
Not really, I'm not to upset about it.
__________________
Visit my Blog
I support WINDOWS...
splinter9x is offline   Reply With Quote
Old Jun 9th, 2006, 4:53 AM   #16
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
Quote:
Originally Posted by splinter9x
This question can be answered simply by this statement.... *It is Python*
The problem was logic related, rather than a problem with Python itself, so I'm unsure of your point. You don't have to veil your criticisms of Python, but it helps for criticism to be valid, otherwise you just look foolish.

As an aside, you can also use list comprehensions in place of filter:
namelist = [w for w in namelist if w[i] in letters]
Though whether you use list comprehensions or filter/lambda is really a matter of personal choice.
Arevos is offline   Reply With Quote
Old Jun 9th, 2006, 5:09 PM   #17
splinter9x
Hobbyist Programmer
 
splinter9x's Avatar
 
Join Date: Jun 2006
Posts: 137
Rep Power: 0 splinter9x is an unknown quantity at this point
It was a joke....
__________________
Visit my Blog
I support WINDOWS...
splinter9x is offline   Reply With Quote
Old Jun 9th, 2006, 6:06 PM   #18
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jun 9th, 2006, 6:25 PM   #19
splinter9x
Hobbyist Programmer
 
splinter9x's Avatar
 
Join Date: Jun 2006
Posts: 137
Rep Power: 0 splinter9x is an unknown quantity at this point
Nice beard... BTW I know I prolly didn't post it in a way of a joke.
__________________
Visit my Blog
I support WINDOWS...
splinter9x is offline   Reply With Quote
Old Jun 9th, 2006, 6:40 PM   #20
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
Originally Posted by splinter9x
BTW I know I prolly didn't post it in a way of a joke.
So which one is it? Either it was a joke or it wasn't?

Bear in mind that the vast majority of us do not read minds. Not everyone knows what you're saying or what you're thinking - similarly someone may misread something you typed. I don't think it's appreciated that you had an unfounded go at someone attempting to learn. Language forums are for providing help or constructive criticism - neither of which you contributed, I'm afraid.

titaniumdecoy: A general rule of thumb I personally have when using filter/map: if you're calling an inbuilt function, you're better off using filter/map as it's quicker to type and will run faster as the implied loop is pushed into C. However, if you're doing simple checks like looking up a value or comparing values or some such then you're better off with a list comprehension. It's a fair bit easier on the eyes and it will run faster too. Again - personal preference, just my two cents. Find what works best for you and be consistent.
Cerulean is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:12 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC