Updated Cygwin Package (experimental): python-2.6.5-1

2010-05-01 Thread Jason Tishler
*** Attention Cygwin Python module package maintainers *** *** Cygwin is migrating from Python 2.5 to 2.6... *** New News: === I have released Cygwin Python 2.6.5-1 as experimental. The tarballs should be available on a Cygwin mirror near you shortly. The main purpose of this release

Wing IDE 3.2.6 released

2010-05-01 Thread Wingware
Hi, Wingware has released version 3.2.6 of Wing IDE, an integrated development environment designed specifically for the Python programming language. This release includes the following minor features and improvements: * Added Copy to Clipboard in Source Assistant * Added ability to clear

[ANN] RedNotebook 0.9.4

2010-05-01 Thread Jendrik Seipp
RedNotebook 0.9.4 has been released. You can get the tarball at http://sourceforge.net/projects/rednotebook/files/ For links to distribution packages head to the RedNotebook homepage http://rednotebook.sourceforge.net What is RedNotebook? RedNotebook is a **graphical

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread Simon
Hay I got a better idea. If you put two dots (..) on a line by itself it means execute the previous line again! On 1 May 2010 07:08, Patrick Maupin pmau...@gmail.com wrote: On Apr 30, 11:04 am, Jabapyth jabap...@gmail.com wrote: At least a few times a day I wish python had the following

Re: Ignoring XML Namespaces with cElementTree

2010-05-01 Thread Stefan Behnel
dmtr, 30.04.2010 23:59: I think that's your main mistake: don't remove them. Instead, use the fully qualified names when comparing. Yes. That's what I'm forced to do. Pre-calculating tags like tagChild = {%s}child % uri and using them instead of child. Exactly. Keeps you from introducing

Re:

2010-05-01 Thread Shashank Singh
Here is my quick take on it using re import re strings = [1 ALA Helix Sheet Helix Coil, 2 ALA Coil Coil Coil Sheet, 3 ALA Helix Sheet Coil Turn, 4 ALA Helix Sheet Helix Sheet] regex = re.compile(r (.+?\b)(?=.*\1)) for s in strings: moreThanOnce =

Re: External Hashing [was Re: matching strings in a large set of strings]

2010-05-01 Thread Jack
http://www.swizwatch.com/ All Cartier replica watches sold at Hotwristwatch.com are brand-new and high quality. Each Cartier Replica Watch produced is examined carefully by our quality test department and each watch is inspected again before being sent to our customer. It is our desire that you do

Online survey jobs data entry jobs

2010-05-01 Thread online jobs
http://teluguscope.com/job.html http://teluguscope.com/links/onlinedataentryjobs.html http://teluguscope.com/links/Copy%20Past%20jobs.html http://teluguscope.com/links/Work%20from%20Home.html http://teluguscope.com/links/Formfilling%20jobs.html http://teluguscope.com/links/Survey%20Jobs.html

Re: Ignoring XML Namespaces with cElementTree

2010-05-01 Thread Carl Banks
On Apr 27, 6:42 pm, dmtr dchich...@gmail.com wrote: Is there any way to configure cElementTree to ignore the XML root namespace?  Default cElementTree (Python 2.6.4) appears to add the XML root namespace URI to _every_ single tag.  I know that I can strip URIs manually, from every tag, but it

Re: Ignoring XML Namespaces with cElementTree

2010-05-01 Thread Carl Banks
On Apr 29, 10:12 pm, Stefan Behnel stefan...@behnel.de wrote: dmtr, 30.04.2010 04:57: I'm referring to xmlns/URI prefixes. Here's a code example:   from xml.etree.cElementTree import iterparse   from cStringIO import StringIO   xml = root xmlns=http://www.very_long_url.com;child//

Re: CGI python 3 write RAW BINARY

2010-05-01 Thread Dodo
Le 30/04/2010 17:52, Antoine Pitrou a écrit : Le Thu, 29 Apr 2010 23:37:32 +0200, Dodo a écrit : I don't get a thing. Now with the fix : All browsers shows a different thing, but not the image! http://ddclermont.homeip.net/misc/python/ If I save it to computer : * Windows image viewer

Re: Python daemonisation with python-daemon

