Python Ireland's Pub meetup - Wed 13th April, 7pm @ The Bull Castle

2011-04-09 Thread Vicky Twomey-Lee
Hi All, Apologies for late announcement. No talks for this month, so it's a pub meetup. When: Wed 13th April 2011 (from 7pm) Where: Upstairs in the beer hall, Bull Castle, Christ Church Place, D2 More details -- http://www.python.ie/meetup/2011/python_ireland_meetup_-_april_2011/ All are

ANN: Practical Python Programming Course, Chicago, May 16-20 (limited to 6 participants)

2011-04-09 Thread Raymond Hettinger
Practical Python Programming (Ultimate Edition) [4.5 days] Raymond Hettinger and David Beazley join forces to create what might be the most ultimate introductory Python course around. In the first part of this class, Raymond will put his own expert spin on Dave's Practical Python Programming

Re: python on iPad (PyPad)

2011-04-09 Thread Eric Snow
On Fri, Apr 8, 2011 at 11:13 PM, Jon Dowdall jon_dot_dowdall_at@_gmail.comwrote: Hi All, Sorry for the blatant advertising but hope some of you may be interested to know that I've created an iPad application containing the python interpreter and a simple execution environment. It's available

Re: Python 3.2 vs Java 1.6

2011-04-09 Thread Steven D'Aprano
On Sat, 09 Apr 2011 01:32:17 +1000, Chris Angelico wrote: On Sat, Apr 9, 2011 at 1:21 AM, km srikrishnamo...@gmail.com wrote: Hi All, How does python 3.2 fare compared to Java 1.6 in terms of performance ? any pointers or observations ? Hi All, How do apples compare to oranges in terms

Re: [OT] Free software versus software idea patents

2011-04-09 Thread Bob Martin
in 654905 20110408 171055 Ethan Furman et...@stoneleaf.us wrote: Westley Mart�nez wrote: On Fri, 2011-04-08 at 01:41 -0500, harrismh777 wrote: Freedom isn't free... you have to fight for it... always. Why should a business listen to you? You're not gonna buy any software anyways. From a

Re: Python 3.2 vs Java 1.6

2011-04-09 Thread Chris Rebert
On Fri, Apr 8, 2011 at 11:34 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: snip Have a look at the programming language shoot- out: http://shootout.alioth.debian.org/ Don't jump to conclusions: http://shootout.alioth.debian.org/dont-jump-to-conclusions.php [By the way,

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-09 Thread John Ladasky
On Apr 7, 6:10 pm, sturlamolden sturlamol...@yahoo.no wrote: On 8 apr, 02:38, sturlamolden sturlamol...@yahoo.no wrote: I should probably fix it for 64-bit now. Just recompiliong with 64-bit integers will not work, because I intentionally hardcoded the higher 32 bits to 0. That was easy,

Re: python on iPad (PyPad)

2011-04-09 Thread Raymond Hettinger
On Apr 8, 10:13 pm, Jon Dowdall jon_dot_dowdall_at@_gmail.com wrote: Hi All, Sorry for the blatant advertising but hope some of you may be interested to know that I've created an iPad application containing the python interpreter and a simple execution environment. It's available in iTunes

Python-URL! - weekly Python news and links (Apr 9)

