[issue10046] Correction to atexit documentation

2010-10-08 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: One could also argue that on SIGINT, the program is not killed but interrupted by the signal :) What about ... killed by an unhandled signal ...? -- nosy: +georg.brandl ___ Python tracker

[issue10019] json.dumps with indent = 0 not adding newlines

2010-10-08 Thread Bob Ippolito
Bob Ippolito b...@redivi.com added the comment: The test in the patch assumes a specific iteration order for the dict h, changing the dict to have only one key would fix this problem with the test. -- ___ Python tracker rep...@bugs.python.org

[issue10019] json.dumps with indent = 0 not adding newlines

2010-10-08 Thread Bob Ippolito
Bob Ippolito b...@redivi.com added the comment: The test also repeats an equivalent dict to h in the check function. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10019 ___

[issue10019] json.dumps with indent = 0 not adding newlines

2010-10-08 Thread Bob Ippolito
Bob Ippolito b...@redivi.com added the comment: I just applied a version of this patch with corrections to the tests here: http://code.google.com/p/simplejson/source/detail?r=234 -- ___ Python tracker rep...@bugs.python.org

[issue10040] GZipFile failure on large files

2010-10-08 Thread Robert Rohde
Robert Rohde ro...@robertrohde.com added the comment: It's Windows 7 Ultimate (64-bit) on a very high end system. I don't think it would be very practical to distribute a 2 GB test file. Though I might be able to get it to a couple people if someone wanted to really study the issue. Though

[issue9978] Better wait for slow machine in test_os (_kill_with_event)

2010-10-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Thank you. Committed in r85315(py3k), r85318(release27-maint). -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9978

[issue9978] Better wait for slow machine in test_os (_kill_with_event)

2010-10-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I modified the patch slightly to avoid potential hang. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9978 ___

[issue10041] socket.makefile(mode = 'r').readline() silently removes carriage return

2010-10-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ah, sorry for closing, then. You are right, this is a genuine issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10041 ___

[issue10047] python-2.6.6 coredump running newspipe

2010-10-08 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Can you reproduce it by executing this? format(0.15256118774414062, .2f) -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10047

[issue1708] improvements for linecache

2010-10-08 Thread umaxx
umaxx m...@umaxx.net added the comment: @BreamoreBoy: what do you man by taking this forward? The patch is there. Since three years now, no one else seems to be interested. I personally do not have any interest in this anymore as I just do not use Python for this stuff anymore since a long

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-10-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There are a couple of things I don't understand: +* :class:`~email.generator.Generator` will convert message bodies that + have a :mailheader:`ContentTransferEncoding` of 8bit and a known charset to + instead have a

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-10-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I wanted to go forward with this and so I've committed the patch in r85321. If you're concerned about the lack of support for IP addresses, you can open a new issue (and even provide a patch!). Thank you. -- resolution: - fixed stage:

[issue10040] GZipFile failure on large files

2010-10-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can you show a snippet of the code (or descrive it in detail) that processes the GzipFile? Right now it's not obvious which operations you are doing. -- components: +Library (Lib) -Windows nosy: +pitrou stage: unit test needed -

[issue9003] urllib.request and http.client should allow certificate checking

2010-10-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is the API addition I would suggest for the http.client module: Add two new keyword arguments `context` and `check_hostname` to HTTPSConnection; `context` would allow to pass a SSLContext instance for certificate checking and other options

[issue10048] urllib.request documentation confusing

2010-10-08 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: The urllib.request documentation intermingles old 2.x urllib (FancyURLopener, etc.) with urllib2-inherited (*Handler, build_opener, etc.) primitives without making any distinction. This makes it rather confusing for the reader to figure out

[issue9873] urllib.parse: Allow bytes in some APIs that use string literals internally

2010-10-08 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I've been pondering the idea of adopting a more conservative approach here, since there are actually two issues: 1. Properly quoted URLs are transferred as pure 7-bit ASCII (due to percent-encoding of everything else). However, most of the

[issue10049] Add the null context manager to contextlib

2010-10-08 Thread Hrvoje Nikšić
New submission from Hrvoje Nikšić hnik...@gmail.com: I find that I frequently need the null (no-op) context manager. For example, in code such as: with transaction or contextlib.null(): ... Since there is no easy expression to create a null context manager, we must resort to

[issue10049] Add the null context manager to contextlib

