[issue21593] Clarify re.search documentation first match

2015-05-14 Thread Joshua Landau
Joshua Landau added the comment: This should also be applied to regex.search's docstring. https://docs.python.org/3.5/library/re.html#re.regex.search -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org

[issue14399] zipfile and creat/update comment

2015-05-14 Thread Mark Dickinson
Mark Dickinson added the comment: Just for the record, David's comment at msg158136 is apposite: We've had trouble in the past with a conversion to new style class breaking people's code. People are less likely to be subclassing ZipFile, though, so it is probably OK. We just spent some

[issue23699] Add a macro to ease writing rich comparisons

2015-05-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @rhettinger: OTOH, a macro can provide uniformity and correctness. If (as appears evident from the patch) those 10 lines of boilerplate are actually implemented subtly differently each time, bugs can be easily introduced. So a well written and documented

[issue14399] zipfile and creat/update comment

2015-05-14 Thread R. David Murray
R. David Murray added the comment: :( :( OK, next time this comes up I won't say it will probably be OK. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14399 ___

[issue24193] Make LOGGING_FORMAT of assertLogs configurable

2015-05-14 Thread Berker Peksag
New submission from Berker Peksag: It would be useful if we could change the logging format of assertLogs when we use it: with self.assertLogs('foo', level='INFO', format='%(message)s') as cm: logging.getLogger('foo').info('first message') self.assertEqual(cm.output, ['first

[issue24192] unexpected system error with pep420 style namespace packages

2015-05-14 Thread Ronald Oussoren
New submission from Ronald Oussoren: The script below creates a basic PEP 420 style package with a single module in it ('package.sub') and tries to import that module With 3.5 the script runs without problems and prints 42 (as expected). With a 3.5 (fresh checkout as of 2015-05-14) I get an

[issue24188] Signature objects not hashable

2015-05-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oh, great! Thank you. -- resolution: - out of date stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24188 ___

[issue24188] Signature objects not hashable

2015-05-14 Thread Yury Selivanov
Yury Selivanov added the comment: Signatures and Parameters are already hash able in 3.5. Please close the issue. -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24188

[issue24192] unexpected system error with pep420 style namespace packages

2015-05-14 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24192 ___ ___ Python-bugs-list

[issue24192] unexpected system error with pep420 style namespace packages

2015-05-14 Thread R. David Murray
R. David Murray added the comment: I presume you meant that it works with 3.4? -- nosy: +brett.cannon, eric.snow, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24192 ___

[issue24194] tokenize yield an ERRORTOKEN if an identifier uses Other_ID_Start or Other_ID_Continue

2015-05-14 Thread Joshua Landau
New submission from Joshua Landau: This is valid: ℘· = 1 print(℘·) # 1 But this gives an error token: from io import BytesIO from tokenize import tokenize stream = BytesIO(℘·.encode(utf-8)) print(*tokenize(stream.read), sep=\n) # TokenInfo(type=56 (ENCODING),

[issue12018] No tests for ntpath.samefile, ntpath.sameopenfile

2015-05-14 Thread R. David Murray
R. David Murray added the comment: Given that several comments say this should be done, and your analysis indicates it is done, I think it should be safe to close it :) Thanks for the nudge. -- nosy: +r.david.murray resolution: - fixed stage: test needed - resolved status: open -

[issue23699] Add a macro to ease writing rich comparisons

2015-05-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 14.05.2015 13:29, Petr Viktorin wrote: Marc-Andre, Barry, you expressed interest in the macro on the mailing list; do you still think it's a good idea? Yes. The fact that the macro can save us more than a hundred lines of code in Python itself is

[issue24190] BoundArguments facility to inject defaults

2015-05-14 Thread Yury Selivanov
Yury Selivanov added the comment: Well, the docs example only binds explicit defaults in function signature. Implicit defaults for *args and **kwargs (`()` and `{}`) aren't usually useful (in my opinion). Do you guys have any good use case for such method? I use the Signature API

[issue24190] BoundArguments facility to inject defaults

2015-05-14 Thread Yury Selivanov
Yury Selivanov added the comment: FWIW it wasn't as easy as I thought it would be :) You were right, docs example is very basic. Please take a look at the attached patch. -- assignee: - yselivanov keywords: +patch stage: - patch review Added file:

[issue24181] test_fileio crash, 3.5, Win 7

2015-05-14 Thread Steve Dower
Steve Dower added the comment: Express for Desktop still takes about 4GB... I'm going to up the urgency of a sensibly sized package for people who just need the compiler. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24181

[issue24191] BoundArguments.signature not documented

2015-05-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1012a8138fcb by Yury Selivanov in branch '3.4': Issue 24191: Document BoundArguments.signature https://hg.python.org/cpython/rev/1012a8138fcb New changeset 970454df99cd by Yury Selivanov in branch 'default': Issue 24191: Document

[issue24191] BoundArguments.signature not documented

2015-05-14 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24191 ___

[issue24181] test_fileio crash, 3.5, Win 7

2015-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I download vc_community.exe by just clicking and giving a save directory. When started, it says 9GB with options unchecked (10 GB before I unchecked one). (At which point I quit.) Downloading just Express for Desktop requires an MS account. It seems odd to

[issue24189] Parameter doesn't expose its index

2015-05-14 Thread Yury Selivanov
Yury Selivanov added the comment: OK, I'm closing this one. -- resolution: - rejected stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24189 ___

[issue24181] test_fileio crash, 3.5, Win 7

2015-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the warning. I was expecting 'expansion', but 5 GB (what site says for ...Desktop) is a big chunk of the 17 GM I have left on C: (111GB SSD). (Do you have any idea how much free space I will need for Win 10 upgrade?) So I think I will reverse

[issue24189] Parameter doesn't expose its index

2015-05-14 Thread Yury Selivanov
Yury Selivanov added the comment: Do you have any good use case for this? In one of the first iterations of PEP 362 we had Parameter.index. However, we later redesigned the object to work as a building block -- immutable, and explicitly detached from its parent Signature. This way there is

[issue24189] Parameter doesn't expose its index

2015-05-14 Thread Yury Selivanov
Yury Selivanov added the comment: What do you mean? In Signature or in BoundArguments? I would hope that Signature keeps it. I mean during the actual call, as **kwargs aren't ordered. I think having indexes for parameters would make sense for a language like JS or C, where there are no

[issue24184] PEP 492: Add AsyncIterator and AsyncIterable to collections.abc

2015-05-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4347ce7acd84 by Yury Selivanov in branch 'default': Issue 24184: Add AsyncIterator and AsyncIterable to collections.abc. https://hg.python.org/cpython/rev/4347ce7acd84 -- nosy: +python-dev ___ Python

[issue24181] test_fileio crash, 3.5, Win 7

2015-05-14 Thread Steve Dower
Steve Dower added the comment: Just so you're not too surprised - that vc_community.exe is a downloader that will eventually need 6-8GB :( I'm working with the teams involved to try and get a compiler-only release, but for now the smallest installation that should work is Express for Desktop

[issue23995] msvcrt could not be imported

2015-05-14 Thread Steve Dower
Steve Dower added the comment: Was waiting for agreement or opposition, but I intended to close it within 24 hours if nothing was raised :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23995

[issue24189] Parameter doesn't expose its index

2015-05-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 14/05/2015 17:40, Yury Selivanov a écrit : Do you have any good use case for this? Passing a parameter around without having to pass the index separately :-) In one of the first iterations of PEP 362 we had Parameter.index. However, we later redesigned

[issue24189] Parameter doesn't expose its index

2015-05-14 Thread Yury Selivanov
Yury Selivanov added the comment: As mentioned in the issue, when re-implementing function calls, you have to flatten the arguments into a simple argument list [..] Then you probably need indexes for BoundArguments, not Parameters. (*) at least for pure Python functions, where the arguments

[issue23985] Crash when deleting slices from duplicated bytearray

2015-05-14 Thread Steve Dower
Changes by Steve Dower steve.do...@microsoft.com: -- nosy: -steve.dower ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23985 ___ ___

[issue24189] Parameter doesn't expose its index

2015-05-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 14/05/2015 17:49, Yury Selivanov a écrit : What do you mean? In Signature or in BoundArguments? I would hope that Signature keeps it. I mean during the actual call, as **kwargs aren't ordered. I think having indexes for parameters would make sense

[issue24184] PEP 492: Add AsyncIterator and AsyncIterable to collections.abc

2015-05-14 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you Guido for the review! Committed to the default branch. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue24189] Parameter doesn't expose its index

2015-05-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Given the drawback you mentioned above, I agree that this may be a hard sell :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24189 ___

[issue24190] BoundArguments facility to inject defaults

2015-05-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 14/05/2015 17:45, Yury Selivanov a écrit : Well, the docs example only binds explicit defaults in function signature. Implicit defaults for *args and **kwargs (`()` and `{}`) aren't usually useful (in my opinion). When the defaults are filled I expect

[issue24190] BoundArguments facility to inject defaults

2015-05-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: That sounds good to me, thank you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24190 ___ ___

[issue24190] BoundArguments facility to inject defaults

2015-05-14 Thread Yury Selivanov
Yury Selivanov added the comment: Do you guys have any good use case for such method? A use case was given in issue22998. My use case is JIT-compiling functions and function calls in Numba. We reimplement the function calls ourselves, so need a complete mapping of arguments to values.

[issue24182] test_tcl assertion failure, 2.7, Win 7

2015-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: The one bundled with 2.7, which now is 8.5.15.0. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24182 ___ ___

[issue24191] BoundArguments.signature not documented

2015-05-14 Thread Yury Selivanov
Yury Selivanov added the comment: Good catch! Please take a look at the attached patch. -- keywords: +patch Added file: http://bugs.python.org/file39371/sig_ba_docs.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24191

[issue24185] Add Function for Sending File to Trash (or Recycling Bin)

2015-05-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: This has been discussed on Python-Ideas some time ago, possibly more than once. See here for one such (short) discussion: https://mail.python.org/pipermail/python-ideas/2013-April/020148.html I think that move-to-trash functionality is quite useful, I needed

[issue23085] update internal libffi copy to 3.2.1

2015-05-14 Thread Fabio Perez
Fabio Perez added the comment: Ping -- nosy: +fabiovmp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23085 ___ ___ Python-bugs-list mailing list

[issue23089] Update libffi config files

2015-05-14 Thread Fabio Perez
Fabio Perez added the comment: Ping -- nosy: +fabiovmp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23089 ___ ___ Python-bugs-list mailing list

[issue24181] test_fileio crash, 3.5, Win 7

2015-05-14 Thread Steve Dower
Steve Dower added the comment: It's just a free account - any Hotmail, live.com or outlook.com email will do. The Microsoft equivalent of having a Google or Facebook account. (An MSDN Subscription is the other usual option, though that's associated with a Microsoft account anyway. I don't

[issue24197] minidom parses comments wrongly

2015-05-14 Thread Paweł
New submission from Paweł: from xml.dom import minidom html = html body !-- img src=/images/obraz--super.jpg/ -- /body /html minidom.parseString(html) Result: Traceback (most recent call last): File minidom.py, line 10, in module minidom.parseString(html) File

[issue24195] Add `Executor.filter`

2015-05-14 Thread Ram Rachum
Ram Rachum added the comment: Also, I notice Python 3.5 feature freeze is a bit over a week away, and I hope we can get that in so it could go in Python 3.5. (Assuming it goes in at all.) -- ___ Python tracker rep...@bugs.python.org

[issue24196] Fail to create file if name starts with prn.

2015-05-14 Thread Boris
New submission from Boris: f=open('prn.txt','w') Traceback (most recent call last): File pyshell#80, line 1, in module f=open('prn.txt','w') FileNotFoundError: [Errno 2] No such file or directory: 'prn.txt' Names that fail: prn. prn.txt prn.yourmmama.txt ... Names that do not fail: prn

[issue22547] Implement an informative `BoundArguments.__repr__`

2015-05-14 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- resolution: - fixed stage: - resolved status: open - closed type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22547 ___

[issue22547] Implement an informative `BoundArguments.__repr__`

2015-05-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset a64a2e87 by Yury Selivanov in branch 'default': Issue 22547: Implement informative __repr__ for inspect.BoundArguments https://hg.python.org/cpython/rev/a64a2e87 -- nosy: +python-dev ___ Python

[issue23995] msvcrt could not be imported

2015-05-14 Thread eryksun
eryksun added the comment: Testing getpass shouldn't be that difficult if you use ctypes to call WriteConsoleInput [1]. For example: from ctypes import * from ctypes.wintypes import * kernel32 = WinDLL('kernel32') IN, OUT, INOUT = 1, 2, 3 KEY_EVENT = 0x0001

[issue23184] Unused imports, variables, file in IDLE

2015-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I got hg working and pushed the patch I had in January as a980da5f79f9, 5386aedf3ac9, 15701e89d710, and 3fa58e779308. Having forgotten that this issue was on the tracker (rather than just idle-sig post), I omitted the issue number and acknowledgement for the

[issue24195] Add `Executor.filter`

2015-05-14 Thread Ram Rachum
New submission from Ram Rachum: `Executor.filter` is to `filter` what `Executor.map` is to `map`. See Python-ideas thread: https://groups.google.com/forum/#!topic/python-ideas/EBOC5YCWPyo Patch attached. I don't know how to run the Python test suite (I'm guessing it involves building Python

[issue24195] Add `Executor.filter`

2015-05-14 Thread Paul Moore
Paul Moore added the comment: You should add docs for the new method, as well. -- nosy: +paul.moore ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24195 ___

[issue24196] Fail to create file if name starts with prn.

2015-05-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +steve.dower ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24196 ___ ___ Python-bugs-list

[issue24185] Add Function for Sending File to Trash (or Recycling Bin)

2015-05-14 Thread Virgil Dupras
Virgil Dupras added the comment: For further references, there's also https://mail.python.org/pipermail/python-ideas/2014-December/030547.html which is a deeper discussion and brings even more arguments against it. Even though I'd love to have some of my code integrated into the core,

[issue24198] please align the platform tag for windows

2015-05-14 Thread Steve Dower
Steve Dower added the comment: Currently we have the form Python version-os, and the _ is within the OS field. There are no released final versions with these tags, so we can go ahead and change them however we like. Not sure exactly what you mean by the ABITAGS - Windows has no ABITAGS to

[issue24195] Add `Executor.filter`

2015-05-14 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24195 ___ ___

[issue24196] Fail to create file if name starts with prn.

2015-05-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24196 ___ ___

[issue24198] please align the platform tag for windows

2015-05-14 Thread Matthias Klose
New submission from Matthias Klose: Steve, I'd like to align the platform tag across platforms to something uniform. For POSIX systems we currently use the form base cpu-os-abi. This is derived from the autoconf host definition. Currently the windows builds use win32, win_ia64, win_arm,

[issue24196] Fail to create file if name starts with prn.

2015-05-14 Thread Martin Panter
Martin Panter added the comment: I could be wrong, but I thought this was normal Windows behaviour, not related to Python. Same probably applies to other special names like NUL, COM1. -- components: +Windows nosy: +tim.golden, vadmium, zach.ware ___

[issue24196] Fail to create file if name starts with prn.

2015-05-14 Thread Steve Dower
Steve Dower added the comment: It's a name reserved by Windows - see https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247.aspx#file_and_directory_names If you have a full (and 100% resolved) path, you can prefix it with \\?\ (plus escaping) to access a file by that name, but I

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-05-14 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- priority: normal - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23812 ___ ___

[issue24157] test_urandom_fd_reopened failure if OS X crash reporter default set to Developer

2015-05-14 Thread Ned Deily
Ned Deily added the comment: OK, that explains the failure. You must have set the OS X crash reporter default to Developer mode on that machine at some point. In that case, code that is now in the SuppressCrashReport context manager in Lib/test/support/__init__.py checks for that setting by

[issue23184] Unused imports, variables, file in IDLE

2015-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: News entry, not new entry (Cannot edit commit messages) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23184 ___

[issue23227] Generator's finally block not run if close() called before first iteration

2015-05-14 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23227 ___

[issue24192] unexpected system error with pep420 style namespace packages

2015-05-14 Thread Eric Snow
Eric Snow added the comment: The problem is right where the traceback says. Apparently there is a gap in the namespace package tests that I slipped through with my recent work to split out path-based import. I'll work up a patch. -- ___ Python

[issue23201] Decimal(0)**0 is an error, 0**0 is 1, but Decimal(0) == 0

2015-05-14 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23201 ___

[issue24198] please align the platform tag for windows

2015-05-14 Thread Matthias Klose
Matthias Klose added the comment: no, I mean something like the attached patch. get_platform() is dependent on the environment, not the platform that python was built for (e.g. it tells you x86_64 when running a 32bit python) on a 64bit kernel). -- keywords: +patch Added file:

[issue24198] please align the platform tag for windows

2015-05-14 Thread Ned Deily
Ned Deily added the comment: OK, but I still don't understand your comment about OS X. get_platform() on OS X in general returns info about the platform build environment (e.g. the implied set of all OS versions and CPU archs supported), not about the specific machine environment this

[issue24157] test_urandom_fd_reopened failure if OS X crash reporter default set to Developer

2015-05-14 Thread Skip Montanaro
Skip Montanaro added the comment: OK, that explains the failure. You must have set the OS X crash reporter default to Developer mode on that machine at some point. Thanks. I certainly don't remember doing anything like that. (I'm not a Mac user at such a sophisticated level.) At any rate, I

[issue24198] please align the platform tag for windows

2015-05-14 Thread Ned Deily
Ned Deily added the comment: @doko, are you referring to the results of {sysconfig,distutils.util}.get_platform()? What effect would this have on third-party packages that currently support multiple versions of Python? Also, if get_platform() is meant, I don't understand the comment Darwin

[issue24198] please align the platform tag for windows

2015-05-14 Thread Steve Dower
Steve Dower added the comment: The patch makes it a little clearer, but I'd prefer the OS to be win32 rather than just win. Win32 is the name of the API set that Python is built against - it's as close to an ABI for the operating system as we ever get. (For contrast, WinRT is the only other

[issue23184] Unused imports, variables, file in IDLE

2015-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: More idlelib fixes. Will push after reviewing. pyflakes shows extraneous items in idle_test also. -- Added file: http://bugs.python.org/file39375/@unused.diff ___ Python tracker rep...@bugs.python.org

[issue23184] Unused imports, variables, file in IDLE

2015-05-14 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: Added file: http://bugs.python.org/file39376/@unused27.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23184 ___

[issue24199] Idle: remove idlelib.idlever.py and its use in About dialog

2015-05-14 Thread Terry J. Reedy
New submission from Terry J. Reedy: Once upon a time, Idle was versioned separately from Python, though updated in lockstep with Python (#1515164, Martin's comment). The version was kept in idlever.py, with one line IDLE_VERSION = m.n.p Several years ago, the separate versioning was dropped

[issue24195] Add `Executor.filter`

2015-05-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24195 ___ ___ Python-bugs-list

[issue24195] Add `Executor.filter`

2015-05-14 Thread Ethan Furman
Ethan Furman added the comment: Updated the tests (had to use real defs, not lambdas, and the expected results for filter_exception weren't right). Tests pass. Get some docs written! :) (More reviews would also be good. ;) -- Added file:

[issue24192] unexpected system error with pep420 style namespace packages

2015-05-14 Thread Eric Snow
Eric Snow added the comment: Hmm, look like the test suite masks the issue due to the fact that importlib gets imported before running the applicable tests in test_namespace_pkgs.py. This causes _frozen_importlib.__package__ to get set properly, thus masking the problem. The problem is the

[issue24195] Add `Executor.filter` to concurrent.futures

2015-05-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +bquinlan, jnoller, sbt title: Add `Executor.filter` - Add `Executor.filter` to concurrent.futures ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24195

[issue24187] del statement documentation doesn't mention name binding behaviour

2015-05-14 Thread R. David Murray
R. David Murray added the comment: I don't understand, what do you think is missing from the description? It certainly talks about name binding. Also, can you provide a link to the other statement, as I can't find it, and out of context I have no idea what it is talking about. --

[issue23699] Add a macro to ease writing rich comparisons

2015-05-14 Thread Petr Viktorin
Petr Viktorin added the comment: Well, as a newcomer, I think the macro makes it easier to both grok what the code does, and is about equally difficult when it comes to checking correctness of the code. But I understand that's a subjective. Marc-Andre, Barry, you expressed interest in the

[issue24190] BoundArguments facility to inject defaults

2015-05-14 Thread R. David Murray
R. David Murray added the comment: See issue 22998. The more complete and thus more complex example in the last message makes it look like including this in the library might be a good idea. -- nosy: +r.david.murray ___ Python tracker

[issue12018] No tests for ntpath.samefile, ntpath.sameopenfile

2015-05-14 Thread Francis MB
Francis MB added the comment: Can this issue be closed? IMHO it's not clear what still needs to be done. The patch seems to be there already. Thanks in advance! -- nosy: +francismb ___ Python tracker rep...@bugs.python.org

[issue23804] SSLSocket.recv(0) receives up to 1024 bytes

2015-05-14 Thread Martin Panter
Martin Panter added the comment: Here is a patch for 3.5 that changes the default size to explicitly be 1024, and tests that recv(0) and read(0) now work as I expect they should by returning nothing. -- keywords: +patch stage: - patch review Added file:

[issue22133] IDLE: Set correct WM_CLASS on X11

2015-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Just a suggestion, can we use sys.version_info to get Python major version to have uniform code? Uniform code is too verbose. WM_CLASS should be Idle on Python 2 and Idle3 on Python 3. top = Toplevel(self.root, class_='Idle' if sys.version_info[0] =

[issue24199] Idle: remove idlelib.idlever.py and its use in About dialog

2015-05-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: That's fine. Just delete idlever.py, and I'll deal with it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24199 ___

[issue24136] document PEP 448

2015-05-14 Thread Neil Girdhar
Neil Girdhar added the comment: Just updated the what's new. Also, thank you for adding my name to Misc/Acks. Should we also add Joshua Landau's name? He helped me quite a bit with the implementation, and he wrote the PEP. -- keywords: +patch nosy: +neil.g Added file:

[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-05-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Added a patch. Needs to have the OP's test case added. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23757 ___

[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And it would be nice to add the same test for list, set, etc (if they don't exist). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23757 ___

[issue23985] Crash when deleting slices from duplicated bytearray

2015-05-14 Thread Martin Panter
Martin Panter added the comment: Antoine, would you have a chance to review my patches? I assume you were responsible for adding the ob_start field. It would be nice to see this bug fixed in the next 3.4 and 3.5 releases. As well as the original poster’s problem, I suspect this bug may be the

[issue23985] Crash when deleting slices from duplicated bytearray

2015-05-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry. I'll take a look! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23985 ___ ___ Python-bugs-list mailing

[issue24185] Add Function for Sending File to Trash (or Recycling Bin)

2015-05-14 Thread R. David Murray
R. David Murray added the comment: Heh, dangerous is in the eye of the beholder. I don't even have a trash bin on my system (no desktop, just X and shell windows). It is almost always the case that an application written in python that wants to get rid of a file *does* want to really

[issue23995] msvcrt could not be imported

2015-05-14 Thread R. David Murray
R. David Murray added the comment: You'll note that the problem shows up in the getpass module, which does have tests, but which does not have a test that discovers this. That's because writing tests that *use* these functions is not really practical :) Someone could open an issue about

[issue24187] del statement documentation doesn't mention name binding behaviour

2015-05-14 Thread Jon
New submission from Jon: The documentation for the del keyword in the language reference doesn't mention the name binding behaviour: https://docs.python.org/3/reference/simple_stmts.html#grammar-token-del_stmt It is mentioned in section 4.1 where it says: A target occurring in a del

[issue24188] Signature objects not hashable

2015-05-14 Thread Antoine Pitrou
New submission from Antoine Pitrou: inspect.Signature objects are immutable, but they are not hashable. It would be useful if they were. (I would have a similar request for bound arguments but unfortunately their mutability may make it less desirable) -- components: Library (Lib)

[issue23698] Multiprocessing.Manager: fix behavior and doc inconsistencies

2015-05-14 Thread Anand B Pillai
Anand B Pillai added the comment: @sbt - Any comments on this ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23698 ___ ___ Python-bugs-list

[issue24190] BoundArguments facility to inject defaults

2015-05-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: My example forgets the function declaration, which is: def f(a, b=5, *c, d=5): pass ... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24190 ___

[issue24188] Signature objects not hashable

2015-05-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: But that kind of makes my point. While ([],) is not hashable, other tuples are hashable. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24188 ___

[issue24188] Signature objects not hashable

2015-05-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Also, a workaround would be to id() the defaults when hashing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24188 ___

[issue24189] Parameter doesn't expose its index

2015-05-14 Thread Antoine Pitrou
New submission from Antoine Pitrou: A signature Parameter object only exposes its name, not its index in the signature. I think that would be a useful information to have. -- components: Library (Lib) messages: 243166 nosy: pitrou, yselivanov priority: normal severity: normal status:

[issue24190] BoundArguments facility to inject defaults

2015-05-14 Thread Antoine Pitrou
New submission from Antoine Pitrou: The recipe to inject default values in a BoundArguments instance is given in the doc, but it's not trivial. Furthermore, it's actually incomplete: it doesn't handle any star-arguments, e.g.: sig = inspect.signature(f) ba = sig.bind(2, d=4) for param in

[issue24188] Signature objects not hashable

2015-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ([],) is immutable, but is not hashable. If default values affect the hash, the signature can't be always hashable. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org

[issue24191] BoundArguments.signature not documented

2015-05-14 Thread Antoine Pitrou
New submission from Antoine Pitrou: The signature property on BoundArguments seems to be deliberately public (since there's also a private _signature attribute), but it's not documented. -- assignee: docs@python components: Documentation keywords: easy messages: 243168 nosy:

  1   2   >