2011-04-09 Thread Cameron Laird
QOTW: [You'll have to see it for yourself: !Viva 2.7.1!] http://groups.google.com/group/comp.lang.python/msg/8d79c5ee3913f82d De-briefing is characteristically something we do too little; there's a LOT of value in systematic examination of what we've experienced. Unladen Swallow

Re: Literate Programming

2011-04-09 Thread Jim
On Apr 8, 3:21 pm, Hans Georg Schaathun h...@schaathun.net wrote: Interesting tool, but it solves only part of the problem. I could use it as a replacement for pylit, but I would then still have the problem of commenting code within a block, which is a reST/sphinx problem. I'm sorry; I don't

Re: Python 3.2 vs Java 1.6

2011-04-09 Thread Octavian Rasnita
From: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info Newsgroups: comp.lang.python On Sat, 09 Apr 2011 01:32:17 +1000, Chris Angelico wrote: On Sat, Apr 9, 2011 at 1:21 AM, km srikrishnamo...@gmail.com wrote: Hi All, How does python 3.2 fare compared to Java 1.6 in terms of

Re: ANN: fathom 0.2.0

2011-04-09 Thread Filip Gruszczyński
I forgot links: Homepage: http://code.google.com/p/fathom/ Documentation: http://code.google.com/p/fathom/wiki/Manual -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

ANN: fathom 0.2.0

2011-04-09 Thread Filip Gruszczyński
Hi, I have released version 0.2.0 of fathom, python3 package for database inspection. Fathom supports retrieving database schema from Sqlite3, PostgreSQL and MySQL. This is still very early version and I am experimenting with different approaches. I would be very thankful for any input and

Common practice for multiple python versions sharing 3rd party modules

2011-04-09 Thread Daniel Fetchinson
Hi folks, In order to test my own modules with various python versions I've installed python 2.4, 2.5, 2.6, 2.7, 3.1, 3.2. The original installation on my fedora box was 2.6 and all 3rd party modules so far were installed under /usr/lib/python2.6/site-packages. Since now the executable 'python'

Re: Generators and propagation of exceptions

2011-04-09 Thread Kent Johnson
On Apr 8, 3:47 pm, r nbs.pub...@gmail.com wrote: I'm already making something like this (that is, if I understand you correctly). In the example below (an almost real code this time, I made too many mistakes before) all the Expressions (including the Error one) implement an 'eval' method that

Re: python on iPad (PyPad)

2011-04-09 Thread Jon Dowdall
On Sat, 09 Apr 2011 00:36:58 -0700, Raymond Hettinger wrote: On Apr 8, 10:13 pm, Jon Dowdall jon_dot_dowdall_at@_gmail.com wrote: Hi All, Sorry for the blatant advertising but hope some of you may be interested to know that I've created an iPad application containing the python interpreter

DOCTYPE + SAX

2011-04-09 Thread jdownie
I'm trying to get xml.sax to interpret a file that begins with… !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http:// www.w3.org/TR/html4/loose.dtd After a while I get... http://www.w3.org/TR/html4/loose.dtd:31:2: error in processing external entity reference …although… time

Re: python on iPad (PyPad)

2011-04-09 Thread Aahz
In article 4d9feaea$0$29996$c3e8da3$54964...@news.astraweb.com, Jon Dowdall jon_dot_dowdall_at@_gmail.com wrote: Sorry for the blatant advertising but hope some of you may be interested to know that I've created an iPad application containing the python interpreter and a simple execution

Discount Wholesale CROWN HOLDER short jeans man Discount Wholesale CROWN HOLDER short jeans man

2011-04-09 Thread christina
Discount Wholesale EVISU short jeans man Discount Wholesale G-star long jeans man Discount Wholesale Gucci long jeans man Discount Wholesale Jeep long jeans man Discount Wholesale LB long jeans man Discount Wholesale Lee long jeans man Discount Wholesale Levis long jeans man Discount Wholesale

DG T-shirt DG T-shirt DG T-shirt DG T-shirt DG T-shirt DG T-shirt DG T-shirt DG T-shirt

2011-04-09 Thread christina
T-Shirts AFF T-shirt ARMANI T-shirt www.idesigerworld02.com BAPE T-shirt BBC T-shirt www.idesigerworld02.com BOSS T-shirt www.idesigerworld02.com Burberry T-shirt CA T-shirt men's www.idesigerworld02.com CA T-shirt women's COOGI T-shirt CRYSTAL ROCK women's DG T-shirt www.idesigerworld02.com

COOGI T-shirt COOGI T-shirt COOGI T-shirt COOGI T-shirt COOGI T-shirt COOGI T-shirt

2011-04-09 Thread christina
T-Shirts AFF T-shirt ARMANI T-shirt www.idesigerworld02.com BAPE T-shirt BBC T-shirt www.idesigerworld02.com BOSS T-shirt www.idesigerworld02.com Burberry T-shirt CA T-shirt men's www.idesigerworld02.com CA T-shirt women's COOGI T-shirt CRYSTAL ROCK women's DG T-shirt www.idesigerworld02.com

Surge 2011 CFP Deadline Extended

2011-04-09 Thread Katherine Jeschke
OmniTI is pleased to announce that the CFP deadline for Surge 2011, the Scalability and Performance Conference, (Baltimore: Sept 28-30, 2011) has been extended to 23:59:59 EDT, April 17, 2011. The event focuses upon case studies that demonstrate successes (and failures) in Web applications and

handbag in Australia canada

2011-04-09 Thread christina
Yves Saint Laurent YSL Bags Online Handbags Yves Saint Laurent handbags Best Price bags Bristol bag frisbee golf YSL Handbags Replica Tennis handbags sale buy buy cheap bag online in alaska YSL Bags To Buy bag mouth blow job Buy cheap handbags online cheapest Price handbags Deliverd Uk bag boy

Re: DOCTYPE + SAX

2011-04-09 Thread Alain Ketterlin
jdownie jdow...@gmail.com writes: I'm trying to get xml.sax to interpret a file that begins with… !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http:// www.w3.org/TR/html4/loose.dtd After a while I get... http://www.w3.org/TR/html4/loose.dtd:31:2: error in processing

Re: python on iPad (PyPad)

2011-04-09 Thread Eric Snow
On Fri, Apr 8, 2011 at 11:13 PM, Jon Dowdall jon_dot_dowdall_at@_gmail.comwrote: Hi All, Sorry for the blatant advertising but hope some of you may be interested to know that I've created an iPad application containing the python interpreter and a simple execution environment. It's available

Re: Literate Programming

2011-04-09 Thread Hans Georg Schaathun
On Fri, 8 Apr 2011 12:58:34 -0400, Tim Arnold tim.arn...@sas.com wrote: : If you already know LaTeX, you might experiment with the *.dtx docstrip : capability. Hi. Hmmm. That's a new thought. I never thought of using docstrip with anything but LaTeX. It sounds like a rather primitive

Re: Literate Programming

2011-04-09 Thread Hans Georg Schaathun
On Sat, 9 Apr 2011 03:45:55 -0700 (PDT), Jim jim.heffe...@gmail.com wrote: : I'm sorry; I don't understand commenting code within a block but I : wondered if it meant you were not fully familiar with the idea of the : web-type programs. The idea was pretty clear from the web page you cited.

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-09 Thread sturlamolden
On 9 apr, 09:36, John Ladasky lada...@my-deja.com wrote: Thanks for finding my discussion!  Yes, it's about passing numpy arrays to multiple processors.  I'll accomplish that any way that I can. My preferred ways of doing this are: 1. Most cases for parallel processing are covered by

Re: Python 3.2 vs Java 1.6

2011-04-09 Thread Hans Georg Schaathun
On Sat, 9 Apr 2011 01:32:17 +1000, Chris Angelico ros...@gmail.com wrote: : On Sat, Apr 9, 2011 at 1:21 AM, km srikrishnamo...@gmail.com wrote: : How does python 3.2 fare compared to Java 1.6 in terms of performance ? : any pointers or observations ? : : How do apples compare to oranges in

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-09 Thread John Ladasky
On Apr 9, 10:15 am, sturlamolden sturlamol...@yahoo.no wrote: On 9 apr, 09:36, John Ladasky lada...@my-deja.com wrote: Thanks for finding my discussion!  Yes, it's about passing numpy arrays to multiple processors.  I'll accomplish that any way that I can. My preferred ways of doing this

Re: Argument of the bool function

2011-04-09 Thread Robert Kern
On 2011-04-08 17:59 , candide wrote: Le 09/04/2011 00:03, Ethan Furman a écrit : bool([x]) Convert a value to a Boolean, using the standard truth testing procedure. As you can see, the parameter name is 'x'. OK, your response is clarifying my point ;) I didn't realize that in the

