[issue16241] -X faulthandler is not documented in -X option docs

2012-10-25 Thread Petri Lehtinen
Petri Lehtinen added the comment: Andrew: Generally all changes deserve a Misc/NEWS entry, see: http://docs.python.org/devguide/committing.html#news-entries The feature was new in 3.3, but this change only went in after the release of 3.3.0, so ISTM that a Misc/NEWS entry is required.

[issue15494] Move test/support.py into a test.support subpackage

2012-10-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: test.support will become a package in 3.3 and trunk after the final 3.2 release goes out. Excessively large source files are a sign of bad software design. Do you weigh in the python-dev discussion about splitting unicodeobject.c? --

[issue15494] Move test/support.py into a test.support subpackage

2012-10-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: s/Do you weigh in/Do you want to weigh in/, sorry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15494 ___

[issue15494] Move test/support.py into a test.support subpackage

2012-10-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: Excessively large source files are a sign of bad software design. Do you [want to] weigh in the python-dev discussion about splitting unicodeobject.c? Nick did weigh in starting here: http://mail.python.org/pipermail/python-dev/2012-October/122391.html

[issue16319] optional comma inside function argument list triggers syntax error

2012-10-25 Thread Inyeol Lee
New submission from Inyeol Lee: Ubuntu 12.04, python 3.2.3 Optional trailing comma causes syntax error if used for keyword-only argument list: These are OK -- def f(a, b,): pass def f(a, b=None,): pass These triggers syntax error -- def f(a, *, b,): pass def f(a, *, b=None,): pass python

[issue15494] Move test/support.py into a test.support subpackage

2012-10-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, ok. Perhaps I should read python-dev before talking about it! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15494 ___

[issue15494] Move test/support.py into a test.support subpackage

2012-10-25 Thread Nick Coghlan
Nick Coghlan added the comment: I already did, that thread 'tis a large part of why I'm somewhat irritable in relation to this topic today. Huge source files are inherently bad because they provide no hint as to the modular breakdown and encourage excessive coupling between subcomponents is

[issue16307] multiprocess.pool.map_async callables not working

2012-10-25 Thread Janne Karila
Janne Karila added the comment: I'm working on the test. It keeps failing... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16307 ___ ___

[issue16299] __build__ as a temp build directory for setup.py

2012-10-25 Thread anatoly techtonik
anatoly techtonik added the comment: That's not an argument. I am asking about it in general. Another wart of Python. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16299 ___

[issue14616] subprocess docs should mention pipes.quote/shlex.quote

2012-10-25 Thread Chris Rebert
Chris Rebert added the comment: No, the thought merely did not occur to me. I don't recall having seen such forward-looking notes in Python's documentation before. Should the pipes.quote() mention be axed from the 3.x patch? -- ___ Python tracker

[issue16319] optional comma inside function argument list triggers syntax error

2012-10-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: I could be misinterpreting the documentation, but it looks to me like the examples given are behaving as documented: parameter_list ::= (defparameter ,)* ( * [parameter] (, defparameter)* [, ** parameter]

[issue16319] optional comma inside function argument list triggers syntax error

2012-10-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: Duplicate of issue 9232 (enhancement request). -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Allow trailing comma in any function argument list. ___ Python tracker

[issue16315] Support xz compression in Mac build script

2012-10-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: For the record: I agree with Ned, the patch is not needed at this time and won't work as is anyway (in particular: tar on OSX does not have an 'J' option, so even if you install the lzma tools the patch won't work) --

[issue16241] -X faulthandler is not documented in -X option docs

2012-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset e816851fb30d by Andrew Svetlov in branch '3.3': Update NEWS for issue #16241 http://hg.python.org/cpython/rev/e816851fb30d New changeset af93948ca33d by Andrew Svetlov in branch 'default': Update NEWS for issue #16241

[issue16241] -X faulthandler is not documented in -X option docs

2012-10-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Well, I have updated the NEWS file. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16241 ___ ___

[issue16309] PYTHONPATH= different from no PYTHONPATH at all

