On 08Aug2012 14:14, Ben Finney wrote:
| Cameron Simpson writes:
| > All of you are saying "two names for the same module", and variations
| > thereof. And that is why the doco confuses.
| >
| > I would expect less confusion if the above example were described as
| > _two_ modules, with the same s
Tom Russell writes:
> I am parsing out a web page at
> http://online.wsj.com/mdc/public/page/2_3021-tradingdiary2.html?mod=mdc_pastcalendar
> using BeautifulSoup.
>
> My problem is that I can parse into the table where the data I want
> resides but I cannot seem to figure out how to go about grab
Simon Cropper writes:
> Since we have graduated to a completely different topic I have renamed
> the thread.
Thank you.
> If people are interested in a totally python-based open source FREE
> (as in no $$) package that can do all the above try gramps...
>
> http://gramps-project.org/
In additi
On 09/08/12 12:59, Dennis Lee Bieber wrote:
On Wed, 08 Aug 2012 20:31:57 +0100, lipska the kat
declaimed the following in
gmane.comp.python.general:
A Tree consists of Node(s) and Leaf(s), relationships are modelled by
following the Line(s) in the Tree diagram and that is it. Line may be a
cla
On Wed, 08 Aug 2012 18:20:40 -0700, bruceg113355 wrote:
> z = []
> z.append(0)
> z.append(1)
> z.append(2)
> z.append(3)
> z.append(4)
> z.append(5)
> z.append(6)
> z.append(7)
That can be written as:
z = [0, 1, 2, 3, 4, 5, 6, 7]
Or better still:
z = range(8) # In Python 3, use list(range(8))
On Thu, Aug 9, 2012 at 3:28 AM, Steven D'Aprano
wrote:
> (As they say: I'll believe that corporations are people when Texas
> executes one.)
If proper excuse you can trump any,
You may wind up a Limited Company
You cannot conveniently blow it up!
-- WS Gilbert, "Utopia, Ltd"
But not every "is-a
On Wednesday, August 8, 2012 9:07:04 PM UTC-4, Dave Angel wrote:
> On 08/08/2012 08:41 PM, bruceg113...@gmail.com wrote:
>
> > Is there a way in Python to pass arguments without listing each argument?
>
> > For example, my program does the following:
>
> >
>
> > testData (z[0], z[1], z[2],
On 08/08/2012 08:41 PM, bruceg113...@gmail.com wrote:
> Is there a way in Python to pass arguments without listing each argument?
> For example, my program does the following:
>
> testData (z[0], z[1], z[2], z[3], z[4], z[5], z[6], z[7])
>
> Is there a clever way to pass arguments in a single s
On 09/08/2012 01:41, bruceg113...@gmail.com wrote:
> Is there a way in Python to pass arguments without listing each argument?
> For example, my program does the following:
>
> testData (z[0], z[1], z[2], z[3], z[4], z[5], z[6], z[7])
>
> Is there a clever way to pass arguments in a single st
Is there a way in Python to pass arguments without listing each argument?
For example, my program does the following:
testData (z[0], z[1], z[2], z[3], z[4], z[5], z[6], z[7])
Is there a clever way to pass arguments in a single statement knowing that each
argument is a sequential index from
I am parsing out a web page at
http://online.wsj.com/mdc/public/page/2_3021-tradingdiary2.html?mod=mdc_pastcalendar
using BeautifulSoup.
My problem is that I can parse into the table where the data I want
resides but I cannot seem to figure out how to go about grabbing the
contents of the cell nex
On 8 August 2012 16:07, lipska the kat wrote:
> On 08/08/12 14:50, S.B wrote:
>
>> On Wednesday, August 8, 2012 3:48:43 PM UTC+3, lipska the kat wrote:
>>
>>> On 06/08/12 14:32, S.B wrote:
>>>
>>>
> [snip]
>
>
> Thank you so much !
>> The examples are very helpful.
>> What happens if I have a re
Who could have predicted that a request for suggesting books on OOP can
come so far!
On Wed, Aug 8, 2012 at 9:31 PM, lipska the kat wrote:
> On 08/08/12 17:42, Dennis Lee Bieber wrote:
>
>> On Wed, 08 Aug 2012 10:51:45 +0100, lipska the kat
>> declaimed the following in
>> gmane.comp.python.ge
On 08/08/12 17:42, Dennis Lee Bieber wrote:
On Wed, 08 Aug 2012 10:51:45 +0100, lipska the kat
declaimed the following in
gmane.comp.python.general:
The point I'm obviously struggling to make is that words convey concepts
The word Person conveys a whole lifetime of experience of People and a
> Can someone point me a good tutorial about making a Todo app or similar apps?
What do you mean by "app"?
For a web app - there are many frameworks out there. Django is the big kid in
the block but there are many others (flask, bottle, cherrypy, ...)
For GUI application, look at PyQt, wxPython,
On Wed, 08 Aug 2012 09:27:40 -0700, rusi wrote:
> I once sat for a presentation of a wannabe university teacher. The
> subject she chose was object-orientation.
>
> She spent some time on the usual dope about employee, manager etc.
> Finally she reached the base-class: Person.
>
> Or so we thoug
On Aug 8, 2:51 pm, lipska the kat wrote:
> The point I'm obviously struggling to make is that words convey concepts
> The word Person conveys a whole lifetime of experience of People and as
> imperfect human beings many of us are unable to tease out 'bits of being
> a person' that are relevant to
On Wed, Aug 8, 2012 at 5:18 PM, Ethan Furman wrote:
> Ed Leafe wrote:
>> When converting from paradigms in other languages, I've often been
>> tempted to follow the accepted pattern for that language, and I've almost
>> always regretted it.
> +1
>> When in doubt, make it as Pythoni
You need to install Twisted(google for links)
On 8 August 2012 18:49, wrote:
> Hi Sylvain,
>
> I was trying to install Cubicweb on my Ubuntu 12.04. I believe it got
> installed, but I do get this error.
>
> ~$ cubicweb-ctl
> Traceback (most recent call last):
> File "/usr/local/bin/cubicweb-ct
Ed Leafe wrote:
When converting from paradigms in other languages, I've often been
tempted to follow the accepted pattern for that language, and I've almost
always regretted it.
+1
When in doubt, make it as Pythonic as possible.
+1 QOTW
~Ethan~
--
http://mail.python.org/
On 08/08/12 14:50, S.B wrote:
On Wednesday, August 8, 2012 3:48:43 PM UTC+3, lipska the kat wrote:
On 06/08/12 14:32, S.B wrote:
[snip]
Thank you so much !
The examples are very helpful.
What happens if I have a regular text file I want to send via the network.
Do I need to read the file an
On Wednesday, August 8, 2012 3:48:43 PM UTC+3, lipska the kat wrote:
> On 06/08/12 14:32, S.B wrote:
>
> > Hello friends
>
> >
>
> > Does anyone know if it's possible to pickle and un-pickle a file across a
> > network socket. i.e:
>
> > First host pickles a file object and writes the pickled
Hi Sylvain,
I was trying to install Cubicweb on my Ubuntu 12.04. I believe it got
installed, but I do get this error.
~$ cubicweb-ctl
Traceback (most recent call last):
File "/usr/local/bin/cubicweb-ctl", line 4, in
import pkg_resources
File "/usr/lib/python2.7/dist-packages/pkg_resourc
In article <87hasehvfu@benfinney.id.au>,
Ben Finney wrote:
> Cameron Simpson writes:
>
> > All of you are saying "two names for the same module", and variations
> > thereof. And that is why the doco confuses.
> >
> > I would expect less confusion if the above example were described as
> >
On 06/08/12 14:32, S.B wrote:
Hello friends
Does anyone know if it's possible to pickle and un-pickle a file across a
network socket. i.e:
First host pickles a file object and writes the pickled file object to a client
socket.
Second host reads the pickled file object from the server socket an
Can someone point me a good tutorial about making a Todo app or similar apps?
I starting learning python and i think that building these small apps will help
me understanding better the language.
P.S Just finish reading A Byte of Python book.
Thanks in advance
--
http://mail.python.org/mailman
On 07/08/12 22:57, Chris Angelico wrote:
On Wed, Aug 8, 2012 at 3:00 AM, lipska the kat wrote:
I'm still undecided over the whole 'User' thing actually,
[snip]
This makes little sense to my mind. If you can have a "class User:",
why can you not have a "class Person:" ?
User and Person are
Am 04.08.2012 15:53, schrieb Stefan Behnel:
So, if a C++ compiler takes a .c file and compiles it with C language
semantics, it doesn't qualify as a C compiler? That implies a rather weird
definition of a C compiler, I'd say.
I'd say that even a brainfuck compiler compiling a .py file with C
l
Roy Smith wrote:
So, it appears that you *can* import a module twice, if you refer to it by
different names! This is surprising. It means that having non-idempotent code
which is executed at import time is a Bad Thing.
Not exactly, it means that one module is different from another if its
29 matches
Mail list logo