Re: DOCTYPE + SAX

2011-04-09 Thread jdownie
On Apr 10, 1:47 am, Alain Ketterlin al...@dpt-info.u-strasbg.fr wrote: jdownie jdow...@gmail.com writes: I'm trying to get xml.sax to interpret a file that begins with… !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http:// www.w3.org/TR/html4/loose.dtd After a while I

Re: [OT] Free software versus software idea patents

2011-04-09 Thread Steven D'Aprano
On Fri, 08 Apr 2011 01:37:45 -0500, harrismh777 wrote: Steven D'Aprano wrote: The reason Mono gets hit (from others besides me) is that they are in partnership and collaboration with Microsoft, consciously and unconsciously. This must be punished. Just like Python, Apache, and the Linux

Re: Argument of the bool function

2011-04-09 Thread candide
Le 10/04/2011 01:22, Robert Kern a écrit : No one is saying that every instance of foo([arg]) in the docs means that the given argument is named such that it is available for keyword arguments. What people are saying is that for bool(), *that happens to be the case*. what a piece of luck!

Retrieving Python Keywords

2011-04-09 Thread candide
Python is very good at introspection, so I was wondering if Python (2.7) provides any feature to retrieve the list of its keywords (and, as, assert, break, ...). -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Free software versus software idea patents