2012-10-25 Thread Armin Rigo
Armin Rigo added the comment: Attached the diff, in case we want to do that. The diff is only about non-Windows platforms, given that it follows a Posix use case about PATH. But do we also need to change PC/getpathp.c? -- keywords: +patch Added file:

[issue16320] Establish order in bytes/string dependencies

2012-10-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch reorganizes the dependencies for bytes and strings. Now object files depended only from needed (and from all needed) headers. This will reduce the compilation time when modifying the bytes implementation. -- components: Build,

[issue16315] Support xz compression in Mac build script

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: OK. I thought that xz support was just forgot. The xz compression was very popular in the Linux distributives over the past few years. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16315

[issue16320] Establish order in bytes/string dependencies

2012-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16320 ___ ___

[issue16321] Move eq.h out of stringlib

2012-10-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The Objects/stringlib directory used for templates which instantiates for specified bytes or unicode kinds. Objects/stringlib/eq.h has no relation to this templates and should be moved out (as Objects/unicode_eq.h for example). Also it should be removed

[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2012-10-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Have you tried to see what happens in passive mode (use: ftps.set_pasv(True))? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16318 ___

[issue16305] possible segfault in math.factorial

2012-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 19ed42e84030 by Mark Dickinson in branch '3.3': Issue #16305: Merge fix from 3.2. http://hg.python.org/cpython/rev/19ed42e84030 New changeset cbdd6852a274 by Mark Dickinson in branch 'default': Issue #16305: Merge fix from 3.3.

[issue16307] multiprocess.pool.map_async callables not working

2012-10-25 Thread Janne Karila
Janne Karila added the comment: Three test cases added. The tricky part in writing the tests was to realize that when the tests are run with Manager, the callback goes through a proxy object. -- Added file: http://bugs.python.org/file27711/test_callback.patch

[issue16305] possible segfault in math.factorial

2012-10-25 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in 3.2, 3.3 and default. Thanks Amaury for the report and diagnosis! (I forget to add the issue number in the 3.2 commit: the changeset is b4bfcf7a4773.) -- resolution: - fixed status: open - closed ___

[issue16310] zipfile: allow surrogates in filenames

2012-10-25 Thread Stefan Holek
Stefan Holek added the comment: What we are trying to do is make distribute work with non-ASCII filenames, and this is one of the things we ran into. Fact 1: Filenames are bytes, whether you like it or not. Treating them as strings is going to give you more trouble than dragging the bytes

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2012-10-25 Thread Masami HIRATA
New submission from Masami HIRATA: OS: Windows 7 Starter Edition SP1 (32-bit) Japanese version Python: 3.3.0 for Windows x86 (python-3.3.0.msi) time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding. C:\Python33python.exe Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48)

[issue16310] zipfile: allow surrogates in filenames

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If we allow for surrogates in the names, it will not correct UTF-8. This can breaks other software. We should clear 11th flag bit in this case. -- ___ Python tracker rep...@bugs.python.org

[issue15494] Move test/support.py into a test.support subpackage

2012-10-25 Thread Ezio Melotti
Ezio Melotti added the comment: Umm, WTF? You're really asking me to justify the basic software engineering principle that modularity is good, I'm aware of the principle -- what I'm asking is what practical advantages this will bring (practicality beats purity). and wanting to dump

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I see in 3.3 PyUnicode_DecodeFSDefaultAndSize() was replaced by PyUnicode_DecodeLocale(). What show sys.getdefaultencoding(), sys.getfilesystemencoding(), and locale.getpreferredencoding()? -- components: +Extension Modules keywords: +3.3regression

[issue14616] subprocess docs should mention pipes.quote/shlex.quote

2012-10-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think patch for 3.3 should mention only shlex.quote. I don't care about 2.7 patch but it looks good to me. -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14616

[issue16323] Wrong C API documentation for locale encoding

2012-10-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The documentation for PyUnicode_DecodeLocale() and PyUnicode_EncodeLocale() are wrong. The second parameter described as int surrogateescape, but actually it is const char *errors. -- assignee: docs@python components: Documentation, Unicode

