Meeting details, location and talks list are at:
http://wiki.python.org/moin/MelbournePUG
It looks like we've got a few cool talks lined up:
15 minute talks
- None yet... suggest one!
5 minute talks
- Load-balancing xmlrpclib/jsonrpclib for robust distributed
applications (Andreux Fort)
...
Say you have a project with a lot of documentation in the form of
Sphinx pages (for instance a book project). What is the the easiest
way to publish it on the Web? I see that GitHub Pages allows you to
publish static pages, but I would need to check in both the .rst
sources and the .html output:
bollywood actress bollywood actress blue film bollywood actress
katrina kaif bollywood actress wallpapers bollywood actress
kareena kapoor bollywood actress sexiest videos mallika sherawat
hhttp://e-bollywoodhungama.blogspot.com/ bollywood actress
bollywood actress blue film bollywood actress
rickhg12hs rickhg1...@gmail.com writes:
Would a kind soul explain something basic to a python noob?
Why doesn't this function always return a list?
def recur_trace(x,y):
print x,y
if not x:
return y
recur_trace(x[1:], y + [x[0]])
Here are a couple sample runs.
John Nagle wrote:
[...] SQLite really
is a lite database. Although there's good read concurrency, multiple
updates from multiple processes tend to result in sizable delays, since
the locking is via file locks and wait/retry logic.
True, and I have other gripes about SQLite, but I've fallen
Michele Simionato wrote:
Say you have a project with a lot of documentation in the form of
Sphinx pages (for instance a book project). What is the the easiest
way to publish it on the Web? I see that GitHub Pages allows you to
publish static pages, but I would need to check in both the .rst
On May 4, 8:07 am, Martin v. Loewis mar...@v.loewis.de wrote:
If it's a Python package that this documentation is about, you can host
it on PyPI.
It must not be Python, but let's consider this case first. How does it
work? When I published
my decorator module
I wasnt intend to buy any of the samsung phones. but i was fascinated
of its new corby series and buy this phone. really amazing phone with
lots social networking programs. i have written more on
http://hubpages.com/hub/Samsung-Corby-TxT-B3210
This phone is worth to buy.
--
On Apr 12, 3:05 pm, mohanti.si...@yahoo.in mohanti.si...@yahoo.in
wrote:
Samsung Corby TXT is a GSM phone. Samsung Corby TXT, a SmartPhone
mobile comes with a great list of features.
Samsung Corby TXT B3210 is a mobile with a user memory of 38 MB and
MicroSD support up to 8 GB of external
Do you know of recent improvements on the PyPI side about docs
hosting?
Yes; go to your package's pkg_edit page, i.e.
http://pypi.python.org/pypi?%3Aaction=pkg_editname=decorator
and provide a zip file at Upload Documentation.
Regards,
Martin
--
Robin wrote:
How can I make a command within a tkinter application repeat itself
over and over in intervals of a certain time.
import Tkinter as tk
root = tk.Tk()
color = blue
def switch_color():
... global color
... if color == blue:
... color = red
... else:
...
Rouslan Korneychuk, 03.05.2010 22:44:
The only issue is
it will not use keyword arguments for overloaded functions (I don't know
if that can even be done reliably *and* efficiently. I would need to
give it more thought).
You should look at the argument unpacking code that Cython generates. It
Hi,
I'm parsing XML files using ElementTree from xml.etree (see code below (and
attached xml_parse_example.py)).
However, I'm coming across input XML files (attached an example: tmp.xml) which
include invalid characters, that produce the following traceback:
$ python xml_parse_example.py
Dear Rouslan,
It looks interesting. I say go for it. You will learn something and might make
some improvements on existing ideas.
I recommend putting the code on www.github.com
Kind regards,
Samuel
On 4/05/2010, at 8:44 AM, Rouslan Korneychuk wrote:
Hi, I'm new here. I'm working on a
Meeting details, location and talks list are at:
http://wiki.python.org/moin/MelbournePUG
It looks like we've got a few cool talks lined up:
15 minute talks
- None yet... suggest one!
5 minute talks
- Load-balancing xmlrpclib/jsonrpclib for robust distributed
applications (Andreux Fort)
...
Barak, Ron, 04.05.2010 09:01:
I'm parsing XML files using ElementTree from xml.etree (see code below
(and attached xml_parse_example.py)).
However, I'm coming across input XML files (attached an example:
tmp.xml) which include invalid characters, that produce the following
traceback:
$ python
On May 4, 8:37 am, Martin v. Loewis mar...@v.loewis.de wrote:
Do you know of recent improvements on the PyPI side about docs
hosting?
Yes; go to your package's pkg_edit page, i.e.
http://pypi.python.org/pypi?%3Aaction=pkg_editname=decorator
and provide a zip file at Upload Documentation.
TomF a écrit :
I'm interested in improving my python design by studying a large,
well-designed codebase. Someone (not a python programmer) suggested
Django. I realize that Django is popular, but can someone comment on
whether its code is well-designed and worth studying?
Carl makes some
Alf P. Steinbach a écrit :
(snip)
Re efficiency it seems to be a complete non-issue, but correctness is
much more important: is there any way that the config details can be
(inadvertently) changed while the build is going on?
+1
--
http://mail.python.org/mailman/listinfo/python-list
Charles wrote:
In the OP's case, references to the directory have been removed from the
file
system, but his process still has the current working directory reference to
it,
so it has not actually been deleted. When he opens ../abc.txt, the OS
searches
the current directory for .. and finds
On Tue, May 4, 2010 at 5:27 PM, Michele Simionato
michele.simion...@gmail.com wrote:
Cool, that's good to know. I am still accepting recommendations for
non-Python projects ;)
bitbucket (1) also provide static file hosting through the wiki. From
what I understand (tested)
you simply clone the
Grant Edwards wrote:
except that Python objects can form a generalized graph, and Unix
filesystems are constrained to be a tree.
Actually I believe that root is allowed to create arbitrary
hard links to directories in Unix, so it's possible to turn
the file system in to a general graph. It's
Grant Edwards wrote:
In your example, it's simply not possible to determine the file's
absolute path within the filesystem given the relative path you
provided.
Actually, I think it *is* theoretically possible to find an
absolute path for the file in this case.
I suspect that what realpath()
I find the matrix methods in Pycairo to be an annoying hodge-podge of
ones that overwrite the Matrix object in-place (init_rotate, invert)
versus ones that concatenate additional transformations (rotate, scale,
translate) versus ones that return new matrices without modifying
the originals
On 03/05/2010 23:53, Giampaolo Rodolà wrote:
Just out of curiosity, is WMI able to list the TCP and UDP connections
opened by a process or by the OS?
We'll have to do this for psutil (http://code.google.com/p/psutil) and
we guess it's not gonna be easy.
Not as far as I know. WMI doesn't tend
André wrote:
To Samuel Williams:(and other interested ;-)
If you want to consider Python in education, I would encourage you
have a look at http://www.python.org/community/sigs/current/edu-sig/
I think you will find that there are quite a few resources available -
perhaps more than you are
I personally like indentation.
I just wonder whether it is an issue that some people will dislike.
But anyway, I updated the language comparison to remove this critique.
Kind regards,
Samuel
On 4/05/2010, at 9:22 PM, Jean-Michel Pichavant wrote:
André wrote:
To Samuel Williams:(and
Hi,
I ran into a bit of an unexpected issue here with itertools, and I
need to say that I discovered itertools only recently, so maybe my way
of approaching the problem is not what I want to do.
Anyway, the problem is the following:
I have a list of dictionaries, something like
[ { a: 1, b: 1,
On 4 Mai, 07:01, Fred C f...@bsdhost.net wrote:
On Apr 29, 2010, at 9:49 AM, Philip Semanchuk wrote:
On Apr 29, 2010, at 12:01 PM, someone wrote:
Hello!
Is there a way to print a query for logging purpose as it was or will
be sent to database, if I don't escape values of query by
Samuel Williams ha scritto:
I personally like indentation.
I just wonder whether it is an issue that some people will dislike.
i think there is an issue if you -- say -- produce python code, from
within another programming environment, to be executed on the fly, at
least in some instances.
superpollo, 04.05.2010 12:28:
i think there is an issue if you -- say -- produce python code, from
within another programming environment, to be executed on the fly, at
least in some instances. there might be problems if for example you
generate code from a one-line template.
There are a
Nico Schlömer wrote:
I ran into a bit of an unexpected issue here with itertools, and I
need to say that I discovered itertools only recently, so maybe my way
of approaching the problem is not what I want to do.
Anyway, the problem is the following:
I have a list of dictionaries, something
On 4 May, 11:10, Nico Schlömer nico.schloe...@gmail.com wrote:
Hi,
I ran into a bit of an unexpected issue here with itertools, and I
need to say that I discovered itertools only recently, so maybe my way
of approaching the problem is not what I want to do.
Anyway, the problem is the
Jim Byrnes wrote:
News123 wrote:
Mumbling to myself, perhaps somebody else is interested.
Yes I am.
News123 wrote:
Hi,
I wanted to know who can recommend a good module/library, that allows to
modify an Open Office spreadsheet.
One can assume, that Open Office is installed on the host.
News123 wrote:
from xlrd import open_workbook
from xlutils.copy import copy
rb = open_workbook('doc1.xls')
open_workbook('doc1.xls',formatting_info=True)
print WB with %d sheets % rb.nsheets
wb = copy(rb)
wb.save(doc2.xls) # file is created, but ALL formattng is lost and
formulas are now
Stefan Behnel ha scritto:
superpollo, 04.05.2010 12:28:
i think there is an issue if you -- say -- produce python code, from
within another programming environment, to be executed on the fly, at
least in some instances. there might be problems if for example you
generate code from a one-line
On 05/04/10 11:28, superpollo wrote:
Samuel Williams ha scritto:
I personally like indentation.
I just wonder whether it is an issue that some people will dislike.
cut
there might be problems if for example you
generate code from a one-line template.
cut
Well a one-line template code
where's the best online resource for teaching about GUI building?
Thanks
Paul C
--
http://mail.python.org/mailman/listinfo/python-list
Does this example help at all?
Thanks, that clarified things a lot!
To make it easier, let's just look at 'a' and 'b':
my_list.sort( key=itemgetter('a','b','c') )
for a, a_iter in groupby(my_list, itemgetter('a')):
print 'New A', a
for b, b_iter in groupby(a_iter, itemgetter('b')):
I'd try to avoid copying the list and instead just iterate over it:
def iterate_by_key(l, key):
for d in l:
try:
yield l[key]
except:
continue
Hm, that won't work for me b/c I don't know all the keys beforehand. I
could
superpollo, 04.05.2010 13:23:
Stefan Behnel ha scritto:
the main reason why this problem doesn't hurt much in Python
is that Python is a dynamic language that can get you extremely far
without generating code. It's simply not necessary in most cases, so
people don't run into problems with it.
On 4 May, 12:36, Nico Schlömer nico.schloe...@gmail.com wrote:
Does this example help at all?
Thanks, that clarified things a lot!
To make it easier, let's just look at 'a' and 'b':
my_list.sort( key=itemgetter('a','b','c') )
for a, a_iter in groupby(my_list, itemgetter('a')):
Stefan Behnel ha scritto:
superpollo, 04.05.2010 13:23:
Stefan Behnel ha scritto:
the main reason why this problem doesn't hurt much in Python
is that Python is a dynamic language that can get you extremely far
without generating code. It's simply not necessary in most cases, so
people don't
Martin P. Hellwig ha scritto:
On 05/04/10 11:28, superpollo wrote:
Samuel Williams ha scritto:
I personally like indentation.
I just wonder whether it is an issue that some people will dislike.
cut
there might be problems if for example you
generate code from a one-line template.
cut
Well
First, it's good to see a library has URL and email validator.
But I found there might be a problem in your validator, the problems I
found are these URLs:
http://example.com/path
http://example.com/path)
http://example.com/path]
http://example.com/path}
By my understanding from RFCs,
On Tue, May 4, 2010 at 9:43 PM, Stefan Behnel stefan...@behnel.de wrote:
Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45)
[GCC 4.3.3] on linux2
Type help, copyright, credits or license for more information.
A,B=2,3
if AB:
... print A+B
... else:
... print A**B-B**2
...
-1
A,B=3,2
On Tue, May 4, 2010 at 9:56 PM, superpollo ute...@esempio.net wrote:
of course! *but* if i must generate on-the-fly python code that defines a
function i am back again to the problem:
One-liner:
$ python
Python 2.6.5 (r265:79063, Apr 27 2010, 18:26:49)
[GCC 4.4.1 (CRUX)] on linux2
Type help,
Nico Schlömer wrote:
So when I go like
for item in list:
item[1].sort()
I actually modify *list*? I didn't realize that; I thought it'd just
be a copy of it.
No, I misunderstood your code there. Modifying the objects inside the list
is fine, but I don't thing you do that, provided
--- On Tue, 5/4/10, Stefan Behnel stefan...@behnel.de wrote:
From: Stefan Behnel stefan...@behnel.de
Subject: Re: Teaching Programming
To: python-list@python.org
Date: Tuesday, May 4, 2010, 7:43 AM
superpollo, 04.05.2010 13:23:
Stefan Behnel ha scritto:
the main reason why this problem
On Tue, May 4, 2010 at 7:23 AM, superpollo ute...@esempio.net wrote:
Stefan Behnel ha scritto:
superpollo, 04.05.2010 12:28:
i think there is an issue if you -- say -- produce python code, from
within another programming environment, to be executed on the fly, at
least in some instances.
On Tue, May 4, 2010 at 9:26 PM, a oxfordenergyservi...@googlemail.com wrote:
where's the best online resource for teaching about GUI building?
There are many many resources available on the topic.
If you simply Google (tm) some of the keywords in your post
you'll be presented with a whole
James Mills ha scritto:
On Tue, May 4, 2010 at 9:56 PM, superpollo ute...@esempio.net wrote:
of course! *but* if i must generate on-the-fly python code that defines a
function i am back again to the problem:
One-liner:
$ python
Python 2.6.5 (r265:79063, Apr 27 2010, 18:26:49)
[GCC 4.4.1
superpollo, 04.05.2010 13:56:
Stefan Behnel ha scritto:
The question is: why do you have to generate the above code in the
first place? Isn't a function enough that does the above?
of course! *but* if i must generate on-the-fly python code that defines
a function [...]
Well, could you
Are you basically after this, then?
for a, a_iter in groupby(my_list, itemgetter('a')):
print 'New A', a
for b, b_iter in groupby(a_iter, itemgetter('b')):
b_list = list(b_iter)
for p in ['first', 'second']:
for b_data in b_list:
#whatever...
Ed Keith, 04.05.2010 14:15:
I wrote AsciiLitProg (http://asciilitprog.berlios.de/) in Python. It is
a literate programming tool. It generates code from a document. It can
generate code in any language the author wants. It would have been a LOT
easier to write if it did not generate Python code.
Stefan Behnel ha scritto:
superpollo, 04.05.2010 13:56:
Stefan Behnel ha scritto:
The question is: why do you have to generate the above code in the
first place? Isn't a function enough that does the above?
of course! *but* if i must generate on-the-fly python code that defines
a function
On 04/05/10 02:12, Ben Finney wrote:
Baz Walterbaz...@ftml.net writes:
On 03/05/10 18:41, Grant Edwards wrote:
Firstly, a file may have any number of paths (including 0).
yes, of course. i forgot about hard links
Rather, you forgot that *every* entry that references a file is a hard
On 04/05/10 03:19, Grant Edwards wrote:
On 2010-05-03, Baz Walterbaz...@ftml.net wrote:
On 03/05/10 19:12, Grant Edwards wrote:
Even though the user provided a legal and openable path?
that sounds like an operational definition to me: what's the
difference between legal and openable?
Gregory Ewing greg.ew...@canterbury.ac.nz wrote in message
news:84a1mcffn...@mid.individual.net...
Charles wrote:
In the OP's case, references to the directory have been removed
from the file system, but his process still has the current working
directory reference to it, so it has not
superpollo, 04.05.2010 14:46:
my template system wants
the input to generate the code to stay on a single line ( don't ask :-( )
I hope you don't mind if I still ask. What are you generating and for what
templating system?
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
--- On Tue, 5/4/10, Stefan Behnel stefan...@behnel.de wrote:
From: Stefan Behnel stefan...@behnel.de
Subject: Re: Teaching Programming
To: python-list@python.org
Date: Tuesday, May 4, 2010, 8:40 AM
Ed Keith, 04.05.2010 14:15:
I wrote AsciiLitProg (http://asciilitprog.berlios.de/) in
Stefan Behnel ha scritto:
superpollo, 04.05.2010 14:46:
my template system wants
the input to generate the code to stay on a single line ( don't ask :-( )
I hope you don't mind if I still ask. What are you generating and for
what templating system?
ok, since you asked for it, prepare
Baz Walter baz...@ftml.net writes:
On 04/05/10 02:12, Ben Finney wrote:
Baz Walterbaz...@ftml.net writes:
yes, of course. i forgot about hard links
Rather, you forgot that *every* entry that references a file is a
hard link.
i'm not a frequent poster on this list, but i'm aware of
On Tue, 04 May 2010 23:02:29 +1000, Charles wrote:
I am by no means an expert in this area, but what I think happens (and I
may well be wrong) is that the directory is deleted on the file system.
The link from the parent is removed, and the parent's link count is
decremented, as you observed,
On 04/05/10 09:23, Gregory Ewing wrote:
Grant Edwards wrote:
In your example, it's simply not possible to determine the file's
absolute path within the filesystem given the relative path you
provided.
Actually, I think it *is* theoretically possible to find an
absolute path for the file in
On Tue, 04 May 2010 20:08:36 +1200, Gregory Ewing wrote:
except that Python objects can form a generalized graph, and Unix
filesystems are constrained to be a tree.
Actually I believe that root is allowed to create arbitrary hard links to
directories in Unix, so it's possible to turn the
On May 4, 3:39 am, Bruno Desthuilliers bruno.
42.desthuilli...@websiteburo.invalid wrote:
Alf P. Steinbach a écrit :
(snip)
Re efficiency it seems to be a complete non-issue, but correctness is
much more important: is there any way that the config details can be
(inadvertently) changed
On 04/05/10 09:08, Gregory Ewing wrote:
Grant Edwards wrote:
except that Python objects can form a generalized graph, and Unix
filesystems are constrained to be a tree.
Actually I believe that root is allowed to create arbitrary
hard links to directories in Unix, so it's possible to turn
the
On Mon, 03 May 2010 06:18:55 -0700, Chris Rebert wrote:
but how can python determine the
parent directory of a directory that no longer exists?
Whether or not /home/baz/tmp/xxx/ exists, we know from the very structure
and properties of directory paths that its parent directory is, *by
Ed Keith e_...@yahoo.com wrote:
For more information on Literate Programming in general see the following
links.
None of which address the question of what you found problematic about
generating Python code. Was it issues with indentation?
--
-Original Message-
From: Stefan Behnel [mailto:stefan...@behnel.de]
Sent: Tuesday, May 04, 2010 10:24 AM
To: python-list@python.org
Subject: Re: How to get xml.etree.ElementTree not bomb on
invalid characters in XML file ?
Barak, Ron, 04.05.2010 09:01:
I'm parsing XML files
TomF tomf.sess...@gmail.com wrote:
I'm interested in improving my python design by studying a large,
well-designed codebase. Someone (not a python programmer) suggested
Django. I realize that Django is popular, but can someone comment on
whether its code is well-designed and worth studying?
Nico Schlömer wrote:
Hi,
I ran into a bit of an unexpected issue here with itertools, and I
need to say that I discovered itertools only recently, so maybe my way
of approaching the problem is not what I want to do.
Anyway, the problem is the following:
I have a list of dictionaries,
From: Matthias Kievernagel mkie...@pirx.sirius.org
Subject: py3 tkinter acceps bytes. why?
Newsgroups: comp.lang.python
Summary:
Keywords:
In a recent thread named py3 tkinter Text accepts what bytes?
(google groups link:
--- On Tue, 5/4/10, alex23 wuwe...@gmail.com wrote:
From: alex23 wuwe...@gmail.com
Subject: Re: Teaching Programming
To: python-list@python.org
Date: Tuesday, May 4, 2010, 10:06 AM
Ed Keith e_...@yahoo.com
wrote:
For more information on Literate Programming in
general see the following
From: alex23
(I also think there's value to be gained in studying _bad_ code,
too...)
Oh, very true. And not just true for python. But, only if an 'expoert'
points out why it is bad and provides an alternative. And saying things
like, it isn't pyhonic or that such and such is a more
On Wed, May 5, 2010 at 12:21 AM, Ed Keith e_...@yahoo.com wrote:
To deal with indentation I had to
1) keep track of indentation of all chunks of code embedded in the
document and indent inserted chunks to the sum of all the
indentation of the enclosing chunks.
In my experience of
On 04/05/10 03:25, Grant Edwards wrote:
On 2010-05-04, Charlesc.sand...@deletethis.bom.gov.au wrote:
I don't see how it's inelegant at all. Perhaps it's
counter-intuitive if you don't understand how a Unix filesystem
works, but the underlying filesystem model is very simple, regular,
and
On 2010-05-04, Gregory Ewing greg.ew...@canterbury.ac.nz wrote:
Grant Edwards wrote:
except that Python objects can form a generalized graph, and Unix
filesystems are constrained to be a tree.
Actually I believe that root is allowed to create arbitrary
hard links to directories in Unix,
I
On Tue, May 4, 2010 at 4:35 PM, James Mills
prolo...@shortcircuit.net.au wrote:
On Wed, May 5, 2010 at 12:21 AM, Ed Keith e_...@yahoo.com wrote:
To deal with indentation I had to
1) keep track of indentation of all chunks of code embedded in the
document and indent inserted chunks to
--- On Tue, 5/4/10, James Mills prolo...@shortcircuit.net.au wrote:
From: James Mills prolo...@shortcircuit.net.au
Subject: Re: Teaching Programming
To: python list python-list@python.org
Date: Tuesday, May 4, 2010, 10:35 AM
On Wed, May 5, 2010 at 12:21 AM, Ed
Keith e_...@yahoo.com
wrote:
--- On Tue, 5/4/10, Andre Engels andreeng...@gmail.com wrote:
From: Andre Engels andreeng...@gmail.com
Subject: Re: Teaching Programming
To: James Mills prolo...@shortcircuit.net.au
Cc: python list python-list@python.org
Date: Tuesday, May 4, 2010, 11:00 AM
On Tue, May 4, 2010 at 4:35 PM,
Andre Engels wrote:
On Tue, May 4, 2010 at 4:35 PM, James Mills
prolo...@shortcircuit.net.au wrote:
On Wed, May 5, 2010 at 12:21 AM, Ed Keith e_...@yahoo.com wrote:
To deal with indentation I had to
1) keep track of indentation of all chunks of code embedded in the
document and indent
On Mon, 3 May 2010 23:07:08 -0700 (PDT), Bryan
bryanjugglercryptograp...@yahoo.com wrote:
I love SQLite because it solves problems I actually have. For the vast
majority of code I write, lite is a good thing, and lite as it is,
SQLite can handle several transactions per second. I give SQLite a
Ed Keith, 04.05.2010 15:19:
--- On Tue, 5/4/10, Stefan Behnel wrote:
Ed Keith, 04.05.2010 14:15:
Python is a great language to write in (although I do
wish it did a better job with closures). But it is a PITA to
generate code for!
Interesting. Could you elaborate a bit? Could you give a
Barak, Ron, 04.05.2010 16:11:
I'm parsing XML files using ElementTree from xml.etree (see code
below (and attached xml_parse_example.py)).
However, I'm coming across input XML files (attached an example:
tmp.xml) which include invalid characters, that produce the
following traceback:
$
--- On Tue, 5/4/10, Stefan Behnel stefan...@behnel.de wrote:
From: Stefan Behnel stefan...@behnel.de
Subject: Re: Teaching Programming
To: python-list@python.org
Date: Tuesday, May 4, 2010, 11:33 AM
Ed Keith, 04.05.2010 15:19:
--- On Tue, 5/4/10, Stefan Behnel wrote:
Ed Keith, 04.05.2010
On Wed, 5 May 2010 00:35:18 +1000
James Mills prolo...@shortcircuit.net.au wrote:
In my experience of non-indentation sensitive languages
such as C-class (curly braces) it's just as hard to keep track
of opening and closing braces.
Harder. That was the big Aha! for me with Python. My first
Ed Keith e_...@yahoo.com wrote:
Tabs are always a problem when writing Python. I get
around this problem by setting my text editor to expand
all tabs with spaces when editing Python, but I have had
problems when coworkers have not done this.
It's best not to trust others to do the right
Ed Keith, 04.05.2010 17:43:
The PITA is having to keep track of the indentation of each embedded
chunk and summing it for each level of indentation. This requires a fair
amount of bookkeeping that would not otherwise be necessary.
The original prototype simply replaced each embedded chunk with
superpollo ha scritto:
Stefan Behnel ha scritto:
superpollo, 04.05.2010 14:46:
my template system wants
the input to generate the code to stay on a single line ( don't ask
:-( )
I hope you don't mind if I still ask. What are you generating and for
what templating system?
ok, since you
On 5/3/2010 7:46 PM, cjw wrote:
Nobody likes indentation at first,
Speak for yourself, please. For two decades before I met Python, I
indented code nicely whenever it was allowed. That option was one of the
great advancements of Fortran77 over FortranIV. Coming from C, I was
immediately
On Tue, 4 May 2010 17:00:11 +0200
Andre Engels andreeng...@gmail.com wrote:
Although I have little or no experience with this, I still dare to say
that I don't agree. The difference is that in C you do not _need_ to
know where in the braces-defined hierarchy you are. You just embed or
change a
On Tue, May 4, 2010 at 8:49 AM, D'Arcy J.M. Cain da...@druid.net wrote:
On Wed, 5 May 2010 00:35:18 +1000
James Mills prolo...@shortcircuit.net.au wrote:
In my experience of non-indentation sensitive languages
such as C-class (curly braces) it's just as hard to keep track
of opening and
On Tue, May 4, 2010 at 8:52 AM, Stefan Behnel stefan...@behnel.de wrote:
Ed Keith, 04.05.2010 17:43:
The PITA is having to keep track of the indentation of each embedded
chunk and summing it for each level of indentation. This requires a fair
amount of bookkeeping that would not otherwise be
On 5/4/2010 8:46 AM, superpollo wrote:
but i do not think i can use it myself, since my template system wants
the input to generate the code to stay on a single line ( don't ask :-( )
I think we can agree that Python (unlike C, for instance) is not good
for writing non-humanly-readable
Ethan Furman wrote:
div class=moz-text-flowed style=font-family: -moz-fixedAndre
Engels wrote:
On Tue, May 4, 2010 at 4:35 PM, James Mills
prolo...@shortcircuit.net.au wrote:
On Wed, May 5, 2010 at 12:21 AM, Ed Keith e_...@yahoo.com wrote:
To deal with indentation I had to
1) keep track of
Terry Reedy wrote:
On 5/3/2010 7:46 PM, cjw wrote:
Nobody likes indentation at first,
Speak for yourself, please. For two decades before I met Python, I
indented code nicely whenever it was allowed. That option was one of
the great advancements of Fortran77 over FortranIV. Coming from C, I
superpollo, 04.05.2010 17:55:
since i have some kind of computer literacy (as opposed to most of my
colleagues), some years ago i was kindly asked to try and solve a
simple particular problem, that is to write a program that generates
math exercises (q+a) from an example taken from the textbook.
On 5/4/2010 2:07 AM, Bryan wrote:
The SQLite developers state the situation brilliantly at
http://www.sqlite.org/whentouse.html:
For future reference, that link does not work with Thunderbird. This one
does.
http://www.sqlite.org/whentouse.html
When posting links, best to put them on a
1 - 100 of 252 matches
Mail list logo