2010-10-08 Thread Hrvoje Nikšić
Changes by Hrvoje Nikšić hnik...@gmail.com: -- components: +Library (Lib) type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10049 ___

[issue10050] urllib.request still has old 2.x urllib primitives

2010-10-08 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: 3.x urllib.request still has a lot of stuff inherited from 2.x urllib: URLopener, FancyURLopener, the urlretrieve implementation (perhaps others?). Ideally, urlretrieve should be reimplemented using urlopen or build_opener, and the other

[issue10049] Add a no-op (null) context manager to contextlib

2010-10-08 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: Add the null context manager to contextlib - Add a no-op (null) context manager to contextlib ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10049

[issue10049] Add a no-op (null) context manager to contextlib

2010-10-08 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: +1 Looks like a reasonable use case. -- nosy: +michael.foord, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10049 ___

[issue10049] Add a no-op (null) context manager to contextlib

2010-10-08 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Patch is missing tests and documentation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10049 ___

[issue10049] Add a no-op (null) context manager to contextlib

2010-10-08 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: About your patch: - __enter__() might return self instead of None... i don't really know which choice is better. with Null() as x: works in both cases - __exit__() has no result value, pass is enough - I don't like Null name, I

[issue10049] Add a no-op (null) context manager to contextlib

2010-10-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I also find the Null/_null/null affair confusing. -- nosy: +eric.araujo stage: - patch review versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10049

[issue10049] Add a no-op (null) context manager to contextlib

2010-10-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: @contextlib.contextmanager def null(): yield Do we really need to add this to the stdlib? Previous proposals to add an identity function or no-op function have always be refused. This one seems even less useful. -- nosy: +pitrou

[issue10051] distutils fail to install unicode-encoded files with POSIX locale

2010-10-08 Thread Michał Górny
New submission from Michał Górny mgo...@gentoo.org: I was reported an issue where the user was unable to install my package [1] using python3.1. I was able to guess the issue comes from locale being set to POSIX and reproduce it. It seems that the reasons are utf8-encoded characters in the

[issue10049] Add a no-op (null) context manager to contextlib

2010-10-08 Thread Hrvoje Nikšić
Hrvoje Nikšić hnik...@gmail.com added the comment: Thank you for your comments. @Michael: I will of course write tests and documentation if there is indication that the feature will be accepted for stdlib. @Antoine: it is true that a null context manager can be easily defined, but it does

[issue10049] Add a no-op (null) context manager to contextlib

2010-10-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: @Antoine: it is true that a null context manager can be easily defined, but it does requires a separate generator definition, often repeated in different modules. This is markedly less elegant than just using contextlib.null() in an

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-10-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Generator converts 8bit bodies into 7bit bodies by applying an appropriate 7bit CTE. The reason it does this is that the output of Generator will often be passed to some other Python library function (most often smtplib) that can only

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-10-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Generator converts 8bit bodies into 7bit bodies by applying an appropriate 7bit CTE. The reason it does this is that the output of Generator will often be passed to some other Python library function (most often smtplib) that can only handle

[issue10049] Add a no-op (null) context manager to contextlib

2010-10-08 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The difference here is the one pointed out in the original post: for a function, you usually only care about having a value, so if you don't want to call it, you can just swap in a None value instead. If you need an actual callable, then

[issue10049] Add a no-op (null) context manager to contextlib

2010-10-08 Thread Hrvoje Nikšić
Hrvoje Nikšić hnik...@gmail.com added the comment: That is what we are using now, but I think a contextlib.null() would be useful to others, i.e. that its use is a useful idiom to adopt. Specifically I would like to discourage the duplicated code idiom from the report, which I've seen all

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-10-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Even if smtplib accepted bytes (it currently does not), *Generator* is still producing unicode, and should produce valid unicode and still insofar as possible preserve the meaning of the original message. This means unicode acts as if

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-10-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Even if smtplib accepted bytes (it currently does not), That sounds like a critical failure. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4661

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-10-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I can only fix one package at a time :) And in case it isn't clear, the Generator produces ASCII-only unicode, which is in many ways a rather strange API, is one of the chief motivations for email6. --

[issue10049] Add a no-op (null) context manager to contextlib

2010-10-08 Thread Hrvoje Nikšić
Hrvoje Nikšić hnik...@gmail.com added the comment: I considered using a variable, but I went with the factory function for two reasons: consistency with the rest of contextlib, and equivalence to the contextmanager-based implementation. Another reason is that it leaves the option of adding