[issue16272] C-API documentation clarification for tp_dictoffset

2012-10-25 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16272 ___ ___

[issue13510] Clarify that readlines() is not needed to iterate over a file

2012-10-25 Thread Éric Araujo
Éric Araujo added the comment: readlines might be discouraged; readline has its use cases (two days ago I used it to get one line to pass to csv.Sniffer.sniff), but next(file) works too, so it could be de-emphasized. There may be a difference with respect to the trailing newline however; I

[issue13510] Clarify that readlines() is not needed to iterate over a file

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13510 ___

[issue15494] Move test/support.py into a test.support subpackage

2012-10-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: Since basic software engineering principles have been invoked, I'd like to point out that many of the standard motivations to modularization don't apply in this case. So it is fair to ask what *specific* benefits such a restructuring may have. Such a

[issue16309] PYTHONPATH= different from no PYTHONPATH at all

2012-10-25 Thread Armin Rigo
Armin Rigo added the comment: Attached another simpler diff (only one + line instead of two...). -- Added file: http://bugs.python.org/file27712/pythonpath2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16309

[issue16324] MIMEText __init__ does not support Charset instance

2012-10-25 Thread Claude Paroz
New submission from Claude Paroz: When initializing a MIMEText instance, it might be desirable to set the _charset parameter to a real Charset instance, not only a charset identifier (for example to pass a Charset with customized body_encoding). Unfortunately, this is failing: File

[issue11160] ZipFile.comment expects bytes

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The ZIP specification says: If general purpose bit 11 is unset, the file name and comment should conform to the original ZIP character encoding. If general purpose bit 11 is set, the filename and comment must support The Unicode Standard, Version 4.1.0 or

[issue16310] zipfile: allow surrogates in filenames

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Related issues: issue10614, issue10757, issue10972. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16310 ___

[issue11009] urllib.splituser is not documented

2012-10-25 Thread Ezio Melotti
Ezio Melotti added the comment: Doing that now will be backward incompatible, because people might be using these functions already even if they are not documented. An alias could be created, but I'm not sure it's worth doing it. -- nosy: +ezio.melotti status: pending - open

[issue16216] Arithmetic operations with NULL

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16216 ___ ___ Python-bugs-list

[issue16217] Tracebacks are unnecessarily verbose when using 'python -m'

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Library (Lib) nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16217 ___

[issue16309] PYTHONPATH= different from no PYTHONPATH at all

2012-10-25 Thread Eric Snow
Eric Snow added the comment: Given how confusing it seems, perhaps we should change it to adopt a PATH-like behaviour. Wouldn't that introduce a backward-compatibility issue? FWIW, otherwise I agree that it makes a lot of sense to conform to the same behavior as PATH. -- nosy:

[issue16219] segfault when using xml.etree.ElementTree.XMLTreeBuilder

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +eli.bendersky status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16219 ___

[issue16309] PYTHONPATH= different from no PYTHONPATH at all

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16309 ___ ___ Python-bugs-list

[issue16309] PYTHONPATH= different from no PYTHONPATH at all

2012-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16309 ___ ___

[issue16240] Document a way to escape metacharacters in glob/fnmatch

2012-10-25 Thread Ezio Melotti
Ezio Melotti added the comment: I would use It is possible to remove rather than One can remove, but otherwise the patch LGTM. -- nosy: +eric.araujo, ezio.melotti, terry.reedy stage: needs patch - patch review ___ Python tracker

[issue16239] PEP8 arithmetic operator examples

2012-10-25 Thread Ezio Melotti
Ezio Melotti added the comment: Attached a patch that modifies some of the example in the section. - x = x * 2 - 1 - hypot2 = x * x + y * y + x = x*2 - 1 + hypot2 = x*x + y*y Here I used more space around operators with lower priority. - x = x*2 - 1 - hypot2 =

[issue16271] weird dual behavior with changing __qualname__; different values observed through attribute and descriptor

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, pitrou type: - behavior versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16271 ___

