[issue46142] python --help output is too long

2021-12-20 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <https://bugs.python.org/issue46142> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46090] C extensions can't swap out live frames anymore

2021-12-23 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <https://bugs.python.org/issue46090> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46282] print() docs do not indicate its return value

2022-01-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I think it does a better service to users to explain how Python returns None implicitly if a function doesn't have any other explicit return value. If the print() docs had this note, it would be confusing why other similar functions don't.

[issue46282] print() docs do not indicate its return value

2022-01-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: > Barry: The PEP 8 'return None' recommendation could be added to the Reference > entry for 'return'. But I think this should be a separate issue as 1) it is > about coding rather than documentation and 2) there is the possib

[issue46307] string.Template should allow inspection of identifiers

2022-01-08 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I've never personally needed this, but I could see where it could come in handy. I wonder if __iter__() would be the right API for that? I wonder then if we should also implement __contains__()? Would you be interested in creating a PR for the fe

[issue46307] string.Template should allow inspection of identifiers

2022-01-08 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I think you’re right that the iterator API isn’t very helpful. I also agree that you probably really want to answer the “why identifiers are in this template?” question. As for repeats, there’s two ways to think about it. You could return all the

[issue46321] Don't need delineators on lists

2022-01-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: As Dennis points out, this is not a bug, it's already valid Python syntax. -- nosy: +barry resolution: -> not a bug status: pending -> open ___ Python tracker <https://bugs.python.

[issue46328] add sys.exception()

2022-01-10 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46328] add sys.exception()

2022-01-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: sys.exception() seems like a decent enough trade-off. I've always disliked the abbreviations in "exc_info". It doesn't feel big enough for a PEP to me. -- ___ Python tracker <https://bug

[issue46330] Simplify the signature of __exit__

2022-01-11 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <https://bugs.python.org/issue46330> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46528] Simplify the VM's stack manipulations

2022-01-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: What are the (unoptimized) performance implications of replacing one instruction with multiple instructions? -- nosy: +barry ___ Python tracker <https://bugs.python.org/issue46

[issue46528] Simplify the VM's stack manipulations

2022-01-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Very interesting. Do we have any current (or even cutting edge, i.e. 3.11) timings for individual instructions? Or a breakdown of how frequently different instructions are invoked? I remember Carl Shapiro presenting his findings here several years ago

[issue46528] Simplify the VM's stack manipulations

2022-01-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: IIRC, Carl got a lot of benefit out of reordering the opcodes in the main loop to put the most common ones at the top. I don't know if that is still relevant or whether computed gotos, when enabled, change that cal

[issue46543] Add sys._getfunc

2022-02-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: > Usually the calling function object should be enough. I want to at least provide some historical context on why sys._getframe() exists. I originally wrote that to support PEP 292 and internationalization in Mailman. This has since been extracted i

[issue46896] add support for watching writes to selected dictionaries

2022-03-01 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <https://bugs.python.org/issue46896> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1259] string find and rfind methods give a TypeError that is misleading

2007-10-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I believe this is because string_find_internal() uses an O& with _PyEval_SliceIndex() to convert its start and end arguments, but the latter function does not accept None. To fix this, you'd have to change string_find_internal() to do its own argument

[issue1259] string find and rfind methods give a TypeError that is misleading

2007-11-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: facundo, robert and i looked at this patch and it seems okay. suggestions: document the reference count semantics of _ParseTupleFinds() and include a definition of that function in a .h file. since its non-public, maybe find.h is the right place to put it

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-09-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 12, 2011, at 12:34 PM, Nick Coghlan wrote: >It wouldn't surprise me at all if the laptop's links were a little off - I >started with a Kubuntu image off VMWare's site quite some time ago, then >dist-upgraded it through a couple

[issue13021] Resource is not released before returning from the functiion

2011-09-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Suman, good eye, confirmed! Thanks for the patch, I'll commit this to 3.2 and 3.3. -- assignee: -> barry ___ Python tracker <http://bugs.python.org

[issue13021] Resource is not released before returning from the function

2011-09-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- title: Resource is not released before returning from the functiion -> Resource is not released before returning from the function ___ Python tracker <http://bugs.python.org/issu

[issue13021] Resource is not released before returning from the function