2010-05-01 Thread Ben Finney
Thomas Courbon thcour...@gmail.com writes: I would like to turn my server script into a Linux/Unix daemon (launched at boot time by init, dunno if that matter) using the nice python-daemon package by Ben Finley et al I resemble that name :-) This package comes with a class DaemonRunner that

PyObject_SetAttrString - doesn't set instance attribute

2010-05-01 Thread Jason
I'm having a bit of trouble with C/Python bindings. Particularly, trying to set an instance variable from C when the object is initialised using PyObject_SetAttrString, but nothing seems to happen. The C initialisation code is: static void nautilus_python_object_instance_init

Re: Performance of list.index - how to speed up a silly algorithm?

2010-05-01 Thread Laszlo Nagy
Maybe this should be implemented in C. But I believe that the algorithm itself must be wrong (regardless of the language). I really think that I'm doing something wrong. Looks like my algorithm's processing time is not linear to the number of rows. Not even log(n)*n. There should be a more

Re: matching strings in a large set of strings

2010-05-01 Thread News123
Dennis Lee Bieber wrote: On Thu, 29 Apr 2010 11:38:28 +0200, Karin Lagesen karin.lage...@bio.uio.no declaimed the following in comp.lang.python: Hello. I have approx 83 million strings, all 14 characters long. I need to be able to take another string and find out whether this one is

Re: Use Regular Expressions to extract URL's

2010-05-01 Thread Walter Overby
A John Gruber post from November seems relevant. I have not tried his regex in any language. http://daringfireball.net/2009/11/liberal_regex_for_matching_urls Regards, Walter. -- http://mail.python.org/mailman/listinfo/python-list

Re: http://pypi.python.org/pypi

2010-05-01 Thread Martin v. Loewis
I have only access to the webpage form too upload my one file. pkginfo is ok, just want to at a single .py file instead of a complete site-package tar directory, because it is not a site-package, its more like a single exe file. Uploading individual .py files is not supported. If it's not a

Re: Ignoring XML Namespaces with cElementTree

2010-05-01 Thread Stefan Behnel
Carl Banks, 01.05.2010 12:33: On Apr 29, 10:12 pm, Stefan Behnel wrote: dmtr, 30.04.2010 04:57: I don't want these {http://www.very_long_url.com}; in front of my tags. They create performance disaster on large files I seriously doubt that they do. I don't know what kind of XML files you

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread Tim Chase
On 05/01/2010 12:08 AM, Patrick Maupin wrote: +=, -=, /=, *=, etc. conceptually (and, if lhs object supports in- place operator methods, actually) *modify* the lhs object. Your proposed .= syntax conceptually *replaces* the lhs object (actually, rebinds the lhs symbol to the new object). The

Re: matching strings in a large set of strings