[issue16285] Update urllib to RFC 3986

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16285 ___ ___

[issue16286] Optimize a==b and a!=b for bytes and str

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16286 ___

[issue16325] PEP 8 refers to reference to PEP 8

2012-10-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: PEP 8 refers to Guido's original Python Style Guide essay (http://www.python.org/doc/essays/styleguide.html), but the essay was removed, only link to PEP 8 (and PEP 257) left. -- assignee: docs@python components: Documentation messages: 173773

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2012-10-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Looking at the CRT source code, tznames should be decoded with mbcs. See also http://mail.python.org/pipermail/python-3000/2007-August/009290.html -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue16325] PEP 8 refers to reference to PEP 8

2012-10-25 Thread Ezio Melotti
Ezio Melotti added the comment: The link might still be OK, otherwise we could copy the note directly in the PEP. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16325

[issue16239] PEP8 arithmetic operator examples

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: - x = x * 2 - 1 - hypot2 = x * x + y * y Why you remove this? - c = (a+b) * (a-b) + c = a+b * a-b This changes the semantic. but otoh 'x*2 - 1' is a better alternative. Can you justify this? -- nosy: +serhiy.storchaka

[issue16240] Document a way to escape metacharacters in glob/fnmatch

2012-10-25 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Better (IMO): Wrap the meta-characters in brackets for a literal match. For example, ``'[?]'`` matches the character ``'?'``. -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org

[issue14616] subprocess docs should mention pipes.quote/shlex.quote

2012-10-25 Thread Ezio Melotti
Ezio Melotti added the comment: I think patch for 3.3 should mention only shlex.quote. +1 I'm not sure what's the best thing to do about pipes.quote. Pointing to an undocumented function that is available in 3.3 in a different module doesn't sound like a really good idea. Maybe we could

[issue16239] PEP8 arithmetic operator examples

2012-10-25 Thread Ezio Melotti
Ezio Melotti added the comment: - x = x * 2 - 1 - hypot2 = x * x + y * y Why you remove this? As I explained in my previous message, even if valid, these are IMHO less clear than x*2 - 1 and x*x + y*y. - c = (a+b) * (a-b) + c = a+b * a-b This changes the semantic.

[issue16240] Document a way to escape metacharacters in glob/fnmatch

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My patch was only example. Commit what you feel is better. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16240 ___

[issue16240] Document a way to escape metacharacters in glob/fnmatch

2012-10-25 Thread Ezio Melotti
Ezio Melotti added the comment: For a literal match, wrap the meta-characters in brackets. For example, ``'[?]'`` matches the character ``'?'``. Stating the goal at the beginning of the sentence will make this easier to find while skimming through the doc. --

[issue16325] PEP 8 refers to reference to PEP 8

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think there is no sense to refer to removed document. If Guido's original essay saved somewhere, than PEP 8 should refer to this copy. Otherwise meaningless link should be removed. -- ___ Python tracker

[issue16325] PEP 8 refers to reference to PEP 8

2012-10-25 Thread Ezio Melotti
Ezio Melotti added the comment: Do you think something like the attached patch would be OK? -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file27714/issue16325.diff ___ Python tracker rep...@bugs.python.org

[issue16239] PEP8 arithmetic operator examples

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As I explained in my previous message, even if valid, these are IMHO less clear than x*2 - 1 and x*x + y*y. I don't feel this. Anyone else feel this? It seems to me, this is a serious change in the Style Guide. It does indeed, but I think it's worth

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As I understand, OP has UTF-8 locale. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16322 ___ ___

[issue16239] PEP8 arithmetic operator examples

2012-10-25 Thread Ezio Melotti
Ezio Melotti added the comment: As I see it: For c = (a + b) * (a - b) the hint (and the actual priority) is given by the (), the spaces around the +/- are not necessary but don't affect readability. For c = (a+b) * (a-b) the hints are given both by the () and the spacing, the lack of

[issue16325] PEP 8 refers to reference to PEP 8

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM, but I'm not well competent to assess these changes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16325 ___

[issue14799] Tkinter ttk tests hang on linux

2012-10-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Update: test_ttk_guionly hangs on Ubuntu with Unity. It passed on Arch as well as on Ubuntu via xvfb-run. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14799

[issue14799] Tkinter ttk tests hang on linux

2012-10-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fir Unity it hangs on Tcl_ConditionWait inside Tcl_DoOneEvent function. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14799 ___

[issue14799] Tkinter ttk tests hang on linux

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For me it passed with Openbox and Compiz, but fails with KWin. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14799 ___

[issue15494] Move test/support.py into a test.support subpackage

2012-10-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: If you are planning to further split support.py, then I'm -1. Ezio, this issue is not to split up support.py. Nick already responded to you to this effect in the fourth comment above. Also, in the second comment to this issue, I said that this issue was to

[issue15494] Move test/support.py into a test.support subpackage

2012-10-25 Thread Ezio Melotti
Ezio Melotti added the comment: Ezio, this issue is not to split up support.py. Nick already responded to you to this effect in the fourth comment above. Indeed, I should have re-read the messages more carefully. Also, in the second comment to this issue, I said that this issue was to

[issue15494] Move test/support.py into a test.support subpackage

2012-10-25 Thread R. David Murray
R. David Murray added the comment: Every sizeable (and some not-so-sizeable) Python projects I've worked on have one or more 'utils' modules that collect stuff that doesn't logically fit elsewhere. That's what test.support is for the test infrastructure. I agree that we should not talk in

[issue16155] Some minor doc fixes in Doc/faq

2012-10-25 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16155 ___ ___

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2012-10-25 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +belopolsky, haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16322 ___ ___

[issue16324] MIMEText __init__ does not support Charset instance

2012-10-25 Thread R. David Murray
R. David Murray added the comment: I don't think you missed anything. It doesn't look like this has ever worked, but you'd certainly think it would. The documentation doesn't claim anything about it one way or another. That probably means we should treat it as an enhancement rather than a

[issue16324] MIMEText __init__ does not support Charset instance

2012-10-25 Thread Claude Paroz
Claude Paroz added the comment: It's fine for me to consider it as an enhancement. The fix might be as simple as replacing **{'charset': _charset} by **{'charset': str(_charset)} in MIMEText __init__. -- ___ Python tracker rep...@bugs.python.org

[issue15066] make install error: ImportError: No module named _struct

2012-10-25 Thread Antonio Chay
Antonio Chay added the comment: Hello there! I have the same issue, using CentOS 5.8, I *reversed* this patch: http://bugs.python.org/issue8205 and now make install works. A side note: before it failed to compile _multiprocessing, with the patch reversed now is included. HTH. Regards!

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-10-25 Thread Andy Salnikov
New submission from Andy Salnikov: Hi, when trying to build extension modules with distutils I ran into a problem that linking fails with an errors like: gcc -pthread -shared -L build/temp.linux-x86_64-2.7/h5py/defs.o -L/reg/g/psdm/sw/external/hdf5/1.8.4p1/x86_64-rhel6-gcc44-opt/lib -L.

[issue15392] Create a unittest framework for IDLE

2012-10-25 Thread Roger Serwy
Roger Serwy added the comment: Issue7883 also has a test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15392 ___ ___ Python-bugs-list mailing

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2012-10-25 Thread STINNER Victor
STINNER Victor added the comment: I see in 3.3 PyUnicode_DecodeFSDefaultAndSize() was replaced by PyUnicode_DecodeLocale(). Related changes: - 8620e6901e58 for the issue #5905 - 279b0aee0cfb for the issue #13560 I wrote 8620e6901e58 for Linux, when the wcsftime() function is missing. The

[issue15494] Move test/support.py into a test.support subpackage

2012-10-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: This may increasingly get off-topic, so I'll stop with generalities after this post. I find the effect of modularization on discoverability to be two-sided. On the one hand, splitting functionality into groups helps discoverability, since you don't have to

