[issue21787] Idle: make 3.x Hyperparser.get_expression recognize ...

2014-06-16 Thread Terry J. Reedy
New submission from Terry J. Reedy: 3.0 introduced ... as Ellipsis literal. Test: add '...\n' to the end of the test code. In test_get_expression, add at the end p = get('12.3') self.assertEqual(p.get_expression(), '...') which now fails with AssertionError: '' != '...'. --

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

2014-06-16 Thread Torsten Landschoff
Torsten Landschoff added the comment: > ita1024: please don't post to closed issues; your message here will be > ignored. Bugs for Python 2 will be ignored anyway so what can you do? I am currently fighting with the effects of using threads, subprocess.Popen and sqlite in Python2 and found th

[issue21686] IDLE - Test hyperparser

2014-06-16 Thread Tal Einat
Tal Einat added the comment: Ouch. I hadn't thought about the Ellipsis literal! That would be sensibly possible, yes, but not simple. I think opening a separate issue for this would be prudent. -- ___ Python tracker

[issue21739] Add hint about expression in list comprehensions (https://docs.python.org/2/tutorial/datastructures.html#list-comprehensions)

2014-06-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue19917] [httplib] logging information for request is not pretty printed

2014-06-16 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +dbrecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue3430] httplib.HTTPResponse documentations inconsistent

2014-06-16 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +dbrecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue20898] Missing 507 response description

2014-06-16 Thread Demian Brecht
Demian Brecht added the comment: I actually made a similar change for issue #15025 earlier today. One of the two should likely be closed as a dupe. -- nosy: +dbrecht ___ Python tracker

[issue21786] Use assertEqual in test_pydoc

2014-06-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: This looks like a nice improvement. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-l

[issue21785] __getitem__ and __setitem__ try to be smart when invoked with negative slice indices

2014-06-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: It's too late for a behavior change in 2.7. That risks breaking code that relies on the current behavior. However, the docs could be amended to indicate that slices with negative indicies are treated differently from scalar negative indicies, the former g

[issue16136] Removal of VMS support

2014-06-16 Thread John Malmberg
John Malmberg added the comment: Does not look like anything vital to VMS got removed. Configure basically worked under current GNV. And a few tweaks later with out changing any files checked out of the Mercurial repository, make is producing a functional python binary before it quits. bash-4

[issue21786] Use self.assertEqual in test_pydoc

2014-06-16 Thread Claudiu Popa
New submission from Claudiu Popa: Hello. Here's a patch which uses self.assertEqual in various places across test_pydoc, instead of the current idiom: if result != expected_text: print_diffs(expected_text, result) self.fail("outputs are not equal, see diff above") -- components:

[issue21786] Use assertEqual in test_pydoc

2014-06-16 Thread Claudiu Popa
Changes by Claudiu Popa : -- title: Use self.assertEqual in test_pydoc -> Use assertEqual in test_pydoc ___ Python tracker ___ ___ Pyt

[issue21785] __getitem__ and __setitem__ try to be smart when invoked with negative slice indices

2014-06-16 Thread Konstantin Tretyakov
New submission from Konstantin Tretyakov: Consider the following example: class A: def __getitem__(self, index): return True If you invoke A()[-1], everything is fine. However, if you invoke A()[-1:2], you get an "AttributeError: A instance has no attribute '__len__'". Moreover,

[issue19776] Provide expanduser() on Path objects

2014-06-16 Thread Claudiu Popa
Claudiu Popa added the comment: Attached the new version of the patch with fixes according to Antoine's review. -- Added file: http://bugs.python.org/file35666/issue19776_1.patch ___ Python tracker

[issue15025] httplib and http.client are missing response messages for defined WEBDAV responses, e.g., UNPROCESSABLE_ENTITY (422)

2014-06-16 Thread Demian Brecht
Changes by Demian Brecht : Added file: http://bugs.python.org/file35665/issue15025_b.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue15025] httplib and http.client are missing response messages for defined WEBDAV responses, e.g., UNPROCESSABLE_ENTITY (422)

