On Sunday, May 22, 2011 12:44:18 AM UTC-7, Octavian Rasnita wrote:
> I've noticed that on many Perl mailing lists the list members talk very
> rarely about Python, but only on this Python mailing list I read many
> discussions about Perl, in which most of the participants use to agree that
> yes, P
On 5/23/2011 1:31 AM, Octavian Rasnita wrote:
I am talking about a simple way of creating a hash/dict from an array,
which is so simple that there should be really a single way to do it, or
very few.
Again, Python has such:
>>> dict([['one',1],['two', 2]])
{'two': 2, 'one': 1}
--
Terry Jan
On Mon, May 23, 2011 at 3:31 PM, Octavian Rasnita wrote:
> From: "Dennis Lee Bieber"
>>
>> Since indentation seems so crucial to easy comprehension of the logical
>> structure of a program,
>> making it a mandatory syntactical structure becomes a desirable feature
>> for code that must be maintai
On Mon, 23 May 2011 13:11:40 +1200, Gregory Ewing wrote:
> Ed Keith wrote:
>> Have you looked at Falcon (http://www.falconpl.org/)?
>
> This paragraph on the first page doesn't exactly fire me with enthuiasm:
>
>> Falcon provides six integrated programming paradigms: procedural,
>> object orient
Hi,
You can try the following
from Tkinter import*
root = Tk()
root.withdraw() #this will hide the main window
import tkFileDialog as tkf
f = tkf.Open().show()
tkFileDialog, requires a main window to be existing before it can show the
file dialog. If there are no main windows then it will create
From: "Daniel Kluev"
On Sun, May 22, 2011 at 11:47 PM, Octavian Rasnita
wrote:
From: "Daniel Kluev"
I am talking about that flexibility which was criticized in the previous
messages telling that this flexibility allows any programmer to use his
own way.
Perl doesn't force anyone to indent t
From: "Dennis Lee Bieber"
Since indentation seems so crucial to easy comprehension of the logical
structure of a program,
making it a mandatory syntactical structure becomes a desirable feature
for code that must be maintained (by others, in many cases).
Why "in many cases"? I wrote hundread
On Mon, May 23, 2011 at 2:08 PM, Chris Angelico wrote:
> Currently I'm puzzling over an inordinate number of symbol-not-found
> errors, even though it does seem to be finding the header files. It's
> weird.
And I think I've just figured out why. PyString_* functions are no
longer supported -
On Mon, May 23, 2011 at 2:01 PM, Ned Deily wrote:
> It's a new feature in Python 3.2 to allow multiple versions of shared C
> object files that differ in configure options (i.e. ones that affect the
> Python C ABI) to co-exist in one Python installation. "m" means that
> they were built with pyma
In article ,
Chris Angelico wrote:
> Question: Why "3.2m"? What does that m mean? It seems to have come up
> a couple of times in the build process.
It's a new feature in Python 3.2 to allow multiple versions of shared C
object files that differ in configure options (i.e. ones that affect the
Hi! Just a quickie, I hope, where someone will probably be able to
answer off the top of his head.
I downloaded the 3.2 sources with the intention of building that
instead of using Ubuntu's default Python 2.6.6. Ran ./configure, make,
sudo make install, and then fiddled with a few things like make
To write onto multiple files on the same time (a number of files are variable),
I'd like to code as follows, for example, IF I can do,
LIST_LEN = 4
with [ open('list_%d.txt' % i, 'w') for i in range(LIST_LEN) ] as fobjlist:
for i in range(1000):
fobjlist[random.randrange(LIST_LEN)].write(str
On Sun, 22 May 2011 15:47:53 -0700, Xah Lee wrote:
> this is important but i think most lispers and functional programers
> still don't know it.
>
> Functional Programing: stop using recursion, cons. Use map & vectors.
>
> 〈Guy Steele on Parallel Programing〉
> http://xahlee.org/comp/Guy_Steele_p
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
Ed Keith wrote:
Have you looked at Falcon (http://www.falconpl.org/)?
This paragraph on the first page doesn't exactly fire
me with enthuiasm:
Falcon provides six integrated programming paradigms: procedural, object
oriented, prototype oriented, functional, tabular and message oriented. And y
On Sun, 22 May 2011 15:39:33 -0700, Tim Roberts wrote:
> Stef Mientki wrote:
>>
>>must of us will not use single bits these days, but at first sight, this
>>looks funny :
>>
> a=2
> b=6
> a and b
>>6
> a & b
>>2
> a or b
>>2
> a | b
>>6
>
> That IS funny. Interesting how
On Mon, May 23, 2011 at 7:06 AM, John Ladasky wrote:
> If I spawn N worker sub-processes, my application in fact has N+1
> processes in all, because there's also the master process itself.
This would definitely be correct. How much impact the master process
has depends on how much it's doing.
>
Terry Reedy writes:
> I forget the exact question you asked, but this list is not the
> doc. The doc section on dicts gives dict(list_of_key_value_pairs) as
> the one true way, given such an input. The Perl way cannot be clearer
> and can only be shorted if it uses something shorter that dict().
On Sun, May 22, 2011 at 11:47 PM, Octavian Rasnita wrote:
> From: "Daniel Kluev"
> I am talking about that flexibility which was criticized in the previous
> messages telling that this flexibility allows any programmer to use his own
> way.
> Perl doesn't force anyone to indent the code, don't
On Mon, May 23, 2011 at 9:17 AM, Xah Lee wrote:
> the context is this: In emacs directory manager (aka dired), when you
> call dired-do-delete on a directory, emacs prompts, this way:
> “Recursive delete of xx? (y or n)”
But in order to make your point (such as it is), you are ignoring the
fact t
On Mon, May 23, 2011 at 8:39 AM, Tim Roberts wrote:
> That IS funny. Interesting how a careful choice of arugments will fool us.
> One of my favorite math jokes is like that. A teacher asked a student to
> reduce the following fraction:
> 16
>
> 64
>
> He says "all I have to do is cancel
On Mon, May 23, 2011 at 8:59 AM, sunrrrise wrote:
> Thank you for quick response!
>
> English is not my native language so I'm going to keep my explanations simple.
No problem, your English is far better than my Polish. (I used Google
Translate to figure out what "Wprowadz zmienna" means.)
I tri
On May 22, 3:46 pm, Chris Angelico wrote:
> On Mon, May 23, 2011 at 6:22 AM, Xah Lee wrote:
> > Xah wrote:
> > «In the emacs case: “Recursive delete of xx? (y or n) ”, what could it
> > possibly mean by the word “recursive” there? Like, it might delete the
> > directory but not delete all files i
On Mon, May 23, 2011 at 4:33 AM, John Lee wrote:
> Pylint? Does it provide some kind of guessed-at-type that has been integrated
> with IDEs?
WingIDE Pro has both Pylint integration and advanced type-guessing.
--
With best regards,
Daniel Kluev
--
http://mail.python.org/mailman/listinfo/pytho
On 23/05/11 7:17 AM, python-list-requ...@python.org wrote:
> Subject:
> Re: Abandoning Python
> From:
> John Lee
> Date:
> Sun, 22 May 2011 21:13:44 + (UTC)
>
>
>> >
>> > Have you looked at Falcon (http://www.falconpl.org/)? It seems to have a
>> > lot
>> > of what you are looking for.
> I
Thank you for quick response!
English is not my native language so I'm going to keep my explanations simple.
This really simple script asks me for two variables called "a" and "b". For
example, I type "4" for "a" and "3" for "b" and IDLE gives me that:
Wprowadz zmienna a: 4
Wprowadz zmienna b:
this is important but i think most lispers and functional programers
still don't know it.
Functional Programing: stop using recursion, cons. Use map & vectors.
〈Guy Steele on Parallel Programing〉
http://xahlee.org/comp/Guy_Steele_parallel_computing.html
btw, lists (as cons, car, cdr) in the lis
On Mon, May 23, 2011 at 8:43 AM, sunrrrise wrote:
> Hello,
> this is my first post. I'm trying to learn Python language which I find
> great, but I have a big problem with its editors/IDEs.
Welcome!
> b to: Wprowadz zmienna b: 2
This looks wrong. Are you copying and pasting several lines, or
On Mon, May 23, 2011 at 6:22 AM, Xah Lee wrote:
> Xah wrote:
> «In the emacs case: “Recursive delete of xx? (y or n) ”, what could it
> possibly mean by the word “recursive” there? Like, it might delete the
> directory but not delete all files in it?
> »
>
> Jonathan de Boyne Pollard wrote:
>> It
Hello,
this is my first post. I'm trying to learn Python language which I find great,
but I have a big problem with its editors/IDEs.
I have tested IDLE (which installed with Python3 from ActiveState), Notepad++
and finally Komodo EDIT. I don't like IDLE GUI, but Notepad++ and Komodo EDIT
looks
Stef Mientki wrote:
>
>must of us will not use single bits these days,
>but at first sight, this looks funny :
>
a=2
b=6
a and b
>6
a & b
>2
a or b
>2
a | b
>6
That IS funny. Interesting how a careful choice of arugments will fool us.
One of my favorite math jokes i
On 5/22/2011 5:57 PM, Thomas 'PointedEars' Lahn wrote:
Stef Mientki wrote:
must of us will not use single bits these days,
but at first sight, this looks funny :
a=2
b=6
a and b
6
a& b
2
a or b
2
a | b
6
Change the order of the operands and see what happens.
or change a,b to 1,2
On 5/22/2011 3:44 AM, Octavian Rasnita wrote:
I've noticed that on many Perl mailing lists the list members talk
very rarely about Python,
Interesting. I learned about Python on comp.lang.perl, but that was over
a decade ago.
but only on this Python mailing list I read
many discussions abo
Stef Mientki wrote:
> must of us will not use single bits these days,
> but at first sight, this looks funny :
>
a=2
b=6
a and b
> 6
a & b
> 2
a or b
> 2
a | b
> 6
Change the order of the operands and see what happens.
--
PointedEars
Bitte keine Kopien per E-Mail
On 5/22/2011 2:34 PM, Patrick Sabin wrote:
I wanted to register my project (epdb) in pypi. Unfortunately there
already exists a project with the same name. It is not possible for me
to change the name of the project, because I used it in multiple
writings. Any ideas how I can deal with the situat
John Lee pobox.com> writes:
[...]
> That's interesting, thanks. I see this is a different pylint than the old
> logilab pylint. Unfortunate choice of name, since it makes it hard to find
> IDE integration work that's already done.
Hmm, I see the last release was in 2003 :-(
John
--
http:/
On 5/21/2011 10:20 PM, bvdp wrote:
One of the purposes and advantages of Python 3 is having only one class
system. Best to always use new-style classes in Python 2.2+ unless you
understand and need old-style classes (and need should be never for most
people).
Thanks for this. I'll keep it in
Ed Keith yahoo.com> writes:
>
> Have you looked at Falcon (http://www.falconpl.org/)? It seems to have a lot
> of what you are looking for.
I'm more interested in other people's opinions than my own "looking for"s.
What *should* I be looking for (other than Python itself)? What's interesting,
Following up to my own post...
Flickr informs me that quite a few of you have been looking at my
graphs of performance vs. the number of sub-processes employed in a
parallelizable task:
On May 21, 8:58 pm, John Ladasky wrote:
> http://www.flickr.com/photos/15579975@N00/5744093219
[...]
> I'll qu
Dan Stromberg gmail.com> writes:
[...]
> Pylint does type inferencing - I find it very valuable on large projects, and
> even some not-so-large projects.I doubt Pylint's been integrated into any
> IDE's,
[...]
That's interesting, thanks. I see this is a different pylint than the old
logilab py
Am 11.05.2011 23:02 schrieb Ian:
On 11/05/2011 20:13, Hans Georg Schaathun wrote:
Lists do not have truth values in the
application domain, and therefore truth values in the
implementation domain is complicated.
Exactly. Its just a convention. If it exists, its true, if if doesn't
its false.
On Sun, May 22, 2011 at 10:33 AM, John Lee wrote:
> Dan Stromberg gmail.com> writes:
>
> > On Sat, May 21, 2011 at 8:49 AM, John J Lee pobox.com> wrote:
> >
> > I still like Python after using it for over a decade, but there are
> > things I don't like.
> > What are your favourite up-and-comin
Xah wrote:
«In the emacs case: “Recursive delete of xx? (y or n) ”, what could it
possibly mean by the word “recursive” there? Like, it might delete the
directory but not delete all files in it?
»
Jonathan de Boyne Pollard wrote:
> It might *try* to delete the directory but not any of its contents
Trying to bring up a simple File or Directory chooser using Tkinter. Right
now I use pywin32 as Mark Hammond's extensions are somewhat more familiar
to an (ex)VB programmer who started way back with Fortran.
On Windows Vista with Python 2.7. The examples from Mark Lutz' book
"Programming Pyth
Have you looked at Falcon (http://www.falconpl.org/)? It seems to have a lot of
what you are looking for. I do not have much experience with it but I like what
I've seen so far, except that there are not any third party tools or libraries
libraries. Which is where Python shines.
-EdK
Ed Kei
hello,
must of us will not use single bits these days,
but at first sight, this looks funny :
>>> a=2
>>> b=6
>>> a and b
6
>>> a & b
2
>>> a or b
2
>>> a | b
6
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
I wanted to register my project (epdb) in pypi. Unfortunately there
already exists a project with the same name. It is not possible for me
to change the name of the project, because I used it in multiple
writings. Any ideas how I can deal with the situation? Is it possible to
register a project
Stefan Behnel behnel.de> writes:
>
> John J Lee, 22.05.2011 17:58:
> > Daniel Kluev writes:
> >> Also, most of these complaints could be solved by using correct python
> >> dialect for particular task - RPython, Cython and so on.
> >
> > Different topic.
>
> Why?
The intended focus was "things
John J Lee, 22.05.2011 17:58:
Daniel Kluev writes:
Also, most of these complaints could be solved by using correct python
dialect for particular task - RPython, Cython and so on.
Different topic.
Why?
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
Genstein invalid.invalid> writes:
>
> > Andrew Berg gmail.com> writes:
> > Since Python 2.5, the errno attribute maps the Windows error to error
> > codes that match the attributes of module errno.
>
> Good point, I completely misread that. At least the Windows error code
> is still available
Dan Stromberg gmail.com> writes:
> On Sat, May 21, 2011 at 8:49 AM, John J Lee pobox.com> wrote:
>
> I still like Python after using it for over a decade, but there are
> things I don't like.
> What are your favourite up-and-coming languages of the moment?
> Here's my wishlist (not really in an
Bill Allen gmail.com> writes:
> You have ideas, a text editor, and a computer - best get to coding.
> What's stopping you? You largely want Python, with modifications.
> Join the development team and help implement those changes, or fork
> your own flavor and do what you wish. Right? You imag
Daniel Kluev writes:
> On Sun, May 22, 2011 at 2:49 AM, John J Lee wrote:
>> Here's my wishlist (not really in any order):
>
> How come pony is not listed there? Language cannot be better than
> python without pony!
Pony, absolutely. I took that as read.
>> * An even larger user base, contr
On 22/05/2011, at 10:41, TheSaint wrote:
> Kushal Kumaran wrote:
>
>> You could look for a way to make aria2c not become a daemon and use
>> subprocess.Popen to start it. That gives you the PID and ways to see
>> if the process is still running
>
> I see. It's a step that I've to get on my a
On 2011.05.21 06:46 AM, John J Lee wrote:
> Since Python 2.5, the errno attribute maps the Windows error to error
> codes that match the attributes of module errno.
I was able to whip up a nifty little function that takes the output of
sys.exc_info() after a WindowsError and return the error code.
On Mon, May 23, 2011 at 12:03 AM, rantingrick wrote:
> ... was about as effective as the "orb of confusion" on Patrick...
> *drool*
>
That sounds like a Dungeons and Dragons artifact item... invoking the
orb of confusion is a standard action that does not provoke an Attack
of Opportunity.
> clas
On May 21, 7:03 pm, bvdp wrote:
> IIRC, I used the class method since it nicely encapsulates a set of
> operations:
>
> - create/raise a window
> - list a set of configurable options
> - have and buttons, both of which destroy the
> window.
Ok NOW we are getting somewhere! It is amazin
Kushal Kumaran wrote:
> You could look for a way to make aria2c not become a daemon and use
> subprocess.Popen to start it. That gives you the PID and ways to see
> if the process is still running
I see. It's a step that I've to get on my account. Unfortunately I'll have
to study it some more.
Hi,
I am using hotshot module to profile my python function.
I used the details from (
http://code.activestate.com/recipes/576656-quick-python-profiling-with-hotshot/
).
The function I profile is a recursive one and I am getting the following
error,
"ProfilerError: profiler already active"
I
In article ,
James Stroud wrote:
> tal 65% python2.7
> Python 2.7.1 (r271:86832, May 21 2011, 22:52:14)
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> py> class C(object):
> ... def __init__(self):
> ... se
From: "Daniel Kluev"
> On Sun, May 22, 2011 at 6:44 PM, Octavian Rasnita wrote:
>> Because of its flexibility, Perl offers more advanced modules and libraries
>> which are not available for Python.
>
> What 'flexibility' are you talking about? This seem to be very biased
> statement, based on
On Sat, May 21, 2011 at 6:20 PM, TheSaint wrote:
> Kushal Kumaran wrote:
>
>> That's how it is able to give you the status. So, if you
>> are using getstatusoutput, you will have only one instance of your
>> command running.
>
> My intent is to launch only one program instance, which will goes as
On 12/05/2011 04:51, Chris Angelico wrote:
On Thu, May 12, 2011 at 7:02 AM, Ian wrote:
In the "real world" lists of zero items do not exist.
You don't go shopping with a shopping list of zero items.
Actually, yes you do. You maintain your shopping list between trips;
whenever you need somethi
On Sun, May 22, 2011 at 6:44 PM, Octavian Rasnita wrote:
> Because of its flexibility, Perl offers more advanced modules and libraries
> which are not available for Python.
What 'flexibility' are you talking about? This seem to be very biased
statement, based on lack of according python experien
Earlier I asked about a problem with ipython in windows which does not
seem to be there in linux.
Now I find that a similar problem surfaces with turtle -- so it
seemingly is not so much an ipython problem. The problem can be seen
thus:
Lets say I want to try out some turtle commands such as:
--
From: "Hansmeet Singh"
>i think we should end our butchering of perl on a light note (you may have
> already read this):
> EXTERIOR: DAGOBAH -- DAY
> With Yoda strapped to his back, Luke climbs up one of
> the many thick vines that grow in the swamp until he
> reaches the Dagobah statistics lab.
James Stroud wrote:
> Peter Otten wrote:
>> James Stroud wrote:
>>> WTF?
>>
>> Put the code into a file, run it -- and be enlightened ;)
>
>
> tal 72% python2.7 eraseme.py
> 1
> 2
> 4
> 8tal 73% cat eraseme.py
> #! /usr/bin/env python
>
> class C:
>def __init__(self):
> self.data = []
Chris Rebert wrote:
On Sat, May 21, 2011 at 11:32 PM, James Stroud wrote:
Chris Rebert wrote:
WTF?
Assuming your question is "Why is 1024 there twice?", the answer is
The question is "Why is 1024 there at all?" It should be 10.
Ah. This is why it's better to be more explicit about what you
Peter Otten wrote:
James Stroud wrote:
WTF?
Put the code into a file, run it -- and be enlightened ;)
Compare the follower to the last.
tal 77% cat eraseme.py
#! /usr/bin/env python
class C:
def __init__(self):
self.data = []
def doit(self, count=[0]):
for c in self.data:
On Sat, May 21, 2011 at 11:32 PM, James Stroud wrote:
> Chris Rebert wrote:
>>>
>>> WTF?
>>
>> Assuming your question is "Why is 1024 there twice?", the answer is
>
> The question is "Why is 1024 there at all?" It should be 10.
Ah. This is why it's better to be more explicit about what your
quest
71 matches
Mail list logo