Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 23 results for
pythonian
- Page 1
Pythonian Way
Programming
Software Development
12 Years Ago
by utkarshsahu
In Python, which is more of a
pythonian
style of writing between these two: 1. print 'Hello' or 2. print('Hello') If u have a link on basic outlines of
pythonian
style and which syntax is a more pythonic way to use, it would be very useful to me. Thank You!
Comparing Python and C, Part 10, Structures
Programming
Software Development
18 Years Ago
by vegaseat
…;%s"' % (arnie.name, arnie.slogan) print # ... show it the
Pythonian
way (good for large person lists) ... personList = [emma, jack, arnie…
Re: Comparing Python and C, Part 10, Structures
Programming
Software Development
17 Years Ago
by vegaseat
You can simplify the Python 'for loop': [code]# ... show it the
Pythonian
way (good for large person lists) ... personList = [emma, jack, arnie] for pers in personList: print '%s says "%s"' % (pers.name, pers.slogan) [/code]
Multi user (Graphical?) interface
Programming
Software Development
12 Years Ago
by yuvalm2
… understand, may be used very easily to provide interfaces for
pythonian
programs), performing much the same functionality as the aforementioned application…
Re: Starting Python
Programming
Software Development
16 Years Ago
by vegaseat
…;%s"' % (jack.name, jack.slogan) print # show it the
Pythonian
way (good for large person lists) ... print "The whole… list of names (the
Pythonian
way):" personList = [emma, jack, arnie, frank] for pers in…
Re: Tkinter: protecting text in the Entry widget
Programming
Software Development
18 Years Ago
by vegaseat
Okay! I am glad i was able to help in a small way at least! Do you consider yourself a
Pythonian
or a Pythonista? :mrgreen:
Re: Tkinter: protecting text in the Entry widget
Programming
Software Development
18 Years Ago
by G-Do
… about my language choice, so I guess I'm a
Pythonian
, because Pythonista sounds like you code in the jungle while…
Re: Speeding up finding all spaces (' ') in text
Programming
Software Development
15 Years Ago
by Ene Uran
… or tool that works, but that you don't understand
Pythonian
: somebody that insists on using a very early version of…
Re: How to Pass this Variable?
Programming
Software Development
14 Years Ago
by vegaseat
Our fellow
Pythonian
nezachem is correct. You could also have used the usual […
Re: Saving as text file with fopen
Programming
Software Development
14 Years Ago
by nezachem
… doesn't help. [/QUOTE] Let me guess: you are a
Pythonian
, right? In C, [ICODE]("%s",filename)[/ICODE] is…
Re: Using shared directories
Programming
Software Development
12 Years Ago
by yuvalm2
… a common enough problem (Is it?) to have a good
pythonian
solution for it.
Re: programming language formy new game
Programming
Game Development
9 Years Ago
by Teiman
… python optimized for delivery (I dunno, I am not a
pythonian
fan :) I am a newbie too, so take this with…
Re: Pythonian Way
Programming
Software Development
12 Years Ago
by TrustyTony
They are not Pythonic or unPythonic, but 1. is the way it used to be in Python 2 (it **does not function in Python 3**), second alternative is print as function, which is the style of Python 3 and Python 2 new versions if you do `from __future__ import print_function`. But as 2. alternative has only one parameter, it works also in Python 2 even …
Re: Pythonian Way
Programming
Software Development
12 Years Ago
by utkarshsahu
Does first alternative not work in Python 3?
Re: Pythonian Way
Programming
Software Development
12 Years Ago
by snippsat
> Does first alternative not work in Python 3? No,in python 3 print is a function. Read about diffrence. http://diveintopython3.ep.io/porting-code-to-python-3-with-2to3.html
Re: Pythonian Way
Programming
Software Development
12 Years Ago
by bumsfeld
In most cases you can simply use the print() function, then it will work in both newer Python versions. Print rightfully should be a function and not a statement, this was corrected in the newer versions.
Re: Pythonian Way
Programming
Software Development
12 Years Ago
by utkarshsahu
Thank you all of you!
A Pythonian Look at the Family Tree Conundrum
Programming
Software Development
18 Years Ago
by vegaseat
The other day I was looking at my family tree. There are my parents Antonio and Lucy Vegaseat, then my grandparents Alfonso and Ludmilla Vegaseat on my father's side and Roland and Helga Gruenspan on my mother's side. Then come my great grandparents, by now there are eight of those. It was time for a small Python program to figure out how many …
Re: A Pythonian Look at the Family Tree Conundrum
Programming
Software Development
18 Years Ago
by bumsfeld
I do not know Python much, but I was taught that you start with Adam and Eve, not one trillion old people!
Re: A Pythonian Look at the Family Tree Conundrum
Programming
Software Development
18 Years Ago
by vegaseat
Wouldn't that be a lot of incest?
Re: Multi user (Graphical?) interface
Programming
Software Development
12 Years Ago
by griswolf
Just my own perspective: HTML was much easier for me to learn than any particular graphic package. Django is quite approachable for small projects (and this one looks "small" from the perspective of the UI)
Re: Multi user (Graphical?) interface
Programming
Software Development
12 Years Ago
by woooee
[QUOTE=;][/QUOTE] +1 for HTML. People are familiar with web browsers and you can generate the code via Python if you want. [quote]Meaning that if user A asked to perform some task X, which took 10 minutes, user B will not be able to perform a new task Y until X would have ended.[/quote]That is usually done via a lock file, which each process …
Re: Comparing Python and C, Part 10, Structures
Programming
Software Development
11 Years Ago
by georgooty
how to pass this Person struct to c program. how to parse struct in cprogram..
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC