[issue23466] PEP 461: Inconsistency between str and bytes formatting of integers

2015-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch that makes bytes formatting raise an OverflowError if integer argument of %c is out of range. -- Added file: http://bugs.python.org/file38812/bytes_format_overflow.patch ___ Python tracker

Re: A simple single line, triple-quoted comment is giving syntax error. Why?

2015-04-03 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: I know that it started in response to my statement that string literal concatenation wasn't an expression as such, but I have no idea what either side of the current debate is, nor how it affects my statement's validity. This is what I have gathered: - A

[issue22643] Integer overflow in case_operation

2015-04-03 Thread STINNER Victor
STINNER Victor added the comment: self.assertRaises(OverflowError, (�*(2**32//12 + 1)).upper) MemoryError Hum, even with the PEP 393, this string is still large: 682 MB. $ python3 Python 3.4.1 (default, Nov 3 2014, 14:38:10) sys.getsizeof(�*(2**32//12 + 1)) / 1024.**2

[issue22643] Integer overflow in case_operation

2015-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: http://buildbot.python.org/all/builders/PPC64%20AIX%203.x/builds/3466/steps/test/logs/stdio == ERROR: test_case_operation_overflow (test.test_unicode.UnicodeTest)

Re: A simple single line, triple-quoted comment is giving syntax error. Why?

2015-04-03 Thread Ian Kelly
On Thu, Apr 2, 2015 at 11:40 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: This sterile, pointless arguing about the minutia of pedantic definitions is not even close to useful. Honestly Thomas, Ian, nobody cares any more. If I were a betting man, I'd bet that neither of you

[issue23466] PEP 461: Inconsistency between str and bytes formatting of integers

2015-04-03 Thread STINNER Victor
STINNER Victor added the comment: b'%c' is still raising a TypeError. The error message is fine (%c requires an integer in range(256) or a single byte) but it should be an OverflowError for backwards compatibility. I don't understand why you care so much on the exact exception. It doesn't

Re: generator/coroutine terminology

2015-04-03 Thread Steven D'Aprano
On Wednesday 01 April 2015 00:18, Albert van der Horst wrote: In article 55062bda$0$12998$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: The biggest difference is syntactic. Here's an iterator which returns a never-ending sequence of squared

[issue22351] NNTP constructor exception leaves socket for garbage collector

2015-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3e7a670dda2 by Victor Stinner in branch '3.4': Issue #22351: Fix test_nntplib if the ssl module is missing https://hg.python.org/cpython/rev/c3e7a670dda2 -- ___ Python tracker rep...@bugs.python.org

[issue22643] Integer overflow in case_operation

2015-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It's strange to have � here. Should be ü. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22643 ___ ___

[issue22351] NNTP constructor exception leaves socket for garbage collector

2015-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch. But may be better to report MockSslTests as skipped instead of silently omit them. -- Added file: http://bugs.python.org/file38814/issue22351_skip_MockSslTests.patch ___ Python tracker

[issue23857] [RFE] Make certificate verification optionable

2015-04-03 Thread Robert Kuska
Changes by Robert Kuska rku...@gmail.com: -- nosy: +bkabrda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23857 ___ ___ Python-bugs-list mailing

[issue22351] NNTP constructor exception leaves socket for garbage collector

2015-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22351 ___ ___ Python-bugs-list mailing list

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-03 Thread Peter Otten
Saran A wrote: I debugged and rewrote everything. Here is the full version. Feel free to tear this apart. The homework assignment is not due until tomorrow, so I am currently also experimenting with pyinotify as well. Saran, try to make a realistic assessment of your capability. Your

[issue23756] Tighten definition of bytes-like objects

2015-04-03 Thread Martin Panter
Martin Panter added the comment: I’m sorry Stefan, I now realize my changes for len(view) were indeed wrong, and the original was much more correct. I still think the tobytes() and maybe tolist() documentation could be improved, but that is a separate issue to the bytes-like definition. I am

[issue23853] PEP 475: handle EINTR in the ssl module

2015-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 753233baf27e by Victor Stinner in branch 'default': Issue #23853: Cleanup _ssl.c https://hg.python.org/cpython/rev/753233baf27e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue22117] Rewrite pytime.h to work on nanoseconds

2015-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset d976683671ba by Victor Stinner in branch 'default': Issue #22117: Add a new _PyTime_FromSeconds() function https://hg.python.org/cpython/rev/d976683671ba -- ___ Python tracker rep...@bugs.python.org

[issue23834] socketmodule.c: add sock_call() to fix how the timeout is recomputed

2015-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a9c49885cd3 by Victor Stinner in branch 'default': Issue #23834: Simplify timeout handling https://hg.python.org/cpython/rev/7a9c49885cd3 -- ___ Python tracker rep...@bugs.python.org

[issue22643] Integer overflow in case_operation

2015-04-03 Thread STINNER Victor
STINNER Victor added the comment: It's strange to have � here. Should be ü. Oh right, I saw � in the bug tracker and in the buildbot output. But it's a web browser issue, if you download the raw buildbout output, you will see ü. So the string takes less memory (1 byte per character, not 2).

Re: generator/coroutine terminology

2015-04-03 Thread Paul Rubin
alb...@spenarnc.xs4all.nl (Albert van der Horst) writes: You should give an example of usage. As a newby I'm not up to figuring out the specification from source for something built of the mysterious __ internal thingies. In reality because of generator expressions, the yield statement, and

[issue23856] build.bat -e shouldn't also build

2015-04-03 Thread Tim Golden
New submission from Tim Golden: PCBuild\build.bat takes an argument of -e to pull in external libraries. Either by accident or by design the main build will run in addition. However if you'd run pcbuild -e simply to pull in externals, you might not have specified extra build params, such as

[issue22351] NNTP constructor exception leaves socket for garbage collector

2015-04-03 Thread STINNER Victor
STINNER Victor added the comment: Serhiy’s patch looks like it should do the trick. Just get rid of the “self” parameter to make it clearer, +class MockSslTests(MockSocketTests): +def nntp_class(self, *pos, **kw): Hum, you should use the @staticmethod decorator here. --

[issue22351] NNTP constructor exception leaves socket for garbage collector

2015-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a91363f31e1 by Serhiy Storchaka in branch '3.4': Issue #22351. MockSslTests tests in test_nntplib now are reported if skipped. https://hg.python.org/cpython/rev/7a91363f31e1 New changeset c935c1e1d001 by Serhiy Storchaka in branch 'default': Issue

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-03 Thread Dave Angel
On 04/02/2015 07:43 PM, Saran A wrote: snip I debugged and rewrote everything. Here is the full version. Feel free to tear this apart. The homework assignment is not due until tomorrow, so I am currently also experimenting with pyinotify as well. I do have questions regarding how to make

[issue22351] NNTP constructor exception leaves socket for garbage collector

2015-04-03 Thread STINNER Victor
STINNER Victor added the comment: Except of the self parameter/@staticmethod and the unrelated SAX changes, issue22351_skip_MockSslTests.patch looks good to me. -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org

[issue23857] [RFE] Make certificate verification optionable

2015-04-03 Thread STINNER Victor
STINNER Victor added the comment: This issue is related to the PEP 476 which made the SSL certification checks mandatory by default. The PEP contains a section to explain how to opt-out, but the solution is global: https://www.python.org/dev/peps/pep-0476/#opting-out I understand that Robert

[issue23857] [RFE] Make certificate verification optionable

2015-04-03 Thread Robert Kuska
Robert Kuska added the comment: 1) patch attached, dunno how I missed it, thank you. 3) I work for Red Hat additional interest for example here http://seclists.org/oss-sec/2015/q1/785 2) It exists but it is not system wide, I would like to provide users option to opt-in or opt-out without

[issue22643] Integer overflow in case_operation

2015-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: bigimem tests are ran with dummy size = 5147 if dry_run = True (default) and skipped if dry_run = False. Almost always you need dry_run = False. The -M option doesn't work with less than 1 GiB. In this case likely the buildbot had enough memory at the

[issue23857] [RFE] Make certificate verification optionable

2015-04-03 Thread Nick Coghlan
Nick Coghlan added the comment: (capturing these details here for now, we should at least have a python-dev discussion before going ahead with any changes in this area) The additional background here is that we started looking closely at what would be involved in applying PEP 476 to systems

[issue23857] [RFE] Make certificate verification optionable

2015-04-03 Thread Robert Kuska
Robert Kuska added the comment: If you mean hack site.py to be sitecustomize I don't find it as a sufficient solution because users may use their own sitecustomize and this way we would replace theirs. Sslcustomize solution could be another option how to handle this but the config idea

[issue23857] [RFE] Make certificate verification optionable

2015-04-03 Thread Robert Kuska
Robert Kuska added the comment: ( ^ I was replying to Victor) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23857 ___ ___ Python-bugs-list

[issue22351] NNTP constructor exception leaves socket for garbage collector

2015-04-03 Thread Martin Panter
Martin Panter added the comment: Serhiy’s patch looks like it should do the trick. Just get rid of the “self” parameter to make it clearer, and watch out for the stray XML changes! -- ___ Python tracker rep...@bugs.python.org

[issue23857] [RFE] Make certificate verification optionable

2015-04-03 Thread R. David Murray
R. David Murray added the comment: 1) there is no patch attached 2) certificate verification is optional already, is it not? That is, it can be turned off in your code, it is just on by default. 3) what downstream are you talking about? Supposing there is sufficient utility here, the level of

[issue1103213] Adding the missing socket.recvall() method

2015-04-03 Thread STINNER Victor
STINNER Victor added the comment: - I've learned that MSG_WAITALL may be unreliable on certain systems, so any implementation of recvall depending on MSG_WAITALL may inexplicably fail on such systems Something else occurred since 5 years: the PEP 475 was accepted, it makes Python more

[issue22351] NNTP constructor exception leaves socket for garbage collector

2015-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree, factory method can be staticmethod. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22351 ___ ___

[issue22351] NNTP constructor exception leaves socket for garbage collector

2015-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now you have used time machine in reverse mode. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22351 ___

[issue23857] [RFE] Make certificate verification optionable

2015-04-03 Thread STINNER Victor
STINNER Victor added the comment: 2) It exists but it is not system wide, You can hack site.py to disable SSL checks system-wide. It was also discussed to support an optional sslcustomize module, but the idea was rejected if I remember correctly. Anyway, did you read the discussion on the

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-03 Thread Saran A
On Friday, April 3, 2015 at 8:05:14 AM UTC-4, Dave Angel wrote: On 04/02/2015 07:43 PM, Saran A wrote: snip I debugged and rewrote everything. Here is the full version. Feel free to tear this apart. The homework assignment is not due until tomorrow, so I am currently also

r\ ??? (was A simple single line, triple-quoted comment)

2015-04-03 Thread Rustom Mody
On Friday, April 3, 2015 at 12:43:32 PM UTC+5:30, Marko Rauhamaa wrote: 3. Arguing about definitions is silly. Is 0 a natural number? Is 1 a prime number? Speaking about silliness of definitions, I was knocked out in class by this today: r\ '\\' Seeing the docs

Re: New to Programming: Adding custom functions with ipynotify classes

2015-04-03 Thread Steven D'Aprano
On Fri, 3 Apr 2015 12:30 pm, Saran A wrote: Hello All: Here is the program that I am trying to write (with specs): [...] Do you have an actual question? If you want a code review of your entire application, the polite thing to do is to ask for volunteers first, before dropping 200+ lines of

[issue22351] NNTP constructor exception leaves socket for garbage collector

2015-04-03 Thread Martin Panter
Martin Panter added the comment: Sorry, that self parameter is okay. I was just confused because it now means something different :S -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22351

Re: New to Programming: Adding custom functions with ipynotify classes

2015-04-03 Thread Dave Angel
On 04/03/2015 07:37 AM, Steven D'Aprano wrote: On Fri, 3 Apr 2015 12:30 pm, Saran A wrote: #This helper function returns the length of the file def file_len(f): with open(f) as f: for i, l in enumerate(f): pass return i + 1 Not as given it doesn't. It

