ANN: eGenix mx Base Distribution 3.2.0 (mxDateTime, mxTextTools, etc.)

2011-05-23 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mx Base Distribution Version 3.2.0 for Python 2.4 - 2.7 Open Source Python extensions providing important and useful services

Announcing Pushy 0.5

2011-05-23 Thread axwalk
Greetings, I am pleased to announce the release of Pushy 0.5. This is a stable release, focusing on bug fixes, performance, and a few sugary feature additions. You can read about what's new in 0.5 here: http://blog.awilkins.id.au/2011/05/pushy-05-released.html Cheers, Andrew Wilkins.

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Dennis Lee Bieber wlfr...@ix.netcom.com 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

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com On Sun, May 22, 2011 at 11:47 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Daniel Kluev dan.kl...@gmail.com I am talking about that flexibility which was criticized in the previous messages telling that this flexibility allows any programmer to

Re: Tkinter FileDialog

2011-05-23 Thread Godson Gera
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

Re: Abandoning Python

2011-05-23 Thread Steven D'Aprano
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 oriented,

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Chris Angelico
On Mon, May 23, 2011 at 3:31 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Dennis Lee Bieber wlfr...@ix.netcom.com 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

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Terry Reedy
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

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Carl Banks
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,

Re: Abandoning Python

2011-05-23 Thread Chris Angelico
On Mon, May 23, 2011 at 4:33 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: And presumably anyone who has played around with GUI programming in Python will have run into message oriented coding. GUI code almost always involves a main loop somewhere that consists of: while not

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Chris Angelico
On Mon, May 23, 2011 at 4:46 PM, Carl Banks pavlovevide...@gmail.com wrote: On Sunday, May 22, 2011 12:44:18 AM UTC-7, Octavian Rasnita wrote: If Python would be so great, you wouldn't talk so much about how bad are other languages, Sure we would.  Sometimes it's fun to sit on your lofty

Re: Functional Programing: stop using recursion, cons. Use map vectors

2011-05-23 Thread asandroq
On May 23, 4:29 am, Deeyana d.awlb...@hotmail.invalid wrote: You might be interested in Clojure, then. Lists are more abstracted, like in Scheme, and vectors and also dictionaries/maps and sets are first class citizens along side lists. And unlike Scheme, Clojure has good library/host interop

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Daniel Kluev
On Mon, May 23, 2011 at 5:06 PM, Octavian Rasnita orasn...@gmail.com wrote: There are more, but a single eloquent feature is the possibility of interpreting variables in strings which cannot be done so nice in Python. I've should probably mentioned it earlier, but I'm not Perl expert, not

Re: Problem in using subprocess module and communicate()

2011-05-23 Thread Tim Golden
On 21/05/2011 16:56, vijay swaminathan wrote: I'm having some problem in using the communicate() along with the subprocess.I would like to invoke a command prompt and pass on a .bat file to execute. I went through the subprocess module and understood that using communicate, we can send the send

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Aleksandar Radulovic
Hi, I'm going to skip the Perl vs. Python flame-bait and correct your one statement. On Sun, May 22, 2011 at 7:44 AM, Octavian Rasnita orasn...@gmail.com wrote: Somebody told that C# and Objective C are good languages. They might be good, but they are proprietary, and not only that they are

ANN: eGenix mx Base Distribution 3.2.0 (mxDateTime, mxTextTools, etc.)

2011-05-23 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mx Base Distribution Version 3.2.0 for Python 2.4 - 2.7 Open Source Python extensions providing important and useful services

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Terry Reedy tjre...@udel.edu 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]])

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Chris Angelico ros...@gmail.com On Mon, May 23, 2011 at 3:31 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Dennis Lee Bieber wlfr...@ix.netcom.com Since indentation seems so crucial to easy comprehension of the logical structure of a program, making it a mandatory syntactical

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com On Mon, May 23, 2011 at 5:06 PM, Octavian Rasnita orasn...@gmail.com wrote: There are more, but a single eloquent feature is the possibility of interpreting variables in strings which cannot be done so nice in Python. I've should probably mentioned it

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Daniel Kluev
On Mon, May 23, 2011 at 7:49 PM, Octavian Rasnita orasn...@gmail.com wrote: That is not an array, but a list. An array has a name and we can't do something like the following simple statement in Python: l = (1, 2) d = dict(l) An array has a name What? In python there is no difference