2011-09-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue13021> ___ ___ Python-bugs-list

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2011-09-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Note that Python 2.6 is also vulnerable to the crash. While we do not have an exploit, we did get a report on security@ which led to this bug. I could be convinced to allow the patch to 2.6 on grounds that if the crasher can be exploited, better to apply

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2011-09-23 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- versions: -Python 3.1 ___ Python tracker <http://bugs.python.org/issue7732> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-10-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 04, 2011, at 01:03 PM, Boštjan Mejak wrote: >I have a better idea... Why don't we change the "linux2" string into just >"linux". That way we will never run into this kind of issue, even in the >future when Linux kerne

[issue13110] test_socket.py failures on ARM

2011-10-05 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : Initial results from warsaw-ubuntu-arm buildbot indicates two failures in test_socket.py == ERROR: test_create_connection_timeout (test.test_socket.NetworkConnectionNoServer

[issue13110] test_socket.py failures on ARM

2011-10-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- versions: +Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.org/issue13110> ___ ___ Python-bugs-list mailin

[issue13110] test_socket.py failures on ARM

2011-10-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: This appears to be the problem: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/868812 I'm going to close this Python bug since it seems to be related to the Linux kernel on armel. Editing the /etc/hosts file gets around the problem and lets the

[issue11250] 2to3 truncates files at formfeed character

2011-10-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Was this patch ever folded into Python 3.2? Looking at the hg repository, I think the answer is "no". It does appear to have made it into Python 2.7 and trunk though (afaict). In point of fact, this bug is hitting me now with 3.2.2. -

[issue11250] 2to3 truncates files at formfeed character

2011-10-07 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: -> barry ___ Python tracker <http://bugs.python.org/issue11250> ___ ___ Python-bugs-list mailing list Unsubscri

[issue11250] 2to3 truncates files at formfeed character

2011-10-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I also noticed that test_parser.py isn't being run in either 3.2 or 3.3. I'll fix that at the same time I port this patch to 3.2. -- ___ Python tracker <http://bugs.python.o

[issue11250] 2to3 truncates files at formfeed character

2011-10-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Okay, re-enabling test_parser.py introduces a number of test failures in test_all_project_files(). Because I don't want to continue to shave the yak on this one, I'm going to wrap this test in @expectedFailure and open a separate

[issue12681] unittest expectedFailure could take a message argument like skip does

2011-10-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: It would be nice if expectedFailure took a bug number and printed a url to the tracker. -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue12

[issue13125] test_all_project_files() expected failure

2011-10-07 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : In working on issue 11250, I noticed that lib2to3's test_parser.py tests were not enabled. Fixing that was easy enough, but then test_all_project_files() in TestParserIdempotency began failing. I've shaved enough yaks for the day so I am goin

[issue11250] 2to3 truncates files at formfeed character

2011-10-07 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue11250> ___ ___ Python-bugs-list mailing list Unsubscri

[issue10976] json.loads() throws TypeError on bytes object

2011-10-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'll just mention that the elimination of bytes handling is a bit unfortunate, since this idiom which works in Python 2 no longer works: fp = urlopen(url) json_data = json.load(fp) /me sad -- nosy: +

[issue13167] Add get_metadata to packaging

2011-10-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 13, 2011, at 04:01 PM, Éric Araujo wrote: >The PEP 376 implementation in packaging.database has been called ugly and >opaque. When discussing PEP 396 for example (that’s why I’m adding Barry and >Antoine to nosy, for their feedback), >get_

[issue13125] test_all_project_files() expected failure

2011-10-21 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Note that I think it's best to fix the underlying failures rather than silence them. ;) -- ___ Python tracker <http://bugs.python.org/is

[issue13239] Remove <> operator from Grammar/Grammar

2011-10-21 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 21, 2011, at 06:35 PM, Benjamin Peterson wrote: >Benjamin Peterson added the comment: > >Or perhaps we don't need joke backward compatibility? (That's nearly 3 years >old.) OTOH, __future__ imports (even jokes) s

[issue13239] Remove <> operator from Grammar/Grammar

2011-10-21 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 21, 2011, at 07:33 PM, Antoine Pitrou wrote: >Antoine Pitrou added the comment: > >> OTOH, __future__ imports (even jokes) should never be removed. > >But their meaning can be altered? >(as part of another joke if you want :) We

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Still investigating, but FTR, this isn't technically an Ubuntu issue as much as it is a Debian issue (and thus inherited by Ubuntu). I can reproduce the failure in Python 3.3 on Debian Wheezy. -- ___ P