2014-06-16 Thread Demian Brecht
Demian Brecht added the comment: Indeed the WEBDAV codes were missing across the board. I've added a couple patches: One (_a) that just adds the missing constants, and another (_b) that changes how they're defined altogether. The advantage of the second is that there is much less chance of run

[issue21784] __init__.py can be a directory

2014-06-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Is this expected? It is a little weird but usually problematic. The cause that import checks for the existence of '__init__.py' but doesn't then add isfile() or isdir() check which would be unnecessary 99.9% of the time. I classify this a harmless odd

[issue21784] __init__.py can be a directory

2014-06-16 Thread abraithwaite
abraithwaite added the comment: > but of course git doesn't track files, only directories. but of course git doesn't track *directories*, only *files*. -- ___ Python tracker ___

[issue21784] __init__.py can be a directory

2014-06-16 Thread abraithwaite
New submission from abraithwaite: Is this expected? It was very confusing when I cloned a repo that didn't have the __init__.py there when I had just made it, but of course git doesn't track files, only directories. I had accidentaly done mkdir instead of touch. $ mkdir pkg/__init__.py $ tou

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7741d0dd66ca by Benjamin Peterson in branch '2.7': avoid crashes and lockups from daemon threads during interpreter shutdown (#1856) http://hg.python.org/cpython/rev/7741d0dd66ca -- ___ Python tracker <

[issue15025] httplib and http.client are missing response messages for defined WEBDAV responses, e.g., UNPROCESSABLE_ENTITY (422)

2014-06-16 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +dbrecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue11394] Tools/demo, etc. are not installed

2014-06-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue15786] IDLE code completion window can hang or misbehave with mouse

2014-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Idle Help, Completion sections "Two tabs in a row will supply the current ACW selection, as will return or a double click." On 3.4 windows, tab-tab works, one click dismisses the box immediately but without disabling it. Contrary to the claim above, dismisses

[issue21725] RFC 6531 (SMTPUTF8) support in smtpd

2014-06-16 Thread Milan Oberkirch
Milan Oberkirch added the comment: The new patch implements what you suggested, with the following differences: - I still use the default_dict and add the numbers up but maybe it's a bit more readable now? - Support for HELO/EHLO is a seperate issue #21783 -- Added file: http://bugs.pyt

[issue21772] platform.uname() not EINTR safe

2014-06-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21579] Python 3.4: tempfile.close attribute does not work

2014-06-16 Thread Eduardo Seabra
Eduardo Seabra added the comment: I've attached a patch with @mmarkk proposal. -- keywords: +patch nosy: +Eduardo.Seabra Added file: http://bugs.python.org/file35662/issue21579.patch ___ Python tracker

[issue2943] Distutils should generate a better error message when the SDK is not installed

2014-06-16 Thread Steve Dower
Steve Dower added the comment: I can certainly improve this for 3.5 as part of the move to VC14 (which will require changes to distutils anyway). The installer won't touch it. For earlier Python versions, I'd quite like to see setuptools take over detection from distutils and provide the bette

[issue21686] IDLE - Test hyperparser

2014-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Attached is the 3.4 patch as pushed. The main 'invisible' change, other than the review comment, was to create the code string just once. I discovered that the earlier version had a bug in saying 'ok' to the 3.x HyperParser bug of no longer recognizing 'False'

[issue21686] IDLE - Test hyperparser

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 59730aecce9b by Terry Jan Reedy in branch '2.7': Issue #21686: add unittest for idlelib.HyperParser. Original patch by Saimadhav http://hg.python.org/cpython/rev/59730aecce9b New changeset 2fc89d2230a2 by Terry Jan Reedy in branch '3.4': Issue #216

[issue11176] give more meaningful argument names in argparse documentation

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: If we've got some meaningful changes can we please get them committed. However I'd like to state that with over 4000 issues open we've got better things to do than change docs because somebody doesn't like the use of foo, bar and baz in examples. -- n

[issue11695] Improve argparse usage/help customization

2014-06-16 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +paul.j3 versions: +Python 2.7, Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue1446619] extended slice behavior inconsistent with docs

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: The attached patch is simple enough, surely it's a simple decision as to whether or not to commit it? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker

[issue9350] add remove_argument_group to argparse

2014-06-16 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +paul.j3 versions: +Python 2.7, Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[issue1635217] Warn against using requires/provides/obsoletes in setup.py

2014-06-16 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21763] Clarify requirements for file-like objects

2014-06-16 Thread Nikolaus Rath
Nikolaus Rath added the comment: On 06/15/2014 06:26 PM, Raymond Hettinger wrote: > Before creating more tracker items, please take time to learn about how > Python's history, [...] It'd be nice if you would have at least followed the link to http://article.gmane.org/gmane.comp.python.devel/14

[issue2943] Distutils should generate a better error message when the SDK is not installed

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Steve could this be included with the work you're doing with the Windows installers? -- components: +Windows nosy: +BreamoreBoy, dstufft, eric.araujo, steve.dower ___ Python tracker

[issue2943] Distutils should generate a better error message when the SDK is not installed

2014-06-16 Thread Lars H
Lars H added the comment: +1 vote for fixing this problem. Matt Hickford said it very well... the error message is very cryptic, not giving the user a clue as to what domain the problem lies in. -- nosy: +Lars.H ___ Python tracker

[issue9341] allow argparse subcommands to be grouped

2014-06-16 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +paul.j3 versions: +Python 2.7, Python 3.5 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list

[issue21772] platform.uname() not EINTR safe

2014-06-16 Thread Tor Colvin
Tor Colvin added the comment: 2.7.6 or 3.4.1 with OS X 10.8. I can only reproduce it an automated test environment when the load is high on the machine. I've also seen it with 10.6/10.7. It's definitely inconsistently reproducible. -- ___ Python tra

[issue8822] datetime naive and aware types should have a well-defined definition that can be cross-referenced

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: I like the wording in the patch as it's clearer than the original and so think it should be applied. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue16136] Removal of VMS support

2014-06-16 Thread STINNER Victor
Changes by STINNER Victor : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue21679] Prevent extraneous fstat during open()

2014-06-16 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.rosenberg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue6270] Menu deletecommand fails if command is already deleted

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: I've tried to reproduce this on Windows 7 with Python 3.4.1 and failed. Would somebody else please give it a go. -- nosy: +BreamoreBoy ___ Python tracker __

[issue5888] mmap ehancement - resize with sequence notation

2014-06-16 Thread Josh Rosenberg
Josh Rosenberg added the comment: I see a few issues with this: 1. Changing the default behavior is a compatibility issue. I've written code that depends on exceptions being raised if slice assignment sizes don't match. 2. The performance cost is high; changing from rewriting in place to shrink

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: It looks as if we're talking at cross purposes. PEP11 will not be updated any more for Windows releases, we will be following the Microsoft support life cycle. That is clearly of interest to anybody wishing to make code changes against this issue. I do not w

[issue15955] gzip, bz2, lzma: add option to limit output size

2014-06-16 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue21772] platform.uname() not EINTR safe

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: > Calling f.read() on naked os.open() output can produce "IOError: [Errno 4] > Interrupted system call". Attached is a suggested fix. I cannot reproduce your issue. What is your exact Python version and OS? I tried to run 100 threads calling 100 times platform

[issue17888] docs: more information on documentation team

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: In recent months people have been doing some great work on the docs, is this something that one of them could pick up? I'm sorry that I can't remember any names. -- nosy: +BreamoreBoy ___ Python tracker

[issue5888] mmap ehancement - resize with sequence notation

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Brian this will go nowhere without a patch covering code, tests and documentation, are you interested in providing one? -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.5 -Python 3.4 ___ Python tracker

[issue5877] Add a function for updating URL query parameters

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: This won't go anywhere without a patch, is the OP willing to provide one? -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.5 -Python 3.2 ___ Python tracker _

[issue4887] environment inspection and manipulation API is buggy, inconsistent with "Python philosophy" for wrapping native APIs

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: Is the OP interested in taking this forward? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-b