Re: Multiprocessing: don't push the pedal to the metal?

2011-05-23 Thread Adam Tauno Williams
On Mon, 2011-05-23 at 10:32 +1000, Chris Angelico wrote: On Mon, May 23, 2011 at 7:06 AM, John Ladasky lada...@my-deja.com 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. I'd still appreciate hearing

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Daniel Kluev
On Mon, May 23, 2011 at 8:41 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Daniel Kluev dan.kl...@gmail.com As I said, that ORM is not able to do those SQL constructs without using literal SQL code, but only Python variables and data structures... An ORM is usually prefered exactly

Python 2.6 and timezones

2011-05-23 Thread loial
Does python have an equivalent of the java Timezone object? I need to be able to get offsets for timezones (only U.S. time zones at the moment) -- http://mail.python.org/mailman/listinfo/python-list

Re: Dealing with name clashes in pypi

2011-05-23 Thread Patrick Sabin
On 2011-05-22 23:23, Terry Reedy wrote: 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

Re: Abandoning Python

2011-05-23 Thread Robin Becker
On 21/05/2011 16:49, John J Lee wrote: /troll I still like Python after using it for over a decade, but there are things I don't like. .. a relatively new one that's going about is cobra, http://cobra-language.com/, it appears to have some of the features you indicate eg speed, some kind

Re: Python 2.6 and timezones

2011-05-23 Thread Daniel Kluev
On Mon, May 23, 2011 at 9:32 PM, loial jldunn2...@gmail.com wrote: Does python have an equivalent of the java Timezone object? I need to be able to get offsets for timezones (only U.S. time zones at the moment) Depends on what exactly do you want. If you need to convert timezone name into

Condition.wait(timeout) oddities

2011-05-23 Thread Floris Bruynooghe
Hi all I'm a little confused about the corner cases of Condition.wait() with a timeout parameter in the threading module. When looking at the code the first thing that I don't quite get is that the timeout should never work as far as I understand it. .wait() always needs to return while

Re: how to get PID from subprocess library

2011-05-23 Thread TheSaint
GMail Felipe wrote: For the ps command, have you seen the psuti module? The link to it is: http://code.google.com/p/psutil/ You gave a brand new start :) I bit of additional program to include into the package ;) -- goto /dev/null -- http://mail.python.org/mailman/listinfo/python-list

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com ... Can it also set the current locale, for example romanian, and print the name of the current month? ...something like t1.date.set_locale('ro').month_name? There is separate module for date localization. You can pass datetime object to it and it will

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Ulrich Eckhardt
Octavian Rasnita wrote: Somebody told that C# and Objective C are good languages. They might be good, but they are proprietary, and not only that they are proprietary, but they need to be ran under platforms that cannot be used freely, so from the freedom point of view, Perl, Ruby, Python and

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Duncan Booth
Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote: Ahem, is this Java the language that a certain, well-known service provider is getting screwed over hard currently, because they forgot to read the fineprint in the declaration of freedom? That would be the case where the plaintiff has

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Daniel Kluev
On Mon, May 23, 2011 at 10:17 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Daniel Kluev dan.kl...@gmail.com Aha, so with other words that ORM doesn't have that feature. DBIX::Class also use the DateTime module, but it can use it directly, without needing to write more code for that,

Re: Python 2.6 and timezones

2011-05-23 Thread loial
Thanks...but being a python newbie I am struggling to understand how to do this. How can I use tzinfo to do the equivalent of what I do in Java, which is : TimeZone tz1 = TimeZone.getDefault(); long localOffset = tz1.getOffset(date.getTime()); TimeZone tz2 =

Re: and becomes or and or becomes and

2011-05-23 Thread Colin J. Williams
On 22-May-11 15:23 PM, Stef Mientki wrote: 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 5.2. Boolean Operations — and, or, not These are the Boolean operations, ordered by

Re: Python 2.6 and timezones

