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

2012-10-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here's a patch for 3.4. __qualname__ ought to have been implemented this way in the first place. I'll have to think about what can be done about 3.3. Maybe just the same fix without the removal of PyHeapType.ht_qualname. We can hope no one has written exten

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

2012-10-25 Thread Charles-François Natali
Charles-François Natali added the comment: > No automated testing included because I'm not entirely sure how to replicate > this without eating up a ton of ram or doing something naughty with ulimit. Simply use RLIMIT_NPROC, from a subprocess: """ $ cat /tmp/test.py import subprocess ps = [ ]

[issue16278] os.rename documentation slightly inaccurate

2012-10-25 Thread Todd Rovito
Todd Rovito added the comment: Thanks for the feedback! Over the weekend I will make sure the documentation and test cases cover all possibilities. I have not worked with test suite but I will do my best. -- ___ Python tracker

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

2012-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Replace "except BaseException as e :" with just "except:". It was a remnant of my tests. -- ___ Python tracker ___ ___

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

2012-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Python2 management should be something like: """ Python 2.7.3 (default, Apr 12 2012, 13:11:53) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> try : ... 1/0 ... except BaseException as e : ... try : ...

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

2012-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: http://stackoverflow.com/questions/8997431/is-there-any-way-to-access-nested-or-re-raised-exceptions-in-python """ This is known as Exception Chaining and is suported in Python 3. PEP 3134: http://www.python.org/dev/peps/pep-3134/ In Python 2, the old excepti

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

2012-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: In fact, nested exception management in python 2 and python 3 actually diverges. BEWARE: (Python 3 does the right thing, once again :-) """ Python 2.7.3 (default, Apr 12 2012, 13:11:53) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" fo

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

2012-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Mark, could you consider to fill&send a contributor form agreement? http://www.python.org/psf/contrib/ -- ___ Python tracker ___ _

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

2012-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: The cleanup code in python 3 validates my idea of simplifying cleanup moving "_execute_child()" after the platform specific code. I wonder what "raise" will actually raise if this cleanup code catches & ignores "close()" exception :-). -- __

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

2012-10-25 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2012-10-25 Thread Mark Gius
Mark Gius added the comment: attachment against 2.7 if I understand this code correctly, the fix shouldn't need to be fixed separately on windows and Linux, since the thing handled by init is just a file descriptor. Good idea on the testing. I'll give that a shot tomorrow. I think 3.3 will n

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

2012-10-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: Nick would be a better person to review the patch since IIRC he worked a bunch on that module (e.g. in the changeset you mentioned). But if I get a chance I will take a look. -- ___ Python tracker

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

2012-10-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: python 3 already catches all exceptions and handles closing of p2cwrite, c2pread and errread here. i don't know which branch this patch is against. Regardless, it makes sense that the other fd's, if created by us, also need to be cleaned up. The code also

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

2012-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I would catch ALL exceptions, not only "OSError". An easy way to test this would be to test a subclass of Popen with "_execute_child()" method overrided for always raising an exception. On Unix the test could just open six fds, close them taking note of the v

[issue1336] subprocess.Popen hangs when child writes to stderr

2012-10-25 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2012-10-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 (PyEval_GetRest

[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 ___ __

[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. -- ___

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

2012-10-25 Thread Hieu Nguyen
Changes by Hieu Nguyen : -- nosy: +hieu.nguyen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12317] inspect.getabsfile() is not documented

2012-10-25 Thread Hieu Nguyen
Changes by Hieu Nguyen : -- nosy: +hieu.nguyen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[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:\Python33>python.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

[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 ___ ___ Python-bugs-l

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

2012-10-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gregory.p.smith, neologix stage: -> patch review versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ _

[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 os.

[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 -- ___

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

2012-10-25 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: -berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2012-10-25 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: -berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[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

[issue9192] Add a a way to determine float format

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue9192] Add a a way to determine float format

2012-10-25 Thread Hieu Nguyen
Changes by Hieu Nguyen : -- nosy: +hieu.nguyen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue16306] Multiple error line for unknown command line parameter

2012-10-25 Thread Hieu Nguyen
Changes by Hieu Nguyen : Added file: http://bugs.python.org/file27717/issue16306_py27.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[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 ___ __

[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 t

[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 w

[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

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[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. -Wl,-

[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! ---

[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

[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 b

[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 : -- nosy: +belopolsky, haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue16155] Some minor doc fixes in Doc/faq

2012-10-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[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 gen

[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 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

[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 ___ ___ Pytho

[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 ___ __

[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 ___

[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 ___ ___ Python-bug

[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 space

[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 ___ ___ Python-bugs-list mailing list

[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

[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

[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

[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. -- ___

[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 ___ ___ Python-b

[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

[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 do

[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 ___

[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 ___

[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 ___ _

[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 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 nosy

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

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue16285] Update urllib to RFC 3986

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, pitrou type: -> behavior versions: +Python 3.4 ___ Python tracker ___ ___ Python-bu

[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 = x*x

[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

[issue16309] "PYTHONPATH=" different from no PYTHONPATH at all

2012-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[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 ___ ___ Python-bugs-list mailing list Unsubscr

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

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +eli.bendersky status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[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: +er

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

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Library (Lib) nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-b

[issue16216] Arithmetic operations with NULL

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[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 ___

[issue16310] zipfile: allow surrogates in filenames

2012-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Related issues: issue10614, issue10757, issue10972. -- ___ Python tracker ___ ___ Python-bugs-list

[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

[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 ".../dja

[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 ___

[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 descri

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

2012-10-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[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 do

[issue16272] C-API documentation clarification for tp_dictoffset

2012-10-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[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 mes

[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 _

[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

[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 ever

[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 _

[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:\Python33>python.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 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 alon

[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 ___ P

[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 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. http://hg.python.org/

[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 ___

[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 remove

[issue16320] Establish order in bytes/string dependencies

2012-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[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

[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, Un

[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: http://bugs.python.org/file27709/

  1   2   >