[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-24 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- title: test_ssl failures on Ubuntu 11.10 -> test_ssl failures on Debian/Ubuntu ___ Python tracker <http://bugs.python.org/issu

[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: TL;DR: Let's rip out the false assumption that an SSLv23 client cannot connect to an SSLv3/TLSv1 server. I now believe this is simply an erroneous assumption on the part of the Python test suite, namely that SSLv23 method clients cannot connect to SSL

[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 25, 2011, at 09:56 AM, Antoine Pitrou wrote: > >Antoine Pitrou added the comment: > >> It looks like it's been this way for a long time too. > >But tests have always passed here using OpenSSL 1.0.0. Right, sorry, what I

[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm not sure I particularly like this patch, and I can't test it on anything other than Debian/Ubuntu right now, but it does "fix" the test (defined as: making it pass :). AFAICT, there's no way to tell openssl to revert back to t

[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Here's the diff that disables SSLv2 and changes the expected sense of the connection results. Again, I can't test this on other than Debian/Ubuntu atm, so feedback would be useful. -- Added file: http://bugs.python.org/file23518/

[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On further reflection, I don't much like my second patch either. I don't think it'll be portable. I suggest just removing this test. -- ___ Python tracker <http://bugs.pyt

[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 27, 2011, at 10:08 PM, Antoine Pitrou wrote: >Antoine Pitrou added the comment: > >For the record, both patches work fine here (Mageia 1, OpenSSL 1.0.0d). Cool. I'll try to verify them on OS X 10.6 (and maybe 10.7). If they work the

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-10-28 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue13241> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I can't test this on OS X 10.7 because of issue 13241 but it works fine on OS X 10.6. I'm going to go with the first diff (i.e. the non-sense changing version). I can't say why I favor that version but since you've both verified it work

[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-28 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue13218> ___ ___ Python-bugs-list

[issue13173] Default values for string.Template

2011-11-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: When I need defaults, I make them part of the mapping that gets passed into .substitute() and .safe_substitute(). It doesn't feel to me like it's necessary to attach them to the Template instance. Also, couldn't you just subclass string.

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-11-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 29, 2011, at 12:50 PM, Éric Araujo wrote: >Before you put more work into this, it would be nice to get confirmation from >one import expert that the bug is valid: I know the import system only >superficially, and I’m not sure that package/__i

[issue11147] _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h

2011-12-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Confirmed, and this is really annoying. I'm of the mind to apply your second idea. -- nosy: +barry ___ Python tracker <http://bugs.python.org/is

[issue11147] _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h

2011-12-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Sorry, I meant your first option. -- ___ Python tracker <http://bugs.python.org/issue11147> ___ ___ Python-bugs-list mailin

[issue11147] _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h

2011-12-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue11147> ___ ___ Python-bugs-list

[issue13572] import _curses fails because of UnicodeDecodeError('utf8' codec can't decode byte 0xb5 ...') on ARM Ubuntu 3.x

2011-12-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Fails in exactly the same way when built from my shell account using current hg head. Does not fail on same version of OS on amd64. -- ___ Python tracker <http://bugs.python.org/issue13

[issue1294232] Error in metaclass search order

2011-12-16 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue1294232> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13508] ctypes' find_library breaks with ARM ABIs

2011-12-26 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue13508> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13703] Hash collision security issue

2012-01-03 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : This is already publicly known and in deep discussion on python-dev. The proper fix is still TBD. Essentially, hash collisions can be exploited to DoS a web framework that automatically parses input forms into dictionaries. Start here: http

[issue13703] Hash collision security issue

2012-01-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 03, 2012, at 08:24 PM, Antoine Pitrou wrote: >I think on the contrary it must be enabled by default. Leaving security >holes open is wrong. Unless there's evidence of performance regressions or backward incompatibiliti

[issue13703] Hash collision security issue

2012-01-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 03, 2012, at 09:43 PM, Benjamin Peterson wrote: >Barry, when this gets fixed, shall we coordinate release times? Yes! -- ___ Python tracker <http://bugs.python.org/issu

[issue13704] Random number generator in Python core

2012-01-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 04, 2012, at 07:30 AM, Raymond Hettinger wrote: >Why is this listed as a release blocker? It is questionable whether it >should be done at all? It is a very aggressive change. It's a release blocker so that the issue won't get ig

[issue13703] Hash collision security issue

2012-01-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 04, 2012, at 06:00 AM, Paul McMillan wrote: >Developers would be startled to find that ordering stays consistent on a 64 >bit build but varies on 32 bit builds. Well, one positive outcome of this issue is that users will finally viscerally unde

[issue13744] raw byte strings are described in a confusing way

2012-01-09 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : The lexical analysis documentation says this: http://docs.python.org/py3k/reference/lexical_analysis.html?highlight=raw%20bytes "Bytes literals are always prefixed with 'b' or 'B';..." "Both string and bytes literal

[issue13744] raw byte strings are described in a confusing way

2012-01-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 09, 2012, at 03:15 PM, Antoine Pitrou wrote: > >Antoine Pitrou added the comment: > >> Either Python should accept both spellings > >+1. Been annoyed several times by this. The $64k question: is this a

[issue13744] raw byte strings are described in a confusing way

2012-01-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 09, 2012, at 03:35 PM, Antoine Pitrou wrote: > >Antoine Pitrou added the comment: > >> The $64k question: is this a new feature or a bug? :) > >Most certainly a feature... In that case, since we can only add the new prefixes to

[issue13748] Allow rb"" literals as an equivalent to br""

2012-01-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 09, 2012, at 07:27 PM, Antoine Pitrou wrote: >Updated patch with doc. Nicely done. +1 -- ___ Python tracker <http://bugs.python.org/issu

[issue12194] Fix LDFLAGS on Ubuntu 11.04+

2011-05-27 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> duplicate status: open -> closed superseder: -> Building Python on multiarch Debian and Ubuntu ___ Python tracker <http://bugs.python.or

[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Given that 2.6.7 is rc2 with a final release scheduled in 2 days, I don't want to apply this to 2.6 right now. Can you guarantee this won't regress for anybody? If so, then I'm also +0 for 2.6 after th

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-02 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : I'm making this a release blocker for 2.7.2 because I want to ensure that the change is deliberate and appropriate. This is triggered by a bug report in Ubuntu where the change in behavior was noticed: https://bugs.launchpad.net/nova/+bug/791221/+

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Using sorted() makes sense to me. Note that I've at least accomplished one goal, which is to have a tracker issue that discusses the merits of the change. That way, no matter what the RM decides, I can at least point to an issue for justification w

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-09 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +georg.brandl priority: normal -> release blocker ___ Python tracker <http://bugs.python.org/issue12291> ___ ___ Python-

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Raymond, I like your patch and I think it addresses the issue nicely. I made one small change, which is to add a test for non-list-sequenceness instead of changing the existing __dir__is_list test. I think both tests are useful to keep. Benjamin, what do

[issue12335] pysetup create will clobber an existing setup.cfg

2011-06-14 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : I have both a setup.py and a setup.cfg in my package. I wanted to use `pysetup create` to add the new packaging stanzas to my setup.cfg, but instead, pysetup clobbered everything. I think it should instead append (or prepend) the new stuff to the

[issue12313] make install misses packaging module

2011-06-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Nice to see my search didn't find this bug. ;) I already committed a change to install packaging, but you may want to revert that and commit the patch in this issue. I'll leave that for you to decide! -- no

[issue12335] pysetup create will clobber an existing setup.cfg

2011-06-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jun 15, 2011, at 02:04 PM, Éric Araujo wrote: >Well, create is not update :) In its current form, create will save an >existing setup.cfg as setup.cfg.old and generate a new one. The human >operator will then have to merge both files if

[issue12370] Use of super overwrites use of __class__ in class namespace

2011-06-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: That work around seems ugly. Why not back port the fix? It doesn't seem like it could break anything and it's not even arguably a new feature, right? -- nosy: +barry ___ Python tracker <http://bu

[issue12370] Use of super overwrites use of __class__ in class namespace

2011-06-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Ah okay, I didn't see that in the changeset. -- ___ Python tracker <http://bugs.python.org/issue12370> ___ ___ Pytho

[issue12417] Inappropriate copyright on profile files

2011-06-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I think we should apply this to earlier applicable versions too. I would accept this change for Python 2.6. -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue12

[issue12417] Inappropriate copyright on profile files

2011-06-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks Benjamin! -- ___ Python tracker <http://bugs.python.org/issue12417> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12518] In string.Template it's impossible to transform delimiter in the derived class

2011-07-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I don't know that anybody relies on the current behavior and computers are now a bazillion times faster than they were in 2004, so who needs that micro optimization any more? -- ___ Python tracker

[issue10309] dlmalloc.c needs _GNU_SOURCE for mremap()

2011-07-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm running into this while trying to backport Python 2.7.2 to Ubuntu 10.04. Our build machines are throwing an error because they catch the implicit cast so as to prevent problems on ia64 and amd64. http://wiki.debian.org/IMplicitPointerConversio

[issue10309] dlmalloc.c needs _GNU_SOURCE for mremap()

2011-07-19 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: -> barry ___ Python tracker <http://bugs.python.org/issue10309> ___ ___ Python-bugs-list mailing list Unsubscri

[issue10309] dlmalloc.c needs _GNU_SOURCE for mremap()

2011-07-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Python 3.1 is in security only mode, so this patch cannot be applied to that version. -- versions: +Python 3.3 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue10

[issue10309] dlmalloc.c needs _GNU_SOURCE for mremap()

2011-07-19 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue10309> ___ ___ Python-bugs-list

[issue12576] urlib.request fails to open some sites

2011-07-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I think this is also a regression in Python 2.7, as reported here: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/813295 -- nosy: +barry versions: +Python 2.7 ___ Python tracker <http://bugs.python.

[issue12576] urlib.request fails to open some sites

2011-07-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Re-opening, as I think this needs to still be applied to Python 2.7. -- status: closed -> open ___ Python tracker <http://bugs.python.org/issu

[issue12576] urlib.request fails to open some sites

2011-07-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Never mind. This changeset got applied to 2.7 (thanks!) but didn't get linked in the tracker. changeset: 71523:b66bbbdc7abd branch: 2.7 parent: 71518:73ae3729b8fe user:Senthil Kumaran date:Wed Jul 27 09:37:17 2011 +0800 su

[issue12652] Move documentation of test.support into the devguide

2011-07-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: As I just mentioned on python-dev (via Gmane), I'm uncomfortable with moving the documentation for test.support into the devguide. -- nosy: +barry ___ Python tracker <http://bugs.python.org/is

[issue12657] Cannot override JSON encoding of basic type subclasses

2011-07-29 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : I found this out while experimenting with enum types that inherit from int. The json library provides for extending the encoder to handle non-basic types; in those cases, your class's .default() method is called. However, it is impossible to ove

[issue12752] locale.normalize does not take unicode strings

2011-08-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: A cheap way of fixing this would be to test for str-ness of localename and if it's a unicode, just localname.encode('ascii') Or is that completely insane? -- nosy: +barry ___ Python

[issue12752] locale.normalize does not take unicode strings

2011-08-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: For example: diff -r fb49394f75ed Lib/locale.py --- a/Lib/locale.py Mon Aug 15 14:24:15 2011 +0300 +++ b/Lib/locale.py Mon Aug 15 16:47:23 2011 -0400 @@ -355,6 +355,8 @@ """ # Normalize the locale name and extract the e

[issue12752] locale.normalize does not take unicode strings

2011-08-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- keywords: +patch Added file: http://bugs.python.org/file22904/issue12752.diff ___ Python tracker <http://bugs.python.org/issue12

[issue12752] locale.normalize does not take unicode strings

2011-08-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: -> barry ___ Python tracker <http://bugs.python.org/issue12752> ___ ___ Python-bugs-list mailing list Unsubscri

[issue12752] locale.normalize does not take unicode strings

2011-08-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue12752> ___ ___ Python-bugs-list

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-16 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue12326> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @Sandro: >> FTR, for Debian and derivatives, doko chose to use 'linux2' when building on >> linux3. >Luckily that has just been reverted. No, I don't think it has: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633015 On

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Aug 16, 2011, at 02:28 PM, Sandro Tosi wrote: >that's because you're on wheezy, that has 2.7.2-3, while the version >which has the change reverted is -4 (still not transition to testing, >since outdated on kbsd-i386) I think it's b

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Aug 18, 2011, at 01:20 AM, James Y Knight wrote: >James Y Knight added the comment: > >> I will backport the fix to 2.7 and 3.2. > >Uh, wait, so does that mean you're *not* going to do the >compatibility-preserving thing and

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Aug 18, 2011, at 01:15 PM, Charles-François Natali wrote: >Charles-François Natali added the comment: > >> My question too!  I would say that stable releases should probably not get >> this change, but should force sys.platform to lin

  1   2   3   4   5   6   7   8   9   10   >