2010-05-01 Thread Stefan Behnel
Duncan Booth, 30.04.2010 10:20: So more than 3GB just for the strings (and that's for Python 2.x on Python 3.x you'll need nearly 5GB). Running on a 64 bit version of Python should be fine, but for a 32 bit system a naive approach just isn't going to work. Option 1: use a trie. That should

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread Stefan Behnel
Tim Chase, 01.05.2010 14:13: On 05/01/2010 12:08 AM, Patrick Maupin wrote: +=, -=, /=, *=, etc. conceptually (and, if lhs object supports in- place operator methods, actually) *modify* the lhs object. Your proposed .= syntax conceptually *replaces* the lhs object (actually, rebinds the lhs

Re: Fast Efficient way to transfer an object to another list

2010-05-01 Thread Tim Chase
On 04/30/2010 10:35 PM, Steven D'Aprano wrote: If you know there is one, and only one, item with that stock code: def transfer_stock(stock_code, old_list, new_list): Transfer a stock from one list to another i = old_list.index(stock_code) # search new_list.append(old_list[i])

Help needed in downloading Brown corpus

2010-05-01 Thread Adil Kaleem
Hi all I'm a masters student in NLP. I needed to download the Brown corpus. I'm unable to download from nltk.org with the python CLI. My network connection is behind a proxy server so it's creating a problem. Since I don't know a bit of python, so unable to figure a way out. Can someone help me in

Re: Help needed in downloading Brown corpus

2010-05-01 Thread Shashank Singh
try this: run this in your terminal before you hit nltk.download(). Don't forget to set username, password and proxy info for your own system.(in PROXY_INFO) import urllib2 PROXY_INFO = { 'user' : username, 'pass' : password, 'host' : proxy_server, 'port' : proxy_port } proxy_support =

Windows7 run python script / sub process with elevated privileges

2010-05-01 Thread News123
Hi, I have a small python script, which has been started as normal non privileged user. At a later point in time it would like to start another python script with elevated privileges. How can I write my code such, that I will get the privilege elevation prompt and I can start a sub process /

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread Alf P. Steinbach
On 01.05.2010 14:13, * Tim Chase: On 05/01/2010 12:08 AM, Patrick Maupin wrote: +=, -=, /=, *=, etc. conceptually (and, if lhs object supports in- place operator methods, actually) *modify* the lhs object. Your proposed .= syntax conceptually *replaces* the lhs object (actually, rebinds the

Re: Fast Efficient way to transfer an object to another list

2010-05-01 Thread MRAB
Tim Chase wrote: On 04/30/2010 10:35 PM, Steven D'Aprano wrote: If you know there is one, and only one, item with that stock code: def transfer_stock(stock_code, old_list, new_list): Transfer a stock from one list to another i = old_list.index(stock_code) # search

Re: Fast Efficient way to transfer an object to another list

2010-05-01 Thread Francesco Bochicchio
On 1 Mag, 05:35, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: def transfer_stock(stock_code, old_list, new_list):     Transfer a stock from one list to another     while True:  # loop forever         try:             i = old_list.index(stock_code)         except

Re: Windows7 run python script / sub process with elevated privileges

2010-05-01 Thread News123
I Found a first solution, though not very satisfying: News123 wrote: Hi, I have a small python script, which has been started as normal non privileged user. At a later point in time it would like to start another python script with elevated privileges. How can I write my code such,

Re: Fast Efficient way to transfer an object to another list

2010-05-01 Thread Daniel Stutzbach
On Fri, Apr 30, 2010 at 9:16 PM, Jimbo nill...@yahoo.com wrote: Hello I have a relatively simple thing to do; move an object from one to list into another. But I think my solution maybe inefficient slow. Removing an item from a list is O(n) on average, so it's going to be a bit slow any way

recommended way to insert data into a one to many relationship using python

2010-05-01 Thread Wolfgang Meiners
Hi, one to many relationships are fairly common, i think. So there should be a recommended way to insert data into such a relation using python. Given the following programm, what is the recommended way to insert the list of NewEmployees to the database?

Re: Help needed in downloading Brown corpus

2010-05-01 Thread Peter Pearson
On Sat, 1 May 2010 06:28:33 -0700 (PDT), Adil Kaleem wrote: Hi all I'm a masters student in NLP. I needed to download the Brown corpus. I'm unable to download from nltk.org with the python CLI. My network connection is behind a proxy server so it's creating a problem. Since I don't know a bit

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread Lie Ryan
On 05/01/10 11:16, Steven D'Aprano wrote: On Fri, 30 Apr 2010 12:34:34 -0400, D'Arcy J.M. Cain wrote: In practice though, I think that's a difference that makes no difference. It walks like an operator, it swims like an operator, and it quacks like an operator. Nope it's not. A

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread Patrick Maupin
On May 1, 7:13 am, Tim Chase t...@thechases.com wrote: On 05/01/2010 12:08 AM, Patrick Maupin wrote: +=, -=, /=, *=, etc.  conceptually (and, if lhs object supports in- place operator methods, actually) *modify* the lhs object. Your proposed .= syntax conceptually *replaces* the lhs

Re: recommended way to insert data into a one to many relationship using python

2010-05-01 Thread Peter Otten
Wolfgang Meiners wrote: Hi, one to many relationships are fairly common, i think. So there should be a recommended way to insert data into such a relation using python. Given the following programm, what is the recommended way to insert the list of NewEmployees to the database?

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread D'Arcy J.M. Cain
On Sun, 02 May 2010 05:08:53 +1000 Lie Ryan lie.1...@gmail.com wrote: On 05/01/10 11:16, Steven D'Aprano wrote: On Fri, 30 Apr 2010 12:34:34 -0400, D'Arcy J.M. Cain wrote: In practice though, I think that's a difference that makes no difference. It walks like an operator, it swims like

jpeg package

2010-05-01 Thread Paul Johnston
Hi, I've used the jpeg library on PyPI in the past and it's been great: http://pypi.python.org/pypi/jpeg/0.1.4 However, the library home page is now unaccessible. I can't even find the library on archive.org. Any idea how I can get it? http://www.emilas.com/jpeg/ Thanks, Paul --

Re: matching strings in a large set of strings

2010-05-01 Thread News123
Dennis Lee Bieber wrote: On Sat, 01 May 2010 13:48:02 +0200, News123 news1...@free.fr declaimed the following in gmane.comp.python.general: Dennis Lee Bieber wrote: That lets you do a binary search on the file. Much faster than a linear search (linear search will average out to 41.5M

Re: [capi-sig] SWIG + expy

2010-05-01 Thread Jack Jansen
On 27-Apr-2010, at 08:30 , Yingjie Lan wrote: Hi, Is it possible to use SWIG to parse C/C++, and provide an interface for me to generate some code? I thought it might be good to have SWIG help generate expy (see http://expy.sourceforge.net) files, then generate the python extension

Re: jpeg package

2010-05-01 Thread Vincent Davis
This gets you the cached page linkhttp://webcache.googleusercontent.com/search?q=cache:Tjn4WG8auGIJ:www.emilas.com/jpeg/+http://www.emilas.com/jpeg/cd=2hl=enct=clnkgl=usclient=firefox-a I also fond some of the source pages in googles cache *Vincent Davis 720-301-3003 *

Re: Need direction on mass find/replacement in HTML files

2010-05-01 Thread Novocastrian_Nomad
One single line regex solution would be: re.sub(r'http\://www.mysite.org/\?page=([^]+)',r'pages/\1.htm',html) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread Steven D'Aprano
On Sun, 02 May 2010 05:08:53 +1000, Lie Ryan wrote: On 05/01/10 11:16, Steven D'Aprano wrote: On Fri, 30 Apr 2010 12:34:34 -0400, D'Arcy J.M. Cain wrote: In practice though, I think that's a difference that makes no difference. It walks like an operator, it swims like an operator, and it

Re: Fast Efficient way to transfer an object to another list

2010-05-01 Thread Steven D'Aprano
On Sat, 01 May 2010 08:11:45 -0700, Francesco Bochicchio wrote: On 1 Mag, 05:35, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: def transfer_stock(stock_code, old_list, new_list):     Transfer a stock from one list to another while True:  #     loop forever         try:

Re: Help needed in downloading Brown corpus

2010-05-01 Thread Steven D'Aprano
On Sat, 01 May 2010 06:28:33 -0700, Adil Kaleem wrote: Hi all I'm a masters student in NLP. I needed to download the Brown corpus. I'm unable to download from nltk.org with the python CLI. My network connection is behind a proxy server so it's creating a problem. Since I don't know a bit of

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread Steven D'Aprano
On Sat, 01 May 2010 07:13:42 -0500, Tim Chase wrote: On 05/01/2010 12:08 AM, Patrick Maupin wrote: +=, -=, /=, *=, etc. conceptually (and, if lhs object supports in- place operator methods, actually) *modify* the lhs object. Your proposed .= syntax conceptually *replaces* the lhs object

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread Chris Rebert
On Sat, May 1, 2010 at 6:32 PM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Sat, 01 May 2010 07:13:42 -0500, Tim Chase wrote: This doesn't preclude you from implementing a self-mutating += style __add__ method and returning self, but it's usually a bad idea Obviously the

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread Steven D'Aprano
On Sat, 01 May 2010 19:03:04 -0700, Chris Rebert wrote: On Sat, May 1, 2010 at 6:32 PM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Sat, 01 May 2010 07:13:42 -0500, Tim Chase wrote: This doesn't preclude you from implementing a self-mutating += style __add__ method and

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread Patrick Maupin
On May 1, 9:03 pm, Chris Rebert c...@rebertia.com wrote: In both cases, __iOP__ operator methods are being used, not vanilla __OP__ methods, so neither of your examples are relevant to Mr. Chase's point. Well, Tim's main assertion was: The += family of operators really do rebind the symbol,

Re: Ignoring XML Namespaces with cElementTree

2010-05-01 Thread dmtr
Unless you have multiple namespaces or are working with defined schema or something, it's useless boilerplate. It'd be a nice feature if ElementTree could let users optionally ignore a namespace, unfortunately it doesn't have it. Yep. Exactly my point. Here's a link to the patch addressing

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread Aahz
In article 4bdcd631$0$27782$c3e8...@news.astraweb.com, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Sat, 01 May 2010 07:13:42 -0500, Tim Chase wrote: The += family of operators really do rebind the symbol, not modify the object. They potentially do both, depending on the

Re: [capi-sig] SWIG + expy

2010-05-01 Thread Stefan Behnel
Jack Jansen, 01.05.2010 23:40: I would be very interested in a universal intermediate format for all the interface generators. I'm still using a version of Guido's old bgen, now grudgingly extended to handle C++ and do bidirectional bridging between Python and C++, and while I love and cherish

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread Alf P. Steinbach
On 02.05.2010 06:06, * Aahz: In article4bdcd631$0$27782$c3e8...@news.astraweb.com, Steven D'Apranost...@remove-this-cybersource.com.au wrote: On Sat, 01 May 2010 07:13:42 -0500, Tim Chase wrote: The += family of operators really do rebind the symbol, not modify the object. They potentially

Re: Python dot-equals (syntax proposal)

2010-05-01 Thread Chris Rebert
On Sat, May 1, 2010 at 10:05 PM, Alf P. Steinbach al...@start.no wrote: On 02.05.2010 06:06, * Aahz: In article4bdcd631$0$27782$c3e8...@news.astraweb.com, Steven D'Apranost...@remove-this-cybersource.com.au  wrote: On Sat, 01 May 2010 07:13:42 -0500, Tim Chase wrote: The += family of

[issue8214] Add exception logging function to syslog module

2010-05-01 Thread Sean Reifschneider
Sean Reifschneider j...@tummy.com added the comment: I have completed the exception handling code as prototyped in msg101687. Please review. -- assignee: - jafo keywords: +needs review stage: needs patch - patch review Added file: http://bugs.python.org/file17159/logexception2.patch

[issue8581] Logging handlers do not handle double-closing very well

2010-05-01 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: This part of the code has been changed in trunk (to use weak references), and the error does not occur in Python 2.7/3.2. I'm not sure I fully agree with your assertion that it's not a programmer error to close a handler twice - this

[issue1533] Bug in range() function for large values

2010-05-01 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Alexander: range *does* still accept such arguments (in 2.7); just not floats: from decimal import Decimal range(Decimal(20), Decimal(20)) [] range(Decimal('1e100'), Decimal('1e100')) Traceback (most recent call last): File stdin, line

[issue8581] Logging handlers do not handle double-closing very well

2010-05-01 Thread Santoso Wijaya
Santoso Wijaya santa@me.com added the comment: File-like objects handle multiple close() gracefully, silently making the second and subsequent close() calls to an already closed I/O object do nothing. Why can't the same expectation be applied to logging handlers? -- status:

[issue7724] setup.py ignores SDK root on OSX

2010-05-01 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've cleaned up the patch and made it clearer that platforms other than OSX aren't affected by rewriting code like this: f = os.path.join(d, db.h) if sys.platform == darwin and is_macosx_sdk_path(d): f = os.path.join(sysroot, d[1:],

[issue8582] urllib.urlretrieve fails with ValueError: Invalid format string

2010-05-01 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in trunk: r80675 release26-maint: r80676 py3K: r80677 release31-maint:r80678 -- resolution: - fixed stage: unit test needed - committed/rejected status: open - closed ___ Python tracker

[issue8581] Logging handlers do not handle double-closing very well

2010-05-01 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: - Original Message From: Santoso Wijaya rep...@bugs.python.org File-like objects handle multiple close() gracefully, silently making the second and subsequent close() calls to an already closed I/O object do nothing. Why

[issue4388] test_cmd_line fails on MacOS X

2010-05-01 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I still see this failure on Python 3 trunk with Mac OS X 10.6. -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4388

[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2010-05-01 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: Here's a patch for test_logging. It needed a minor tweak to logging.config - but I can't see anywhere that this affects the documentation, so I didn't do a doc patch. I hope that's OK. I'll have a look at test_socket but that looks a bit too

[issue8586] test_imp.py test failures on Py3K Mac OS X

2010-05-01 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: I get the following failure running test_imp on py3k, Mac OS X 10.6.3. == ERROR: test_package___file__ (__main__.PEP3147Tests)

[issue8587] test_import.py test failures on Py3K Mac OS X

2010-05-01 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: I get the following failures with test_import on Mac OS X 10.6.3: == ERROR: test_import (test.test_import.ImportTests)

[issue8587] test_import.py test failures on Py3K Mac OS X

2010-05-01 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: This is likely related to issue 8586 - the actual failure is very similar (a bad path in support.py). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8587

[issue8586] test_imp.py test failures on Py3K Mac OS X

2010-05-01 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I see similar failures (failing to unlink weird paths from support.py) in: test_imp.py, test_import.py, test_pydoc.py, test_runpy.py, -- ___ Python tracker rep...@bugs.python.org

[issue8586] test_imp.py test failures on Py3K Mac OS X

2010-05-01 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: So I'm assuming issue 8587 (same failure in test_import.py) is a duplicate of this. I'll close 8587. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8586

[issue8587] test_import.py test failures on Py3K Mac OS X

2010-05-01 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Assuming this is actually the same problem as issue 8586. -- resolution: - duplicate stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8588] test_urllib2.py test failures on Py3K Mac OS X

2010-05-01 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: Failures on py3k, Mac OS X 10.6.3. == ERROR: test_proxy_https (__main__.HandlerTests) -- Traceback

[issue8588] test_urllib2.py test failures on Py3K Mac OS X

2010-05-01 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8588 ___

[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-05-01 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: If you run test_warnings.py under an ascii terminal (at least on Mac OS X) then test_warnings.CEnvironmentVariableTests.test_nonascii fails. Perhaps the test should be skipped?

[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-05-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - brett.cannon components: +Tests nosy: +brett.cannon, haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8589 ___

[issue8586] test_imp.py test failures on Py3K Mac OS X

2010-05-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - barry components: +Tests nosy: +barry stage: unit test needed - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8586 ___

[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2010-05-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Vinay, are you ok with the proposed patch? -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8576 ___

[issue8590] test_httpservers.CGIHTTPServerTestCase failure on 3.1-maint Mac OS X

2010-05-01 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: A failure in test_httpservers.py on 31-maint (not failing in py3k) on Mac OS X 10.6.3: test_post (__main__.CGIHTTPServerTestCase) ... Traceback (most recent call last): File

[issue8588] test_urllib2.py test failures on Py3K Mac OS X

2010-05-01 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Same failure on 31-maint. -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8588 ___

[issue4388] test_cmd_line fails on MacOS X

2010-05-01 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: This passes for me in Mac OS X Terminal (a UTF8 terminal) but fails in iTerm (an ascii terminal) on both 31-maint and py3k. -- ___ Python tracker rep...@bugs.python.org

[issue8581] Logging handlers do not handle double-closing very well

2010-05-01 Thread Jason Baker
Jason Baker amnorv...@gmail.com added the comment: Vinay, I don't necessarily disagree with you. However, this appears to be a pretty trivial change. If there is a 2.6.6, I think this should go in it. -- ___ Python tracker rep...@bugs.python.org

[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2010-05-01 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Could you special case the test_socket test by checking for the error that Windows sometimes throws and retrying (in a loop for say a second)? Not ideal, but probably better than adding a sleep or throwing away the test :) --

[issue8586] test_imp.py test failures on Py3K Mac OS X

2010-05-01 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: barry - nosy: +ezio.melotti, flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8586 ___

[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-05-01 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Victor has proposed a patch for the traceback problem for regrtest, I think. I haven't looked at it, but I wonder if there is something that can instead be done to make unittest work in cases like this when run in an ascii terminal.

[issue8586] test_imp.py test failures on Py3K Mac OS X

2010-05-01 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8586 ___ ___

[issue8567] decimal module doesn't respect precedence rules for exceptional conditions

2010-05-01 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Here's a quick fix for Decimal._fix, that just makes sure that it raises exceptions in the appropriate order. I'll also try to apply the check_precedence methodology included in this patch to every single testcase. I don't think it's

[issue8567] decimal module doesn't respect precedence rules for exceptional conditions

2010-05-01 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: Added file: http://bugs.python.org/file17163/issue8567.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8567 ___

[issue8567] decimal module doesn't respect precedence rules for exceptional conditions

2010-05-01 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: Removed file: http://bugs.python.org/file17162/issue8567.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8567 ___

[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-05-01 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: What does issue 8522 have to do with it - did you mean a different issue? In unittest it could catch the UnicodeEncodeError and write the ascii repr instead. -- ___ Python tracker

[issue1533] Bug in range() function for large values

2010-05-01 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: On Sat, May 1, 2010 at 3:50 AM, Mark Dickinson rep...@bugs.python.org wrote: Mark Dickinson dicki...@gmail.com added the comment: Alexander: range *does* still accept such arguments (in 2.7);  just not floats: from

[issue1533] Bug in range() function for large values

2010-05-01 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Decimal is behaving in exactly the same way as MyInt, isn't it? What do you get for range(MyInt(20), MyInt(20))? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1533

[issue8567] decimal module doesn't respect precedence rules for exceptional conditions

2010-05-01 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Better patch, that checks exception precedence for every test case when EXTENDEDERRORTEST is defined. With this patch, I get 11 test failures in test_decimal (down from 50 test failures before the Decimal._fix fix). Now we just have to

[issue8514] Create fsencode() and fsdecode() functions in os.path

2010-05-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: In posixmodule.c, the following snippet doesn't make sense anymore: if (k == NULL) { PyErr_Clear(); continue; } If memory allocation of the bytes object fails, we

[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2010-05-01 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: Might work - but the only ones that were actually failing for me were test_multiprocessing and test_smtplib. So I'm not quite sure where/when the error would be raised on the remaining 2 (socket httplib). But I'll keep it in mind. To be

[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2010-05-01 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@twistedmatrix.com added the comment: One open question regarding interaction with threading. sigprocmask's behavior in a multithreaded program is unspecified. pthread_sigmask should be used instead. I could either expose both of these and let the caller choose,

[issue8591] update mkpkg to latest coding standards

2010-05-01 Thread Dan Buch
New submission from Dan Buch daniel.b...@gmail.com: On first glance, `distutils2.mkpkg` does not reflect the latest and greatest in Python coding standards. I'd like to take a stab at PEP-(7|8)'ing the whole thing, although I know there are other issues open to add features to the module, so

[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2010-05-01 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone exar...@twistedmatrix.com: -- nosy: +gps ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8407 ___ ___

[issue8591] update mkpkg to latest coding standards

2010-05-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Pepeightification is ok for things like whitespace that do not break compatibility (don’t waste time doing it manually though, we have automated tools that can be used to reindent the whole of Distutils2). However, renaming classes and

[issue1533] Bug in range() function for large values

2010-05-01 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: On Sat, May 1, 2010 at 10:59 AM, Mark Dickinson rep...@bugs.python.org wrote: Mark Dickinson dicki...@gmail.com added the comment: Decimal is behaving in exactly the same way as MyInt, isn't it? What do you get for

[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2010-05-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gregory.p.smith -gps ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8407 ___ ___

[issue8572] httplib getheader() throws error instead of default

2010-05-01 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: It seems that 3.x behavior is correct. I am quoting a relevant section from rfc 2616. It MUST be possible to combine the multiple header fields into one field-name: field-value pair, without changing the semantics of the message, by

[issue8572] httplib getheader() throws error instead of default

2010-05-01 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: Removed file: http://bugs.python.org/file17165/issue8572.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8572 ___

[issue8572] httplib getheader() throws error instead of default

2010-05-01 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: previous patch had a typo and a mistake. uploading the correct one. -- Added file: http://bugs.python.org/file17166/issue8572.diff ___ Python tracker rep...@bugs.python.org

  1   2   >