2011-05-23 Thread Daniel Kluev
On Mon, May 23, 2011 at 10:56 PM, loial jldunn2...@gmail.com wrote: Thanks...but being a python newbie I am struggling to understand how to do this. How can I use tzinfo to do the equivalent of what I do in Java, which is : TimeZone tz1 = TimeZone.getDefault(); long localOffset =

Multiple file select with tkFileDialog passes back 'decorated' strings (sometimes)

2011-05-23 Thread Alex van der Spek
I switched from Mark Hammonds pywin32 extensions for file choosers as the multiselect there seems to crash on me when selecting more than a few dozen. Using Tk now. Works well but the resulting string passed back seems to 'decorated' when the files are on local disk and not decorated when

Re: Python 2.6 and timezones

2011-05-23 Thread Miki Tebeka
[1] http://pypi.python.org/pypi/PosixTimeZone/0.9.4 [2] http://pypi.python.org/pypi/pytz/2011g [3] http://docs.python.org/library/datetime.html#tzinfo-objects Also http://labix.org/python-dateutil#head-587bd3efc48f897f55c179abc520a34330ee0a62 HTH -- Miki Tebeka miki.teb...@gmail.com

Re: Functional Programing: stop using recursion, cons. Use map vectors

2011-05-23 Thread Pascal J. Bourguignon
torb...@diku.dk (Torben Ægidius Mogensen) writes: Xah Lee xah...@gmail.com writes: Functional Programing: stop using recursion, cons. Use map vectors. 〈Guy Steele on Parallel Programing〉 http://xahlee.org/comp/Guy_Steele_parallel_computing.html This is more or less what Backus said in

Re: Problem in using subprocess module and communicate()

2011-05-23 Thread Tim Golden
[cc-ing back to the list; please keep the conversation over there...] On 23/05/2011 13:11, vijay swaminathan wrote: What I want to achieve is, I want to run a batch file on a command prompt. The reason for using thread is not for running multiple scripts simultaneously. It is just to monitor

Re: Why did Quora choose Python for its development?

2011-05-23 Thread John Bokma
Chris Angelico ros...@gmail.com writes: That said, though, I still do not believe in Python's philosophy of significant whitespace. I like to be able, if I choose, to put one entire logical unit on one line, such that it can be commented out with a single comment marker, Use an editor that

python help

2011-05-23 Thread pablo araya
Hi I'm tryin to create a game but I have a question in how to save (saveasfile) the value of a global variable.. and then load the same value with openfile. Also for example you have a main label and a botton on the left so when you click the left bottom the label will change or

Re: and becomes or and or becomes and

2011-05-23 Thread rusi
On May 23, 5:30 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Sun, 22 May 2011 15:39:33 -0700, Tim Roberts wrote: Stef Mientki stef.mien...@gmail.com 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

Tkinter bug?

2011-05-23 Thread rusi
If I start turtle from idle, and issue commands from there, there are all kinds of strange behaviors. I cant pin down any properly but they all look like IO issues. -- If the turtle window is hidden by the tkinter interpreter window, none of what is drawn appears -- If the turtle window is

Re: Functional Programing: stop using recursion, cons. Use map vectors

2011-05-23 Thread Antti J Ylikoski
On 23.5.2011 16:39, Pascal J. Bourguignon wrote: torb...@diku.dk (Torben Ægidius Mogensen) writes: Xah Leexah...@gmail.com writes: Functional Programing: stop using recursion, cons. Use map vectors. 〈Guy Steele on Parallel Programing〉

Re: Tkinter bug?

2011-05-23 Thread Ned Deily
In article 5790ee23-37d1-4cdd-b88b-a63c2b627...@k15g2000pri.googlegroups.com, rusi rustompm...@gmail.com wrote: If I start turtle from idle, and issue commands from there, there are all kinds of strange behaviors. Have you tried starting IDLE with the -n switch?

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Terry Reedy
On 5/23/2011 4:49 AM, Octavian Rasnita wrote: But let's remember from what this discussion started. This is not a Python critique, because each language has its own ways. I just wanted to show that the fact that there is more than one way to do it in Perl and that there is a single way in

Re: Writing multiple files with with-context