[issue11394] Tools/demo, etc. are not installed

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: msg139889 states "so I think this report is invalid" so I suggest we close this. -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: I don't think that Windows XP is officially no more supported in Python. I would prefer an explicit mention in the PEP 11. So please don't use this argument to close an issue. -- nosy: +haypo ___ Python tracker

[issue16587] Py_Initialize breaks wprintf on Windows

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: If I understood correctly, supporting the "wide mode" for wprintf() requires to modify all calls to functions like printf() in Python and so it requires to change a lot of code. Since this issue was the first time that I heard about wprintf(), I don't think th

[issue21773] Fix a NameError in test_enum

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: Fixed. Thanks for the patch. -- nosy: +haypo resolution: -> fixed status: open -> closed versions: +Python 3.4 ___ Python tracker ___ _

[issue21773] Fix a NameError in test_enum

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1536085d4a94 by Victor Stinner in branch '3.4': Issue #21773: Fix TestStdLib.test_pydoc() of test_enum. Patch written by http://hg.python.org/cpython/rev/1536085d4a94 New changeset e82ba67d7472 by Victor Stinner in branch 'default': (Merge 3.4) Issu

[issue11097] MSI: Remove win32com dependency from installer generator

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: If this report is (still) true I'd assume that we'd want to eventually action it. Otherwise can we close this as out of date? -- nosy: +BreamoreBoy type: -> enhancement versions: +Python 3.5 -Python 2.7, Python 3.1, Python 3.2, Python 3.3

[issue21697] shutil.copytree() handles symbolic directory incorrectly

2014-06-16 Thread Eduardo Seabra
Eduardo Seabra added the comment: Berker Peksag, I don't think your patch is okay. When symlinks is set to true, it should copy the symbolic link of the directory. Your code is calling copytree instead. I think the following patch is working, no errors on regression tests. -- nosy: +Edu

[issue11056] 2to3 fails for inner __metaclass__ class definition

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: @Benjamin what do you think of the proposed fix? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Pyt

[issue7982] extend captured_output to simulate different stdout.encoding

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: Seems like a good idea but it'll go nowhere without a patch, anybody up for it? -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.5 -Python 3.4 ___ Python tracker ___

[issue21686] IDLE - Test hyperparser

2014-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Coverage is now '99%'. Unless I see problems that are more than trivial, I am going to polish the patch and commit. I believe partial coverage of "for context in editwin.num_context_lines:" is because the iterable is never empty. But it never will be in practi

[issue21783] smtpd.py does not allow multiple helo/ehlo commands

2014-06-16 Thread Milan Oberkirch
New submission from Milan Oberkirch: Sending HELO or EHLO more then once causes smtpd.SMTPChannel to respond with b'503 Duplicate HELO/EHLO\r\n' (see Lib/test/test_smtpd.py:124 for an example). My interpretation of RFC 821, section 4.1.1.5 is that multiple HELO commands are fine outside a mail

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-06-16 Thread Benjamin Kircher
Changes by Benjamin Kircher : -- nosy: +bkircher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21782] hashable documentation error: shouldn't mention id

2014-06-16 Thread R. David Murray
R. David Murray added the comment: Yes, I should have been clearer. By "poorly worded" I meant "id is involved, but the sentence does not correctly describe *how* id is involved". That is, the sentence is wrong as written. The implementation is the same in both Python2 and Python3, though th

[issue21679] Prevent extraneous fstat during open()

2014-06-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think it's ok to keep the block size an int for now. It would be surprising for a block size to be more than 2 GB, IMO. -- ___ Python tracker ___

[issue15786] IDLE code completion window can hang or misbehave with mouse

2014-06-16 Thread Ned Deily
Ned Deily added the comment: Investigating a user report of IDLE freezing on OS X when mouse clicking on the code completion menu led me to this issue. The behavior I see varies depending on the Tk variant in use. The basic test case is: 1. launch IDLE with an IDLE shell window open 2. open

[issue20085] Python2.7, wxPython and IDLE 2.7

2014-06-16 Thread Berker Peksag
Changes by Berker Peksag : -- status: languishing -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue21782] hashable documentation error: shouldn't mention id