[issue5117] os.path.relpath problem with root directory

2010-10-08 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5117 ___

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-10-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Here is the final pre-alpha patch. This one includes the BytesFeedParser class and a test. Unless there are objections I'd like to commit this. Believing the code needs a more thorough review would be a valid objection :) --

[issue10046] Correction to atexit documentation

2010-10-08 Thread Jason Baker
Jason Baker amnorv...@gmail.com added the comment: I like that phrasing. I think it would be a good idea to mention that this includes SIGINT by default, just to be explicit. -- ___ Python tracker rep...@bugs.python.org

[issue10047] python-2.6.6 coredump running newspipe

2010-10-08 Thread Thomas Klausner
Thomas Klausner t...@giga.or.at added the comment: # python2.6 Python 2.6.6 (r266:84292, Sep 23 2010, 08:13:08) [GCC 4.1.3 20080704 prerelease (NetBSD nb2 20081120)] on netbsd5 Type help, copyright, credits or license for more information. format(0.15256118774414062, .2f) '0.15' --

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-10-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: After RM approval on irc, committed in r85322, with some additional doc fixes but no code changes relative to the last patch posted here. I'm leaving this open because I still want to try to improve the handling of non-ascii bytes in

[issue10047] python-2.6.6 coredump running newspipe

2010-10-08 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment: Does this always happen with a particular feed? Could you provide us with a configuration that reproduces the problem? Also, as R. David Murray asked, does this happen with 2.7? -- nosy: +rbp

[issue9003] urllib.request and http.client should allow certificate checking

2010-10-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a preliminary patch for http.client. I think it would be good to have local tests using a custom HTTPS server, too. -- keywords: +patch Added file: http://bugs.python.org/file19162/httpcli.patch

[issue6825] Minor documentation bug with os.path.split

2010-10-08 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hi Evan, all your comments make sense, so I prepared a new patch about it. I decided to go with the first option and adding a note about the possible different strings. Regards, Sandro -- versions: +Python 3.2 -Python 2.6 Added

[issue7642] [patch] Minor improvement in os.system doc

2010-10-08 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hello, I took the freedom to refresh this patch, clarifying the first Val's addition (as requested by Éric) and reformat the whole system() section to wrap a column 80. Regards, Sandro -- nosy: +sandro.tosi Added file:

[issue7642] [patch] Minor improvement in os.system doc

2010-10-08 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- versions: +Python 3.2 -Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7642 ___

[issue10017] pprint.pprint raises TypeError on dictionaries with user-defined types as keys

2010-10-08 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment: FWIW, the problem still occurs on the most recent release31-maint checkout (as of r85323), and does not happen on py3k (3.2a2). -- nosy: +rbp ___ Python tracker rep...@bugs.python.org

[issue1553375] Add traceback.print_full_exception()

2010-10-08 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: Is that normal to have two methods test_full_traceback_is_full at the same place, in full_traceback.patch / r.david.murray / 2010-08-04 02:32 ? format_exception should have the same semantic as print_exception indeed. --

[issue9873] urllib.parse: Allow bytes in some APIs that use string literals internally

2010-10-08 Thread Stephen J. Turnbull
Changes by Stephen J. Turnbull step...@xemacs.org: -- nosy: +sjt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9873 ___ ___ Python-bugs-list

[issue10029] Equivalent to code for zip is wrong in Python 3

2010-10-08 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Oct 7, 2010 at 3:37 PM, Raymond Hettinger rep...@bugs.python.org wrote: .. I'll update the docs with an equivalent that works and that has a comment showing when the StopIteration is raised and caught. In this

[issue10049] Add a no-op (null) context manager to contextlib

2010-10-08 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10049 ___ ___ Python-bugs-list

[issue1777412] Python's strftime dislikes years before 1900

2010-10-08 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: kiorky, Thank you for the updated patch, but since it implements a new feature, it cannot be applied to 2.x series. I am +1 on removing year 1900 limitation from datetime.strftime in 3.x, but you need to consider how

[issue1545463] New-style classes fail to cleanup attributes

2010-10-08 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Does anyone want to weigh in on this? I am merging in the issue812369 nosy list. I would like to either apply gc-import.patch or close this as superseded by issue812369. -- keywords: +needs review -patch nosy:

[issue4775] Incorrect documentation - UTC time

2010-10-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4775 ___

[issue9866] Inconsistencies in tracing list comprehensions

2010-10-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9866 ___

[issue10017] pprint.pprint raises TypeError on dictionaries with user-defined types as keys

2010-10-08 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment: If I'm understanding this correctly, this fails on 3.1 and not (although, actually, it does) on py3k/3.2 because: * pprint._safe_key.__lt__ checks rv = self.obj.__lt__(other.obj) and falls back to id comparison if rv is

[issue10045] poor cStringIO.StringO seek performance

2010-10-08 Thread Patrick Strawderman
Patrick Strawderman patr...@zope.com added the comment: Fair enough, but there is a great deal of existing code that already uses cStringIO. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10045

[issue8902] add datetime.time.now() for consistency

2010-10-08 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I need to correct myself: datetime.today() is not an alternative spelling of date.today(), but rather a function returning current datetime which subtly different from datetime.now(). --

[issue8902] add datetime.time.now() for consistency

2010-10-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- stage: - needs patch type: - feature request versions: -Python 2.7, Python 3.1, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8902

[issue3976] pprint._safe_repr is not general enough in one instance

2010-10-08 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment: Armin: this has the problem that, if the object you're trying to compare is a class, self.obj.__lt__ expects a different number of parameters (i.e., it expects the instance). See issue 10017 . Testing with works. -- nosy:

[issue7771] dict view comparison methods are not documented

2010-10-08 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hello, here attached a patch for this bug. I hope the format / = / == / != / = / is clearly understandable as an alternative sequence of different operations. Regards, Sandro -- keywords: +patch nosy: +sandro.tosi Added file:

[issue10029] Equivalent to code for zip is wrong in Python 3

2010-10-08 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Refuse the temptation to hypergeneralize ;-) Also refuse the temptation to double the size of the docs (more != better). In the case of min/max, the pure python versions may add some value in showing that the first match is

[issue4388] test_cmd_line fails on MacOS X

2010-10-08 Thread Stephen Hansen
Stephen Hansen me+pyt...@ixokai.io added the comment: FWIW, this still happens on the latest of /branches/py3k, when LANG does not match up to the enforced fs encoding-- which for me happened when I ran the buildslave under launchd. I was finally able to reproduce it, and after doing so,

[issue9992] Command line arguments are not correctly decodedif locale and fileystem encodings aredifferent

2010-10-08 Thread Stephen Hansen
Stephen Hansen me+pyt...@ixokai.io added the comment: This issue seems to be the cause of issue4388 -- and cmdline_encoding-2.patch fixes it, fwiw. -- nosy: +ixokai ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9992

[issue1553375] Add traceback.print_full_exception()

2010-10-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No, that would be a bug, thanks. Also thanks for reminding me about this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1553375

[issue4388] test_cmd_line fails on MacOS X

2010-10-08 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: FWIW, this still happens on the latest of /branches/py3k, when LANG does not match up to the enforced fs encoding ixokai has the bug on Snow Leopard x86. -- ___ Python tracker

[issue7771] dict view comparison methods are not documented

2010-10-08 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: We should probably just make reference to the collections.Set() abstract API instead of listing out all operations. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org

[issue9992] Command line arguments are not correctly decodedif locale and fileystem encodings aredifferent

2010-10-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The important point is that we have to use the same encoding to decode and encode command line arguments. I don't think I agree with this. It's only important when you run a Python interpreter using subprocess, but the point of using

[issue4388] test_cmd_line fails on MacOS X

2010-10-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: For the record, this can be now reproduced under Linux by forcing different locale and filesystem encodings: $ PYTHONFSENCODING=utf8 LANG=ISO-8859-1 ./python -m test.regrtest test_cmd_line [1/1] test_cmd_line test test_cmd_line failed --

[issue10017] pprint.pprint raises TypeError on dictionaries with user-defined types as keys

2010-10-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: A simpler change would to replace: rv = self.obj.__lt__(other.obj) with rv = type(self.obj).__lt__(self.obj, other.obj) -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue10008] Two links point to same place

2010-10-08 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: You initial link I only see one entry, Thread (class in threading), which points to http://docs.python.org/library/threading.html#threading.Thread as it should. I do not see a duplicate link nearby. I have no idea what ', [1]' is supposed to

[issue7771] dict view comparison methods are not documented