2011-05-23 Thread Ian Kelly
On Sun, May 22, 2011 at 8:48 PM, Shunichi Wakabayashi shunichi_wakabaya...@yahoo.co.jp wrote: One idea is using contextlib.nested(), from contextlib import nested with nested(*[open('list_%d.txt' % i, 'w') for i in range(LIST_LEN)]) as fobjlist:  for i in range(1000):    

Re: Condition.wait(timeout) oddities

2011-05-23 Thread Chris Torek
In article 94d1d127-b423-4bd4-853c-d92da9ac7...@glegroupsg2000goo.googlegroups.com Floris Bruynooghe comp.lang.pyt...@googlegroups.com wrote: I'm a little confused about the corner cases of Condition.wait() with a timeout parameter in the threading module. When looking at the code the first

I installed Python 3 on Fedora 14 By Downloading python3.2 bziped source tarball and install it according to the README, Now How shall I uninstalled python 3.2?

2011-05-23 Thread Varuna Seneviratna
I installed Python 3 By Downloading python3.2 bziped source tarball and install it according to the README, Now How shall I uninstalled python 3.2? The README instructions are as below Build Instructions -- On Unix, Linux, BSD, OSX, and Cygwin: ./configure make

Re: Is there a better way to solve this?

2011-05-23 Thread kracekumar ramaraju
You can use sizeof function, a=12234 b=23456.8 a.__sizeof__() 12 b.__sizeof__() 16 So sizeof int is 12 bytes and float is 16 bytes -- http://mail.python.org/mailman/listinfo/python-list

Re: English Idiom in Unix: Directory Recursively

2011-05-23 Thread Rikishi42
On 2011-05-20, Hans Georg Schaathun h...@schaathun.net wrote: : It starts with the misconception (or should I say confusion?) between : performing a recursive job and using a recursive tool to do it. And then it : blazes off in these huge discusions about semantics to define a definition : of

Re: English Idiom in Unix: Directory Recursively

2011-05-23 Thread Rikishi42
On 2011-05-20, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Thu, 19 May 2011 22:13:14 -0700, rusi wrote: [I agree with you Xah that recursion is a technical word that should not be foisted onto lay users.] I think that is a patronizing remark that under-estimates the

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Terry Reedy tjre...@udel.edu On 5/23/2011 4:49 AM, Octavian Rasnita wrote: But let's remember from what this discussion started. This is not a Python critique, because each language has its own ways. I just wanted to show that the fact that there is more than one way to do it in Perl

Re: Multiprocessing: don't push the pedal to the metal?

2011-05-23 Thread John Ladasky
On May 23, 2:50 am, Adam Tauno Williams awill...@whitemice.org wrote: I develop an app that uses multiprocessing heavily.  Remember that all these processes are processes - so you can use all the OS facilities regarding processes on them.  This includes setting nice values, schedular options,

Odp: Re: Re: Strange behaviour of input() function (Python 3.2)

2011-05-23 Thread sunrrrise
Hello, I have checked another computer (WinXP, 32b) with Komodo Edit 6.1 and ActiveState Python 3.2 - problem still occurs. Have you received my email? s. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a better way to solve this?

2011-05-23 Thread David Robinow
On Mon, May 23, 2011 at 2:55 PM, kracekumar ramaraju kracethekingma...@gmail.com wrote: You can use sizeof function, a=12234 b=23456.8 a.__sizeof__() 12 b.__sizeof__() 16 So sizeof int is 12 bytes and float is 16 bytes I'm not sure what you're trying to show here, but try the following in

Re: Multiprocessing: don't push the pedal to the metal?

2011-05-23 Thread Adam Tauno Williams
On Mon, 2011-05-23 at 12:51 -0700, John Ladasky wrote: On May 23, 2:50 am, Adam Tauno Williams awill...@whitemice.org wrote: I develop an app that uses multiprocessing heavily. Remember that all these processes are processes - so you can use all the OS facilities regarding processes on

Re: Condition.wait(timeout) oddities

2011-05-23 Thread Floris Bruynooghe
On Monday, 23 May 2011 17:32:19 UTC, Chris Torek wrote: In article 94d1d127-b423-4bd4...@glegroupsg2000goo.googlegroups.com Floris Bruynooghe comp.lan...@googlegroups.com wrote: I'm a little confused about the corner cases of Condition.wait() with a timeout parameter in the threading

