On 30-12-2012 23:37, Alvaro Lacerda wrote:
I'm trying to get full number result using the %d command
Try %f instead. %d is the formatting symbol for integer numbers.
See http://docs.python.org/2/library/stdtypes.html#string-formatting-operations
Or have a look at what string.format() can do:
2012/12/30 Alvaro Lacerda alacerda...@gmail.com:
The code I wrote is supposed to ask the user to enter a number;
Then tell the user what's going to happen to that number (x / 2 + 5) ;
Then give the user an answer;
I succeeded getting results from even numbers, but when I try diving an
Alvaro Lacerda wrote:
The code I wrote is supposed to ask the user to enter a number;
Then tell the user what's going to happen to that number (x / 2 + 5) ;
Then give the user an answer;
I succeeded getting results from even numbers, but when I try diving an
uneven number (i.e. 5) by 2, I
Hello,
Python does not support REAL numbers. It has float number, which
are approximations of real numbers. They behave almost, but not
quite, like you might expect.
It also has Decimal numbers. They also approximate real numbers,
but slightly differently. They might behave more like you'd
%s got the job done!!!
Thank you all for the info and links,
I appreciate it!
--
http://mail.python.org/mailman/listinfo/python-list
The very first few steps, are help(any_module), and google.
Try looking at this first then, the google search term I used(or any you
might come up with_ :
double underscore python 2.7
yielding:
Hi all,
Brand new to python. I was wondering what the __ underscore means?
For example, there is a line of code:
__name__=='__main__'
and I don't know what the double underscore is used for.
--
http://mail.python.org/mailman/listinfo/python-list
On 09/09/2012 12:03, StarPilgrim wrote:
Hi all,
Brand new to python. I was wondering what the __ underscore means?
For example, there is a line of code:
__name__=='__main__'
and I don't know what the double underscore is used for.
Start here
See the identical thread you posted on tutor, where it was a better match.
--
DaveA
--
http://mail.python.org/mailman/listinfo/python-list
On 9/9/2012 6:39 AM, Dave Angel wrote:
See the identical thread you posted on tutor, where it was a better match.
Would you please post that link for those of us that did not see that one.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
On 09/09/2012 12:04 PM, hamilton wrote:
On 9/9/2012 6:39 AM, Dave Angel wrote:
See the identical thread you posted on tutor, where it was a better
match.
Would you please post that link for those of us that did not see that
one.
Thanks
it's a mailing list. There's no links to the mail
On Sun, 09 Sep 2012 10:04:18 -0600, hamilton wrote:
On 9/9/2012 6:39 AM, Dave Angel wrote:
See the identical thread you posted on tutor, where it was a better
match.
Would you please post that link for those of us that did not see that
one.
StarPilgrim wrote:
Brand new to python. I was wondering what the __ underscore means?
For example, there is a line of code:
__name__=='__main__'
and I don't know what the double underscore is used for.
Ah, tricky. That's not just double underscore; it's double ended
double underscore.
Gerd Niemetz wrote:
Take a look at http://www.web2py.com, a powerful and easy to learn python
framework, and the community at
https://groups.google.com/forum/?fromgroups#!forum/web2py is also very helpful
Web2py rocks. It does by default better than many, probably most,
professional web
On 4/19/2012 6:21, lkcl wrote:
yeah, it does :) python is... the best word i can describe it is:
it's beautiful. it has an elegance of expression that is only marred
by the rather silly mistake of not taking map, filter and reduce into
the list object itself: l.map(str) for example would be
On Wed, Apr 18, 2012 at 11:21 PM, lkcl luke.leigh...@gmail.com wrote:
On Apr 11, 9:11 pm, biofob...@gmail.com wrote:
I am new to python and only have read the Byte of Python ebook, but want
to move to the web. I am tired of being a CMS tweaker and after I tried
python, ruby and php, the
On Thu, Apr 19, 2012 at 9:14 PM, Kiuhnm
kiuhnm03.4t.yahoo...@mail.python.org wrote:
There are many things I don't like about Python. The first flaw is the
absence of anonymous code blocks, but I've already solved this problem.
You mean lambdas? Yeah, they're a lot more limited in Python than in
In article 4f8ff38c$0$1381$4fafb...@reader1.news.tin.it,
Kiuhnm kiuhnm03.4t.yahoo.it wrote:
I don't like when a community imposes style on a programmer. For
instance, many told me that I shouldn't use camelCase and I should
adhere to PEP8.
Well, that's not me. I write my code the way I
On Thu, Apr 19, 2012 at 12:20 PM, Alek Storm alek.st...@gmail.com wrote:
On Wed, Apr 18, 2012 at 11:21 PM, lkcl luke.leigh...@gmail.com wrote:
On Apr 11, 9:11 pm, biofob...@gmail.com wrote:
I am new to python and only have read the Byte of Python ebook, but want
to move to the web. I am
On Thu, Apr 19, 2012 at 7:12 AM, lkcl luke luke.leigh...@gmail.com wrote:
On Thu, Apr 19, 2012 at 12:20 PM, Alek Storm alek.st...@gmail.com wrote:
Why not use list comprehension syntax?
because it's less characters to type, and thus less characters to
read. i find that syntax incredibly
On 2012-04-19, Kiuhnm kiuhnm03.4t.yahoo.it wrote:
I don't like when a community imposes style on a programmer.
For instance, many told me that I shouldn't use camelCase and I
should adhere to PEP8.
Well, that's not me. I write my code the way I like it and if
that is frowned upon by some
On Thu, Apr 19, 2012 at 1:21 PM, Alek Storm alek.st...@gmail.com wrote:
On Thu, Apr 19, 2012 at 7:12 AM, lkcl luke luke.leigh...@gmail.com wrote:
On Thu, Apr 19, 2012 at 12:20 PM, Alek Storm alek.st...@gmail.com wrote:
Why not use list comprehension syntax?
because it's less characters to
On Thu, Apr 19, 2012 at 10:12 PM, lkcl luke luke.leigh...@gmail.com wrote:
that's what i meant about beauty and elegance. the bang per buck
ratio in python, results obtained for the number of characters used,
is higher, and that's something that i personally find to be a
priority over speed.
On Thu, Apr 19, 2012 at 10:56 PM, lkcl luke luke.leigh...@gmail.com wrote:
i'm belabouring the point (not entirely intentionally) but you see how
clumsy that is? it's probably just as complex in the actual
lexer/grammar file in the http://python.org source code itself, as it
is to think about
On 4/19/2012 14:02, Roy Smith wrote:
In article4f8ff38c$0$1381$4fafb...@reader1.news.tin.it,
Kiuhnmkiuhnm03.4t.yahoo.it wrote:
I don't like when a community imposes style on a programmer. For
instance, many told me that I shouldn't use camelCase and I should
adhere to PEP8.
Well, that's not
On 4/19/2012 7:14 AM, Kiuhnm wrote:
On 4/19/2012 6:21, lkcl wrote:
yeah, it does :) python is... the best word i can describe it is:
it's beautiful. it has an elegance of expression that is only marred
by the rather silly mistake of not taking map, filter and reduce into
the list object
On 4/19/2012 7:20 AM, Alek Storm wrote:
Why not use list comprehension syntax?
For 3.x, that should be shortened to Why not use comprehension
syntax?, where comprehensions by default become generator expressions.
These:
Map: [val+1 for val in some_list]
Filter: [val for val in some_list
On 19.04.2012, Kiuhnm kiuhnm03.4t.yahoo.it wroted:
When you know more than 30 languages you stop thinking that way
and you also don't try to defend your language against infidels.
Then again, even when you know more than 100 languages, you may find
some that fit your brain and some that just
On 4/19/2012 8:12 AM, lkcl luke wrote:
you don't *have* to use lambdas with map and reduce,
you just have touse a function,
where a lambda happens to be a nameless function.
Abbreviated statements like the above sometimes lead people to think
that there is more difference between def
On Apr 17, 9:54 am, Bryan bryanjugglercryptograp...@yahoo.com wrote:
If by rebuilding your portfolio you mean to position yourself for a
job, then popularity counts a lot. As measured by job openings, Django
is king.
yeah i can attest to that. i never get the jobs, though :)
--
On Apr 11, 9:11 pm, biofob...@gmail.com wrote:
I am new to python and only have read the Byte of Python ebook, but want to
move to the web. I am tired of being a CMS tweaker and after I tried python,
ruby and php, the python language makes more sense (if that makes any sense
for the real
biofob wrote:
I am new to python and only have read the Byte of Python ebook, but want to
move to the web. I am tired of being a CMS tweaker and after I tried python,
ruby and php, the python language makes more sense (if that makes any sense
for the real programmers). I heard a lot of good
On 17 April 2012 09:54, Bryan bryanjugglercryptograp...@yahoo.com wrote:
Django has emphasized backwards compatibility with the
down-side that, last I heard, there was no plan to move to Python 3.
Not quite:
https://www.djangoproject.com/weblog/2012/mar/13/py3k/
--
Arnaud
--
In article
c59fba7e-df71-4429-919b-cf34668fe...@s10g2000pbc.googlegroups.com,
Bryan bryanjugglercryptograp...@yahoo.com wrote:
Django has emphasized backwards compatibility with the
down-side that, last I heard, there was no plan to move to Python 3.
Hardly. See
Am Mittwoch, 11. April 2012 22:11:37 UTC+2 schrieb biof...@gmail.com:
I am new to python and only have read the Byte of Python ebook, but want to
move to the web. I am tired of being a CMS tweaker and after I tried python,
ruby and php, the python language makes more sense (if that makes any
Am Mittwoch, 11. April 2012 22:11:37 UTC+2 schrieb biof...@gmail.com:
I am new to python and only have read the Byte of Python ebook, but want to
move to the web. I am tired of being a CMS tweaker and after I tried python,
ruby and php, the python language makes more sense (if that makes any
Roy Smith wrote:
Bryan wrote:
Django has emphasized backwards compatibility with the
down-side that, last I heard, there was no plan to move to Python 3.
Hardly. Seehttps://www.djangoproject.com/weblog/2012/mar/13/py3k/
Ah, I'm behind the times again. Thanks, that's good news.
--
--Bryan
I am new to python and only have read the Byte of Python ebook, but want to
move to the web. I am tired of being a CMS tweaker and after I tried python,
ruby and php, the python language makes more sense (if that makes any sense
for the real programmers). I heard a lot of good things about
Hello,
I've got more experience with PHP stuff, but for Python, I would
recommend checking out Django getting started:
https://docs.djangoproject.com/en/dev/intro/
... to see if you like it.
Having used a few PHP frameworks and CMSs, I really dig that Django
has a built-in admin; I am in the
-bounces+edwlahay=astound@python.org
[mailto:python-list-bounces+edwlahay=astound@python.org] On Behalf Of
biofob...@gmail.com
Sent: Wednesday, April 11, 2012 1:12 PM
To: python-list@python.org
Subject: Framework for a beginner
I am new to python and only have read the Byte of Python ebook
A simpler version of Django or Pyramid is 'Flask'
It's doco is great and aimed at a reasonably entry level.
It's still quite powerful, but easier to set up to start with:
http://flask.pocoo.org/
Louis.
http://psykar.com
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 7, 1:52 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
Sounds like this library is documented the same way most third party
libraries are: as an afterthought, by somebody who is so familiar with
the software that he cannot imagine why anyone might actually need
In a nutshell: My question is: how do experienced coders learn about
external/third-party classes/APIs?
I'm teaching myself Python through a combination of Hetland's
'Beginning
Python', various online tutorials and some past experience coding
ASP/VBScript. To start to learn Python I've set myself
On 4/6/2012 1:41 PM Martin Jones said...
In a nutshell: My question is: how do experienced coders learn about
external/third-party classes/APIs?
I'm teaching myself Python through a combination of Hetland's
'Beginning
Python', various online tutorials and some past experience coding
On Fri, 06 Apr 2012 13:41:23 -0700, Martin Jones wrote:
In a nutshell: My question is: how do experienced coders learn about
external/third-party classes/APIs?
Does it have a tutorial? Do it.
Does it have a manual, a wiki, FAQs, or other documentation? Read them.
If all else fails, what does
I am new to Python (Python 2.7 on Linux). Research indicates that:
a) Compiling Python modules into intermediate bytecode marginally
improves load time.
b) The Python interpreter will use an already-prepared .pyc file if one
exists in the same directory as the .py.
That then, is presumably
On 1/29/2012 12:57 PM, HoneyMonster wrote:
I am new to Python (Python 2.7 on Linux). Research indicates that:
a) Compiling Python modules into intermediate bytecode marginally
improves load time.
The improvement is larger the larger the file. You may notice that .pyc
files are only created
This short article provides some basic information
about .pyc and .pyo files
http://www.network-theory.co.uk/docs/pytut/CompiledPythonfiles.html
--
Stanley C. Kitching
Human Being
Phoenix, Arizona
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 29 Jan 2012 14:01:01 -0500, Terry Reedy wrote:
On 1/29/2012 12:57 PM, HoneyMonster wrote:
I am new to Python (Python 2.7 on Linux). Research indicates that:
a) Compiling Python modules into intermediate bytecode marginally
improves load time.
The improvement is larger the larger
Hi there,
I'm a complete beginner to Python and, aside from HTML and CSS, to coding in
general. I've spent a few hours on it and think I understand most of the syntax.
However, I'm wondering a bit about For Loops. I know that the basic syntax for
them is to define a list, and then to use
for x in y
However, what does for and in mean in this context?
It means basically the same as in Englsish
Does the following links answer the question ?
http://www.ibiblio.org/g2swap/byteofpython/read/for-loop.html
http://dsnra.jpl.nasa.gov/software/Python/diveintopython.pdf (page 58)
Have
On 01/12/2011 08:53, Mark wrote:
Hi there,
I'm a complete beginner to Python and, aside from HTML and CSS, to coding in
general. I've spent a few hours on it and think I understand most of the syntax.
However, I'm wondering a bit about For Loops. I know that the basic syntax for
them
On 12/01/2011 06:32 AM, Pedro Henrique G. Souto wrote:
On 01/12/2011 08:53, Mark wrote:
Hi there,
I'm a complete beginner to Python and, aside from HTML and CSS, to
coding in general. I've spent a few hours on it and think I
understand most of the syntax.
However, I'm wondering a bit
Thanks a lot for the answers everyone, I really appreciate you getting back to
me so quickly. I think that I understand where I am with this now :)
--
http://mail.python.org/mailman/listinfo/python-list
Mark markpa...@gmail.com writes:
I'm a complete beginner to Python and, aside from HTML and CSS, to
coding in general. I've spent a few hours on it and think I understand
most of the syntax.
Welcome!
You should work your way through the Python tutorial, from beginning to
end URL:http
On 12/1/11 4:53 AM, Mark wrote:
Hi there,
I'm a complete beginner to Python and, aside from HTML and CSS, to coding in
general. I've spent a few hours on it and think I understand most of the syntax.
However, I'm wondering a bit about For Loops. I know that the basic syntax for
them
Hi,
I'm reading the Essential SQLAlchemy book from O'Reilly. It explains
SqlAlch 0.4 but my current version is 0.7 and there are some
differences.
Here is an example from the book:
user_table = Table('tf_user', metadata,
Column('id', Integer, primary_key=True),
In mailman.2906.1321891043.27778.python-l...@python.org Jabba Laci
jabba.l...@gmail.com writes:
SAWarning: Unicode column received non-unicode default value.
Column('display_name', Unicode(255), default=''),
Perhaps it would help to supply the default value as a Unicode string
instead of a
In article mailman.2906.1321891043.27778.python-l...@python.org,
Jabba Laci jabba.l...@gmail.com wrote:
Hi,
I'm reading the Essential SQLAlchemy book from O'Reilly.
Everytime I've worked with SQLAlchemy, I've run away screaming in the
other direction. Sure, portability is a good thing,
On Nov 22, 10:25 am, Roy Smith r...@panix.com wrote:
Everytime I've worked with SQLAlchemy, I've run away screaming in the
other direction. Sure, portability is a good thing, but at what cost?
I've never found SQLAlchemy to be anything but sane and approachable.
It's really worth understanding
In article
8832ab6d-8def-45d1-92df-baac40e1c...@t36g2000prt.googlegroups.com,
alex23 wuwe...@gmail.com wrote:
On Nov 22, 10:25 am, Roy Smith r...@panix.com wrote:
Everytime I've worked with SQLAlchemy, I've run away screaming in the
other direction. Sure, portability is a good thing, but
On 21Nov2011 22:18, Roy Smith r...@panix.com wrote:
| In article
| 8832ab6d-8def-45d1-92df-baac40e1c...@t36g2000prt.googlegroups.com,
| alex23 wuwe...@gmail.com wrote:
| On Nov 22, 10:25?am, Roy Smith r...@panix.com wrote:
| Everytime I've worked with SQLAlchemy, I've run away screaming in
Why do you want to stop redis after your program terminates? Generally,
you just start redis up when the system boots and leave it running.
Hi,
OK, so it's more like MySQL or PostgeSQL, i.e. leave the server
running in the background. I wanted to use it like SQLite, i.e. let it
run only when
In article mailman.2766.1321449007.27778.python-l...@python.org,
Jabba Laci jabba.l...@gmail.com wrote:
Why do you want to stop redis after your program terminates? Generally,
you just start redis up when the system boots and leave it running.
Hi,
OK, so it's more like MySQL or
El 16/11/11 03:22, Jabba Laci escribió:
Hi,
I'm reading the redis documentation and there is one thing that
bothers me. For redis, you need to start a server on localhost. Is
there an easy way that my Python script starts this server
automatically? Before using my script, I don't want to start
Hi,
I'm reading the redis documentation and there is one thing that
bothers me. For redis, you need to start a server on localhost. Is
there an easy way that my Python script starts this server
automatically? Before using my script, I don't want to start
redis-server each time. When my program
In article mailman.2758.1321410156.27778.python-l...@python.org,
Jabba Laci jabba.l...@gmail.com wrote:
Hi,
I'm reading the redis documentation and there is one thing that
bothers me. For redis, you need to start a server on localhost. Is
there an easy way that my Python script starts this
On 10/15/2011 8:03 AM pngrv said...
snip
html
head
titlePlease Use This Form To Request Resources/title
/head
body
form action=/rs_request method=POST
Name:input type=text name=namebr/
Project:input type=text name=projectbr/
# of Locations:input type=text
Hey --
I'm still learning what all of the different exceptions and errors mean. What
I'd like to do is grab a bit of assistance figuring out the error I'm getting
so that I can keep moving.
My python code for this particular part of the app looks like this:
class rs_request:
def
On Sep 13, 1:14 pm, memilanuk memila...@gmail.com wrote:
On 09/12/2011 09:20 PM, sillyou su wrote:
I'm reading Learning Python( Chinese version). Before I go through
the whole book, I want to do some excises matching each charter.
Any tips? Any better advice?
For the code examples, have
I'm reading Learning Python( Chinese version). Before I go through
the whole book, I want to do some excises matching each charter.
Any tips? Any better advice?
--
http://mail.python.org/mailman/listinfo/python-list
On 09/12/2011 09:20 PM, sillyou su wrote:
I'm reading Learning Python( Chinese version). Before I go through
the whole book, I want to do some excises matching each charter.
Any tips? Any better advice?
For the code examples, have you tried looking up the home page for the
book? Google for
Wanderer wrote:
But if you have the colon, why do you need the brackets or backslashes
in an if statement.
Why not
if condition1 or
condition2 or
condition3:
do_something()
The statement ain't over til there's a colon.
Because there are virtues in having the parser be
On 2011-07-13, Thorsten Kampe thors...@thorstenkampe.de wrote:
* Grant Edwards (Wed, 13 Jul 2011 13:03:22 + (UTC))
On 2011-07-13, Thorsten Kampe thors...@thorstenkampe.de wrote:
and that that block is to be considered in relation to what was just
said, before the colon.
The
On Jul 14, 10:34 am, Grant Edwards inva...@invalid.invalid wrote:
On 2011-07-13, Thorsten Kampe thors...@thorstenkampe.de wrote:
* Grant Edwards (Wed, 13 Jul 2011 13:03:22 + (UTC))
On 2011-07-13, Thorsten Kampe thors...@thorstenkampe.de wrote:
and that that block is to be considered
Thomas Jollans t...@jollybox.de wrote:
Coincidentally, Guido wrote this blog post just last week, without which
I'd be just as much at a loss as you:
http://python-history.blogspot.com/2011/07/karin-dewar-indentation-an...
It's also part of the Python FAQ:
* Dave Angel (Mon, 11 Jul 2011 10:36:48 -0400)
On 01/-10/-28163 02:59 PM, Anthony Kong wrote:
My immediate response is: it allows us to fit statements into one
line. e.g.
if a == 1: print a
You're confusing the colon with the semi-colon. If you want two
statements on the same line, you
* Thomas Jollans (Mon, 11 Jul 2011 16:16:17 +0200)
Basically, it looks better, and is more readable.
People tend to overlook the colon for the same reason they tend to
forget to set the colon in the first place:
a) it's a very weak marker in comparison to indentation and
b) it looks like
Thanks, mate! I was writing that up really late at night. Somehow I changed
term to semi-colon half way through,
Cheers
On Wed, Jul 13, 2011 at 5:36 PM, Thorsten Kampe
thors...@thorstenkampe.dewrote:
* Dave Angel (Mon, 11 Jul 2011 10:36:48 -0400)
On 01/-10/-28163 02:59 PM, Anthony Kong
Thorsten Kampe wrote:
* Thomas Jollans (Mon, 11 Jul 2011 16:16:17 +0200)
Basically, it looks better, and is more readable.
People tend to overlook the colon for the same reason they tend to
forget to set the colon in the first place:
a) it's a very weak marker in comparison to indentation
* Steven D'Aprano (Wed, 13 Jul 2011 21:07:17 +1000)
Thorsten Kampe wrote:
* Thomas Jollans (Mon, 11 Jul 2011 16:16:17 +0200)
Basically, it looks better, and is more readable.
People tend to overlook the colon for the same reason they tend to
forget to set the colon in the first place:
On Wed, Jul 13, 2011 at 9:07 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
The colon indicates that the sentence has more to follow: I think of it as a
pointer. It doesn't finish the thought, like a full stop, nor is it a mere
pause, like a comma or semi-colon.
An
On 07/13/2011 06:26 AM, Thorsten Kampe wrote:
Source code is (unlike normal text) not read line by line. So
you (at least I) don't have to backtrack from line 2 to line 1
because you see them both at the same time.
$a
You mean there are people who don't use ed to write their code? ;-)
-tkc
.
On 2011-07-13, Thorsten Kampe thors...@thorstenkampe.de wrote:
and that that block is to be considered in relation to what was just
said, before the colon.
The indentation makes it abundantly clear to the human reader that
that indented block is to be considered in relation to what was just
On Wed, Jul 13, 2011 at 11:03 PM, Grant Edwards invalid@invalid.invalid wrote:
You would think so, but human readers like redundancy.
One of the benefits of redundancy is error-trapping. If you see a list
of numbers like this:
40
14
24
56
48
12
60
16
=
269
then
On 2011-07-13, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
Thorsten Kampe wrote:
* Thomas Jollans (Mon, 11 Jul 2011 16:16:17 +0200)
Basically, it looks better, and is more readable.
People tend to overlook the colon for the same reason they tend to
forget to set the colon
On 7/13/2011 2:26 AM, alex23 wrote:
Thomas Jollanst...@jollybox.de wrote:
Coincidentally, Guido wrote this blog post just last week, without which
I'd be just as much at a loss as you:
http://python-history.blogspot.com/2011/07/karin-dewar-indentation-an...
It's also part of the Python FAQ:
* Grant Edwards (Wed, 13 Jul 2011 13:03:22 + (UTC))
On 2011-07-13, Thorsten Kampe thors...@thorstenkampe.de wrote:
and that that block is to be considered in relation to what was just
said, before the colon.
The indentation makes it abundantly clear to the human reader that
that
Hi, all,
Lately I am giving some presentations to my colleagues about the python
language. A new internal project is coming up which will require the use of
python.
One of my colleague asked an interesting:
*If Python use indentation to denote scope, why it still needs semi-colon at
the end of
On 07/11/2011 03:51 PM, Anthony Kong wrote:
Hi, all,
Lately I am giving some presentations to my colleagues about the python
language. A new internal project is coming up which will require the use
of python.
One of my colleague asked an interesting:
/If Python use indentation to
Awesome! Thanks for blog post link
Cheers
On Tue, Jul 12, 2011 at 12:16 AM, Thomas Jollans t...@jollybox.de wrote:
On 07/11/2011 03:51 PM, Anthony Kong wrote:
Hi, all,
Lately I am giving some presentations to my colleagues about the python
language. A new internal project is coming up
On 01/-10/-28163 02:59 PM, Anthony Kong wrote:
Hi, all,
Lately I am giving some presentations to my colleagues about the python
language. A new internal project is coming up which will require the use of
python.
One of my colleague asked an interesting:
*If Python use indentation to denote
On 2011-07-11, Thomas Jollans t...@jollybox.de wrote:
On 07/11/2011 03:51 PM, Anthony Kong wrote:
Hi, all,
Lately I am giving some presentations to my colleagues about the python
language. A new internal project is coming up which will require the use
of python.
One of my colleague asked
Could it have been made optional, like the trailing comma in list
declaration?
--
Seb
2011/7/11 Anthony Kong anthony.hw.k...@gmail.com
Awesome! Thanks for blog post link
Cheers
On Tue, Jul 12, 2011 at 12:16 AM, Thomas Jollans t...@jollybox.de wrote:
On 07/11/2011 03:51 PM, Anthony Kong
On 07/11/2011 04:36 PM, Dave Angel wrote:
The character you're asking about is the colon. It goes at the end of
an if, else, for, with, while statement. I doubt it's absolutely
essential, but it helps readability, since a conditional expression
might span multiple lines.
if
Sorry, typo in my original question. I do mean 'colon'. It should have read
*If Python use indentation to denote scope, why it still needs colon at the
end of function declaration and for/while/if loop?*
Thanks
On Tue, Jul 12, 2011 at 12:36 AM, Dave Angel da...@ieee.org wrote:
On
On Mon, Jul 11, 2011 at 8:50 AM, Sébastien Volle
sebastien.vo...@gmail.com wrote:
Could it have been made optional, like the trailing comma in list
declaration?
Cobra makes the colons optional, so probably yes.
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Jul 11, 2011 at 8:28 AM, Ian Kelly ian.g.ke...@gmail.com wrote:
On Mon, Jul 11, 2011 at 8:50 AM, Sébastien Volle
sebastien.vo...@gmail.com wrote:
Could it have been made optional, like the trailing comma in list
declaration?
Cobra makes the colons optional, so probably yes.
--
On 3/06/2011 6:57 PM, Seb S wrote:
Hi all,
Just a quick question , I have a simple script I want to convert into a windows
installer and give to some friends.
I had a look at http://docs.python.org/distutils/introduction.html and wrote
this setup script:
#!/usr/bin/env python
from
Hi all,
Just a quick question , I have a simple script I want to convert into a windows
installer and give to some friends.
I had a look at http://docs.python.org/distutils/introduction.html and wrote
this setup script:
#!/usr/bin/env python
from distutils.core import setup
501 - 600 of 1311 matches
Mail list logo