Writing tests for the Python bug tracker

2010-03-20 Thread Steven D'Aprano
I have two reported bugs in the bug tracker waiting on tests: http://bugs.python.org/issue8128 http://bugs.python.org/issue4037 Are there any guidelines for writing tests for the standard library and language? I've googled, but found nothing useful: lots of guidelines for writing tests, and of

Re: Writing tests for the Python bug tracker

2010-03-20 Thread Steven D'Aprano
On Sat, 20 Mar 2010 06:23:14 +, Steven D'Aprano wrote: Are there any guidelines for writing tests for the standard library and language? I've googled, but found nothing useful: lots of guidelines for writing tests, and of course I've read PEP 8, but I'm not sure if there are conventions

Re: Writing tests for the Python bug tracker

2010-03-20 Thread exarkun
On 06:52 am, st...@remove-this-cybersource.com.au wrote: but when I try running the test, I get an error: $ python test_unicode_interpolation.py Options: {'delimiter': None} str of options.delimiter = None repr of options.delimiter = None len of options.delimiter Traceback (most recent call

Re: to pass self or not to pass self

2010-03-20 Thread Gregory Ewing
Patrick Maupin wrote: Actually, I think I overstated my case -- there is some special logic for len and built-in objects, I think. Yes, len() invokes the C-level sq_len slot of the type object, which for built-in types points directly to the C function implementing the len() operation for

Re: logging: local functions == loss of lineno

2010-03-20 Thread Peter Otten
Jean-Michel Pichavant wrote: You are still accessing the private attribute of the module logging. Just reading it is a significantly more conservative approach than setting it to an object with an unusual notion of equality ;) My previous remark was misleading, in fact there's nothing you

google token