Re: Is there a better way to solve this?

2011-05-23 Thread Terry Reedy
On 5/23/2011 2:55 PM, kracekumar ramaraju wrote: You can use sizeof function, Appears not to be in manuals, that I could find. As a special method, it is intended to be called through sys.getsizeof. a=12234 b=23456.8 a.__sizeof__() 12 b.__sizeof__() 16 So sizeof int is 12 bytes and

Re: Functional Programing: stop using recursion, cons. Use map vectors

2011-05-23 Thread Deeyana
On Mon, 23 May 2011 00:52:07 -0700, asandroq wrote: On May 23, 4:29 am, Deeyana d.awlb...@hotmail.invalid wrote: You might be interested in Clojure, then. Lists are more abstracted, like in Scheme, and vectors and also dictionaries/maps and sets are first class citizens along side lists. And

Unit testing beginner question

2011-05-23 Thread Andrius
Hello, would be gratefull for the explonation. I did a simple test case: def setUp(self): self.testListNone = None def testListSlicing(self): self.assertRaises(TypeError, self.testListNone[:1]) and I am expecting test to pass, but I am getting exception: Traceback (most recent call last):

Re: Strange behaviour of input() function (Python 3.2)

2011-05-23 Thread Chris Angelico
On Tue, May 24, 2011 at 1:44 AM, Aleksander Pietkiewicz sunrrr...@gmail.com wrote: Hello, I have googled your email address, I hope it is not a problem. Thank you for your help! I figured you would get it from my post, but either way works! My email address is fairly well known. Sorry for the

Re: Unit testing beginner question

2011-05-23 Thread Andrius A
That was quick! Thanks Ian On 23 May 2011 23:46, Ian Kelly ian.g.ke...@gmail.com wrote: On Mon, May 23, 2011 at 4:30 PM, Andrius andriu...@gmail.com wrote: and I am expecting test to pass, but I am getting exception: Traceback (most recent call last): self.assertRaises(TypeError,

Re: Unit testing beginner question

2011-05-23 Thread Ian Kelly
On Mon, May 23, 2011 at 4:30 PM, Andrius andriu...@gmail.com wrote: and I am expecting test to pass, but I am getting exception: Traceback (most recent call last):    self.assertRaises(TypeError, self.testListNone[:1]) TypeError: 'NoneType' object is unsubscriptable I thought that

Re: Is there a better way to solve this?

2011-05-23 Thread Steven D'Aprano
On Mon, 23 May 2011 11:55:08 -0700, kracekumar ramaraju wrote: You can use sizeof function, Who are you talking to, and what question did they ask? Please always quote enough of the post that you are replying to to establish context. a=12234 b=23456.8 a.__sizeof__() 12 b.__sizeof__()

Re: Abandoning Python

2011-05-23 Thread Gregory Ewing
Steven D'Aprano wrote: On Mon, 23 May 2011 13:11:40 +1200, Gregory Ewing wrote: ...until you want to read someone *else's* code, that is. The same might be said about Python, which supports procedural, OO and functional styles out of the box. But it only uses *one* syntax and core set of

Re: English Idiom in Unix: Directory Recursively

2011-05-23 Thread Steven D'Aprano
On Mon, 23 May 2011 20:56:03 +0200, Rikishi42 wrote: On 2011-05-20, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Thu, 19 May 2011 22:13:14 -0700, rusi wrote: [I agree with you Xah that recursion is a technical word that should not be foisted onto lay users.] I think that

Re: Unit testing beginner question

2011-05-23 Thread Roy Smith
In article mailman.1991.1306191316.9059.python-l...@python.org, Ian Kelly ian.g.ke...@gmail.com wrote: This would work: self.assertRaises(TypeError, lambda: self.testListNone[:1]) If you're using the version of unittest from python 2.7, there's an even nicer way to write this: with

Re: Abandoning Python

2011-05-23 Thread rantingrick
On May 23, 7:04 pm, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Falcon seems to collect programming paradigms the way Perl collects language features, i.e. by just munging them all together and bending parts until they fit. Not that i am picking on anyone here... but... Why is okay to

Re: Multiple file select with tkFileDialog passes back 'decorated' strings (sometimes)

2011-05-23 Thread Gabriel Genellina
En Mon, 23 May 2011 10:00:53 -0300, Alex van der Spek zd...@xs4all.nl escribió: I switched from Mark Hammonds pywin32 extensions for file choosers as the multiselect there seems to crash on me when selecting more than a few dozen. Using Tk now. Works well but the resulting string passed back

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com a = [1,2] dict([a]) Yes, but d = dict([a]) is not so nice as $d = @a; because it has exactly those numerous number of params and brackets which is used as a reason for bashing Perl and an aditional dict word. Octavian --

Re: Why did Quora choose Python for its development?

2011-05-23 Thread Daniel Kluev
On Mon, May 23, 2011 at 10:10 PM, Octavian Rasnita orasn...@gmail.com wrote: is not so nice as $d = @a; It is 'not so nice' only in your perception. Python clearly defines dict as container of (key, value) pairs, and therefore its constructor expects such pairs. Adding unjustified arbitrary

Re: English Idiom in Unix: Directory Recursively

2011-05-23 Thread Xah Lee
On May 22, 4:32 pm, Chris Angelico ros...@gmail.com wrote: On Mon, May 23, 2011 at 9:17 AM, Xah Lee xah...@gmail.com 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)”

