[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-04-10 Thread Ned Deily
Ned Deily added the comment: Note these changes to restore CFLAGS have the side effect of breaking OS X universal builds; see Issue8366. -- nosy: +ned.deily ___ Python tracker _

[issue8366] OS X universal builds fail on 2.7b1 and py3k with "Don't know machine value for archs"

2010-04-10 Thread Ned Deily
New submission from Ned Deily : Prior to r79392 (trunk) and r79401 (py3k), the changes introduced for Issue8211, the gcc lines produced for an OS X universal build, say ./configure --enable-universalsdk --with-universal-archs=32-bit ; make might look like this: gcc-4.0 -c -arch ppc -arch i386

[issue8241] py2_test_grammar.py contains invalid syntax for 2.6

2010-04-10 Thread Gombiuda Jiang
Gombiuda Jiang added the comment: I have upload a patch for this problem by just removing the lines as Gabriel said. Please check it out. Thanks. -- keywords: +patch nosy: +gombiuda Added file: http://bugs.python.org/file16865/py2_test_grammar.patch __

[issue8365] 'readline' module fails to build on OS X - some recent change broke it

2010-04-10 Thread Shashwat Anand
Shashwat Anand added the comment: After I recompiled my older revision the 'readline' module failed to build. So I guess this is not python-related issue, rather something to do with my system. 08:17:47 l0nwlf-MBP:python-svn(rev79372) $ ./python.exe -V Python 2.7a4+ 08:17:53 l0nwlf-MBP:python-

[issue8365] 'readline' module fails to build on OS X - some recent change broke it

2010-04-10 Thread Shashwat Anand
New submission from Shashwat Anand : 'readline' module fails to build on OS X in case of trunk and python 3.x. It have no issues with python 2.5 and 2.6 and python 2.7 alpha. Here is the trace after running ./configure; make in trunk Python build finished, but the necessary bits to build thes

[issue7621] Test issue

2010-04-10 Thread Ezio Melotti
Ezio Melotti added the comment: Some more testing: [http://psf.upfronthosting.co.za/roundup/meta/issue254] (http://psf.upfronthosting.co.za/roundup/meta/issue254) {http://psf.upfronthosting.co.za/roundup/meta/issue254} http://psf.upfronthos

[issue7355] Struct incorrectly compiles format strings

2010-04-10 Thread Meador Inge
Meador Inge added the comment: > would be to add enough padding so that the alignment of the struct > matches the largest alignment of any member of the struct. That might work. I will have to think about it a bit. > On the subject of documentation Attached a doc patch which addresses Mark

[issue5380] pty.read raises IOError when slave pty device is closed

2010-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Worse, the test timed out (probably froze) on the Solaris buildbot: http://www.python.org/dev/buildbot/trunk/builders/sparc%20solaris10%20gcc%20trunk/builds/649/steps/test/logs/stdio -- ___ Python tracker

[issue5380] pty.read raises IOError when slave pty device is closed

2010-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16861/io-openpty.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5380] pty.read raises IOError when slave pty device is closed

2010-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Regardless of the decision, a new patch. -- Added file: http://bugs.python.org/file16863/io-openpty.patch ___ Python tracker ___ ___

[issue5380] pty.read raises IOError when slave pty device is closed

2010-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: After triggering the buildbots, it seems that reading from the master fd after the slave fd has been closed is rather OS-dependent. The FreeBSDs return an empty string. I wonder whether this use case (reading from the master after the slave is closed) should rea

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-10 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue7559] TestLoader.loadTestsFromName swallows import errors

2010-04-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: Patch update: added unit test to cover replacing __import__, incorporated R. David Murray's suggestion to use test_support.test_cwd(), and overall code clean-up. Also uploaded as Patch 3 to-- http://codereview.appspot.com/810044/show -- Added file:

[issue7723] sqlite only accept buffer() for BLOB objects (input/output)

2010-04-10 Thread Gerhard Häring
Gerhard Häring added the comment: I see that the status of this issue keeps changing. Now does anything in the sqlite3 module or the docs need to be changed? Or what's left to close this? -- ___ Python tracker __

[issue5380] pty.read raises IOError when slave pty device is closed

2010-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file16861/io-openpty.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5380] pty.read raises IOError when slave pty device is closed