[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2012-10-25 Thread Jeremy Brock
Jeremy Brock added the comment: Hello Giampaolo, It is the same timeout in PASV with Prot_P, please see attached documentation. Something I did not mention before is that the file being written shows up on the server but I can't view it because it is being used by another process. When the

[issue16306] Multiple error line for unknown command line parameter

2012-10-25 Thread Hieu Nguyen
Hieu Nguyen added the comment: Submitted another patchs for py3k and python 2.7 -- Added file: http://bugs.python.org/file27716/issue16306_py3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306

[issue16306] Multiple error line for unknown command line parameter

2012-10-25 Thread Hieu Nguyen
Changes by Hieu Nguyen ndhie...@gmail.com: Added file: http://bugs.python.org/file27717/issue16306_py27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306 ___

[issue9192] Add a a way to determine float format

2012-10-25 Thread Hieu Nguyen
Changes by Hieu Nguyen ndhie...@gmail.com: -- nosy: +hieu.nguyen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9192 ___ ___ Python-bugs-list

[issue9192] Add a a way to determine float format

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9192 ___

[issue16243] Add example for inspect module doc

2012-10-25 Thread Berker Peksag
Berker Peksag added the comment: Here's a patch that adds an example of using `inspect.formatargspec`. -- keywords: +patch nosy: +berker.peksag Added file: http://bugs.python.org/file27718/inspect-formatargspec-example.patch ___ Python tracker

[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant

2012-10-25 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: -berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11060 ___ ___

[issue11880] add a {dist-info} category to distutils2

2012-10-25 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: -berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11880 ___ ___

[issue16163] Wrong name in Lib/pkgutil.py:iter_importers

2012-10-25 Thread Berker Peksag
Berker Peksag added the comment: Chris, did you have a chance to review the patch I submitted? The only usage of `iter_importers` function in stdlib is in `iter_modules` function: http://hg.python.org/cpython/file/cbdd6852a274/Lib/pkgutil.py#l139 --

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-25 Thread Mark Gius
New submission from Mark Gius: When subprocess.Popen is called with subprocess.PIPE and os.fork() fails (due to insufficient memory for example), the pipes created by _get_handles() are not closed. Steps to reproduce: 1) Launch a python shell, import subprocess 2) Create a situation where

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gregory.p.smith, neologix stage: - patch review versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16327

[issue16306] Multiple error line for unknown command line parameter

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- nosy: +serhiy.storchaka stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306 ___

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2012-10-25 Thread Masami HIRATA
Masami HIRATA added the comment: What show sys.getdefaultencoding(), sys.getfilesystemencoding(), and locale.getpreferredencoding()? C:\Python33python.exe Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (In tel)] on win32 Type help, copyright, credits or license

[issue12317] inspect.getabsfile() is not documented

2012-10-25 Thread Hieu Nguyen
Changes by Hieu Nguyen ndhie...@gmail.com: -- nosy: +hieu.nguyen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12317 ___ ___ Python-bugs-list

[issue14266] pyunit script as shorthand for python -m unittest

2012-10-25 Thread Hieu Nguyen
Changes by Hieu Nguyen ndhie...@gmail.com: -- nosy: +hieu.nguyen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14266 ___ ___ Python-bugs-list

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-25 Thread Mark Gius
Mark Gius added the comment: Just read the docs for stdin and stdout. This patch will indtroduce a bug where a provided file descriptor can be closed. This definitely shouldn't close a file descriptor that isn't created by _get_handles(). I'll update. --

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-25 Thread Mark Gius
Mark Gius added the comment: Patch now only closes pipe fds created by Popen -- Added file: http://bugs.python.org/file27720/fd_leak_fix_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16327

[issue4202] Multiple interpreters and readline module hook functions.

2012-10-25 Thread Winston451
Winston451 added the comment: Hi, I'm currently developping an application which runs sub interpreters in threads (one sub interpreter per thread). When I try to use readline completion in these sub interpreters it fails because it's not possible to import the keyword module

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-25 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- assignee: - gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16327 ___ ___

  1   2   >