[issue23853] PEP 475: handle EINTR in the ssl module

2015-04-03 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch to fix the issue: recompute the timeout. It's unclear to me if we should reset the timeout after each successful read/write, or if the timeout is global (total duration of the ssl method). I asked the question on the python-dev mailing list.

[issue22643] Integer overflow in case_operation

2015-04-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +patch stage: resolved - patch review versions: -Python 3.3 Added file: http://bugs.python.org/file38818/test_case_operation_overflow_memory_error.patch ___ Python tracker

[issue22643] Integer overflow in case_operation

2015-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps adding bigmemtest is not worth if memory requirements are less than 1 GiB. But I would separate the creating of long tested string and the calling of case converting method, so we will sure what operation is failed. Proposed patch skips the test if

[issue22643] Integer overflow in case_operation

2015-04-03 Thread STINNER Victor
STINNER Victor added the comment: Perhaps adding bigmemtest is not worth if memory requirements are less than 1 GiB. What is the current limit if you don't pass -M option to regrtest? In @bigimemtest, I see maxsize = 5147. Is it a number of bytes? 5 kB of memory? IMO it's interested to use

[issue23857] [RFE] Make certificate verification optionable

2015-04-03 Thread Nick Coghlan
Nick Coghlan added the comment: The other goal worth noting here is that we'd like to facilitate easy system auditing/monitoring such that machines that still have Python certificate verification off by default can easily be flagged by checks in tools like Nagios, as well as being easy to

[issue23219] asyncio: cancelling wait_for(task, timeout) must also cancel the task

2015-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset c167b9f9aac8 by Victor Stinner in branch '3.4': Issue #23219: Update asyncio.wait_for() documentation https://hg.python.org/cpython/rev/c167b9f9aac8 -- ___ Python tracker rep...@bugs.python.org

[issue23859] asyncio: document behaviour of wait() cancellation

2015-04-03 Thread STINNER Victor
New submission from STINNER Victor: When wait(fs) is cancelled, futures of fs are not cancelled. This behaviour is not documented. It should be documented, and a warning should be added to the Cancellation section: https://docs.python.org/dev/library/asyncio-dev.html#cancellation See my

Re: r\ ??? (was A simple single line, triple-quoted comment)

2015-04-03 Thread Rustom Mody
On Friday, April 3, 2015 at 8:10:54 PM UTC+5:30, Chris Angelico wrote: On Fri, Apr 3, 2015 at 11:52 PM, Rustom Mody wrote: Speaking about silliness of definitions, I was knocked out in class by this today: r\ '\\' Seeing the docs

[issue23765] Remove IsBadStringPtr calls in ctypes

2015-04-03 Thread Steve Dower
Changes by Steve Dower steve.do...@microsoft.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23765 ___ ___

Re: A simple single line, triple-quoted comment is giving syntax error. Why?

2015-04-03 Thread Ian Kelly
On Fri, Apr 3, 2015 at 1:13 AM, Marko Rauhamaa ma...@pacujo.net wrote: 2. The counterexample abc def *does* demonstrate that expressions can at times follow each other immediately. It is a nice point even if not all that consequential. Somewhat analogously: * ord is an

Re: r\ ??? (was A simple single line, triple-quoted comment)

2015-04-03 Thread Chris Angelico
On Fri, Apr 3, 2015 at 11:52 PM, Rustom Mody rustompm...@gmail.com wrote: Speaking about silliness of definitions, I was knocked out in class by this today: r\ '\\' Seeing the docs https://docs.python.org/3.4/reference/lexical_analysis.html#string-and-bytes-literals it talks of this

[issue23858] Look for local sqlite3 by parsing -I/-L flags in linux as well.

2015-04-03 Thread Ned Deily
Ned Deily added the comment: This is essentially a duplicate of Issue3467 and various other similar issues. While it may not be easy to justify the special case in setup.py for OS X (the reason was primarily for OS X installer builds), it would be even harder to justify adding another