2010-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16859/io-openpty.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6409] 2to3 -j 4 generates malformed diffs

2010-04-10 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- components: +2to3 (2.x to 3.0 conversion tool) -Library (Lib) ___ Python tracker ___ ___ Python-bugs-li

[issue4662] posix module lacks several DeprecationWarning's

2010-04-10 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- components: +2to3 (2.x to 3.0 conversion tool) ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8340] bytearray undocumented on trunk

2010-04-10 Thread Éric Araujo
Éric Araujo added the comment: > * If it is a *string*, you must also give the *encoding* (and optionally, > *errors*) parameters; :func:`bytearray` then converts the string to > bytes using :meth:`str.encode`. I think this needs some lines to tell how it behaves with str and unicode. Rega

[issue2876] Write UserDict fixer for 2to3

2010-04-10 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- components: +2to3 (2.x to 3.0 conversion tool) -Library (Lib) ___ Python tracker ___ ___ Python-bugs-li

[issue8340] bytearray undocumented on trunk

2010-04-10 Thread Shashwat Anand
Shashwat Anand added the comment: Attached a patch to backport the 'bytearray' and 'bytes' documentation in trunk. -- keywords: +patch Added file: http://bugs.python.org/file16860/functions.patch ___ Python tracker

[issue5380] pty.read raises IOError when slave pty device is closed

2010-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: It turns out isatty() returns True for fds created by openpty(), which helps quite a bit: we can silence EIO for ttys while keeping it for non-ttys, where a low-level I/O (hardware) error should be raised properly. Here is a patch for trunk. -- keywor

[issue8340] bytearray undocumented on trunk

2010-04-10 Thread Shashwat Anand
Shashwat Anand added the comment: On a related note, the documentation of 'bytes' is not backported too. -- nosy: +l0nwlf ___ Python tracker ___ _

[issue8364] Update site.setquit docstring

2010-04-10 Thread Shashwat Anand
Shashwat Anand added the comment: looks fine to me. However I heard trunk will be/is frozen. -- ___ Python tracker ___ ___ Python-bugs

[issue8364] Update site.setquit docstring

2010-04-10 Thread Éric Araujo
Éric Araujo added the comment: Hey, I do that all the time with email attachments! (They made a Thunderbird™ extension for that.) Thanks ;) -- keywords: +patch Added file: http://bugs.python.org/file16858/quit-doc.diff ___ Python tracker

[issue8364] Update site.setquit docstring

2010-04-10 Thread Shashwat Anand
Shashwat Anand added the comment: merwok I think you forgot to attach patch -- nosy: +l0nwlf ___ Python tracker ___ ___ Python-bugs-li

[issue7355] Struct incorrectly compiles format strings

2010-04-10 Thread Mark Dickinson
Mark Dickinson added the comment: > When and why things are padded usually depends on the compiler, OS, > and computer architecture. [...] Sure. The struct module has a rather simplistic set of rules for adding padding, but I believe that it manages to match the platform's C rules (assuming

[issue8363] Lots of duplicate code between test_classify_oldstyle and test_classify_newstyle in test_inspect.py

2010-04-10 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Committed in r79935 -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue7723] sqlite only accept buffer() for BLOB objects (input/output)

2010-04-10 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- priority: deferred blocker -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue3928] os.mknod missing on Solaris

2010-04-10 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- priority: deferred blocker -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue7355] Struct incorrectly compiles format strings

2010-04-10 Thread Meador Inge
Meador Inge added the comment: > I'm half-convinced that struct.pack *should* ideally add trailing > padding in the same situation that C does, for consistency with C. > Then calcsize would match C's sizeof. Maybe... AFAIK, the C language does not mandate structure padding. Section 6.7.2.1

[issue8361] Remove assert in functools.total_ordering

2010-04-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue8361] Remove assert in functools.total_ordering

2010-04-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: r79930 and r79931 -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8361] Remove assert in functools.total_ordering

2010-04-10 Thread Éric Araujo
Éric Araujo added the comment: Ok. It won’t have a user-friendly error message, though. You may be interested in a minor doc patch in #5341. Regards -- ___ Python tracker ___ _

[issue8361] Remove assert in functools.total_ordering

2010-04-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: The max(roots) line that follows will raise its own ValueError when given an empty input. Will mull over your patch. I may just delete the assert line, leave it as-is, or apply something like your patch (but with a ValueError). -- _