2010-10-08 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hello Raymond, thanks for the review. I've reworked the patch to refer to Collections.Set (but is there a way to make that reference a link to the description of Collections ABCs?) and so I've also removed all the examples, leaving only the

[issue10011] `except` doesn't use `isinstance`

2010-10-08 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Questions should be asked on python-list or other discussion forums, not nere. If this were a feature-request, it would need a realistic use-case. If the implied change were requested, I would think it should be rejected as conflicting with

[issue7771] dict view comparison methods are not documented

2010-10-08 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: The '^' corresponds to the __xor__ magic method. snip from _abcoll.py: def __xor__(self, other): if not isinstance(other, Set): if not isinstance(other, Iterable): return

[issue10021] Format parser is too permissive

2010-10-08 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: This is a bug report in that there is a discrepancy between the grammar in the doc and the behavior. Laxiness can lead to portability problems if CPython is lax compared to a normal reading of the spec and another implementation takes the

[issue10025] random.seed not initialized as advertised

2010-10-08 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 3.1 has the same problem (and the same results as above) Assuming behavior is not changed, please suggest a specific rewording that you would be happy with and that is not too verbose. -- components: +Documentation nosy: +terry.reedy

[issue1051] certificate in Lib/test/test_ssl.py expires in February 2013

2010-10-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Cert generation script committed in r85327. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1051

[issue10018] IDLE not loading in xp pro due to tcl issue

2010-10-08 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Please ask for help with installation and usage on the python-list mailing list, which is also mirrored on the gmane.comp.python.general newsgroup at news.gmane.org and the comp.lang.python usenet newsgroup. This issue tracker is for python

[issue7642] Minor improvement to os.system doc

2010-10-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Looks good. (Before committing, one space should be changed to two spaces after a full stop in the first diff hunk.) -- assignee: georg.brandl - d...@python nosy: +d...@python stage: - patch review title: [patch] Minor improvement in

[issue10043] UnboundLocalError with local variable set by setattr, caused by code run later

2010-10-08 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The usual way to set a module variable by name, rather than setattr(modules[__name__], 'name', 'value') is globals()['name'] = 2 name 2 Issues of working with external names, such as from database columns, has been discussed several times on

[issue10025] random.seed not initialized as advertised

2010-10-08 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Perhaps replace equivalent with based on or some such. This is a very minor nit and likely of interest to no one except the OP. -- priority: normal - low ___ Python tracker

[issue8445] buildbot: test_ttk_guionly failures (test_traversal, test_tab_identifiers, test_identify, test_heading_callback)

2010-10-08 Thread Stephen Hansen
Stephen Hansen me+pyt...@ixokai.io added the comment: I'm still getting this error on the release27-maint branch on my Snow Leopard slave, and the issue8445.diff fixes it: will this fix be backported? I tested issue8445.diff and it applies cleanly, and fixes the issue. -- nosy:

[issue8445] buildbot: test_ttk_guionly failures (test_traversal, test_tab_identifiers, test_identify, test_heading_callback)

2010-10-08 Thread Stephen Hansen
Stephen Hansen me+pyt...@ixokai.io added the comment: BTW, release31-maint appears to have the same issue, its fouling up that build on my slave too. I tried applying the ttk3k.patch but it didn't apply cleanly, and I'm completely ignorant of TK so can't really figure out what's different

[issue10008] Two links point to same place

2010-10-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: You initial link I only see one entry, Thread (class in threading), which points to http://docs.python.org/library/threading.html#threading.Thread as it should. I do not see a duplicate link nearby. It used to be there. Please

[issue1553375] Add traceback.print_full_exception()

2010-10-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I like 'allframes', so I changed to that. The updated patch also adds the allframes parameter to format_exception. In going over the tests I realized that I'm not sure the output for the case of chain=True is correct. Opinions? If it

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-10-08 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: issue2636-20101009.zip is a new version of the regex module. It appears from a posting in python-list and a closer look at the docs that string positions in the 're' module are limited to 32 bits, even on 64-bit builds. I think

[issue1545463] New-style classes fail to cleanup attributes

2010-10-08 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: looks harmless to me. though i think issue812369 looks okay as well at first glance. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1545463

[issue812369] module shutdown procedure based on GC

2010-10-08 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: 0001-update-GC-shutdown-patch.patch looks sane to me at first glance. any other opinions? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue812369