Re: Python's numeric tower

2014-06-15 Thread Ian Kelly
On Sat, Jun 14, 2014 at 8:51 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Does anyone know any examples of values or types from the standard library or well-known third-party libraries which satisfies isinstance(a, numbers.Number) but not isinstance(a, numbers.Complex)?

Re: OT: This Swift thing

2014-06-15 Thread Johannes Bauer
On 07.06.2014 11:54, Alain Ketterlin wrote: No. Cost is the issue (development, maintenance, operation, liability...). Want an example? Here is one: http://tech.slashdot.org/story/14/06/06/1443218/gm-names-and-fires-engineers-involved-in-faulty-ignition-switch Yeah this is totally

Re: OT: This Swift thing

2014-06-15 Thread Johannes Bauer
On 05.06.2014 23:53, Marko Rauhamaa wrote: or: def make_street_address_map(info_list): return dict((info.get_street_address(), info.get_zip_code()) for info in info_list) or, what I think is even clearer than your last one: def

Re: OT: This Swift thing

2014-06-15 Thread CHIN Dihedral
On Wednesday, June 4, 2014 10:53:13 PM UTC+8, Mark H. Harris wrote: On 6/4/14 9:24 AM, Skip Montanaro wrote: Surely your local colleagues realize that Python has been around for 20-odd years now, that indentation-based block structure has been there since Day One, and that it's not

Re: OT: This Swift thing

2014-06-15 Thread Marko Rauhamaa
Johannes Bauer dfnsonfsdu...@gmx.de: def make_street_address_map(info_list): return { info.get_street_address(): info.get_zip_code() for info in info_list } Live and learn. Have been an the lookout for dict comprehensions, but didn't notice they were already included.

RE: tempfile.py, line 83, in module once_lock = _allocate_lock() thread.error: can't allocat lock

2014-06-15 Thread SABARWAL, SHAL
This is with python 2.7.3 pn HP-UX 11.11 From: SABARWAL, SHAL Sent: Friday, June 13, 2014 9:41 PM To: python-list@python.org Subject: tempfile.py, line 83, in module once_lock = _allocate_lock() thread.error: can't allocat lock Appreciate any help in resolving/understanding following error.

RE: tempfile.py, line 83, in module once_lock = _allocate_lock() thread.error: can't allocat lock

2014-06-15 Thread SABARWAL, SHAL
Will do . Thanks for the tips. Using the mailing list process for the first time. One of the problems is that the issue occurs only in production. Have not been able to recreate the issue in dev/test. However will continue with some trials. -Original Message- From: Cameron Simpson

Re: Python's numeric tower