[issue8361] Remove assert in functools.total_ordering

2010-04-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue8363] Lots of duplicate code between test_classify_oldstyle and test_classify_newstyle in test_inspect.py

2010-04-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/4/10 Jean-Paul Calderone : > > Jean-Paul Calderone added the comment: > > Okay. > > I shouldn't commit until after trunk is unfrozen though, right? Correct. -- ___ Python tracker

[issue8363] Lots of duplicate code between test_classify_oldstyle and test_classify_newstyle in test_inspect.py

2010-04-10 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Okay. I shouldn't commit until after trunk is unfrozen though, right? -- ___ Python tracker ___ __

[issue8363] Lots of duplicate code between test_classify_oldstyle and test_classify_newstyle in test_inspect.py

2010-04-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think the patch is ok except for that docstrings should start on the same line as the triple quote. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue8322] test_ssl failures with OpenSSL 1.0.0

2010-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > List of ciphers is application dependent and configure script can't > limit users(applications) . I was obviously talking about a runtime argument to ssl.wrap_socket(). -- ___ Python tracker

[issue8322] test_ssl failures with OpenSSL 1.0.0

2010-04-10 Thread Roumen Petrov
Roumen Petrov added the comment: Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > After some investigation, the error does occur because of the aforementioned > changelog entry (SSLv2 weak ciphers are now disabled by default). To check it > I just added the following line to ne

[issue1079] decode_header does not follow RFC 2047

2010-04-10 Thread Oliver Martin
Oliver Martin added the comment: I got bitten by this too. In addition to not decoding encoded words without whitespace after them, it throws an exception if there is a valid encoded word later in the string and the first encoded word is followed by something that isn't a hex number: >>> dec

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-04-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-04-10 Thread Éric Araujo
Éric Araujo added the comment: Module names have to be converted only once, so now maintenance is just keeping names updated. I’m willing to commit to maintaining the maintainers file <0.2 meta wink> with one caveat: Core developers can commit and merge immediately, keeping branches in sync,

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-04-10 Thread R. David Murray
R. David Murray added the comment: I didn't put maintainers.rst into 2.6 because I didn't want to commit to maintaining the two divergent copies. If you want to commit to maintaining it in the 2.x branch (copying changes backwards from the 3.x branch), then I'd be +0 (or maybe even +0.5) on

[issue8359] % formating - TypeError: not all arguments converted during string formatting

2010-04-10 Thread Abdellah Chelli
عبدالله شلي (Abdellah Chelli) added the comment: The full example: === import gettext gettext.bindtextdomain("pygettext_test","./locale") gettext.textdomain("pygettext_test") _=gettext.gettext n_=gettext.ngettext n1=1 n2=3 print n_("there is %i command","there are %i commands",n1) % n1 print

[issue8364] Update site.setquit docstring

2010-04-10 Thread Éric Araujo
New submission from Éric Araujo : Hello The docstring for site.setquit was not updated when r42948 changed quit and exit from strings to callables. Attached patch fixes it. By the way, is “Library” the right component for docstring-related bugs or is it “Documentation”? Regards --

[issue8363] Lots of duplicate code between test_classify_oldstyle and test_classify_newstyle in test_inspect.py

2010-04-10 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : Added file: http://bugs.python.org/file16856/test_inspect.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue8363] Lots of duplicate code between test_classify_oldstyle and test_classify_newstyle in test_inspect.py

2010-04-10 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : There are two tests for the way inspect.classify_class_attrs handles various sorts of attributes. The tests are identical, except one uses a classic class and one a new-style class. The tests sources have actually begun to diverge, but so far only in

[issue7355] Struct incorrectly compiles format strings

2010-04-10 Thread Meador Inge
Changes by Meador Inge : -- nosy: +minge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue3581] failures in test_uuid

2010-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Should the patch go into the maintenance branches as well (after the > beta is out)? Yes, I think it would be nice (though not mandatory). -- ___ Python tracker

[issue8359] % formating - TypeError: not all arguments converted during string formatting

2010-04-10 Thread Eric Smith
Eric Smith added the comment: I don't understand how this: n=1 print "One hour." % n is different from this: map={'n': 3} print "One hour." % map In any event, if str.format works for you, use that. It's the new style. -- ___ Python tracker