Re: English Idiom in Unix: Directory Recursively

2011-05-23 Thread Chris Angelico
On Tue, May 24, 2011 at 2:20 PM, Xah Lee xah...@gmail.com wrote: why don't you file a bug report? In GNU Emacs 23.2, it's under the Help menu. I suppose it's the same in other emacs distro. Because I do not consider its behaviour to be errant. And I suspect its main developers won't either.

Re: Why did Quora choose Python for its development?

2011-05-23 Thread John Bokma
Octavian Rasnita orasn...@gmail.com writes: From: Daniel Kluev dan.kl...@gmail.com a = [1,2] dict([a]) Yes, but d = dict([a]) is not so nice as $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; -- John Bokma

Re: Make Python portable by default! (Re: Python IDE/text-editor)

2011-05-23 Thread JussiJ
On Apr 17, 7:13 pm, Wolfgang Keller felip...@gmx.net wrote: You can't run Python programs without a Python interpreter installed. Wrong. See e.g.http://www.portablepython.com/ In this case Python is still installed on the machine. It may not be installled on the PC's hard disk but it is

[issue6717] Some problem with recursion handling

2011-05-23 Thread Peter Wentworth
Peter Wentworth p.wentwo...@ict.ru.ac.za added the comment: Attached is a crashing program that shows that the event handler is called again before activation of the prior instance has completed. I also have a second turtle that queues the nested events. It doesn't crash the system, at

[issue12152] Parser/asdl_c.py relies on mercurial repository revision

2011-05-23 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: when building without an hg repository present, the build fails with: ./Parser/asdl_c.py -h ../Include ../Parser/Python.asdl Traceback (most recent call last): File ../Parser/asdl_c.py, line 1214, in module main(args[0]) File

[issue6717] Some problem with recursion handling

2011-05-23 Thread Peter Wentworth
Changes by Peter Wentworth p.wentwo...@ict.ru.ac.za: Removed file: http://bugs.python.org/file22072/drag_bug_is_nesting_events.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6717 ___

[issue6717] Some problem with recursion handling

2011-05-23 Thread Peter Wentworth
Peter Wentworth p.wentwo...@ict.ru.ac.za added the comment: Oops, I wish I hadn't asked that silly question about the global declaration! Here is the tweaked file... -- Added file: http://bugs.python.org/file22073/drag_bug_is_nesting_events.py ___

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-23 Thread Ruslan Mstoi
Ruslan Mstoi rms...@gmail.com added the comment: Uploading patch updated according to the review comments. -- Added file: http://bugs.python.org/file22074/issue12009_patch3.diff ___ Python tracker rep...@bugs.python.org

