[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2010-11-15 Thread Michał Górny
Changes by Michał Górny mgo...@gentoo.org: -- nosy: +mgorny ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10419 ___ ___ Python-bugs-list mailing

[issue10422] pstats.py : error when loading multiple stats files

2010-11-15 Thread Stephane Ruchet
New submission from Stephane Ruchet sruc...@parkeon.com: When using pstats constructor with multiple files, the add_callers method fails. Actually, add_callers need to add values of tuples, but it uses the + operator, that appends tuples. I submit the fix (pstats.py.fix file) and the old one

[issue10422] pstats.py : error when loading multiple stats files

2010-11-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This bug should already be fixed in Python 2.6 and 2.7 (see #7372) and 2.5 now accepts only security fixes. I suggest you to upgrade to a newer version of Python. (BTW, thanks for the report and the patch, but it's usually better to avoid

[issue10350] errno is read too late

2010-11-15 Thread Hallvard B Furuseth
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment: Terry J. Reedy writes: There is one relocation of memory freeing Modules/timemodule.c does '#if,if(..errno..)' after PyMem_Free(outbuf), which can overwrite the desired errno. Instead of reading errno into a temporary, I moved

[issue10423] s/args/options in arpgarse Upgrading optparse code

2010-11-15 Thread Steven Bethard
New submission from Steven Bethard steven.beth...@gmail.com: From a personal email: -- I'm not signed up for all the Python issue tracking stuff, but thought I'd let you know about a problem with the argparse doc page:

[issue10424] better error message from argparse when positionals missing

2010-11-15 Thread Steven Bethard
New submission from Steven Bethard steven.beth...@gmail.com: From a private email in respect to the following class of error messages: parser = argparse.ArgumentParser(prog='PROG') parser.add_argument('--foo') parser.add_argument('--bar') parser.add_argument('ham')

[issue1326113] Letting build_ext --libraries take more than one lib

2010-11-15 Thread Palm Kevin
Palm Kevin kevin.p...@labsolution.lu added the comment: This one is really annoying. Could you please consider fixing this one for the next release? (=lightweight change) -- nosy: +palm.kevin ___ Python tracker rep...@bugs.python.org

[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-11-15 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: John, I was trying to find out what does rfc say on Client Ignoring the 30X REDIRECT headers. There is no point made on Client's trying to ignore it, instead it said that it should follow the Redirect and must not endlessly loop. Setting

[issue1326113] Letting build_ext --libraries take more than one lib

2010-11-15 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Distutils is frozen and we fix only bugs. This case is a little bit at the edge. Can you show us an example of a call you are trying to make, and the gcc command line output that fails ? I want to see if we can find a workaround. If so,

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-15 Thread Adam Bielański
New submission from Adam Bielański abg...@gmail.com: XMLRPC standard doesn't support None/nil/null values. Element `nil/` was added as an extension to original protocol. Currently sending None object through xmlrpclib produces `valuenil//value` string. This causes parsing errors in more

[issue1326113] Letting build_ext --libraries take more than one lib

2010-11-15 Thread Palm Kevin
Palm Kevin kevin.p...@labsolution.lu added the comment: I applied the patch proposed by slanger. This one is working. Now, I'm executing this instruction to build my extension: %pythonRoot%\python.exe setup.py build_ext --include-dirs C:\MyApp\include --library-dir C:\MyApp\lib --libraries

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-15 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10425 ___

[issue6941] Socket error when launching IDLE

2010-11-15 Thread Joshua Purcell
Joshua Purcell spamail.08jpurcellser...@gmail.com added the comment: Sorry I've not replied to anyones thoughts until now but nothing seems to fix it -- components: +Windows -IDLE resolution: works for me - status: closed - open ___ Python tracker

[issue10426] The whole thing is NOT good

2010-11-15 Thread Joshua Purcell
New submission from Joshua Purcell spamail.08jpurcellser...@gmail.com: There is a complete FAIL in this versionand all other versions like 3.* THEY ALL FREEZE UP MY SYSTEM (Windows) HELP -- components: Windows messages: 121227 nosy: 08jpurcell priority: normal severity: normal status:

[issue10426] The whole thing is NOT good

2010-11-15 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10426 ___

[issue10426] The whole thing is NOT good

2010-11-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I'm closing this until you can provide more details about the problem you have. What version of Python have you used? (The one you selected (3.3) doesn't exist yet.) Are you sure that the problem is related to Python and not to Windows? If

[issue7186] Document specialness of __doc__, and possibly other special attributes

2010-11-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No, because that patch doesn't document the special inheritance rules for __doc__ (which are uniquely special even among special methods). Now, exactly where one would want to document those rules, I'm not sure. -- nosy:

[issue10427] 24:00 Hour in DateTime

2010-11-15 Thread ingo janssen
New submission from ingo janssen ingoo...@gmail.com: Short: make the DateTime class and related also accept 24 for the hour instead of stopping at 23:59:59. from the python doc: class datetime.datetime(year, month, day[, hour[, minute[, second[, microsecond[, tzinfo]) The year, month and

[issue10260] Add a threading.Condition.wait_for() method

2010-11-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Good point, Antoine. I'm always trying to keep those timeouts low, however, to avoid having the testsuite duration grow too much with every test :) Well, better to have slower tests than intermittently failing ones, I say. --

[issue10427] 24:00 Hour in DateTime

2010-11-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Library (Lib) nosy: +belopolsky, ezio.melotti versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-15 Thread Hallvard B Furuseth
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment: Martin v. Löwis writes: As this code is in a Python 2.x block: why does this change cause problems to you? You are supposed to run the 2to3 result in Python 3, and this conversion result will run correctly in Python 3. As I've

[issue7186] Document specialness of __doc__, and possibly other special attributes

2010-11-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7186 ___ ___ Python-bugs-list

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-15 Thread Hallvard B Furuseth
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment: Hallvard B Furuseth writes: Martin v. Löwis writes: Ok, I can propose two different spellings of this without any macro processor: (...) Both your examples fit my request perfectly. Pieces of code which I presume are correct

[issue10427] 24:00 Hour in DateTime

2010-11-15 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: +1 Note that in Python, semi-open intervals are favored, but specifying the last hour of the day is awkward when using datetime (as OP mentioned) and impossible using just time. Using closed intervals is not a good

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-15 Thread Hallvard B Furuseth
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment: Éric Araujo writes: I think 2to3 is designed to take 2.x code and turn it into 3.x code. Codebases using tricks and hacks to support both 2.x and 3.x (like the example you linked to) cannot be handled by 2to3. That's fair

[issue1326113] Letting build_ext --libraries take more than one lib

2010-11-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Since --libraries is plural, and since the help text says: --libraries (-l) external C libraries to link with it should IMO be considered a bug. (Standard UNIX linkers have a different convention: you can specify -l several times in order

[issue2001] Pydoc interactive browsing enhancement

2010-11-15 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net added the comment: This should be done or very close to done. The -g option, gui(), and serve() functions are deprecated. The new features are browse(port, *, open_browser=True), and a '-b' option. The '-p port' option does browse(port=port,

[issue2001] Pydoc interactive browsing enhancement

2010-11-15 Thread Ron Adam
Changes by Ron Adam ron_a...@users.sourceforge.net: Removed file: http://bugs.python.org/file19604/issue2001_a.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2001 ___

[issue2001] Pydoc interactive browsing enhancement

2010-11-15 Thread Ron Adam
Changes by Ron Adam ron_a...@users.sourceforge.net: Removed file: http://bugs.python.org/file19476/pydoc_r86133.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2001 ___

[issue1553375] Add traceback.print_full_exception()

2010-11-15 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: I dont understand, if we use traceback.print_stack(), it's the stack at the exception handling point which will be displayed. In my view, the interesting think was not the stack trace at the point where the exception is being handled,

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-11-15 Thread David Fraser
Changes by David Fraser dav...@sjsoft.com: -- nosy: +davidfraser ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list

[issue1553375] Add traceback.print_full_exception()

2010-11-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I agree with you, Pascal, but I think Nick is saying that that information is not actually available. I don't fully understand why, but he knows vastly more about Python internals than I do so I'll take his word for it. It might be

[issue10428] IDLE Trouble shooting

2010-11-15 Thread Eli
New submission from Eli eliandka...@acsalaska.net: I am having trouble with python. I use python 2.5.1, and have windows 7. I used to be able to use IDLE, but now it says its opening and it never does. I also could use recovery to fix it. but that does not work now. Any Ideas? --

[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-11-15 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: That's silly. A justification of the need for a new feature isn't needed, because this is already-implemented feature that simply does the wrong thing at the edge case. It's not high priority, but it is a bug. --

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-15 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: But different build system make new plaform ! Roumen -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___

[issue10319] SocketServer.TCPServer truncates responses on close (in some situations)

2010-11-15 Thread Ralf Schmitt
Changes by Ralf Schmitt sch...@gmail.com: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10319 ___ ___ Python-bugs-list mailing

[issue10428] IDLE Trouble shooting

2010-11-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I would recommend posting to the python mailing list (see mail.python.org for a list of the mailing lists and subscribe to python-list). The bug tracker isn't a place to get help, but you might also try searching for windows idle bugs,

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: But different build system make new plaform! Maybe, but not a new sys.platform. VC6 and VS9.0 don't share any project file for the compilation; but they both build a sys.platform=='win32'. Distutils has to use another way to make the

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-15 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton l...@lkcl.net added the comment: I disagree; i would say that you're entitled to disagree, but i have to point out that unless you've actually been through the process of trying to port python to mingw32 you're not really in a position of ... how can i put this

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-15 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton l...@lkcl.net added the comment: perhaps, amaury, you might like to, instead of saying i disagree, you might like instead to say something like this: that sounds... interesting, and a little scary - creating an entirely new platform! are you absolutely sure it's

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-15 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: No it is win32 for the resulting binaries. Idea is following (issue3754) . Travial patch - move method get_platform global _get_platform and variable host_platform is initialized to its return value. Then replace all calls of

[issue9807] deriving configuration information for different builds with the same prefix

2010-11-15 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Matthias, you mean $prefix/lib/python3.2 and $prefix/lib/python3.2$abiflags, right? The latter has just a config directory, and you'd rather see that become $prefix/lib/python3.2/config-$abiflags, right? --

[issue9807] deriving configuration information for different builds with the same prefix

2010-11-15 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Matthias, When you say the python.pc change should change includedir instead of Cflags, that seems weird. includedir does not currently include the 'pythonX.Y' subdirectory so there's no place to put the abiflags. Or are you suggesting

[issue10262] Add --disable-abi-flags option to `configure`

2010-11-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- assignee: - barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10262 ___ ___ Python-bugs-list

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Luke, Please please! Don't make me say what I did not say. I just said I disagree, without any bad word. This may have been a bit terse, but I don't consider the issue tracker as a place to express one's feelings; hey, other core

[issue10262] Add --disable-abi-flags option to `configure`

2010-11-15 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: I think this is not a good idea, because then you have different names for extension modules, which will be recognized by one configuration but not the other. This configure option should not change the sonames. If this option is to keep

[issue9807] deriving configuration information for different builds with the same prefix

2010-11-15 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: On 15.11.2010 23:57, Barry A. Warsaw wrote: you mean $prefix/lib/python3.2 and $prefix/lib/python3.2$abiflags, right? The latter has just a config directory, and you'd rather see that become $prefix/lib/python3.2/config-$abiflags, right?

[issue9807] deriving configuration information for different builds with the same prefix

2010-11-15 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: On 16.11.2010 00:01, Barry A. Warsaw wrote: When you say the python.pc change should change includedir instead of Cflags, that seems weird. includedir does not currently include the 'pythonX.Y' subdirectory so there's no place to put the

[issue10429] bug in test_imaplib

2010-11-15 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: The following warning suggests the test is wrong: c:\buildslave-py3k\3.x.curtin-win2008-amd64\build\lib\test\test_imaplib.py:231: BytesWarning: Comparison between bytes and string self.assertFalse('LOGINDISABLED' in self.server.capabilities)

[issue10134] test_email failures on Windows: end of line issue?

2010-11-15 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Still not sure why they were not showing up on the buildbots. Victor was working from an svn checkout and I from the binary installer, so it's not just a difference in the svn eol handling. I too had only been seeing this in my checkout, but

[issue2244] urllib and urllib2 decode userinfo multiple times

2010-11-15 Thread Jessica McKellar
Jessica McKellar jesst...@mit.edu added the comment: I can confirm that the combination of urllib_issue_updated.diff and urllib_ftptests_doubleencode.patch apply cleanly against py3k, that the added tests exercise the described bug, and that the full test suite passes after applying the

[issue716634] build_ext libraries subcommand not s

2010-11-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: wont fix - duplicate superseder: - Letting build_ext --libraries take more than one lib ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue716634

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2010-11-15 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: The patch works for me. Unfortunately my knowledge on this particular area is very low so I can't really evaluate the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9116

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2010-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can I commit doc patches like this one despite the branch freeze? -- assignee: d...@python - eric.araujo resolution: - accepted status: open - pending ___ Python tracker rep...@bugs.python.org

[issue1326113] Letting build_ext --libraries take more than one lib

2010-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I agree this is a bug: it’s a broken feature, not a new one, even if it can be argued that fixing a long-standing behavior enables new usages, and is thus comparable to a new feature. I found no mention of --libraries in the docs, so I looked

[issue10427] 24:00 Hour in DateTime

2010-11-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10427 ___ ___ Python-bugs-list

[issue10425] xmlrpclib support for None isn't compliant with XMLRPC

2010-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report and patch. You may find the following guidelines useful for your future contributions: http://www.python.org/dev/patches/ I have two questions about the proposed fix. First, this line caught my eye: if

[issue1326113] Letting build_ext --libraries take more than one lib

2010-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ve reviewed other modules for the same error and found two candidates: config.libraries, the same thing as build_ext.libraries, and install.extra_path, for which I’m not sure. (More distutils2 thoughts: A number of options are split on

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-15 Thread Jeffrey Finkelstein
Jeffrey Finkelstein jeffrey.finkelst...@gmail.com added the comment: I am not having this problem on Ubuntu 10.10 with the most recent Python 2.7: terminal interaction $ ./python unicodetest.py --verbose test_unicode_docstring (__main__.UnicodeTest) täst - docstring with unicode character ...

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Great, thank you for the update! Closing. -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10417

[issue8254] write a configure command

2010-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have turned my branch into a clean patch for default: https://bitbucket.org/Merwok/distutils2/changeset/076b15559290 Notes: - You can diff configure.py against build.py and install_dist.py from an earlier revision to see what code has been

[issue8254] write a configure command

2010-11-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +needs review, patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8254 ___ ___

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ronald, on a normal unix system if you add a user to a group, any existing process/terminal session that runs 'id -G' will return the *old* group list. Only a new process/terminal session will see the new group. On OSX, 'id -G' returns

[issue10430] _sha.sha().digest() method is endian-sensitive. and hexdigest()

2010-11-15 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson krist...@ccpgames.com: in shamodule.c, the digest() method just creates a simple bytes string of the digest. The digest is stored as an array of 32 bit integers in the native representation. Therefore, the digest will be different on big- and

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-15 Thread Stephen Hansen
Stephen Hansen me+pyt...@ixokai.io added the comment: The test is clearly verifying a *wrong* assumption: that id -G will match posix.getgroups() which simply does not hold on OSX. I can reproduce this reliably on a completely clean, brand new installation of 10.5: from there the only things