[issue5341] A selection of spelling errors and typos throughout source

2010-04-10 Thread Éric Araujo
Éric Araujo added the comment: Hello spelling and doc people (I hope it’s okay to use this bug as umbrella instead of opening a myriad bugs for typos.) Attached patch fixes small things in functools module and docs: - Typos: “simplies” does not exist, “fills-in” needs no hyphen since it’s a

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-04-10 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +patch Added file: http://bugs.python.org/file16854/maintainers.diff ___ Python tracker ___ ___ P

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-04-10 Thread Éric Araujo
New submission from Éric Araujo : Hello The maintainers listing is helpful for us outside bug reporters, but only present in the py3k branch. I copied it and reverted module name changes. Attached is the resulting file and the diff against py3k. Regards -- assignee: georg.brandl comp

[issue8359] % formating - TypeError: not all arguments converted during string formatting

2010-04-10 Thread Abdellah Chelli
عبدالله شلي (Abdellah Chelli) added the comment: 'One hour' % {'n': 3} / mapping will not work gettext replaces the string for each language. str.format works well. The problem we couldn't submit a bug to change the code for all packages using it. I think it's better to be fixed here. At le

[issue8361] Remove assert in functools.total_ordering

2010-04-10 Thread Éric Araujo
New submission from Éric Araujo : Hello The correct behavior of functools.total_ordering depends on a check performed with an assert. Attached patch changes it to a test that always runs. Since it’s a kind of protocol error, I went for TypeError but you may disagree. Regards -- compo

[issue8359] % formating - TypeError: not all arguments converted during string formatting

2010-04-10 Thread Georg Brandl
Georg Brandl added the comment: I think we won't add new features to %-formatting, when it is considered old-style anyway. -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker

[issue8346] Old Version Name in Interactive Mode

2010-04-10 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r79924. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue8360] doc: unittest.skipTest method added in 2.7

2010-04-10 Thread Georg Brandl
New submission from Georg Brandl : Thanks, fixed in r79923. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue8359] % formating - TypeError: not all arguments converted during string formatting

2010-04-10 Thread Eric Smith
Eric Smith added the comment: Also, if you use the 'mapping' version of %-formatting you also don't have this restriction: >>> 'One hour' % {'n': 3} -- ___ Python tracker ___ _

[issue8359] % formating - TypeError: not all arguments converted during string formatting

2010-04-10 Thread Eric Smith
Eric Smith added the comment: Can you use str.format instead? It doesn't have this restriction. It's available in 2.6 and 3.0. -- nosy: +eric.smith versions: +Python 2.7, Python 3.2 -Python 2.5, Python 2.6, Python 3.1 ___ Python tracker

[issue8360] doc: unittest.skipTest method added in 2.7

2010-04-10 Thread anatoly techtonik
Changes by anatoly techtonik : -- assignee: georg.brandl components: Documentation files: doc.python-version-for-skiptest.diff keywords: patch nosy: georg.brandl, techtonik severity: normal status: open title: doc: unittest.skipTest method added in 2.7 versions: Python 2.7 Added file: h

[issue8359] % formating - TypeError: not all arguments converted during string formatting

2010-04-10 Thread Abdellah Chelli
New submission from عبدالله شلي (Abdellah Chelli) : c/printf accepts this: n=1; printf("One hour.", n); in other hand python/print rises an error: n=1 print "One hour." % n Exactly the % formatting operation. (TypeError: not all arguments converted during string formatting) This feature is v

[issue3581] failures in test_uuid

2010-04-10 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue3581] failures in test_uuid

2010-04-10 Thread Stefan Krah
Stefan Krah added the comment: Sorry, the random node id generation in uuid.py is correct. The least significant bit of the first octet (which is set to 1) is the first one transmitted on the network, then the "low 47 random bits" follow. I assumed that the least significant bit of the first oc

Re: [issue8355] diff.py produce unified format by default

2010-04-10 Thread Brian Curtin
On 2010-04-09, Eric Smith wrote: > > Eric Smith added the comment: > > I tried -p1 and it failed, but no matter. The contents were clear enough, > and exactly how I would have changed the code. > > $ patch -p1 < 8355.diff-py-unified-by-default.diff > patching file Tools/scripts/diff.py > Hunk #1