[issue12153] Modules/faulthandler.c exports `stack_overflow' symbol

2011-05-23 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: the exported symbol should either have a prefix, or defined static. -- components: Extension Modules messages: 136594 nosy: doko priority: normal severity: normal status: open title: Modules/faulthandler.c exports `stack_overflow'

[issue6560] socket sendmsg(), recvmsg() methods

2011-05-23 Thread Gergely Kálmán
Gergely Kálmán kalman.gerg...@duodecad.hu added the comment: On 05/22/11 03:14, Brian May wrote: Brian Maybr...@microcomaustralia.com.au added the comment: What needs to happen to get recvmsg() supported in Python? recvmsg() is required to get get transparent UDP proxies working under

[issue12154] PyDoc Partial Functions

2011-05-23 Thread JJeffries
New submission from JJeffries jamesjeffri...@gmail.com: PyDoc currently does not support partial functions. It currently just outputs the following, treating it as a data member instead of a function. my_partial_function = functools.partial object I think that if the __doc__ it should be

[issue12151] test_logging fails sometimes

2011-05-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Victor, you just did what a recent discussion on python-dev strongly recommended not to do: you used ambiguous present tense in your commit message. “test_logging writes debug messages to stderr, not stdout” does not say whether it is the

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-23 Thread Ruslan Mstoi
Changes by Ruslan Mstoi rms...@gmail.com: Added file: http://bugs.python.org/file22075/issue12009_patch4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12009 ___

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-23 Thread Ruslan Mstoi
Changes by Ruslan Mstoi rms...@gmail.com: Removed file: http://bugs.python.org/file22013/issue12009_patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12009 ___

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-23 Thread Ruslan Mstoi
Changes by Ruslan Mstoi rms...@gmail.com: Removed file: http://bugs.python.org/file22019/issue12009_patch2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12009 ___

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-23 Thread Ruslan Mstoi
Changes by Ruslan Mstoi rms...@gmail.com: Removed file: http://bugs.python.org/file22074/issue12009_patch3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12009 ___

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: +1 to that last patch, modulo removal of an unnecessary docstring on one test method (IIRC the test runner would display it in verbose mode and that would not be useful output; the test speaks for itself, only a comment with this bug number is

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-23 Thread Ruslan Mstoi
Changes by Ruslan Mstoi rms...@gmail.com: Added file: http://bugs.python.org/file22076/issue12009_patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12009 ___

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-23 Thread Ruslan Mstoi
Changes by Ruslan Mstoi rms...@gmail.com: Removed file: http://bugs.python.org/file22075/issue12009_patch4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12009 ___

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-23 Thread Ruslan Mstoi
Ruslan Mstoi rms...@gmail.com added the comment: Thanks for helping with cleaning up the patch. I already removed that docstring too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12009

[issue12154] PyDoc Partial Functions

2011-05-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. pydoc recently gained ad-hoc support for named tuples, so it could be improved to treat partial objects as functions. Would you like to submit a patch? If so, guidelines are on http://docs.python.org/devguide

[issue12153] Modules/faulthandler.c exports `stack_overflow' symbol

2011-05-23 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - haypo nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12153 ___ ___

[issue12152] Parser/asdl_c.py relies on mercurial repository revision

2011-05-23 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12152 ___ ___ Python-bugs-list

[issue12155] queue example doesn't stop worker threads

2011-05-23 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: The queue doc contains the following example: -- def worker(): while True: item = q.get() do_work(item) q.task_done() q = Queue() for i in range(num_worker_threads): t =

[issue12125] test_sysconfig fails on OpenIndiana because of test_packaging

2011-05-23 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12125 ___ ___ Python-bugs-list

[issue6727] ImportError when package is symlinked on Windows

2011-05-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Removing 2.6, this is not a security bug. (OT: Could someone please fix support for symlinked packages? It's an essential feature during development. If I correctly guess your use case, you could use a pth file during development. See the

[issue12153] Modules/faulthandler.c exports `stack_overflow' symbol

2011-05-23 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset ad1ea4961ead by Victor Stinner in branch 'default': Close #12153: faulthandler, mark stack_overflow() as static http://hg.python.org/cpython/rev/ad1ea4961ead -- nosy: +python-dev resolution: - fixed stage: -

  1   2   3   >