2014-06-16 Thread Giacomo Alzetta
Giacomo Alzetta added the comment: "their hash value is their id()" seems quite clearly stating that: >>> class A: pass ... >>> a = A() >>> hash(a) == id(a) should be true, but: >>> hash(a) == id(a) False (both in python2 and in python3) The python 2 documentation for the __hash__ special m

[issue21782] hashable documentation error: shouldn't mention id

2014-06-16 Thread R. David Murray
R. David Murray added the comment: The statement is poorly worded. The id() is the *input* to the hash function used to compute the default __hash__. This is a CPython implementation detail, though, so perhaps all mention of it should indeed be dropped. -- nosy: +r.david.murray

[issue9456] Apparent memory leak in PC/bdist_wininst/install.c

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: There is a simple patch to free memory which at a quick glance appears okay. I've not tried to apply it as the line numbers tie up with those in the existing code. -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.1 ___

[issue7687] Bluetooth support untested

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: I'm assuming that this still needs some TLC. -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker __

[issue21782] hashable documentation error: shouldn't mention id

2014-06-16 Thread Giacomo Alzetta
New submission from Giacomo Alzetta: The documentation for hashable in the glossary (https://docs.python.org/3.4/reference/datamodel.html#object.__hash__) is incorrect: they all compare unequal (except with themselves), **and their hash value is their id().** It is *not* true that their hash

[issue21773] Fix a NameError in test_enum

2014-06-16 Thread Ethan Furman
Ethan Furman added the comment: Right, I had copied that code from test_pydoc which is where 'print_diffs' is defined. A comment there says to use the now-included functionality in unittest, and some digging in the docs revealed that assertEqual uses diffs by default. -- assignee: ->

[issue20085] Python2.7, wxPython and IDLE 2.7

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: Presumably set to languishing by mistake so please close. -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue12623] "universal newlines" subprocess support broken with select- and poll-based communicate()

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have an update on this please, I'm assuming that the priority should now be marked as normal? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker

[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-16 Thread Stefan Krah
Stefan Krah added the comment: I think it's worth adding a note to the docs about passing the flags unmodified inside a getbufferproc. -- assignee: -> docs@python components: +Documentation nosy: +docs@python resolution: not a bug -> stage: -> needs patch versions: +Python 3.4, Pytho

[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-16 Thread Stefan Krah
Stefan Krah added the comment: Yes, PyBuffer_FillInfo() is a bit confusing: The canonical usage *looks* as if "flags" were somehow used in the Py_buffer struct to mark a buffer as having certain capabilities: Modules/_io/bufferedio.c: - if (PyBuffer_FillInfo(&buf, N

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2014-06-16 Thread Iakov Davydov
Changes by Iakov Davydov : -- nosy: +davydov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2014-06-16 Thread Iakov Davydov
Iakov Davydov added the comment: I took a closer look for #15873. Apperently it solves the issue. Thanks, David. -- ___ Python tracker ___

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2014-06-16 Thread R. David Murray
R. David Murray added the comment: Supporting ISO 8601 is quite different from supporting RFC2822 dates, as far as I can see, and the latter clearly belongs in the email library (especially considering that RFC2822 parsing must follow Postel's Law and accept "dirty" data). If you want to op

[issue21772] platform.uname() not EINTR safe

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: Here is a different but similar patch for _syscmd_uname(): - use os.fsdecode() to use the locale encoding instead of latin-1 - use subprocess.DEVNULL to redirect errors to /dev/null - use "with proc:" to ensure that the subprocesss is cleaned in case of error --

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: I created the issue #21781 to make the _ssl module 64-bit clean. -- ___ Python tracker ___ ___ Python

[issue21781] make _ssl module 64-bit clean

2014-06-16 Thread STINNER Victor
New submission from STINNER Victor: Follow-up of issue #8677: patch to make the _ssl module 64-bit clean. -- files: ssl_64bit.patch keywords: patch messages: 220736 nosy: haypo priority: normal severity: normal status: open title: make _ssl module 64-bit clean versions: Python 3.5 Added

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: I just created the issue #21780 to make the unicodedata module 64-bit safe. -- ___ Python tracker ___ ___

[issue21780] make unicodedata module 64-bit safe

2014-06-16 Thread STINNER Victor
New submission from STINNER Victor: Follow-up of issue #8677: patch to make the unicodedata module 64-bit safe. -- files: unicodedata_64bit.patch keywords: patch messages: 220734 nosy: haypo priority: normal severity: normal status: open title: make unicodedata module 64-bit safe version

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: zlibmodule_ssize_t_clean.patch: Patch to make the zlib module "ssize_t clean". The patch just defines PY_SSIZE_T_CLEAN, no "#" format is used. "./python -m test -v test_zlib" test pass on my 64-bit Linux. -- keywords: +patch nosy: +haypo Added file: ht

[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2014-06-16 Thread STINNER Victor
Changes by STINNER Victor : -- title: est_multiprocessing_spawn fails when ran with -Werror -> test_multiprocessing_spawn fails when ran with -Werror ___ Python tracker ___

[issue21779] est_multiprocessing_spawn fails when ran with -Werror

2014-06-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python -Werror -m test.regrtest -v -m test_sys_exit test_multiprocessing_spawn == CPython 3.5.0a0 (default:149cc6364180+, Jun 12 2014, 15:45:54) [GCC 4.6.3] == Linux-3.8.0-36-generic-i686-with-debian-wheezy-sid little-endian == hash algorithm: siphas

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2014-06-16 Thread Iakov Davydov
Iakov Davydov added the comment: ISO 8601 is meant as the standard way to provide an unambiguous and well-defined method of representing dates and times. And the fact that it is widely used in e-mails doesn't make it e-mail specific. Incorporating function parsedate_to_datetime to email.util i

[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-16 Thread Armin Rigo
Changes by Armin Rigo : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-16 Thread Armin Rigo
Armin Rigo added the comment: Ah! Thanks. I systematically missed the "flags" arguments passed in the getbufferproc function. (I thought I had to tell PyBuffer_FillInfo() what kind of format we actually provide, but it seems that the interface is the other way around. I don't see how I woul

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-16 Thread Michael Foord
Michael Foord added the comment: Those should be turned into mixins, or someone could implement issue 14534. -- ___ Python tracker ___ ___

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 28b3b8b22654 by Victor Stinner in branch 'default': Issue #21205: Complete the "versionchanged" note in inspect documentation http://hg.python.org/cpython/rev/28b3b8b22654 -- ___ Python tracker

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Some abstract test classes now are included in testing: Lib/test/test_calendar.py: MonthCalendarTestCase Lib/test/test_csv.py: TestCsvBase Lib/test/test_funcattrs.py: FuncAttrsTest Lib/test/test_sys_setprofile.py: TestCaseBase Lib/test/test_telnetlib.py: Expec

[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-16 Thread Stefan Krah
Stefan Krah added the comment: The flags from mb_getbuf() have to be passed to PyBuffer_FillInfo(): return PyBuffer_FillInfo(view, (PyObject *)self, internal, 5, /*readonly=*/0, flags); The flags contain the actual request that the con

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou wrote: > I don't think it is worthwhile. Ok, let's keep the issue closed then ;-) Thanks for the review Antoine. -- ___ Python tracker

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 16/06/2014 10:20, STINNER Victor a écrit : > > What do you think for Python 2.7 and 3.4: would you be ok to change also the generator name? I can write a patch which adds a new gi_name but the name would not be modifiable to limit the incompatible changes. I

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 901a8265511a by Victor Stinner in branch 'default': Issue #21205: Fix unit tests http://hg.python.org/cpython/rev/901a8265511a -- ___ Python tracker __

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: Ok, this issue is now fixed in Python 3.5. For Python 2.7 and 3.4, it may be possible to change how the generator name is set (from the function, not from the code object). It might break the backward compatibility, even if I don't think that anyone rely on th

[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-16 Thread Armin Rigo
Changes by Armin Rigo : Added file: http://bugs.python.org/file35655/xymodule.c ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

  1   2   >