2014-06-15 Thread Steven D'Aprano
On Sun, 15 Jun 2014 01:22:50 -0600, Ian Kelly wrote: On Sat, Jun 14, 2014 at 8:51 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Does anyone know any examples of values or types from the standard library or well-known third-party libraries which satisfies isinstance(a,

Re: Python's numeric tower

2014-06-15 Thread Roy Smith
In article 539dbcbe$0$29988$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 15 Jun 2014 01:22:50 -0600, Ian Kelly wrote: On Sat, Jun 14, 2014 at 8:51 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Does anyone know

Re: Python's numeric tower

2014-06-15 Thread Ian Kelly
On Sun, Jun 15, 2014 at 11:28 AM, Roy Smith r...@panix.com wrote: In article 539dbcbe$0$29988$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 15 Jun 2014 01:22:50 -0600, Ian Kelly wrote: On Sat, Jun 14, 2014 at 8:51 PM, Steven

My Christmas wish list

2014-06-15 Thread Mark Lawrence
Dear Santa, Please can I have the new regex module in Python 3.5, if only because MRAB has done so much work on it. Love and kisses. Mark xxx -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free

Re: My Christmas wish list

2014-06-15 Thread Chris Angelico
On Mon, Jun 16, 2014 at 7:15 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: Dear Santa, Please can I have the new regex module in Python 3.5, if only because MRAB has done so much work on it. Love and kisses. Mark xxx As it's not December, you have to pay full rate emails to Santa. But

Re: Python's numeric tower

2014-06-15 Thread Steven D'Aprano
On Sun, 15 Jun 2014 13:28:44 -0400, Roy Smith wrote: In article 539dbcbe$0$29988$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 15 Jun 2014 01:22:50 -0600, Ian Kelly wrote: On Sat, Jun 14, 2014 at 8:51 PM, Steven D'Aprano

Re: My Christmas wish list

2014-06-15 Thread Steven D'Aprano
On Sun, 15 Jun 2014 22:15:47 +0100, Mark Lawrence wrote: Dear Santa, Please can I have the new regex module in Python 3.5, if only because MRAB has done so much work on it. Have you asked MRAB what he thinks? Python-Dev has given approval way back in 3.3 days, it all depends on him. --

Re: Python's numeric tower

2014-06-15 Thread Chris Angelico
On Mon, Jun 16, 2014 at 10:38 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Mathematically, ℂ (complex) is a superset of ℝ (real), and Decimals are a kind of real(ish) number, like float: The Python complex type represents a subset of ℂ. The Python Decimal and float types

Re: Python's numeric tower

2014-06-15 Thread Roy Smith
In article mailman.11074.1402880950.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: I guess if you have a list of Numbers that are all the same type, you can probably sum them, but you can sum non-Numbers too. The docstring is a bit vague - sure, it's a number, but what

Re: Python's numeric tower

2014-06-15 Thread Chris Angelico
On Mon, Jun 16, 2014 at 11:57 AM, Roy Smith r...@panix.com wrote: In article mailman.11074.1402880950.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: I guess if you have a list of Numbers that are all the same type, you can probably sum them, but you can sum non-Numbers

Re: Python's numeric tower

2014-06-15 Thread Roy Smith
In article mailman.11075.1402884256.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Mon, Jun 16, 2014 at 11:57 AM, Roy Smith r...@panix.com wrote: In article mailman.11074.1402880950.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: I guess if

Re: Python's numeric tower

2014-06-15 Thread Dan Sommers
On Sun, 15 Jun 2014 22:17:57 -0400, Roy Smith wrote: I don't believe HandGrenade implements throw(). It does, however, implement lobbeth(). And therein lies the problem with Object Oriented Programming: instances of HandGrenade neither throw nor lobbeth. One, Two, Five'ly yours, Dan --

Re: Python's numeric tower

2014-06-15 Thread Roy Smith
In article roy-ed231f.22175715062...@news.panix.com, Roy Smith r...@panix.com wrote: In article mailman.11075.1402884256.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Mon, Jun 16, 2014 at 11:57 AM, Roy Smith r...@panix.com wrote: In article

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-15 Thread Tal Einat
Tal Einat added the comment: It seems that the unicodedata module already supplies relevant functions which can be used for this. For example, we can replace char in self._id_first_chars with something like: from unicodedata import normalize, category norm_char = normalize(char)[0]

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-15 Thread Tal Einat
Tal Einat added the comment: Bah, I messed up the code sample in my previous message. It was supposed to be: from unicodedata import normalize, category norm_char_first = normalize(char)[0] is_id_first_char = ( norm_char_first == '_' or category(norm_char_first) in {Lu, Ll, Lt, Lm, Lo,

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-06-15 Thread Aymeric Augustin
Aymeric Augustin added the comment: Jim, I believe this API decision doesn't affect the patch in a major way. I'll write the rest of the patch and the committer who reviews it will decide. -- ___ Python tracker rep...@bugs.python.org

[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2014-06-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I meant what you said in your last paragraph -- not passing a value for the new parameter would keep current behavior. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21756

[issue21751] Expand zipimport to support bzip2 and lzma

2014-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use deflate for Python files and advanced compression methods for large well-compressable package data. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21751

[issue21768] Fix a NameError in test_pydoc

2014-06-15 Thread Claudiu Popa
New submission from Claudiu Popa: There's no 'o' in test_pydoc.TestDescriptions.test_builtin, but 'name'. -- components: Tests files: test_pydoc_nameerror.patch keywords: patch messages: 220618 nosy: Claudiu.Popa priority: normal severity: normal status: open title: Fix a NameError in

[issue21769] Fix a NameError in test_descr

2014-06-15 Thread Claudiu Popa
New submission from Claudiu Popa: Hi. Here's a patch which uses `self.fail` in test_descr instead of `raise TestFailed`. -- components: Tests files: test_descr_nameerror.patch keywords: patch messages: 220619 nosy: Claudiu.Popa priority: normal severity: normal status: open title: Fix

[issue21758] Not so correct documentation about asyncio.subprocess_shell method

2014-06-15 Thread STINNER Victor
STINNER Victor added the comment: IMO it's fine to support bytes on UNIX, os.fsencode() is well defined. On Windows, we may use the same decoder. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21758

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I checked for usage: _id(_first)_chars is only used in _eat_identifier, which is used in one place in get_expression. That is called once each in AutoComplete and CallTips. Both are seldom visible accept as requested (by waiting, for calltips). Calltips is

[issue21770] Module not callable in script_helper.py

2014-06-15 Thread Claudiu Popa
New submission from Claudiu Popa: Using make_zip_pkg from script_helper with compiled=True will lead to the following failure: Traceback (most recent call last): File D:\Projects\cpython\lib\test\test_cmd_line_script.py, line 305, in test_module_in_subpackage_in_zipfile zip_name,

[issue21736] Add __file__ attribute to frozen modules

2014-06-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 15.06.2014 01:53, Nick Coghlan wrote: Can we just drop __file__ and set the origin for frozen modules to something that includes the original file name? This wouldn't really help, because too much code out there uses the __file__ attribute and

[issue21427] installer not working

2014-06-15 Thread Uwe
Uwe added the comment: problem is solved observation - installer problem only occurred on win7 32 bit with prior python installation (my working system) - When repeating the installer problem I noticed that a window was opened very shortly with python.exe running. An error message from this

[issue21519] IDLE : Bug in keybinding validity check

2014-06-15 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: A small bug in line 185 in keybindingDialog.py. 'F2' appears twice and 'F3' is missing. Since this is a typo, I did not create a new issue. -- ___ Python tracker rep...@bugs.python.org

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-15 Thread Tal Einat
Tal Einat added the comment: AutoComplete isn't doing hidden checks. My concern is that auto-completion happens automatically and the parsing is done synchronously, so if the parsing takes a significant amount of time it can cause a delay long enough to be noticeable by users. We should also

[issue18507] import_init() should not use Py_FatalError() but return an error

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Just making sure this hasn't slipped under the radar. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18507

[issue14017] Make it easy to create a new TextIOWrapper based on an existing

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: @Nick would you like or even need this in 3.5? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14017

[issue16133] asyncore.dispatcher.recv doesn't handle EAGAIN / EWOULDBLOCK

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Could we have a review of the latest path from Xavier please. Aside, msg172160 add Windows project file for _sha3 module. I choose to build _sha3 as a sparat module as it's rather large (190k for AMD64)., presumably Christian mistyped an issue number?

[issue11322] encoding package's normalize_encoding() function is too slow

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: What's the status of this issue, as we've lived with this really slow implementation for well over three years? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker

[issue15506] configure should use PKG_PROG_PKG_CONFIG

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: I've guessed at the versions impacted, assuming of course that the change proposed inline in msg166915 is acceptable. I'm sorry but I don't know who is best qualified to put on the nosy list for this issue. -- nosy: +BreamoreBoy versions: +Python 2.7,

[issue18875] Automatic insertion of the closing parentheses, brackets, and braces

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: I'd like to see this feature as I've been using IDLE quite a lot recently and I'm so used to seeing it in other IDEs. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org

Re: [issue11322] encoding package's normalize_encoding() function is too slow

2014-06-15 Thread M.-A. Lemburg
On 15.06.2014 15:02, Mark Lawrence wrote: What's the status of this issue, as we've lived with this really slow implementation for well over three years? I guess it just needs someone to write a patch. Note that encoding lookups are cached, so the slowness only becomes an issue if you

[issue14540] Crash in Modules/_ctypes/libffi/src/dlmalloc.c on ia64-hp-hpux11.31

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Is this still a problem given that we're two years on and up to Python 2.7.7? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14540 ___

[issue15954] No error checking after using of the wcsxfrm()

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: @Serhiy will you follow up on this? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15954

[issue13779] os.walk: bottom-up

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: The OP is happy with the proposed doc patch so can we have this committed please. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13779

[issue21095] EmailMessage should support Header objects

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: @David can we have your comments please. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21095 ___

[issue10118] Tkinter does not find font

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Is this still a problem with tcl/tk 8.6? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10118 ___

[issue21771] name of 2nd parameter to itertools.groupby()

2014-06-15 Thread Uwe Kleine-König
New submission from Uwe Kleine-König: The name of the 2nd parameter to itertools.groupby() is documented inconsitently. Sometimes it's key, sometimes keyfunc. The code actually uses key, so I adapted all occurences I found to key. from itertools import groupby groupby.__doc__

[issue16181] cookielib.http2time raises ValueError for invalid date.

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: A simple patch is attached so could someone take a look please, thanks. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16181 ___

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

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Can someone take a look please as nobody is given against http in the experts index. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15025

[issue16181] cookielib.http2time raises ValueError for invalid date.

2014-06-15 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: - patch review versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16181 ___

[issue16587] Py_Initialize breaks wprintf on Windows

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: I'll let our Windows gurus fight over who gets this one :) -- nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16587

[issue14534] Add method to mark unittest.TestCases as do not run.

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Do we have a consensus as to whether or not David's proposed solution is acceptable? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14534

[issue15476] Add code object to glossary

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Can this be closed given msg169859 and msg169861? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15476 ___

[issue15680] PEP 3121 refactoring applied to audioop module

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Could somebody review the attached patch please. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15680 ___

[issue21095] EmailMessage should support Header objects

2014-06-15 Thread R. David Murray
R. David Murray added the comment: I have to look at the implementation to remind myself how hard this would be to implement. The goal was to leave Header a legacy API...if you need that level of control, you use the old API. But I can see the functionality argument, and Header *is* a

[issue21763] Clarify requirements for file-like objects

2014-06-15 Thread R. David Murray
R. David Murray added the comment: I don't think that's true, though. file like pretty much means has the file attributes that I actually use. That is, it is context dependent (duck typing). I'm also not sure I see the point in the change. It is inherent in the definition of what ABCs

[issue14534] Add method to mark unittest.TestCases as do not run.

2014-06-15 Thread R. David Murray
R. David Murray added the comment: It's Michael's solution that is under consideration, and I guess no one has felt strongly enough about having it to write a patch. So this issue stays in limbo until someone does. -- ___ Python tracker

[issue1102] Add support for _msi.Record.GetString() and _msi.Record.GetInteger()

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Can someone review the latest patch please as it's only five additional lines of C code. -- nosy: +BreamoreBoy, steve.dower, zach.ware versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: As XP is now out of support here are links http://legacy.python.org/dev/peps/pep-0011/#microsoft-windows http://support.microsoft.com/lifecycle/ that I hope come in useful. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3

[issue18875] Automatic insertion of the closing parentheses, brackets, and braces

2014-06-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have never actually used this feature, and I do not see it in Notepad++. I worry that some people, especially beginners with no experience of this 'feature' would hate this, so it would have to be optional. Do you literally mean 'parentheses' or also square

[issue11717] conflicting definition of ssize_t in pyconfig.h

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Is the patch acceptable? -- nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11717

[issue4918] Windows installer created with Python X.Y does not work with Python X.Y+1

2014-06-15 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- components: -Distutils2 nosy: +dstufft versions: +Python 3.4, Python 3.5 -3rd party, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4918

[issue18875] Automatic insertion of the closing parentheses, brackets, and braces

2014-06-15 Thread Tal Einat
Tal Einat added the comment: I like the idea, though it's really just nice to have. This is a very common in IDEs these days, and whoever finds it annoying will be able to disable it. If we do this, we should go all the way and close square and curly brackets, parenthesis, and quotes

[issue21772] platform.uname() not EINTR safe

2014-06-15 Thread Tor Colvin
New submission from Tor Colvin: platform.uname() periodically spews EINTR errors on mac - so use subproces.communicate() which is EINTR safe after http://bugs.python.org/issue1068268 Calling f.read() on naked os.open() output can produce IOError: [Errno 4] Interrupted system call. Attached

[issue21709] logging.__init__ assumes that __file__ is always set

2014-06-15 Thread Vinay Sajip
Vinay Sajip added the comment: Isn't __code__ implementation-specific? Further data point: the contents of __code__ might be implementation-specific (as there are no other Python 3 implementations), but the 2.x equivalent, func_code, is to be found in CPython, Jython, IronPython and PyPy,

[issue10118] Tkinter does not find font

2014-06-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, On Windows, 3.4 comes with tck/tk 8.6. I am guessing that you built not on windows. In any case, tkinter has had several patches since you last posted, not all backported to 2.7, so an updated report with 3.4 or 3.5 and 8.6 would help delineate the

[issue9693] asynchat push_callable() patch

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Is this ever likely to get applied given the arrival of asyncio? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9693 ___

[issue6911] Document changes in asynchat

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Is it worth applying the latest patch given that asynchat is deprecated in favour of asyncio? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6911

[issue18959] Create a Superseded modules section in standard library ToC

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Would somebody review the attached patch please. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18959 ___

[issue15476] Index code object and link to code object definition

2014-06-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is no entry for 'code object' (unlike, for instance 'class object'). There is an entry for 'code' and a subentry for 'object' with four links. The fourth link is to the short definition in the library manual:

[issue14759] BSDDB license missing from liscense page in 2.7.

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: I think msg160322 and msg160339 are saying this isn't an issue. If I'm correct it can be closed. If I'm wrong who is best placed to provide the needed patch? -- nosy: +BreamoreBoy ___ Python tracker

[issue1102] Add support for _msi.Record.GetString() and _msi.Record.GetInteger()

2014-06-15 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: -terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1102 ___ ___ Python-bugs-list

[issue20578] BufferedIOBase.readinto1 is missing

2014-06-15 Thread Nikolaus Rath
Nikolaus Rath added the comment: As discussed on python-devel, I'm attaching a new patch that uses memoryview.cast to ensure that the pure-Python readinto() now works with any object implementing the buffer protocol. -- Added file: http://bugs.python.org/file35647/issue20578_r5.diff

[issue21763] Clarify requirements for file-like objects

2014-06-15 Thread Nikolaus Rath
Nikolaus Rath added the comment: On 06/15/2014 08:29 AM, R. David Murray wrote: I don't think that's true, though. file like pretty much means has the file attributes that I actually use. That is, it is context dependent (duck typing). Well, but when you pass your file-like object to

[issue18875] Automatic insertion of the closing parentheses, brackets, and braces

2014-06-15 Thread Tal Einat
Tal Einat added the comment: Well, I was wrong. I can't find anything of the sort in my old IDLE files. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18875 ___

[issue20578] BufferedIOBase.readinto1 is missing

2014-06-15 Thread Nikolaus Rath
Nikolaus Rath added the comment: (refreshed patch, no changes) -- Added file: http://bugs.python.org/file35648/issue20578_r6.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20578 ___

[issue8029] bug in 2to3 dealing with print FOO, followed by sys.stdout.write('')

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: @Benjamin could you review the patch please. -- nosy: +BreamoreBoy type: - behavior versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8029

[issue15954] No error checking after using of the wcsxfrm()

2014-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have no Windows and can't provide relevant test case. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15954 ___

[issue8630] Keepends param in codec readline(s)

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: As codecs.py has changed I've generated a patch file which adds the missing parameters. I looked at test_codecs.py but could only find one reference to the StreamReaderWriter class in WithStmtTest. I'm sorry but I'll have to leave writing tests for

[issue21773] Fix a NameError in test_enum

2014-06-15 Thread Claudiu Popa
New submission from Claudiu Popa: There's a bug in test_enum.TestStdLib.test_pydoc, print_diffs is undefined and using assertEqual seems to be clearer. -- components: Tests files: test_enum.patch keywords: patch messages: 220669 nosy: Claudiu.Popa, ethan.furman priority: normal

[issue19714] Add tests for importlib.machinery.WindowsRegistryFinder

2014-06-15 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- stage: test needed - patch review versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19714 ___

[issue9008] CGIHTTPServer support for arbitrary CGI scripts

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: @Senthil Kumaran/orsenthil can you pick this up as implied in msg107919? -- nosy: +BreamoreBoy type: - enhancement versions: +Python 3.5 -Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue19714] Add tests for importlib.machinery.WindowsRegistryFinder

2014-06-15 Thread Claudiu Popa
Claudiu Popa added the comment: Attached a new version of the patch. The previous one called find_spec twice in the same test. -- Added file: http://bugs.python.org/file35651/issue19714_2.patch ___ Python tracker rep...@bugs.python.org

[issue15506] configure should use PKG_PROG_PKG_CONFIG

2014-06-15 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15506 ___ ___ Python-bugs-list mailing list

[issue21771] name of 2nd parameter to itertools.groupby()

2014-06-15 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21771 ___ ___ Python-bugs-list mailing list

[issue21772] platform.uname() not EINTR safe

2014-06-15 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21772 ___ ___ Python-bugs-list mailing list

[issue15954] No error checking after using of the wcsxfrm()

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: @Serhiy you don't need Windows, msg170593 refers to a Linux man page. Reading your msg170595 I'd guess that you've got confused with a similar function that is Windows specific. -- ___ Python tracker

[issue21774] Fix a NameError in xml.dom.minidom

2014-06-15 Thread Claudiu Popa
New submission from Claudiu Popa: Hi. This patch fixes a NameError found in xml.dom.minidom. Here's an example for reproducing it: from xml.dom import minidom dom = minidom.parseString(a1/a) pi = dom.createProcessingInstruction('xml-stylesheet',

[issue21771] name of 2nd parameter to itertools.groupby()

2014-06-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: There is a bit an inconsistency but it is more helpful than harmful most of the time. The glossary defines a key-function which is used in a number of places such such as sorted(), min(), nsmallest() and others. In all those cases, the parameter for the

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

2014-06-15 Thread Nadeem Vawda
Nadeem Vawda added the comment: Sorry, I just haven't had any free time lately, and may still not be able to give this the attention it deserves for another couple of weeks. Serhiy, would you be interested in reviewing Nikolaus' patch? -- ___ Python

[issue21774] Fix a NameError in xml.dom.minidom

2014-06-15 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21774 ___

[issue21775] shutil.copytree() crashes copying to VFAT on Linux: AttributeError: 'PermissionError' object has no attribute 'winerror'

2014-06-15 Thread Greg Ward
New submission from Greg Ward: When using shutil.copytree() on Linux to copy to a VFAT filesystem, it crashes like this: Traceback (most recent call last): File /data/src/cpython/3.4/Lib/shutil.py, line 336, in copytree copystat(src, dst) File /data/src/cpython/3.4/Lib/shutil.py, line

[issue21775] shutil.copytree() crashes copying to VFAT on Linux: AttributeError: 'PermissionError' object has no attribute 'winerror'

2014-06-15 Thread Greg Ward
Greg Ward added the comment: In 3.3 and earlier, copytree() crashes roughly as described in issue1545, with shutil.Error that wraps the underlying Operation not permitted error from trying to chmod() something in a VFAT filesystem. Since this appears to accurately reflect what's coming from

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Given the rise of the 64 bit machine I'd guess that this needs completing sooner rather than later. I'd volunteer myself but I've never heard of the '#' format codes, let alone know anything about them :-( -- nosy: +BreamoreBoy

[issue21775] shutil.copytree() crashes copying to VFAT on Linux: AttributeError: 'PermissionError' object has no attribute 'winerror'

2014-06-15 Thread Greg Ward
Greg Ward added the comment: Bad news: because reproducing this requires sudo (to mount an arbitrary filesystem), I'm not sure it's possible/desirable to add test code for it. Good news: the fix is trivial, and it passes my manual test. Here's a patch: --- a/Lib/shutil.py +++ b/Lib/shutil.py

[issue21763] Clarify requirements for file-like objects

2014-06-15 Thread Nick Coghlan
Nick Coghlan added the comment: Asking the question Does it quack and walk *enough* like a duck for my code to work and my tests to pass? is part of the nature of ducktyping. ABCs are definitely a useful guide to expectations, but even there it's possible to lie to the interpreter and have

[issue21774] Fix a NameError in xml.dom.minidom

2014-06-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset ca33faa214ab by Raymond Hettinger in branch '3.4': Issue #21774: Fix incorrect variable in xml.dom.minidom http://hg.python.org/cpython/rev/ca33faa214ab -- nosy: +python-dev ___ Python tracker

[issue21774] Fix a NameError in xml.dom.minidom

2014-06-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch. I'm curious how did you notice this? -- resolution: - fixed status: open - closed versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21774

[issue21774] Fix a NameError in xml.dom.minidom

2014-06-15 Thread Claudiu Popa
Claudiu Popa added the comment: My pleasure. I run Pylint from time to time over stdlib in order to find false positives for Pylint and in the process I stumble across these type of bugs. -- ___ Python tracker rep...@bugs.python.org

[issue4896] Faster why variable manipulation in ceval.c

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: I'm guessing that a patch to ceval.c that's this old wouldn't apply cleanly now. I'll rework it but only if the changes are highly likely to be accepted. Given the mixed results previously reported this is not guaranteed. Opinions please. -- nosy:

  1   2   >