[issue23858] Look for local sqlite3 by parsing -I/-L flags in linux as well.

2015-04-03 Thread Ned Deily
Ned Deily added the comment: My apologies, I replied a bit too hastily, thinking incorrectly that your suggested change was just for sqlite3. While the comments above still apply, there is already an open request for the more general feature (and more) under Issue21571. So I suggest further

[issue23466] PEP 461: Inconsistency between str and bytes formatting of integers

2015-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue18184. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23466 ___ ___ Python-bugs-list mailing

[issue22351] NNTP constructor exception leaves socket for garbage collector

2015-04-03 Thread STINNER Victor
STINNER Victor added the comment: Good catch. But may be better to report MockSslTests as skipped instead of silently omit them. I don't know how to do that. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org

[issue23857] [RFE] Make certificate verification optionable

2015-04-03 Thread Robert Kuska
New submission from Robert Kuska: Proposed patch adds possibility to opt-out certificate verification. Disclaimer: it is just proof of concept as the config value is hard-coded. How it works? This patch depends on existence of config file which holds information about the protocol settings.

[issue23500] Argument Clinic: multiple macro definition

2015-04-03 Thread Larry Hastings
Larry Hastings added the comment: As promised, here's a cleaned-up version of the patch. The taxonomy of objects now makes sense: a Destination contains a BufferSeries object, rather than Destinations weirdly supporting __getitem__ to reference different objects. I tripped over myself a

[issue21571] Python build should check CPATH, C_INCLUDE_PATH for module dependencies

2015-04-03 Thread Simon Ye
Changes by Simon Ye sye...@gmail.com: -- nosy: +yesimon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21571 ___ ___ Python-bugs-list mailing list

