[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Martin v. Löwis wrote: Martin v. Löwis mar...@v.loewis.de added the comment: Your name will end up being partially escaped as surrogate: 'L\udcf6wis' Further processing will fail That depends on the further processing, no?

[issue8608] fix_import prefixes . to already relative imports

2010-05-04 Thread Torsten Marek
New submission from Torsten Marek shlo...@gmx.net: The fixer for absolute - relative imports prefixes . to already relative imports, i.e. from . import something will be converted into from .. import something if something.py exists. This of course will raise an exception on

[issue8608] fix_import prefixes . to already relative imports

2010-05-04 Thread Torsten Marek
Torsten Marek shlo...@gmx.net added the comment: This file contains the same patch, but as a mercurial revision bundle. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8608 ___

[issue8608] fix_import prefixes . to already relative imports

2010-05-04 Thread Torsten Marek
Torsten Marek shlo...@gmx.net added the comment: Forgot the file name last time. -- Added file: http://bugs.python.org/file17197/fix-no-prefix-relative-import.bundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8608

[issue8609] itertools: problem with nested groupby, list()

2010-05-04 Thread Nico
New submission from Nico nico.schloe...@gmail.com: Hi, I ran into a bit of an unexpected issue here with itertools. I need to say that I discovered itertools only recently, and that maybe my way of approaching the problem is not what I want to do. If you think this may be the case, please

[issue8609] itertools: problem with nested groupby, list()

2010-05-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: You'd be better off asking this on the python mailing list http://mail.python.org/mailman/listinfo/python-list (or in some other forum); this tracker is for reporting bugs in Python itself, not bugs in code written in Python. [The problem

[issue8609] itertools: problem with nested groupby, list()

2010-05-04 Thread Nico
Nico nico.schloe...@gmail.com added the comment: Okay, thanks for the hint. Closing as invalid. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8609 ___

[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: New version of my patch, which looks much better. Summary: Issue #8603: Create os.environb and os.getenvb() on POSIX system. os.unsetenv() encodes str argument using file system encoding and surrogateescape error handler

[issue8514] Create fsencode() and fsdecode() functions in os.path

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I think that fsencode() (and fsdecode()) should be specific to POSIX. I don't know any good reason to encode a nice and correctly encoded unicode string to the ugly MBCS encoding. --

[issue8513] subprocess: support bytes program name (POSIX)

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Bytes program name problem should be splitted in two parts: (a) subprocess.call([b'env']) and subprocess.call([b'env'], env={'PATH': '/usr/bin'}): bytes program and unicode environ (b) bytes program and bytes environ Part (a)

[issue1533] Bug in range() function for large values

2010-05-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the fixes. The latest patch looks good to me. Alexander, is it okay for me to commit this? -- resolution: - accepted ___ Python tracker rep...@bugs.python.org

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-04 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: On POSIX (but not on Mac OS X), Python3 calls get_codeset() to get the file system encoding. If this function fails, sys.getfilesystemencoding() returns None. PyUnicode_DecodeFSDefaultAndSize() fallbacks to utf-8 whereas

[issue8557] subprocess PATH semantics and portability

2010-05-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Fair enough. Thank you for your detective work, and hopefully someone will be interested enough to pick this up again later. -- status: open - languishing ___ Python tracker

[issue8608] fix_import prefixes . to already relative imports

2010-05-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks, but this is a duplicate of issue 8553, which has already been fixed. -- nosy: +r.david.murray resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - 2to3 breaks relative imports

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2010-05-04 Thread Tomas Hoger
Tomas Hoger tho...@redhat.com added the comment: Can anyone move this to Stage: patch review (for the fix approach proposed in msg90336)? Or does anyone have better idea on how to move this closer to final fix or wontfix / reject? Thank you! --

[issue1533] Bug in range() function for large values

2010-05-04 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: On May 4, 2010, at 7:27 AM, Mark Dickinson rep...@bugs.python.org wrote: Mark Dickinson dicki...@gmail.com added the comment: Thanks for the fixes. The latest patch looks good to me. Alexander, is it okay for me to

[issue1533] Bug in range() function for large values

2010-05-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Hi Alexander, I took the liberty of messing with your patch slightly; I didn't want to ask you to make further changes since the patch was fine, and my messing was mostly just to satisfy my own fussiness (only the first two items were

[issue1533] Bug in range() function for large values

2010-05-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Re emacs: C-c . python should set a python 2.x-friendly indentation mode. There's also a python-new style floating around somewhere on the web (not part of emacs as standard), suitable for the 4-space indent style that's supposed to be

[issue8242] Improve support of PEP 383 (surrogates) in Python3: meta-issue

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I opened a different issue to use surrogates in Python module path: #8611, but the issue is not specific to surrogates (Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)). --

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-05-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: We could have a separate list storing the original bytes form of sys.path; this list would be used by find_module() as long as Py_FileSystemDefaultEncoding isn't initialized. -- nosy: +pitrou ___

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-05-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Or find_module() could use wcstombs() as long as Py_FileSystemDefaultEncoding is NULL. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8611

[issue8477] _ssl: support surrogates in filenames, and bytes/bytearray filenames

2010-05-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Most of this should be solved if the patch in issue8550 gets accepted. As for test_decode_certificate, it seems it isn't used anywhere, and could therefore be deleted. -- ___ Python tracker

[issue8313] unprintable AssertionError object message in unittest tracebacks

2010-05-04 Thread Gunnlaugur Thor Briem
Gunnlaugur Thor Briem gunnlau...@gmail.com added the comment: Replacing the message with its repr seems to me at least strongly preferable to the current “hide it all” behavior. :) Better, msg.encode('ascii', 'backslashreplace') does what repr does with unencodable characters, but does not

[issue3823] ssl.wrap_socket() is incompatible with servers that drop privileges, due to keyfile requirement

2010-05-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There's a patch in issue8550 to expose SSL contexts as first-class objects. It allows you to create first your context object(s) and load certificates, then drop privileges, then create sockets using this/these contexts. In any case, resolution

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2010-05-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can anyone move this to Stage: patch review (for the fix approach proposed in msg90336)? Or does anyone have better idea on how to move this closer to final fix or wontfix / reject? Thank you! I stand by my opinion that adding another hack

[issue8313] unprintable AssertionError object message in unittest tracebacks

2010-05-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Sounds like a good solution - I'll look at this, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8313 ___

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I have a patch implementation most of the point described in my first message. I have to rework on it before submit it. The patch depends on other issues, and I prefer to first fix all related issues. --

[issue8612] multiprocessing Queue module failes to send INIConfig objects

2010-05-04 Thread Zaar Hai
New submission from Zaar Hai haiz...@gmail.com: I'm using INIConfig class from iniparse module(http://code.google.com/p/iniparse). I've tried to use multiprocessing.Queue to propagate configuration changes between the processes. However, INIConfig instances have troubles being pushed through

[issue8313] unprintable AssertionError object message in unittest tracebacks

2010-05-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Very recently, issue8533 changed regrtest.py to use 'backslashreplace' when printing errors. This issue seems very similar -- nosy: +amaury.forgeotdarc, haypo ___ Python tracker

[issue8567] decimal module doesn't respect precedence rules for exceptional conditions

2010-05-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Precedence fixed in r80753 through r80756. That still leaves open the problem of what flags should be set; however, we should discuss this in a separate issue. -- resolution: - fixed stage: patch review - committed/rejected

[issue8613] Decimal module flags undetermined when a signal is trapped.

2010-05-04 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: In an effort to keep to one issue per tracker item, I'm pulling this issue out of the comments on issue 8567. Issue: if a Decimal operation raises several signals, and one or more of those signals is trapped, how should that operation

[issue8313] unprintable AssertionError object message in unittest tracebacks

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The example raises an AssertionError(u'\n- \ufffd+ \ufffd\ufffd') which is converted to string by traceback.format_exception(). This function fails in _some_str() on str(value) instruction. You can reproduce the error with:

[issue8313] unprintable AssertionError object message in unittest tracebacks

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Very recently, issue8533 changed regrtest.py to use 'backslashreplace' when printing errors. This issue seems very similar Issue #8533 is not directly related because in this issue the error occurs before writing the traceback

[issue1533] Bug in range() function for large values

2010-05-04 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, May 4, 2010 at 8:34 AM, Mark Dickinson rep...@bugs.python.org wrote: .. I took the liberty of messing with your patch slightly; I didn't want to ask you to make further changes since the patch was fine, and my

[issue1533] Bug in range() function for large values

2010-05-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: belopolsky - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1533 ___

[issue8313] unprintable AssertionError object message in unittest tracebacks

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Attached patch fixes _some_str() function of the traceback module: encode unicode exception message to ASCII using backslashreplace error handler. ASCII is not the best choice, but str(unicode(...)) uses also ASCII (the default

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2010-05-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: FWIW I agree with Antoine. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5753 ___

[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2010-05-04 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@twistedmatrix.com added the comment: You mean that socket.create_connection(), httplib (issue 3972) and ftplib (issue 8594) should have used a different API to implement their source_address option? I'm not sure what you mean. The problem here is that you

[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2010-05-04 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: One of the tests in test_socket is checking that an attempt to connect to a port with no server running gives socket.error. For that, we need a port that's guaranteed to have no server present. I think that one of the tests in test_httplib

[issue1533] Bug in range() function for large values

2010-05-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: [Some of the Alexander's questions about procedures aren't really related to this issue; I've answered those offline. Here are the answers to the others.] - initialize low to NULL, to match the Py_XDECREF(low) (could change that

[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2010-05-04 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@twistedmatrix.com added the comment: One of the tests in test_socket is checking that an attempt to connect to a port with no server running gives socket.error. For that, we need a port that's guaranteed to have no server present. A good way to do this is to

[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2010-05-04 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: Thanks for the suggestions, I'll see if I can implement something based on them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8576 ___

[issue1533] Bug in range() function for large values

2010-05-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Applied to trunk in r80758. Do people want this to go into 2.6 as well? The patch would need to be modified to produce a warning for floats instead of giving a TypeError (and the tests would need to be modified to test for that warning).

[issue1533] Bug in range() function for large values

2010-05-04 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: On Tue, May 4, 2010 at 12:32 PM, Mark Dickinson rep...@bugs.python.org wrote: Mark Dickinson dicki...@gmail.com added the comment: Applied to trunk in r80758. Do people want this to go into 2.6 as well? Also, should

[issue8008] Allow Arbitrary OpenID providers in this bug tracker

2010-05-04 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Someway, the closed state vanished. -- nosy: -georg.brandl, r.david.murray priority: normal - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8008

[issue8008] Allow Arbitrary OpenID providers in this bug tracker

2010-05-04 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Uhmmm... My browser seems crazy. -- nosy: +georg.brandl, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8008 ___

[issue1533] Bug in range() function for large values

2010-05-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: +1 for forward-porting/adapting relevant tests to py3k. -- assignee: mark.dickinson - belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1533

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

2010-05-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Any idea where this path comes from? I can go spelunking through the code myself to investigate. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8586

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-05-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8611 ___

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

2010-05-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Ok, so the cause of the bug is 'simple' - not sure what the best fix is. When I run python from a freshly built py3k I have the following as sys.path: ['', '/dev/null/lib/python32.zip', '/compile/python-trunk3/Lib',

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

2010-05-04 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Maybe you just want to relax the test in the except clause of test.support.unlink()? Or change the test to if error.errno not in (errno.ENOENT, errno.ENOTDIR) ? -- ___ Python tracker

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

2010-05-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: On trunk the definition of unlink is: def unlink(filename): try: os.unlink(filename) except OSError: pass :-) Changing it as you suggest fixes the problem though. Ok to commit? --

[issue8614] test_gzip fails on OS X

2010-05-04 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: test_buffered_reader test_gzip is failing for me since r80720, on trunk on OS X 10.6.3: == ERROR: test_buffered_reader (__main__.TestGzip)

[issue8614] test_gzip fails on OS X

2010-05-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can you try the following: f = open('LICENSE', 'rb') f.flush() -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8614 ___

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

2010-05-04 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: +1 -- assignee: barry - michael.foord resolution: works for me - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8586 ___

[issue8614] test_gzip fails on OS X

2010-05-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Yep, that's enough to trigger it: Python 2.7b1+ (trunk:80760, May 4 2010, 19:27:27) [GCC 4.2.1 (Apple Inc. build 5659)] on darwin Type help, copyright, credits or license for more information. f = open('LICENSE', 'rb') [35032 refs]

[issue8614] test_gzip fails on OS X

2010-05-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, can you try the following patch then: Index: Lib/gzip.py === --- Lib/gzip.py (révision 80760) +++ Lib/gzip.py (copie de travail) @@ -362,7 +362,7 @@ if self.mode ==

[issue1533] Bug in range() function for large values

2010-05-04 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am attaching a py3k patch that adds new tests. Since there are no end user visible changes, I don't believe a Misc/NEWS entry is needed. A commit message may read: Issue #1533: Tests only. Added tests for consistency

[issue8614] test_gzip fails on OS X

2010-05-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: That fixes the failure. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8614 ___ ___

[issue5727] doctest pdb readline broken

2010-05-04 Thread Sriram
Sriram sriramrathinav...@yahoo.com added the comment: Hi, On second thoughts, it made more sense to validate pdb directly instead of validating doctest's debugger. I have also used few inputs, I got from irc chat at #python-dev room in writing the test case. Thanks to them. I have attached

[issue8614] test_gzip fails on OS X

2010-05-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks, Antoine. Applied in r80762 through r80765. -- resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org

[issue5727] doctest pdb readline broken

2010-05-04 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone exar...@twistedmatrix.com: -- stage: unit test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5727 ___

[issue8483] asyncore.dispatcher's __getattr__ method produces confusing effects

2010-05-04 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: As per discussion on #python-dev we think it's better to proceed as follows: for python 2.7 and 3.2: - fix __getattr__ error message - raise a DeprecationWarning if cheap inheritance is used and definitively remove its support in the

[issue812369] module shutdown procedure based on GC

2010-05-04 Thread cburroughs
Changes by cburroughs chris.burrou...@gmail.com: -- nosy: +cburroughs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue812369 ___ ___

[issue7835] Minor bug in 2.6.4 related to cleanup at end of program

2010-05-04 Thread cburroughs
Changes by cburroughs chris.burrou...@gmail.com: -- nosy: +cburroughs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7835 ___ ___ Python-bugs-list

[issue5727] doctest pdb readline broken

2010-05-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5727 ___ ___

[issue8615] turtle.py - backport of 3.1 features

2010-05-04 Thread Gregor Lingl
Gregor Lingl gregorli...@users.sourceforge.net added the comment: Here, just for your information, the appropriate unified diff (from the version in 2.7b1 to the new submitted one. -- keywords: +patch Added file: http://bugs.python.org/file17207/turtle27b1_to_turtle27.diff

[issue8615] turtle.py - backport of 3.1 features

2010-05-04 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8615 ___ ___ Python-bugs-list

[issue8616] Changes to content of Demo/turtle

2010-05-04 Thread Gregor Lingl
New submission from Gregor Lingl gregorli...@users.sourceforge.net: turtleDemo.py contains a string referring to the outdated xturtle. Should be replaced according to the submitted diff. Moreover I'd like to propose to add to demo-scripts to the Demo-directory, namely tdemo_nim.py and

[issue8616] Changes to content of Demo/turtle

2010-05-04 Thread Gregor Lingl
Changes by Gregor Lingl gregorli...@users.sourceforge.net: Added file: http://bugs.python.org/file17209/tdemo_nim.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8616 ___

[issue8616] Changes to content of Demo/turtle

2010-05-04 Thread Gregor Lingl
Changes by Gregor Lingl gregorli...@users.sourceforge.net: Added file: http://bugs.python.org/file17210/tdemo_round_dance.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8616 ___

[issue8615] turtle.py - backport of 3.1 features

2010-05-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Unfortunately, I feel that you are (again) too late here. 2.7 has already seen its first beta release, so new features are not acceptable. You can still try to petition acceptance of new features with the release manager. --

[issue8616] Changes to content of Demo/turtle

2010-05-04 Thread Gregor Lingl
Changes by Gregor Lingl gregorli...@users.sourceforge.net: Added file: http://bugs.python.org/file17211/tdemo_scribble.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8616 ___

[issue8432] buildbot: test_send_signal of test_subprocess failure

2010-05-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I get this same failure on Mac OS X 10.6.3 as well. -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8432 ___

[issue8615] turtle.py - backport of 3.1 features

2010-05-04 Thread Gregor Lingl
Gregor Lingl gregorli...@users.sourceforge.net added the comment: As far as I remember, in the past there was a feature - freeze only with the appearance of beta2? Maybe I'm wrong. So there remains only to try to interpret the term new feature appropriately, as all those features are already

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

2010-05-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Committed revision 80771. -- assignee: michael.foord - barry resolution: accepted - works for me stage: needs patch - committed/rejected status: open - closed ___ Python tracker

[issue8615] turtle.py - backport of 3.1 features

2010-05-04 Thread Gregor Lingl
Gregor Lingl gregorli...@users.sourceforge.net added the comment: I see, that Benjamin Peterson, the release manager, is on the nosy list now. So please decide on this issue. If you need any supplementary information, I'll try to provide it. (The issue concerning the adoption of this version

[issue8616] Changes to content of Demo/turtle

2010-05-04 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8616 ___ ___ Python-bugs-list

[issue7472] email.encoders.encode_7or8bit(): typo iso-2202. iso-2022 is correct.

2010-05-04 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com added the comment: Adding unit-test for the patch -- keywords: +patch Added file: http://bugs.python.org/file17212/test_email.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7472

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Here is a patch for the first solution: display a fatal error if we are unable to get the locale encoding. It does always exit with a fatal error if nl_langinfo(CODESET) is not available (and Py_FileSystemDefaultEncoding is not

[issue8617] Non-existent variables documented

2010-05-04 Thread Dave Abrahams
New submission from Dave Abrahams d...@boostpro.com: http://docs.python.org/library/site.html#module-site mentions two variables that don't appear in my Python 2.6.5 installation's site module: PYTHONNOUSERSITE New in version 2.6. PYTHONUSERBASE New in version 2.6. -- assignee:

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Patch for the second solution (fallback to utf-8 on get_codeset() failure): - create a subfunction initfsencoding() (Py_InitializeEx is already very long) - hardcode the encoding to utf-8 if nl_langinfo(CODESET) is missing -

[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @loewis: So do you agree to add os.environb and os.getenvb()? The documentation of os.environb and os.getenvb() in my last patch is very short. I'm not inspired. We told me on IRC to not use function annotations because annotation

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8610 ___ ___

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-04 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8610 ___ ___ Python-bugs-list mailing

[issue8618] test_winsound failing on Windows Server 2008

2010-05-04 Thread Brian Curtin
New submission from Brian Curtin cur...@acm.org: Some of the test_alias_* functions in test_winsound are failing with a RuntimeError Failed to play sound when run on Server 2008 R2. The sound from each test exists in the registry so the test doesn't end up getting skipped. I'm guessing there

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8610 ___

[issue8313] unprintable AssertionError object message in unittest tracebacks

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The downside of using backslashreplace (or repr, for that matter) is that it does not preserve lengths, so the diff markers can get misaligned. I find that an acceptable tradeoff, but 'replace' is another option that preserves

[issue665761] reduce() masks exception

2010-05-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue665761 ___ ___

[issue4265] shutil.copyfile() leaks file descriptors when disk fills

2010-05-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4265 ___ ___

[issue4265] shutil.copyfile() leaks file descriptors when disk fills

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Could you write a test? Use a fake file objects that raise (or not) an IOError on close(), and then check that close() was closed on both files. There are 4 cases: input.close() raises or not an exception, output.close() raises or

[issue2091] file accepts 'rU+' as a mode

2010-05-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2091 ___ ___

[issue8592] 'y' does not check for embedded NUL bytes

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Same issue for y#: y# (...) This variant on s# doesn’t accept Unicode objects, only bytes-like objects. s# (...) The string may contain embedded null bytes. -- y* might mention that it accepts embedded null bytes. -- grep

[issue8592] 'y' does not check for embedded NUL bytes

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #8215. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8592 ___ ___

[issue8215] getargs.c in Python3 contains some TODO and the documentation is outdated

2010-05-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #8592. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8215 ___ ___

[issue7472] email.encoders.encode_7or8bit(): typo iso-2202. iso-2022 is correct.

2010-05-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Comments on patch: We prefer patches to be generated from the top level directory of the checkout, so that it can be applied by doing 'patch -p0 xxx.patch' from the top level directory without having to look in the patch file to see

[issue8617] Non-existent variables documented

2010-05-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: These are references to environment variables. The markup marks them as such, but this does not translate into HTML in a visible way. Without a text description it is also left to guesswork as to how they function. The 2.7 docs are

[issue7472] email.encoders.encode_7or8bit(): typo iso-2202. iso-2022 is correct.

2010-05-04 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com added the comment: I was getting a feel that the inner if-test is not being used in any case. Submitting the patch which removes the inner if test and adding a unittest. -- ___ Python tracker

[issue7472] email.encoders.encode_7or8bit(): typo iso-2202. iso-2022 is correct.

2010-05-04 Thread Shashwat Anand
Changes by Shashwat Anand anand.shash...@gmail.com: Added file: http://bugs.python.org/file17215/encoders.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7472 ___

[issue8615] turtle.py - backport of 3.1 features

2010-05-04 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Feature freeze begins at beta 1, therefore I'm rejecting this. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8615

  1   2   >