2011-04-09 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Thu, 07 Apr 2011 07:50:56 +1000, Ben Finney wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Mono is free, open source software that is compatible with .NET […] It's difficult to take a claim of

Re: Retrieving Python Keywords

2011-04-09 Thread Chris Angelico
On Sun, Apr 10, 2011 at 11:28 AM, candide candide@free.invalid wrote: Python is very good at introspection, so I was wondering if Python (2.7) provides any feature to retrieve the list of its keywords (and, as, assert, break, ...). I don't know about any other way, but here's a really REALLY

Re: Retrieving Python Keywords

2011-04-09 Thread Terry Reedy
On 4/9/2011 9:28 PM, candide wrote: Python is very good at introspection, so I was wondering if Python (2.7) provides any feature to retrieve the list of its keywords (and, as, assert, break, ...). Yes. (Look in the manuals, or try the obvious imports ;-) -- Terry Jan Reedy --

Re: Retrieving Python Keywords

2011-04-09 Thread John Connor
Actually this is all it takes: import keywords print keywords.kwlist --jac On Sat, Apr 9, 2011 at 8:57 PM, Chris Angelico ros...@gmail.com wrote: On Sun, Apr 10, 2011 at 11:28 AM, candide candide@free.invalid wrote: Python is very good at introspection, so I was wondering if Python (2.7)

Re: Retrieving Python Keywords

2011-04-09 Thread Steven D'Aprano
On Sun, 10 Apr 2011 03:28:10 +0200, candide wrote: Python is very good at introspection, so I was wondering if Python (2.7) provides any feature to retrieve the list of its keywords (and, as, assert, break, ...). import keyword -- Steven --

Re: Argument of the bool function

2011-04-09 Thread Grant Edwards
On 2011-04-09, Lie Ryan lie.1...@gmail.com wrote: On 04/09/11 08:59, candide wrote: Le 09/04/2011 00:03, Ethan Furman a ?crit : bool([x]) dir([object]) Not very meaningful, isn't it ? The error says it unambiguously, dir() does not take *keyword* arguments; instead dir() takes

Re: Argument of the bool function

2011-04-09 Thread rusi
On Apr 10, 8:35 am, Grant Edwards inva...@invalid.invalid wrote: On 2011-04-09, Lie Ryan lie.1...@gmail.com wrote: On 04/09/11 08:59, candide wrote: Le 09/04/2011 00:03, Ethan Furman a ?crit :   bool([x]) dir([object]) Not very meaningful, isn't it ? The error says it

How to structure a multi-steps(and substeps) scripts

2011-04-09 Thread 超 李
Hi everybody. I wrote a script and it's code structure like this: def step1:    local_var1 = ...    # some other variable definitions for step1    def substep11:        pass    def substep12:        pass    # more substeps def step2:    local_var1 = ...    # some other variable definitions for

Re: python on iPad (PyPad)

2011-04-09 Thread Matt Schinckel
On Apr 9, 2:13 pm, Jon Dowdall jon_dot_dowdall_at@_gmail.com wrote: Hi All, Sorry for the blatant advertising but hope some of you may be interested to know that I've created an iPad application containing the python interpreter and a simple execution environment. It's available in iTunes

[issue11776] types.MethodType() params and usage is not documented

2011-04-09 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Nevermind about #6040 - I just used the same technique to provide a workaround and then remembered I've seen this recipe on StackOverflow. To me types is the right place, because that's exactly where are you sent from the docs of new

[issue6040] bdist_msi does not deal with pre-release version

2011-04-09 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: What for? IIUC, it won't be fixed in distutils anyway. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6040 ___

[issue11787] File handle leak in TarFile lib

2011-04-09 Thread Lars Gustäbel
Changes by Lars Gustäbel l...@gustaebel.de: -- assignee: - lars.gustaebel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11787 ___ ___

[issue11776] types.MethodType() params and usage is not documented

2011-04-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: When we do document types, their constructors and methods should also be documented. This is a valid request. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue11806] Missing 2 hyphens in the docs