[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-03 Thread Cédric Krier
Cédric Krier added the comment: Here is a patch that uses getrlimit (that's works on OpenBSD) before using sysconf. -- Added file: http://bugs.python.org/file38824/max_fd.patch ___ Python tracker rep...@bugs.python.org

[issue23856] build.bat -e shouldn't also build

2015-04-03 Thread Tim Golden
Tim Golden added the comment: Fair enough -- resolution: - not a bug stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23856 ___

Re: New to Programming: Adding custom functions with ipynotify classes

2015-04-03 Thread Saran A
On Friday, April 3, 2015 at 12:40:11 PM UTC-4, Denis McMahon wrote: On Thu, 02 Apr 2015 18:30:42 -0700, Saran A wrote: Here is the program that I am trying to write (with specs): Saran, please stop prefacing every subject with New to programming: - it does not give an clue whatsoever as

[issue23668] Support os.ftruncate on Windows

2015-04-03 Thread Steve Dower
Steve Dower added the comment: Sorry, _Py_open requires a double encoding (wchar-char-wchar), which is why I'm not going to use it. _Py_wfopen takes a mode string rather than _O_* flags, and so implicitly includes _O_CREAT. Guessing we should add _Py_wopen? --

[issue23668] Support os.ftruncate on Windows

2015-04-03 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I still fail to see how _Py_open() or _Py_open_noraise() add the O_CREAT flag: they are thin wrapper to the underyling open() function. I cannot see O_CREAT in Python/fileutils.c. Could you please show me that the line number adding O_CREAT implictly?

Defamation

2015-04-03 Thread silvagni
Please remove the page: https://mail.python.org/pipermail/python-list/2014-September/691616.html Thank You Gabriele Silvagni -- https://mail.python.org/mailman/listinfo/python-list

[issue23500] Argument Clinic: multiple macro definition

2015-04-03 Thread Larry Hastings
Larry Hastings added the comment: Updated patch, removed all references to two-pass. Also realized I needed to make the default behavior for methoddef_ifndef go to the end. And, finally, I forgot to merge the only print each #ifndef block once code I wrote before when I redid the patch, so

[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm not going to bother setting up a VM with an esoteric OS in it myself, if someone knows the past and current state of various OpenBSD versions and what to do there, feel free to commit OpenBSD conditional compilation bits as you see fit to make this do

[issue23860] Failure to check return value from lseek() in Modules/mmapmodule.c

2015-04-03 Thread Bill Parker
New submission from Bill Parker: Hello All, In reviewing code in directory Python-3.4.3/Modules, file 'mmapmodule', I found a call to 'lseek()' without a check for a return value of -1, indicating failure. The patch file below corrects this issue (diff -u format): --- mmapmodule.c.orig

[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-03 Thread Cédric Krier
Cédric Krier added the comment: Indeed, I think my patch is not right as /dev/fd on OpenBSD is static. I will continue to investigate. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23852

[issue23500] Argument Clinic: multiple macro definition

2015-04-03 Thread Larry Hastings
Larry Hastings added the comment: I did, I just didn't respond. I'll do that now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23500 ___ ___

[issue23466] PEP 461: Inconsistency between str and bytes formatting of integers

2015-04-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23466 ___

[issue23794] http package should support HTTP/2

2015-04-03 Thread Demian Brecht
Demian Brecht added the comment: @Cory: my own plan was to use your implementation as the baseline and add server support. If you take a crack at it that would be great! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23794

[issue23794] http package should support HTTP/2

2015-04-03 Thread Cory Benfield
Cory Benfield added the comment: figure out some kind of adapter interface in order to facilitate swapping between 1.1 and 2 (This can start with a clean HTTP/1.1 interface) I've been thinking about this a lot with hyper, and I'm about to start work on it (having just finished an alpha

[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-03 Thread Cédric Krier
Cédric Krier added the comment: The problem comes from safe_get_max_fd which return a too low value because of a bug in sysconf on OpenBSD [1]: The value for _SC_STREAM_MAX is a minimum maximum, and required to be the same as ANSI C's FOPEN_MAX, so the returned value is a ridiculously small

[issue23852] Wrong FD_DIR file name on OpenBSD

2015-04-03 Thread Cédric Krier
Changes by Cédric Krier cedric.kr...@b2ck.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23852 ___ ___ Python-bugs-list

[issue23500] Argument Clinic: multiple macro definition

2015-04-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - larry stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23500 ___

Re: New to Programming: Adding custom functions with ipynotify classes

2015-04-03 Thread Denis McMahon
On Thu, 02 Apr 2015 18:30:42 -0700, Saran A wrote: Here is the program that I am trying to write (with specs): Saran, please stop prefacing every subject with New to programming: - it does not give an clue whatsoever as to what your post is about. -- Denis McMahon, denismfmcma...@gmail.com

[issue23466] PEP 461: Inconsistency between str and bytes formatting of integers

2015-04-03 Thread Ethan Furman
Ethan Furman added the comment: Looks good, thanks Serhiy. -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23466 ___

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

2015-04-03 Thread STINNER Victor
STINNER Victor added the comment: queue_bug.py: script to reproduce the bug. I confirm that Queue.get() sometimes looses items when it is cancelled. The waiter contains the result, but the waiter is lost when get() is cancelled. Queue.get() waiter got a result, but Queue.get() wakeup is only

[issue23466] PEP 461: Inconsistency between str and bytes formatting of integers

2015-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 313fd1c819c5 by Serhiy Storchaka in branch 'default': Issue #23466: Raised OverflowError if %c argument is out of range. https://hg.python.org/cpython/rev/313fd1c819c5 -- ___ Python tracker

[issue23794] http package should support HTTP/2

2015-04-03 Thread Demian Brecht
Demian Brecht added the comment: +1 to the adding the support for HTTP/2. I would personally like to see a few things happen before that though (which I've been putting some effort into as i can) + refactor http.client to cleanly separate transport from application protocol level + figure

[issue23500] Argument Clinic: multiple macro definition

2015-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks as you didn't notice my comments on Rietveld. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23500 ___

[issue23500] Argument Clinic: multiple macro definition

2015-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: larry.ac_multiple_macro_definitions.diff.5.txt LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23500 ___

[issue23861] Make stdprinter use DebugOutputString when no stdout/stderr available

2015-04-03 Thread Steve Dower
New submission from Steve Dower: Currently we initialize stdprinter while initializing and terminate if we can't access std streams. We should always write to DebugOutputString on Windows (only does anything if a debugger is attached) and avoid terminating in this case. --

[issue23338] PyErr_Format in ctypes uses invalid parameter

2015-04-03 Thread Masayuki Yamamoto
Changes by Masayuki Yamamoto light2happy@gmail.com: -- nosy: +masamoto ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23338 ___ ___

[issue23831] tkinter canvas lacks of moveto method.

2015-04-03 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23831 ___ ___ Python-bugs-list

[issue23831] tkinter canvas lacks of moveto method.

2015-04-03 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +serhiy.storchaka, terry.reedy versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23831 ___

[issue23862] subprocess popen arguments using double quotes

2015-04-03 Thread Paul Moore
Paul Moore added the comment: On Windows, subprocess.Popen has to convert an argument list to a command line (because that's what the OS expects for CreateProcess). It does so internally, using subprocess.list2cmdline, which follows the quoting rules for the MS C runtime (because that's what

[issue23500] Argument Clinic: multiple macro definition

2015-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Larry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23500 ___ ___ Python-bugs-list mailing list

[issue23815] Segmentation fault when create _tkinter objects

2015-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 3.4.3, I get the equivalent on Windows (a 'python has stopped working' box). -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23815

[issue23500] Argument Clinic: multiple macro definition

2015-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think this is not needed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23500 ___ ___ Python-bugs-list

[issue23791] Identify Moved Lines with difflib

2015-04-03 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/issue23791 ___ ___ Python-bugs-list

[issue23501] Argument Clinic: generate code into separate files by default

2015-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa88a18a4aa1 by Serhiy Storchaka in branch 'default': Issue #23501: Argumen Clinic now generates code into separate files by default. https://hg.python.org/cpython/rev/aa88a18a4aa1 -- nosy: +python-dev

[issue23492] Argument Clinic: improve generated parser for 1-argument functions

2015-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset e10ad4d4d490 by Serhiy Storchaka in branch 'default': Issue #23492: Argument Clinic now generates argument parsing code with https://hg.python.org/cpython/rev/e10ad4d4d490 -- nosy: +python-dev ___ Python

[issue23825] test_idle fails under -OO

2015-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whatever you do with the other -OO patches, I would prefer that this be applied to 3.4. The 3.4/3.5 files should be identical. -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue23500] Argument Clinic: multiple macro definition

2015-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 25eef0ecb9c1 by Larry Hastings in branch 'default': Issue #23500: Argument Clinic is now smarter about generating the #ifndef https://hg.python.org/cpython/rev/25eef0ecb9c1 -- nosy: +python-dev ___

[issue23786] test_unaligned_buffers (test.test_hash.HashEqualityTestCase) ... Fatal Python error: Bus error

2015-04-03 Thread Peter
Peter added the comment: Test 1 Python 3.4.3 built by GCC 4.9.2 is: str(memoryview(b'abcdefghijklmnopqrstuvwxyz')[1:], 'ascii') 'bcdefghijklmnopqrstuvwxyz' Test 2 Python 3.4.3 built by GCC 4.6.2 is (no patches applied) This build will core dump if I run -m test test_hash.

[issue23825] test_idle fails under -OO

2015-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The relevant code in CallTips.py itself if isinstance(ob_call, types.MethodType): doc = ob_call.__doc__ else: doc = getattr(ob, __doc__, ) if doc: add more to calltip equally ignores both None and '', but I forgot the None

[issue23500] Argument Clinic: multiple macro definition

2015-04-03 Thread Larry Hastings
Larry Hastings added the comment: Does this really need a backport to 3.4? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23500 ___ ___

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2015-04-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 157b7055bb9d by Serhiy Storchaka in branch 'default': Issue #15582: inspect.getdoc() now follows inheritance chains. https://hg.python.org/cpython/rev/157b7055bb9d -- nosy: +python-dev ___ Python tracker

  1   2   >