2010-03-20 Thread Thufir
I'd like to acquire a token, as below, but from Java: def get_token(self,force=False) : '''Return a tokey. A token is a special string that is used like a session identification, but that expire rather quickly.''' if ( force or (self._token == None) ) : feedurl =

Re: C-API PyObject_Call

2010-03-20 Thread Stefan Behnel
moerchendiser2k3, 20.03.2010 03:01: Yes, the user is able to set a file which contains a function that does what the user wants. But in a case, I expect a special return value of this function. Ah, ok, that was the important piece of information that you omitted from your previous posts. So

Re: Writing tests for the Python bug tracker

2010-03-20 Thread Steven D'Aprano
On Sat, 20 Mar 2010 07:07:58 +, exarkun wrote: What am I doing wrong? Take a careful look at the stack being reported. Then, think of a better name than test for your file. Doh! *face-palm* I was shadowing the test package with a long forgotten test module. -- Steven --

Re: google token

2010-03-20 Thread Steven D'Aprano
On Sat, 20 Mar 2010 09:17:14 +, Thufir wrote: I'd like to acquire a token, as below, but from Java: Perhaps you should be asking a Java discussion group? This group is for discussing Python. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing tests for the Python bug tracker

2010-03-20 Thread Mark Dickinson
On Mar 20, 6:23 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: I have two reported bugs in the bug tracker waiting on tests: http://bugs.python.org/issue8128http://bugs.python.org/issue4037 Are there any guidelines for writing tests for the standard library and language?

Re: Writing tests for the Python bug tracker

2010-03-20 Thread Mark Dickinson
On Mar 20, 6:52 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: I've found this: http://docs.python.org/library/test.html and I've written a small test: $ cat test_unicode_interpolation.py # For testinghttp://bugs.python.org/issue8128 import test.test_support import

Precedence of py, pyd, so, egg, and folder modules/packages when importing

2010-03-20 Thread Pascal Chambon
Hello, I've run into a slight issue when turning my package hierarchy into a parallel hierarchy of compiled cython extensions. Fue to the compilation process, pure python and C modules must have the basename, and they're located in the same folders. Is there any way for me to ensure that,

accessing variable of the __main__ module

2010-03-20 Thread News123
Hi, I wondered about the best way, that a module's function could determine the existance and value of variables in the __main__ module. What I came up with is: ### main.py ## import mod A = 4 if __name__ == __main__: mod.f() ### mod.py ## def f(): try:

Re: (updated) Choosing a collection of common modules/packages for a general purpose reusable PY2EXE runtime

2010-03-20 Thread python
Aahz, We've decided to build a re-usable *general purpose* PY2EXE runtime that can be shared by a number of scripts vs. distributing a monolithic EXE for each of our scripts. It's not clear what the purpose of this is. You can build several scripts against the same py2exe backend. Yes you

Re: accessing variable of the __main__ module

2010-03-20 Thread Alf P. Steinbach
* News123: I wondered about the best way, that a module's function could determine the existance and value of variables in the __main__ module. What I came up with is: ### main.py ## import mod A = 4 if __name__ == __main__: mod.f() ### mod.py ## def f():

Re: Best Way to extract Numbers from String

2010-03-20 Thread Luis M . González
On Mar 20, 12:04 am, Jimbo nill...@yahoo.com wrote: Hello I am trying to grab some numbers from a string containing HTML text. Can you suggest any good functions that I could use to do this? What would be the easiest way to extract the following numbers from this string... My String has

Re: accessing variable of the __main__ module

2010-03-20 Thread Steven D'Aprano
On Sat, 20 Mar 2010 13:16:08 +0100, News123 wrote: Hi, I wondered about the best way, that a module's function could determine the existance and value of variables in the __main__ module. What I came up with is: ### main.py ## import mod A = 4 if __name__ ==

Re: accessing variable of the __main__ module

2010-03-20 Thread News123
Hi Steven, Steven D'Aprano wrote: On Sat, 20 Mar 2010 13:16:08 +0100, News123 wrote: Hi, I wondered about the best way, that a module's function could determine the existance and value of variables in the __main__ module. What I came up with is: ### main.py ##

why is there now execption for windows? trying to listen twice to the same port

2010-03-20 Thread News123
I'm having a small multiprocessing manager: # ## import socket,sys from multiprocessing.managers import BaseManager mngr = BaseManager(address=('127.0.0.1',8089),authkey='verysecret') try: srvr = mngr.get_server() except socket.error as e: print probably address

How User-defined method objects are created?

2010-03-20 Thread Joaquin Abian
I'm trying to understand the description of method object creation in the python 2.6 language reference (3.2. The standard type hierarchy) with little success. The points knocking me are: User-defined method objects may be created when getting an attribute of a class (perhaps via an instance of

Re: accessing variable of the __main__ module

2010-03-20 Thread Steven D'Aprano
On Sat, 20 Mar 2010 14:32:03 +0100, News123 wrote: You try to import from __main__, but the other module is called main. __main__ is a special name, which Python understands as meaning this module that you are in now. For example: My choice of names was perhaps not very smart. I could have

Re: why is there now execption for windows? trying to listen twice to the same port

2010-03-20 Thread Irmen de Jong
On 20-3-2010 14:38, News123 wrote: I'm having a small multiprocessing manager: # ## import socket,sys from multiprocessing.managers import BaseManager mngr = BaseManager(address=('127.0.0.1',8089),authkey='verysecret') try: srvr = mngr.get_server() except

Re: accessing variable of the __main__ module

2010-03-20 Thread Dave Angel
News123 wrote: Steven D'Aprano wrote: snip Now, in your case you escape that trap, because the import is inside a function, so it doesn't occur until you call the function. But it is still considered poor practice: it is best to avoid circular imports unless you really, really need them.

Re: why is there now execption for windows? trying to listen twice to the same port

2010-03-20 Thread News123
Hi Irmen, Irmen de Jong wrote: On 20-3-2010 14:38, News123 wrote: I'm having a small multiprocessing manager: # ## import socket,sys from multiprocessing.managers import BaseManager mngr = BaseManager(address=('127.0.0.1',8089),authkey='verysecret') try:

Re: How User-defined method objects are created?

2010-03-20 Thread Duncan Booth
Joaquin Abian gatoyga...@gmail.com wrote: User-defined method objects may be created when getting an attribute of a class (perhaps via an instance of that class), if that attribute is a user-defined function object, an unbound user-defined method object, or a class method object. When the

Re: why is there now execption for windows? trying to listen twice to the same port

2010-03-20 Thread Terry Reedy
On 3/20/2010 10:52 AM, News123 wrote: Hi Irmen, Irmen de Jong wrote: On 20-3-2010 14:38, News123 wrote: I'm having a small multiprocessing manager: # ## import socket,sys from multiprocessing.managers import BaseManager mngr =

Re: How User-defined method objects are created?

2010-03-20 Thread Terry Reedy
On 3/20/2010 9:54 AM, Joaquin Abian wrote: I'm trying to understand the description of method object creation in the python 2.6 language reference (3.2. The standard type hierarchy) with little success. The points knocking me are: User-defined method objects may be created when getting an

Ubuntu install problems

2010-03-20 Thread waugust
I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed. Whenever I apt-get install anything It ends with a series of python (dependency?) errors. Anybody got any idea? aptget libgcj-common Reading package lists... Done Building dependency tree Reading state information... Done

Re: why is there now execption for windows? trying to listen twice to the same port

2010-03-20 Thread News123
Terry Reedy wrote: On 3/20/2010 10:52 AM, News123 wrote: Hi Irmen, Irmen de Jong wrote: On 20-3-2010 14:38, News123 wrote: I'm having a small multiprocessing manager: # ## import socket,sys from multiprocessing.managers import BaseManager mngr =

Re: Ubuntu install problems

2010-03-20 Thread Benjamin Kaplan
On Sat, Mar 20, 2010 at 1:00 PM, waugust waugustyn...@gmail.com wrote: I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed. Whenever I apt-get install anything It ends with a series of python (dependency?) errors. Anybody got any idea? aptget libgcj-common Reading package

Re: Reverse engineering CRC?

2010-03-20 Thread Aahz
In article 4b9e0c1f.9020...@canterbury.ac.nz, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: It turned out to be a very standard CRC algorithm, complicated by the presence of a few extra bytes of data being checked that didn't appear explicitly in the file anywhere. In the process I developed

Re: Ubuntu install problems

2010-03-20 Thread MRAB
waugust wrote: I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed. Whenever I apt-get install anything It ends with a series of python (dependency?) errors. Anybody got any idea? aptget libgcj-common Reading package lists... Done Building dependency tree Reading state

Re: Ubuntu install problems

2010-03-20 Thread Steven D'Aprano
On Sat, 20 Mar 2010 10:00:47 -0700, waugust wrote: I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed. Whenever I apt-get install anything It ends with a series of python (dependency?) errors. Anybody got any idea? It looks like apt-get is supposed to be using 2.6 or 2.5, but

Re: Ubuntu install problems

2010-03-20 Thread waugust
On Mar 20, 10:25 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 20 Mar 2010 10:00:47 -0700, waugust wrote: I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed. Whenever I apt-get install anything It ends with a series of python (dependency?) errors.  

JOBS IN FINLAND JOBS FINLAND FINLAND JOBS ACCOUNTS JOBS IN FINLAND FINANCE JOBS IN FINLAND AGRI JPBS IN FINLAND MEDICAL JOBS IN FINLAND ON JOBS http://jobs-in-finland.blogspot.c

2010-03-20 Thread saima81
JOBS IN FINLAND JOBS FINLAND FINLAND JOBS ACCOUNTS JOBS IN FINLAND FINANCE JOBS IN FINLAND AGRI JPBS IN FINLAND MEDICAL JOBS IN FINLAND ON JOBS http://jobs-in-finland.blogspot.com/ JOBS IN FINLAND JOBS FINLAND FINLAND JOBS ACCOUNTS JOBS IN FINLAND FINANCE JOBS IN FINLAND AGRI JPBS IN

Re: EURO GIRLS MISS EUROPE MISS FRENCH FRENCH PRETTY GIRLS SEXY FRENCH GIRLS on www.sexyandpretty-girls.blogspot.com SEXY RUSSIAN GIRLS SEXY GREEK GIRLS SEXY DUTCH GIRLS SEXY UK G

2010-03-20 Thread alex goretoy
what do i do to remove this crap? how do i moderate it? why not gpg sign messages on python-list that way you know your authorized to post and spammers will have one more vector to deal with, there in stopping the not so leet -Alex Goretoy -- http://mail.python.org/mailman/listinfo/python-list

Re: EURO GIRLS MISS EUROPE MISS FRENCH FRENCH PRETTY GIRLS SEXY FRENCH GIRLS on www.sexyandpretty-girls.blogspot.com SEXY RUSSIAN GIRLS SEXY GREEK GIRLS SEXY DUTCH GIRLS SEXY UK G

2010-03-20 Thread Brian J Mingus
Moderating this stuff requires moderating all messages. It would take a team of volunteers. On Sat, Mar 20, 2010 at 12:55 PM, alex goretoy agore...@gmail.com wrote: what do i do to remove this crap? how do i moderate it? why not gpg sign messages on python-list that way you know your

Re: EURO GIRLS MISS EUROPE

2010-03-20 Thread D'Arcy J.M. Cain
On Sat, 20 Mar 2010 12:55:26 -0600 alex goretoy agore...@gmail.com wrote: what do i do to remove this crap? how do i moderate it? First, please remove spam URLs when following up. You left them in the subject. Maybe it's time to stop gatewaying the newsgroup to the mailing list. As a test I

Re: EURO GIRLS MISS EUROPE

2010-03-20 Thread alex goretoy
On Sat, Mar 20, 2010 at 1:37 PM, D'Arcy J.M. Cain da...@druid.net wrote: aybe it's time to stop gatewaying the newsgroup to the mailing list. As a test I have moved all Python posts from gmail.com with a Newsgroup header into ok thx, I'm learning as I go along -Alex Goretoy --

Re: How User-defined method objects are created?

2010-03-20 Thread Joaquin Abian
On Mar 20, 5:39 pm, Terry Reedy tjre...@udel.edu wrote: On 3/20/2010 9:54 AM, Joaquin Abian wrote: I'm trying to understand the description of method object creation in the python 2.6 language reference (3.2. The standard type hierarchy) with little success. The points knocking me are:

Re: How User-defined method objects are created?

2010-03-20 Thread Joaquin Abian
On Mar 20, 5:24 pm, Duncan Booth duncan.bo...@invalid.invalid wrote: Joaquin Abian gatoyga...@gmail.com wrote: User-defined method objects may be created when getting an attribute of a class (perhaps via an instance of that class), if that attribute is a user-defined function object, an

How to automate accessor definition?

2010-03-20 Thread kj
I need to create a class solely for the purpose of encapsulating a large number of disparate data items. At the moment I have no plans for any methods for this class other than the bazillion accessors required to access these various instance variables. (In case it matters, this class is

[ANN] Pyspread 0.1 released

2010-03-20 Thread Martin Manns
Pyspread 0.1 released = After a long and eventful Alpha period, pyspread has finally reached Beta stage. I thank all contributors and testers who have helped getting pyspread to this point. About: -- Pyspread is a cross-platform Python spreadsheet application. It is

Re: Best Way to extract Numbers from String

2010-03-20 Thread Jimbo
On Mar 20, 11:51 pm, Luis M. González luis...@gmail.com wrote: On Mar 20, 12:04 am, Jimbo nill...@yahoo.com wrote: Hello I am trying to grab some numbers from a string containing HTML text. Can you suggest any good functions that I could use to do this? What would be the easiest way

Re: How to automate accessor definition?

2010-03-20 Thread Chris Rebert
On Sat, Mar 20, 2010 at 3:15 PM, kj no.em...@please.post wrote: I need to create a class solely for the purpose of encapsulating a large number of disparate data items.  At the moment I have no plans for any methods for this class other than the bazillion accessors required to access these

Re: Ubuntu install problems

2010-03-20 Thread waugust
On Mar 20, 10:40 am, waugust waugustyn...@gmail.com wrote: On Mar 20, 10:25 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 20 Mar 2010 10:00:47 -0700, waugust wrote: I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed. Whenever I apt-get install

Re: Best Way to extract Numbers from String

2010-03-20 Thread Someone Something
Its an extremely bad idea to use regex for HTML. You want to change one tiny little thing and you have to write the regex all over again. if its a throwaway script, then go ahead. 2010/3/20 Luis M. González luis...@gmail.com On Mar 20, 12:04 am, Jimbo nill...@yahoo.com wrote: Hello I am

Re: How to automate accessor definition?

2010-03-20 Thread Someone Something
Just initialize everything in the constructor, unless you have *really *good reason not to do that. On Sat, Mar 20, 2010 at 6:54 PM, Chris Rebert c...@rebertia.com wrote: On Sat, Mar 20, 2010 at 3:15 PM, kj no.em...@please.post wrote: I need to create a class solely for the purpose of

Re: How to automate accessor definition?

2010-03-20 Thread Steven D'Aprano
On Sat, 20 Mar 2010 22:15:54 +, kj wrote: I need to create a class solely for the purpose of encapsulating a large number of disparate data items. There's a built-in for that. It's called dict. Syntax for item access is a tiny bit different, but still very common: data['foo'] instead of

Re: Best Way to extract Numbers from String

2010-03-20 Thread Novocastrian_Nomad
Regular expression are very powerful, and I use them a lot in my paying job (unfortunately not with Python). You are however, basically using a second programing language, which can be difficult to master. Does this give you the desired result? import re matches =

[issue8179] Test failure in test_macpath.py test_realpath (Mac OS X)

2010-03-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: This failure seems to be caused by major changes to test_macpath. I'm not sure how much of this is really applicable to macpath which implements the obsolete MacOS 9 path functions. Perhaps leave well enough alone? -- nosy: +flox, ned.deily

[issue8180] Unicode File Test failures (PEP 277 on Mac OS X)

2010-03-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: r78585 to test_pep277.py recently enabled this test for all POSIX systems but note the warning in r33595. -- nosy: +flox, ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8180

[issue8179] Test failure in test_macpath.py test_realpath (Mac OS X)

2010-03-20 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: The changes enabled more tests for all *path related modules. Please try attached patch. -- components: +Macintosh keywords: +patch priority: - normal resolution: - accepted type: - behavior versions: +Python 3.2 Added

[issue8181] Guenstiger kaufen Sie Software nicht!

2010-03-20 Thread Nobody/Anonymous
New submission from Nobody/Anonymous: body,#wrap{text-align:center;margin:0px;background-color:#FFFEF8;}/*...@tab Top b...@section top b...@tip Choose a set of colors that look good with the colors of your logo image or text

[issue8181] Guenstiger kaufen Sie Software nicht!

2010-03-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8181 ___ ___ Python-bugs-list mailing list

[issue8181] Guenstiger kaufen Sie Software nicht!

2010-03-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file16594/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8181 ___

[issue8181] spam

2010-03-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - rejected stage: - committed/rejected status: open - closed title: Guenstiger kaufen Sie Software nicht! - spam ___ Python tracker rep...@bugs.python.org

[issue8128] String interpolation with unicode subclass fails to call __str__

2010-03-20 Thread Steven D'Aprano
Steven D'Aprano steve+pyt...@pearwood.info added the comment: I've assumed that the documentation is correct, and that %s%obj should call __str__ for unicode objects as well as everything else. Attached in a test file. -- Added file:

[issue8180] Unicode File Test failures (PEP 277 on Mac OS X)

2010-03-20 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: This patch should fix the test on OS X platforms. -- components: +Macintosh, Unicode keywords: +patch priority: - normal resolution: - accepted stage: needs patch - patch review type: - behavior versions: +Python 3.2 Added

[issue8179] Test failure in test_macpath.py test_realpath (Mac OS X)

2010-03-20 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8179 ___

[issue7977] I found Python 3.1 xmlrpc lib use param not properly. and i have fixed it.

2010-03-20 Thread Jelly Chen
Jelly Chen sinoje...@gmail.com added the comment: I know why those two tests run failed, and I found another way to solve the problem, do not make the existing tests broken, and at the same time I have added another test case. I encountered this problem due to a argument is already being a tuple

[issue4037] doctest.py should include method descriptors when looking inside a class __dict__

2010-03-20 Thread Steven D'Aprano
Steven D'Aprano steve+pyt...@pearwood.info added the comment: I have fixed the issue with line length, and taken Brian's advice re valname. Updated patch for doctest and test.test_doctest2 is attached. -- Added file: http://bugs.python.org/file16599/doctest_patch

[issue8154] os.execlp('true') crashes the interpreter on 2.x

2010-03-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I believe that backporting this change to 2.6 is inappropriate. It will more than likely cause perfectly correct code to stop working, and that is not something we like to do in a maintenance release. I believe that the bug on the

[issue7347] Add {Create|Delete}KeyEx to _winreg, doc and test updates

2010-03-20 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: RegDeleteKeyEx will only work on a Windows version of 5.2 or greater (Vista/XP x64), and XP is 5.1, so RegDeleteKeyEx can't be a simple drop-in under the DeleteKey name. CreateKeyEx is different though since it goes as far back as Win2k, and it

[issue8180] Unicode File Test failures (PEP 277 on Mac OS X)

2010-03-20 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: A patch with more Unicode normalization tests. Could you test it on Windows or Mac OS X? -- Added file: http://bugs.python.org/file16600/issue8180_pep277_additions.diff ___ Python tracker

[issue8180] Unicode File Test failures (PEP 277 on Mac OS X)

2010-03-20 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8180 ___ ___

[issue2356] fixer for sys.exitfunc - atexit

2010-03-20 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Committed the 2to3 fixer in r79137. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2356

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

2010-03-20 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: $ ./python.exe Lib/test/test_imp.py test_find_module_encoding (__main__.ImportTests) ... ok test_issue1267 (__main__.ImportTests) ... ok test_issue3594 (__main__.ImportTests) ... ok test_issue5604 (__main__.ImportTests) ... ERROR

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

2010-03-20 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - duplicate status: open - closed superseder: - test_imp fails on OS X; filename normalization issue. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8182

[issue8133] test_imp fails on OS X; filename normalization issue.

2010-03-20 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Note: issue #8180 is related to the same NFC/NFD issue. http://developer.apple.com/mac/library/qa/qa2001/qa1173.html -- components: +Macintosh, Unicode nosy: +flox resolution: - accepted

[issue8183] warn crashes if warning's __str__ returns Unicode

2010-03-20 Thread Ben Artin
New submission from Ben Artin ba000...@artins.org: Running the following script crashes my 2.6.1 interpreter on two different platforms: from warnings import warn class TestWarning(Warning): def __str__(self): return u'\u00ae' warn(TestWarning()) Platforms I tried

[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2010-03-20 Thread news1234
New submission from news1234 news1...@free.fr: Following code snippet will behave differently on Linux and windows hosts. Under linux the script can only be run once. The second call will raise an exception, as the previous program is already listening to pot 8089. Under Windows however the

[issue8185] re.findall()

2010-03-20 Thread Jean-Michel Fauth
New submission from Jean-Michel Fauth wxjmfa...@gmail.com: sys.version 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] import re re.match([-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?, 1.23e-4).group() 1.23e-4 re.search([-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?,

[issue8133] test_imp fails on OS X; filename normalization issue.

2010-03-20 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Could you tell if the patch fix the issue? -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file16601/issue8133_test_imp.diff ___ Python tracker

[issue8133] test_imp fails on OS X; filename normalization issue.

2010-03-20 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: That patch works for me. (You should probably commit the comment fix in the patch separately though, rather than mixing it up with this issue.) -- ___ Python tracker rep...@bugs.python.org

[issue8183] warn crashes if warning's __str__ returns Unicode

2010-03-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I cannot reproduce this with python 2.6.4 or trunk on linux. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8183

[issue2550] SO_REUSEADDR doesn't have the same semantics on Windows as on Unix

2010-03-20 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - test needed versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2550 ___

[issue8186] Hohe Qualitaet und beste Preise garantiert.

2010-03-20 Thread Nobody/Anonymous
New submission from Nobody/Anonymous: body,#wrap{text-align:center;margin:0px;background-color:#FFFEF8;}/*...@tab Top b...@section top b...@tip Choose a set of colors that look good with the colors of your logo image or text

[issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail

2010-03-20 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Committed to Py3k in revision 79141, revision 79142 and revision 79143. -- resolution: - accepted stage: needs patch - committed/rejected status: open - closed ___ Python tracker

[issue8186] spam

2010-03-20 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- resolution: - invalid status: open - closed title: Hohe Qualitaet und beste Preise garantiert. - spam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8186

[issue8084] pep-0370 on osx duplicates existing functionality

2010-03-20 Thread Sean Reifschneider
Sean Reifschneider j...@tummy.com added the comment: Since this needs review, and Christian is the author of that PEP, I'm assigning it to him. If not appropriate, any suggestions on where to get visibility to get reviewers? -- assignee: ronaldoussoren - christian.heimes nosy:

[issue7072] isspace(0xa0) is true on Mac OS X

2010-03-20 Thread Sean Reifschneider
Changes by Sean Reifschneider j...@tummy.com: -- priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7072 ___ ___ Python-bugs-list

[issue8187] Online kaufen die beste Software!

2010-03-20 Thread Nobody/Anonymous
New submission from Nobody/Anonymous: body,#wrap{text-align:center;margin:0px;background-color:#FFFEF8;}/*...@tab Top b...@section top b...@tip Choose a set of colors that look good with the colors of your logo image or text

[issue8187] spam

2010-03-20 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- resolution: - invalid status: open - closed title: Online kaufen die beste Software! - spam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8187 ___

[issue4931] distutils does not show any error msg when can't build C module extensions due to a missing C compiler

2010-03-20 Thread Sean Reifschneider
Sean Reifschneider j...@tummy.com added the comment: Tarek: This patch seems reasonable to me, is this something that can be applied? -- nosy: +jafo priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4931

[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2010-03-20 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - jnoller nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8184 ___

[issue4931] distutils does not show any error msg when can't build C module extensions due to a missing C compiler

2010-03-20 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I guess i can be applied on distutils, and backported in distutils2. I'll do it in the coming days. Notice that I am now applying only bug fixes and regression fixes now for distutils. -- components: +Distutils2 resolution: -

[issue8185] re.findall()

2010-03-20 Thread Jon Clements
Jon Clements jon...@googlemail.com added the comment: Seems consistent to me: .match, .search and .finditer return a MatchObject whose .group() return the *entire matched string*. If you use .group(1) you'll get similar results to .findall() which returns a list of (possibly of tuples) of the

[issue8133] test_imp fails on OS X; filename normalization issue.

2010-03-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Patch works for me as well. Go ahead and commit it, Florent, with the comment fix as a separate commit as Mark suggested. -- assignee: brett.cannon - flox stage: patch review - commit review ___

[issue8183] warn crashes if warning's __str__ returns Unicode

2010-03-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Can't reproduce under OS X with Python 2.6.5. Closing as out of date. -- nosy: +brett.cannon resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8006] os.popen in Python 3.1

2010-03-20 Thread Yuriy Taraday
Yuriy Taraday yorik@gmail.com added the comment: os.popen is obsolete and as I understand is removed from 3k. Use subprocess module instead. http://docs.python.org/library/os.html?highlight=popen#os.popen -- nosy: +yorik.sar ___ Python tracker

[issue8188] Unified hash for numeric types.

2010-03-20 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: Here's a patch that makes hash(x) == hash(y) for any numeric types (int, float, complex, Decimal, Fraction, bool) when x and y are numerically equal. This is a prerequisite for making all numeric types accurately comparable with each

[issue8133] test_imp fails on OS X; filename normalization issue.

2010-03-20 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Fixed with r79144 on 3.x and r79146 on 3.1. -- resolution: accepted - fixed stage: commit review - committed/rejected status: open - pending ___ Python tracker rep...@bugs.python.org

[issue8188] Unified hash for numeric types.

2010-03-20 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Uploaded to Rietveld: http://codereview.appspot.com/660042 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8188 ___

[issue8006] os.popen in Python 3.1

2010-03-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, actually os.popen in Python3 is implemented by calling subprocess.Popen. So, Bob, how does it fail? -- nosy: +r.david.murray priority: - normal stage: - test needed ___ Python tracker

[issue8185] re.findall()

2010-03-20 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: What Jon said is correct, .group() is equivalent to .group(0) and returns the whole match. re.findall returns all the groups captured by each set of () as a list of strings (if there is 0 or 1 group) or a list of tuples (if there are more

[issue8189] Gute Programme billig hier!

2010-03-20 Thread Nobody/Anonymous
New submission from Nobody/Anonymous: body,#wrap{text-align:center;margin:0px;background-color:#FFFEF8;}/*...@tab Top b...@section top b...@tip Choose a set of colors that look good with the colors of your logo image or text

[issue8189] Gute Programme billig hier!

2010-03-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8189 ___ ___ Python-bugs-list mailing list

[issue8189] Gute Programme billig hier!

2010-03-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file16605/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8189 ___

[issue8189] spam

2010-03-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - invalid stage: - committed/rejected status: open - closed title: Gute Programme billig hier! - spam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8189

  1   2   >