2011-04-09 Thread Boštjan Mejak
New submission from Boštjan Mejak bostjan.me...@gmail.com: Please see http://docs.python.org/py3k/library/argparse.html#module-argparse and read the first sentence which goes... The argparse module makes it easy to write user friendly command line interfaces. Please fix this to... The

[issue11796] Comprehensions in a class definition mostly cannot access class variable

2011-04-09 Thread Menno Smits
Menno Smits me...@freshfoo.com added the comment: Thanks to everyone for the explanations. I was hoping for behaviour along the lines of Python 2 (certainly not artificially blocking more cases in the name of consistency) but it doesn't look like that's going to happen. I think this is one

[issue11807] Documentation of add_subparsers lacks information about parametres

2011-04-09 Thread Filip Gruszczyński
New submission from Filip Gruszczyński grusz...@gmail.com: In argparse documentation parametres of add_subparsers are not listed. And yet there are some really useful parametres like parser_class. It would be useful, it they were described there well and one wouldn't have to look into the code

[issue11807] Documentation of add_subparsers lacks information about parametres

2011-04-09 Thread Filip Gruszczyński
Changes by Filip Gruszczyński grusz...@gmail.com: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11807 ___ ___ Python-bugs-list

[issue9904] Cosmetic issues that may warrant a fix in symtable.h/c

2011-04-09 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: +1 for clarifying the comments. Adding comments for the apparently unused fields (as per my last tracker comment) would be good, too. -- ___ Python tracker rep...@bugs.python.org

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Fri, Apr 08, 2011 at 09:03:51PM +, Torsten Becker wrote: I was about to look into this over the weekend, but of course I don't want to steal your fun, Steffen. :) Toll, toll, toll!! Still cherry blossom, thanks to the

[issue11770] inspect.dir_static

2011-04-09 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Thanks for the patch Andreas. On a quick read through it looks good. I'll do a proper review shortly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11770

[issue11782] email.generator.Generator.flatten() fails

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Fri, Apr 08, 2011 at 11:39:36PM +, Terry J. Reedy wrote: 1. What is a minimal msgdata that gives the same error; post it. Stepping a bit.. Remove 'Content-Type' header field and this does not crash. Thus the real

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Ping! Note that whatever reason caused jesstess, to name a few, to drop that loop (and the continue), Charles-Francois posted a correctly working patch! I have no idea why such a severe bug could sleep in code which is executed for

[issue11700] mailbox.py proxy updates

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: .. So here is the rewritten .yeah-2.diff. .. I added more tests (i'm absolutely convinced that the tests i've found in test_mailbox.py really find all the cutting edges ;). On my box this is clean. Haha, now this is *very*

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file21585/filecmp-lru-cache-2.7.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11802 ___

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Why use an ordered dict instead of functools.lru_cache? -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11802 ___

[issue6040] bdist_msi does not deal with pre-release version

2011-04-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Well, this is the bug tracker for the stdlib. We have first to define clearly what the bug is, then find how to fix it in packaging (the name of distutils2 merged into 3.3), then decide whether to backport it to distutils. Half-tested recipes

[issue11805] package_data only allows one glob per-package

2011-04-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: What’s the syntax described in the docs? package_data = mypackage = templates/*.html static/css/*.css or package_data = mypackage = templates/*.html mypackage = static/css/*.css ? On a related subject, I think the new

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset f343ac51 by Victor Stinner in branch '3.1': Issue #11650: PyOS_StdioReadline() retries fgets() if it was interrupted http://hg.python.org/cpython/rev/f343ac51 New changeset fc2f251e660a by Victor Stinner in branch '3.2':

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7febd5ef7619 by Victor Stinner in branch '2.7': (Merge 3.1) Issue #11650: PyOS_StdioReadline() retries fgets() if it was http://hg.python.org/cpython/rev/7febd5ef7619 -- ___ Python

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Merci, STINNER Victor! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I emulated Mac OS X behaviour on Linux by hacking my_fgets(): do { p=NULL; errno = EINTR; }, only after the first call to fgets(). Without the patch, Python does exit immediatly. With the patch, Python doesn't exit. I applied

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread Davide Rizzo
Davide Rizzo sor...@gmail.com added the comment: Victor, I have neither OS X nor Linux available right now, but if I remember correctly the same happens on both systems when programs call input() (but not from the REPL). See also my previous message with python -c tests and my second remark.

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-09 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Because the lru_cache decorator doesn't provide any way to invalidate stale cache entries. Perhaps I should factor out the duplicated code into a separate class that can then also be exposed to users of the stdlib. But that would only apply

[issue11808] $MACOSX_DEPLOYMENT_TARGET mismatch ... during configure

2011-04-09 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: Hello Mac OS X gurus, if i else DEBUG='--with-pydebug' echo Using --with-pydebug fi ./configure --prefix=$HOME/usr/opt/$PREFIX $DEBUG make -j2 all i get this /usr/bin/gcc -c -fno-strict-aliasing -g -O0 -Wall

[issue11808] $MACOSX_DEPLOYMENT_TARGET mismatch ... during configure

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: P.S.: this does not happen if i use ./configure --prefix=$HOME/usr/opt/$PREFIX $DEBUG MACOSX_DEPLOYMENT_TARGET=10.6 -- ___ Python tracker rep...@bugs.python.org

[issue11808] $MACOSX_DEPLOYMENT_TARGET mismatch ... during configure

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: The problem goes away if i comment out all the Mercurial queries in Makefile: HGVERSION= #hg id -i $(srcdir) HGTAG= #hg id -t $(srcdir) HGBRANCH= #hg id -b $(srcdir) --

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-09 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I question whether this should be backported. Please discuss with the RM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11802

[issue11808] $MACOSX_DEPLOYMENT_TARGET mismatch ... during configure

2011-04-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks for the report. This is another case of the problem described in Issue9516, in particular msg130666 except now it is hg invoking another Python during the build process. The sysconfig part of the patch for Issue9516 applied to the build

[issue6040] bdist_msi does not deal with pre-release version

2011-04-09 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Feel free to copy this report for a clear user story - http://twistedmatrix.com/trac/ticket/5024 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6040

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-09 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I question whether this should be backported. Please discuss with the RM. Will do. Are you referring specifically to 2.7, or to 3.1 and 3.2 as well? -- ___ Python tracker

[issue11779] test_mmap timeout (30 min) on AMD64 Snow Leopard 3.x buildbot

2011-04-09 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: OS X filesystem does not support seeking ahead to create sparse files. The test is supposed to skip the LargeMmapTests on OS X and Windows with (line 679 of test_mmap.py): if sys.platform[:3] == 'win' or sys.platform == 'darwin':

[issue11707] Create C version of functools.cmp_to_key()

2011-04-09 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Georg, would you opine on whether this should to into 3.2.1? -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11707

[issue11779] test_mmap timeout (30 min) on AMD64 Snow Leopard 3.x buildbot

2011-04-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, buildbots run tests with -uall, so the largefile resource gets enabled. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11779

[issue11805] package_data only allows one glob per-package

2011-04-09 Thread Erik Bray
Erik Bray erik.m.b...@gmail.com added the comment: As far as I've been able to tell there is no proposed syntax in the docs specifically for package_data. The docs for the resources option seems to suggest separating globs with spaces, which would be fine by me (wouldn't allow paths that

[issue11757] test_subprocess.test_communicate_timeout_large_ouput failure on select(): negative timeout?

2011-04-09 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Oh, I didn't know. In this case, is my commit 3664fc29e867 correct? I think that it is, because without the patch, subprocess may call poll() with a negative timeout, and so it is no more a timeout at all. Yes, it looks correct.

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Sat, Apr 09, 2011 at 02:18:01PM +, STINNER Victor wrote: I noticied a strange behaviour: So forget all this girlie s...! Here is a real man's patch!! You'll notice mysterious function calls with a Py prefix - they're

[issue11719] test_msilib skip unexpected on non-Windows platforms

2011-04-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset d4730f14b6c0 by Ross Lagerwall in branch '3.1': Issue #11719: Fix message about unexpected test_msilib skip. http://hg.python.org/cpython/rev/d4730f14b6c0 New changeset 8b146103d29e by Ross Lagerwall in branch '2.7': Issue #11719:

[issue11719] test_msilib skip unexpected on non-Windows platforms

2011-04-09 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Thanks for the patch. -- assignee: - rosslagerwall nosy: +rosslagerwall resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 2.7, Python 3.1, Python 3.2

[issue11782] email.generator.Generator.flatten() fails

2011-04-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Sat, Apr 09, 2011 at 11:56:16AM +, Steffen Daode Nurpmeso wrote: I'll try to instrument the path a bit .. Sorry, no time today. All the stuff next week. Nice weekend. -- ___

[issue11809] Rietveld Code Review Tool can't handle well-known controls

2011-04-09 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: The file http://bugs.python.org/file21593/11650.termios.diff cannot be parsed, i guess it's due to ^D, ^Z, ^\ and ^C being embedded as ASCII control characters. Maybe this is a feature, though. Then someone should close this.

[issue11809] Rietveld Code Review Tool can't handle well-known controls

2011-04-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This should go to the meta-tracker, http://psf.upfronthosting.co.za/roundup/meta/. -- nosy: +georg.brandl resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11707] Create C version of functools.cmp_to_key()

2011-04-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I would have to say that this looks hardly a trivial speed patch, and chances are we cannot guarantee 100% behavior compatibility with the pure-Python version. If you disagree with these two points, then I'm okay with it going in. --

[issue11707] Create C version of functools.cmp_to_key()

2011-04-09 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I agree (and was going back and forth between +0 and -0). -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11707

[issue9670] Exceed Recursion Limit in Thread

2011-04-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset b0d2b696da19 by Ned Deily in branch '2.7': Issue #9670: Increase the default stack size for secondary threads on http://hg.python.org/cpython/rev/b0d2b696da19 New changeset 378b40d71175 by Ned Deily in branch '3.1': Issue #9670:

[issue11747] unified_diff function product incorrect range information

2011-04-09 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: [Uncle Timmy] Would have to look at the history to see who added it, and ask them. That would be me :-) At the time, the goals were to: 1) make an easy-to-use, readable output format for file comparisons, 2) use the

[issue9670] Exceed Recursion Limit in Thread

2011-04-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Applied in 2.7 (for release in 2.7.2), 3.1 (for 3.1.4). 3.2 (for 3.2.1), and default (for 3.3). -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker

[issue9670] Exceed Recursion Limit in Thread

2011-04-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Looks like the patch breaks the OpenIndiana buildbots: http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.2/builds/168 -- resolution: fixed - status: closed - open ___ Python tracker

[issue11747] unified_diff function product incorrect range information

2011-04-09 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11747 ___

[issue11747] unified_diff function product incorrect range information

2011-04-09 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Thanks, Raymond. That file says (in the -u section) If a range is empty, its beginning line number shall be the number of the line just before the range, or 0 if the empty range starts the file. The last clause says to me that gnu diff is

[issue11810] _socket fails to build on OpenIndiana

2011-04-09 Thread Emile Heitor
New submission from Emile Heitor i...@netbsd.org: This issue http://bugs.python.org/issue8852 seems to happen again since python 2.6.6. Same cause, same consequences. Patching Modules/socketmodule.h with the following fixes it: --- Modules/socketmodule.h.orig 2010-05-09 15:15:40.0

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-09 Thread Torsten Becker
Torsten Becker torsten.bec...@gmail.com added the comment: Have a nice weekend! Thank you for the wishes, I hope yours is going well, too! I added IDNA awareness to formataddr() and parseaddr(), updated the docs and wrote 2 tests for it. I wasn't sure if the IDNA awareness should be

[issue11811] ssl.get_server_certificate() does not work for IPv6 addresses

2011-04-09 Thread Paul Wouters
New submission from Paul Wouters p...@xelerance.com: ssl.get_server_certificate() does not work for IPv6 addresses: ssl.get_server_certificate( (2001:888:2003:1004:c2ff:eeff:fe00:133,443)) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib64/python2.7/ssl.py,

[issue11810] _socket fails to build on OpenIndiana

2011-04-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It has been fixed in 2.7.x, not 2.6.x (which is in security fixes-only mode). Can you try with 2.7.1? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11810

[issue11811] ssl.get_server_certificate() does not work for IPv6 addresses

2011-04-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Confirmed. In the meantime, you can connect manually using socket.create_connection(): import ssl, socket conn = socket.create_connection((2001:888:2003:1004:c2ff:eeff:fe00:133, 443)) sock = ssl.wrap_socket(conn)

[issue11810] _socket fails to build on OpenIndiana

2011-04-09 Thread Emile Heitor
Emile Heitor i...@netbsd.org added the comment: Actually, python 2.6 is the default version in pkgsrc (http://www.netbsd.org/docs/software/packages.html), and the reason why i'm pulling up this bug is that python 2.6 failure on SunOS brings down more than 3000 packages :/ Nevertheless, i'll

  1   2   >