Re: Invoking return through a function?

2017-10-30 Thread Lele Gaifax
r...@zedat.fu-berlin.de (Stefan Ram) writes: > There are many macro processors available, like the C macro > preprocessor, gpp, M4, or funnelweb. You can always use them > for your Python source (which, in this case, isn't exactly Python > source anymore). Even more to the point,

[issue31897] RecursionError in plistlib.loads

2017-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report Ned. But there are no crashes. The term crash means a segmentation fault or similar error that causes the interpreter to exit immediately. -- assignee: -> serhiy.storchaka components: +Library

[issue31897] Unexpected exceptions in plistlib.loads

2017-10-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: RecursionError in plistlib.loads -> Unexpected exceptions in plistlib.loads ___ Python tracker

pandas finding field difference between two dataframes

2017-10-30 Thread zljubisic
Hi, I have to compare two pandas dataframes and find difference between each row. For example, in the code bellow, rows with index 0 and 3 are intentionally different. Row 0 is different in field A, and row 3 is different in field 3. After merging dataframes, I can concentrate to the dfm with

[issue31897] Unexpected exceptions in plistlib.loads

2017-10-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4140 stage: -> patch review ___ Python tracker ___

Re: Pandas to_html cannot apply style

2017-10-30 Thread zljubisic
> This is not an in-place operation: it returns a style which you can then > render. > > style = df.style.apply(function2, axis=1) > html = style.render() > > appears to work. After your suggestion, rows are properly colored, but now I have lost all table lines, font is smaller... Is there an

[issue31883] Cygwin: heap corruption bug in wcsxfrm

2017-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a problem of AppVeyor. It should update Cygwin to a bugfix release. 2.8.0 contains other bugs. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed

[issue31114] 'make install' fails when the configure 'prefix' is '/' and DESTDIR is used

2017-10-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: To test PR 4172 on linux one needs a chroot. The following test is run on archlinux using systemd-nspawn (a chroot on steroids, see https://wiki.archlinux.org/index.php/Systemd-nspawn). 1) Setup systemd-nspawn by installing

[issue31114] 'make install' fails when the configure 'prefix' is '/' and DESTDIR is used

2017-10-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: Clarification about the test results: On archlinux /bin is a symlink to /usr/bin, so on archlinux the value of sys.prefix is '/usr' instead of the expected '/'. This is because in Modules/getpath.c, 'argv0_path' is the directory of the link

Re: why it append one more letter after decode?

2017-10-30 Thread ROGER GRAYDON CHRISTMAN
On Sun, Oct 29, 2017 11:06 PM, Ho Yeung Lee wrote: > if run these function to decode in python interactive console, >it can decode correct, > >but when run with a big project, it append a letter Y > > >On Monday, October 30, 2017 at 9:48:36 AM UTC+8, Ho Yeung Lee wrote: >> def leftrotate(l, n):

[issue31895] Native hijri calendar support

2017-10-30 Thread Haneef
Haneef added the comment: Thanks @steven.daprano, yeah, it would be good to have support for other calendars as well. In my case, I use the Hijri Umm al-Qura, Gregorian and obviously UnixTime calendars. You're right, maybe it would be wiser to implement it in the PyPi

request.post in If condition

2017-10-30 Thread sourav voip
Hi All, I'm trying to hit request.post with condition using if-else as below... I;m posting the full script here...as I've tried declaring post url details tested with multiple places. -- https://mail.python.org/mailman/listinfo/python-list

[issue31895] Native hijri calendar support

2017-10-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I agree with Steven: It's best to use a PyPI package for calendar support such as https://pypi.python.org/pypi/convertdate/. We only have the standard Gregorian calendar support in datetime and calendar modules. -- nosy:

[issue25612] nested try..excepts don't work correctly for generators

2017-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for the clarification Mark. I agree that the current behavior is well justified. Cython was fixed in https://github.com/cython/cython/commit/2d3392463b77eb550bd54a69bd28cc161947acb5. -- status: open -> closed

Re: request.post in If condition

2017-10-30 Thread sourav voip
Hi All, I'm trying to hit request.post with condition using if-else as below... I;m posting the full script here...as I've tried declaring post url details tested with multiple places.. If condition for disk utiliztion is working perfect ,however request.post is not hitting. Please suggest any

[issue25612] nested try..excepts don't work correctly for generators

2017-10-30 Thread Mark Shannon
Mark Shannon added the comment: Looking at the docs: https://docs.python.org/3.6/library/sys.html#sys.exc_info states: If the current stack frame is not handling an exception, the information is taken from the calling stack frame, or its caller, and so on until a stack

[issue31895] Native hijri calendar support

2017-10-30 Thread Gareth Rees
Gareth Rees added the comment: convertdate does not document which version of the Islamic calendar it uses, but looking at the source code, it seems that it uses a rule-based calendar which has a 30-year cycle with 11 leap years. This won't help Haneef, who wants the Umm

[issue31883] Cygwin: heap corruption bug in wcsxfrm

2017-10-30 Thread Erik Bray
Erik Bray added the comment: Well, we'll see how long it takes me to get them to respond on that. If it's not too much trouble then I'll be happy to drop this issue. -- ___ Python tracker

Performance of map vs starmap.

2017-10-30 Thread Kirill Balunov
Sometime ago I asked this question at SO [1], and among the responses received was paragraph: - `zip` re-uses the returned `tuple` if it has a reference count of 1 when the `__next__` call is made. - `map` build a new `tuple` that is passed to the mapped function every time a `__next__` call is

[issue31895] Native hijri calendar support

2017-10-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: There are other PyPI packages available for this specific calendar as well, e.g. https://pypi.python.org/pypi/umalqurra/ Perhaps you could send Neil a PR to make the calculation more accurate ?! In any case, the stdlib is not meant to

[issue31900] UnicodeDecodeError in localeconv() makes test_float fail with glibc 2.26.90

2017-10-30 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Original bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1484497 It seems that on the development branch of Fedora, when we updated glibc from 2.26 to 2.26.90, test_float_with_comma started failing. Details from the

[issue31245] Asyncio UNIX socket and SOCK_DGRAM

2017-10-30 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

Re: Invoking return through a function?

2017-10-30 Thread Rhodri James
On 29/10/17 16:45, Alberto Riva wrote: On 10/29/2017 11:13 AM, bartc wrote: (What the OP wants was also proposed a few weeks back in comp.lang.c. But that was only within nested functions, so if H is inside G, and G is inside F, then a 'returnall' from H would return directly directly from

Re: right list for SIGABRT python binary question ?

2017-10-30 Thread M.-A. Lemburg
n 25.10.2017 11:51, Karsten Hilbert wrote: > On Tue, Oct 24, 2017 at 08:47:58PM +0200, M.-A. Lemburg wrote: > This error suggests that you have 32- and 64-bit versions of Python and mxDateTime mixed in your installation. Py_InitModule4 is only available in the 32-bit build of

[issue31245] Asyncio UNIX socket and SOCK_DGRAM

2017-10-30 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset fe4ea9cf1ee04f5a60e4ed928d8624b95b031e18 by Yury Selivanov (Quentin Dawans) in branch 'master': bpo-31245: Asyncio unix socket datagram (#3164)

[issue31883] Cygwin: heap corruption bug in wcsxfrm

2017-10-30 Thread Erik Bray
Erik Bray added the comment: Well, I agree there's an unfortunate trade-off here: One can skip the test, allowing the test suite to work on slightly older versions of Cygwin, from before this issue was fixed. However, I then lose regression testing on newer versions.

[issue31897] Unexpected exceptions in plistlib.loads

2017-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 4171 fixes the following errors: 1. OverflowError is raised by seek() for too large offsets of objects or the offset table. 2. Since read() past the file returns b'' and int.from_bytes() used for non-standard sizes accepts

Pandas to_html cannot apply style

2017-10-30 Thread zljubisic
Hi, the following code never applies style and I cannot figure out why. Can someone please help? import pandas as pd def function2(row): if row.A == True: color = '#FF' else: color = '#00FF00' background_color = 'background-color: {}'.format(color) return

Re: Invoking return through a function?

2017-10-30 Thread Christian Gollwitzer
Am 30.10.17 um 01:42 schrieb Steve D'Aprano: On Mon, 30 Oct 2017 03:35 am, Alberto Riva wrote: And as Bartc pointed out, we already have this situation with exceptions, so it would be nothing new. Pardon me, but it was *me* who pointed out the analogy with exceptions, not Bart. But this is

Re: Pandas to_html cannot apply style

2017-10-30 Thread zljubisic
> This is not an in-place operation: it returns a style which you can then > render. > > style = df.style.apply(function2, axis=1) > html = style.render() > > appears to work. This was a missing link. Thank you very very much Thomas. Regards and best wishes. --

[issue31897] Unexpected exceptions in plistlib.loads

2017-10-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ronaldoussoren ___ Python tracker ___

[issue31114] 'make install' fails when the configure 'prefix' is '/' and DESTDIR is used

2017-10-30 Thread Xavier de Gaye
Change by Xavier de Gaye : -- components: +Cross-Build -Build nosy: +Alex.Willmer stage: -> needs patch title: 'make install' fails when exec_prefix is '/' and DESTDIR not empty -> 'make install' fails when the configure 'prefix' is '/' and DESTDIR is used versions:

[issue31114] 'make install' fails when the configure 'prefix' is '/' and DESTDIR is used

2017-10-30 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +4141 stage: needs patch -> patch review ___ Python tracker ___

Re: Pandas to_html cannot apply style

2017-10-30 Thread Thomas Jollans
On 30/10/17 08:44, zljubi...@gmail.com wrote: > Hi, > > the following code never applies style and I cannot figure out why. > Can someone please help? > > import pandas as pd > > def function2(row): > if row.A == True: > color = '#FF' > else: > color = '#00FF00' > >

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2017-10-30 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +4139 ___ Python tracker ___ ___

[issue31895] Native hijri calendar support

2017-10-30 Thread Gareth Rees
Gareth Rees added the comment: It is a substantial undertaking, requiring a great deal of expertise, to implement the Islamic calendar. The difficulty is that there are multiple versions of the calendar. In some places the calendar is based on human observation of the

Re: from packaging import version as pack_version ImportError: No module named packaging

2017-10-30 Thread David Gabriel
Dears, When I run this command I got this error message: ubuntu@orchestrateur:/tmp/pack$ virtualenv -p $(which python3.5) . Running virtualenv with interpreter /usr/local/sbin/. Traceback (most recent call last): File "/usr/bin/virtualenv", line 3, in virtualenv.main() File

Re: from packaging import version as pack_version ImportError: No module named packaging

2017-10-30 Thread Peter Otten
David Gabriel wrote: > Dears, > > When I run this command I got this error message: > > ubuntu@orchestrateur:/tmp/pack$ virtualenv -p $(which python3.5) . > Running virtualenv with interpreter /usr/local/sbin/. > Traceback (most recent call last): > File "/usr/bin/virtualenv", line 3, in >

[issue31900] UnicodeDecodeError in localeconv() makes test_float fail with glibc 2.26.90

2017-10-30 Thread STINNER Victor
STINNER Victor added the comment: I can reproduce the bug with Python 3.6 on Fedora 26 and these locales: * LC_ALL = LC_CTYPE = fr_FR (encoding = ISO8859-1) * LC_NUMERIC= es_MX.utf8 (encoding = UTF-8) Good: LC_NUMERIC = LC_CTYPE = LC_ALL = "es_MX.utf8" haypo@selma$

[issue31900] localeconv() should decide numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding

2017-10-30 Thread STINNER Victor
Change by STINNER Victor : -- versions: -Python 3.5 ___ Python tracker ___ ___

Re: Coding style in CPython implementation

2017-10-30 Thread Rhodri James
On 28/10/17 19:42, Στέφανος Σωφρονίου wrote: Greetings everyone. I have noticed that in many if conditions the following syntax is used: a) if (variable == NULL) { ... } b) if (variable == -1) { ... } c) if (variable != NULL) { ... } What I wanted to ask is, is there a particular reason for

[issue31900] localeconv() should decode numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding

2017-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue28604. See also issue25812. -- nosy: +serhiy.storchaka ___ Python tracker

[issue31273] [2.7] unittest: Unicode support in TestCase.skip

2017-10-30 Thread STINNER Victor
STINNER Victor added the comment: > Could be fixed with by changing to unicode(e) Replacing str(e) with unicode(e) can introduce Unicode errors regressions. I'm not confident in doing such change late in the old 2.7 branch. I suggest you to only use native strings

[issue31901] atexit callbacks only called for current subinterpreter

2017-10-30 Thread Marcel Plch
New submission from Marcel Plch : `Py_FinalizeEx()` only executes callbacks from the subinterpreter from which Py_FinalizeEx is called. What is the expected behavior here? Should the callbacks be specific to individual subinterpreters? -- components: Extension

[issue31273] [2.7] unittest: Unicode support in TestCase.skip

2017-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Victor. Unlikely this affects many people since skipping messages usually are ASCII strings. As a workaround you can implement your own skip() method that encodes unicode to 8-bit string. def skip(self,

[issue31900] localeconv() should decode numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding

2017-10-30 Thread Stefan Krah
Stefan Krah added the comment: Same as #7442, I think. -- nosy: +skrah ___ Python tracker ___

Getting started with python

2017-10-30 Thread subhendu . panda93
Hi, Could you please help me with the below if possible: 1. Best site to go ahead for python. 2. How python is different from other languages and future scope of it. 3. Tasks that are getting done using python in present. 4. Link where I can be able to get python videos, ebooks from basics to

[issue31900] localeconv() should decide numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding

2017-10-30 Thread STINNER Victor
Change by STINNER Victor : -- title: UnicodeDecodeError in localeconv() makes test_float fail with glibc 2.26.90 -> localeconv() should decide numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding ___ Python

[issue31900] localeconv() should decide numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding

2017-10-30 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4142 stage: -> patch review ___ Python tracker ___

[issue31900] localeconv() should decide numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding

2017-10-30 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Tested the PR on a system with glibc 2.26.90 where the test was failing, and it successfully passed. -- ___ Python tracker

Re: Getting started with python

2017-10-30 Thread Bill
subhendu.pand...@gmail.com wrote: Hi, Could you please help me with the below if possible: Possible and reasonable are two different things. Why don't you try some web searches and try to answer some of your own questions. I offer this advice as a Python newbe myself. Bill 1. Best

[issue31900] localeconv() should decode numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding

2017-10-30 Thread STINNER Victor
Change by STINNER Victor : -- title: localeconv() should decide numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding -> localeconv() should decode numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding

[issue31900] localeconv() should decode numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding

2017-10-30 Thread STINNER Victor
STINNER Victor added the comment: Oh wow, this bug is older than what I expected :-) I added support for non-ASCII thousands separator in 2012: https://bugs.python.org/issue13706#msg151733 -- ___ Python tracker

[issue31902] Fix col_offset for ast nodes: AsyncFor, AsyncFunctionDef, AsyncWith

2017-10-30 Thread Guo Ci Teo
Change by Guo Ci Teo : -- components: Library (Lib) nosy: guoci priority: normal severity: normal status: open title: Fix col_offset for ast nodes: AsyncFor, AsyncFunctionDef, AsyncWith versions: Python 3.5, Python 3.6, Python 3.7

[issue31900] localeconv() should decode numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding

2017-10-30 Thread STINNER Victor
STINNER Victor added the comment: inconsistent_locale_encodings.py of closed issue #7442 is interesting: I copy it here. -- Added file: https://bugs.python.org/file47246/inconsistent_locale_encodings.py ___ Python tracker

pythonw.exe error

2017-10-30 Thread George Kalamaras via Python-list
When I am running IDLE return to me Missing python36.dll error Στάλθηκε από την Αλληλογραφία για Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

[issue31902] Fix col_offset for ast nodes: AsyncFor, AsyncFunctionDef, AsyncWith

2017-10-30 Thread Guo Ci Teo
Change by Guo Ci Teo : -- keywords: +patch pull_requests: +4143 stage: -> patch review ___ Python tracker ___

[issue30333] test_multiprocessing_forkserver: poll() failed on AMD64 FreeBSD CURRENT Non-Debug 3.5

2017-10-30 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this bug recently. I fixed many bugs in the meanwhile, so maybe I fixed the bug? See for example https://haypo.github.io/contrib-cpython-2017q3-part2.html -- resolution: -> out of date stage: -> resolved

[issue29205] col_offset for AsyncFunctionDef AST nodes is wrong

2017-10-30 Thread Guo Ci Teo
Change by Guo Ci Teo : -- pull_requests: +4144 stage: -> patch review ___ Python tracker ___

Re: pythonw.exe error

2017-10-30 Thread Igor Korot
Hi, On Oct 30, 2017 11:27 AM, "George Kalamaras via Python-list" < python-list@python.org> wrote: When I am running IDLE return to me Missing python36.dll error Στάλθηκε από την Αλληλογραφία για Windows 10 Could you please translate this from Greek? Thank you. --

[issue31906] String literals next to each other does not cause error

2017-10-30 Thread Sam Lobel
Change by Sam Lobel : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue31906] String literals next to each other does not cause error

2017-10-30 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: This is a documented feature: https://docs.python.org/3/reference/lexical_analysis.html#string-literal-concatenation And yes, it was discussed before: https://mail.python.org/pipermail/python-ideas/2013-May/020527.html -- nosy:

[issue31629] test_many_processes() of test_multiprocessing_fork fails randomly on FreeBSD

2017-10-30 Thread STINNER Victor
STINNER Victor added the comment: The bug can be reproduced with attached bug.py. With "curses.initscr(); curses.endwin()", the exit code becomes 1. Without, the child processes exits with code -15 (-SIGTERM). -- Added file:

[issue31897] Unexpected exceptions in plistlib.loads

2017-10-30 Thread Ned Williamson
Ned Williamson added the comment: Thank you for the quick PR! I will report as behavior next time. I'm also following the library reference and reporting only unexpected exceptions. I trust you to reject any bugs that are expected functionality. I may follow up with

[issue31904] Python should support VxWorks RTOS

2017-10-30 Thread Brian Kuhl
New submission from Brian Kuhl : With the trend to use REST APIs between the cloud and the IoT there is increasing interest in Python on embedded devices. Cloud developer’s typical release a reference REST implementation of JSON and/or Python on Linux and leave it to

[issue31903] `_scproxy` calls SystemConfiguration functions in a way that can cause deadlocks

2017-10-30 Thread Max Bélanger
Change by Max Bélanger : -- keywords: +patch pull_requests: +4148 stage: -> patch review ___ Python tracker ___

[issue31905] IPv4Networkcontains raises exception on None

2017-10-30 Thread R. David Murray
R. David Murray added the comment: It is not obvious that this is a bug. Why should None be a valid value for 'in network'? -- nosy: +r.david.murray ___ Python tracker

[issue31906] String literals next to each other does not cause error

2017-10-30 Thread Sam Lobel
New submission from Sam Lobel : This seems too obvious to have been missed, but also too strange behaviour to be on purpose. The following works for some reason (note there's no + between the words) >>> variable = "first" "second" >>> print(variable) "firstsecond" In a

[issue31904] Python should support VxWorks RTOS

2017-10-30 Thread Brian Kuhl
Change by Brian Kuhl : -- keywords: +patch pull_requests: +4149 stage: -> patch review ___ Python tracker ___

[issue31905] IPv4Networkcontains raises exception on None

2017-10-30 Thread Gerard Weatherby
New submission from Gerard Weatherby : Given a IPvNetwork network if x in network: ... raises an AttributeError instead of returning False. -- components: Library (Lib) files: ne.py messages: 305250 nosy: Gerard Weatherby priority: normal severity: normal

Re: from packaging import version as pack_version ImportError: No module named packaging

2017-10-30 Thread Cameron Simpson
On 30Oct2017 10:48, David Gabriel wrote: When I run this command I got this error message: ubuntu@orchestrateur:/tmp/pack$ virtualenv -p $(which python3.5) . [...] OSError: [Errno 13] Permission denied Peter has explained this failure. Note that in the shell you can

[issue31905] IPv4Networkcontains raises exception on None

2017-10-30 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +4150 stage: -> patch review ___ Python tracker ___

[issue31906] String literals next to each other does not cause error

2017-10-30 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: What Dmitry said :) I'm closing this as "not a bug". -- nosy: +Mariatta resolution: -> not a bug stage: -> resolved status: open -> closed versions: -Python 2.7, Python 3.4, Python 3.5, Python 3.6

[issue31852] Crashes with lines of the form "async \"

2017-10-30 Thread Alexandre Hamelin
Alexandre Hamelin added the comment: Awesome work, thanks to you! Would it also be the case for 'await' ? -- ___ Python tracker ___

Re: Invoking return through a function?

2017-10-30 Thread Steve D'Aprano
On Tue, 31 Oct 2017 01:06 pm, Alberto Riva wrote: > On 10/30/2017 10:27 AM, Rhodri James wrote: [...] >> You can do the same in C.  I've had the displeasure of trying to >> maintain such code.  It was near-unreadable, because it constantly broke >> your expectations of what the code flow *could*

Re: Invoking return through a function?

2017-10-30 Thread Rustom Mody
On Tuesday, October 31, 2017 at 7:45:18 AM UTC+5:30, Alberto Riva wrote: > On 10/30/2017 12:23 AM, Rustom Mody wrote: > > On Sunday, October 29, 2017 at 9:52:01 PM UTC+5:30, Rick Johnson wrote: > >> On Sunday, October 29, 2017 at 9:19:03 AM UTC-5, Alberto Riva wrote: > > > >>> In a language like

[issue31908] trace module cli does not write cover files

2017-10-30 Thread Michael Selik
New submission from Michael Selik : The trace module command-line utility doesn't write cover files. I've noticed this issue for some years now. It works fine in Python 2. When using Python 3, no ".cover" files are written, regardless of how "--coverdir" is specified.

Re: Invoking return through a function?

2017-10-30 Thread Rick Johnson
Steve D'Aprano wrote: > > [...] > > I suppose it wouldn't be too awful if macros required > dedicated syntax, so at least you could distinguish between > "this is a safe, ordinary function" and "this is a macro, > it could mean anything". In the same spirit, i've been trying in vain for *YEARS*

[issue31908] trace module cli does not write cover files

2017-10-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: It worked in Python 3.4, but not afterwards. -- components: +Library (Lib) nosy: +rhettinger versions: +Python 3.5, Python 3.7 ___ Python tracker

[issue31904] Python should support VxWorks RTOS

2017-10-30 Thread Brian Kuhl
Change by Brian Kuhl : -- pull_requests: +4155 ___ Python tracker ___ ___

Re: Invoking return through a function?

2017-10-30 Thread Chris Angelico
On Tue, Oct 31, 2017 at 2:00 PM, Steve D'Aprano wrote: > Python has no GOTO, fortunately, but C has at least two, GOTO and LONGJMP. A C > macro could, if I understand correctly, jump into the middle of another > function. (Yay for spaghetti code!) No, I don't think

Re: Invoking return through a function?

2017-10-30 Thread Steve D'Aprano
On Tue, 31 Oct 2017 02:34 pm, Chris Angelico wrote: > On Tue, Oct 31, 2017 at 2:00 PM, Steve D'Aprano > wrote: >> Python has no GOTO, fortunately, but C has at least two, GOTO and LONGJMP. >> A C macro could, if I understand correctly, jump into the middle of another

Re: Invoking return through a function?

2017-10-30 Thread Steve D'Aprano
On Tue, 31 Oct 2017 02:26 pm, Rustom Mody wrote: > My own feeling about lisp-macros is conflicted: > - They are likely the most unique feature of lisp, putting it at the top of > the blub-language tower > - They are the single reason Lisp can never succeed like mainstream > languages: Any

[issue31629] test_many_processes() of test_multiprocessing_fork fails randomly on FreeBSD

2017-10-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have tracked the issue down to the call inside the call to initscr in _cursesmodule.c. The issue *seems* related to the fact that all processes are sharing the same initialization of the curses internal structures, that

Re: Vim, ctags jump to python standard library source

2017-10-30 Thread Cameron Simpson
On 19Oct2017 12:08, Matt Schepers wrote: I prefer to use vim and ctags when developing python, but I'm having trouble getting ctags to index the standard library. Sometimes I would like to see an object's constructor etc... Does anyone know how to do this? Will "ctags

[issue31905] IPv4Networkcontains raises exception on None

2017-10-30 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with David. And since the PR says "not other", then it makes even less sense, since it's checking for any False-y object. I recommend closing this as "not a bug". -- nosy: +eric.smith

Re: Invoking return through a function?

2017-10-30 Thread Alberto Riva
On 10/30/2017 10:27 AM, Rhodri James wrote: On 29/10/17 16:45, Alberto Riva wrote: On 10/29/2017 11:13 AM, bartc wrote: (What the OP wants was also proposed a few weeks back in comp.lang.c. But that was only within nested functions, so if H is inside G, and G is inside F, then a 'returnall'

Re: Invoking return through a function?

2017-10-30 Thread Alberto Riva
On 10/30/2017 12:23 AM, Rustom Mody wrote: On Sunday, October 29, 2017 at 9:52:01 PM UTC+5:30, Rick Johnson wrote: On Sunday, October 29, 2017 at 9:19:03 AM UTC-5, Alberto Riva wrote: In a language like Lisp Python is nothing like Lisp, and for good reason! Sure, we have a few lispers and

[issue31739] socket.close recommended but not demonstrated in same-page example code

2017-10-30 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +4152 stage: -> patch review ___ Python tracker ___

[issue31739] socket.close recommended but not demonstrated in same-page example code

2017-10-30 Thread Todd Rovito
Change by Todd Rovito : -- nosy: +Todd.Rovito ___ Python tracker ___ ___

[issue31629] test_many_processes() of test_multiprocessing_fork fails randomly on FreeBSD

2017-10-30 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4154 stage: -> patch review ___ Python tracker ___

[issue31852] Crashes with lines of the form "async \"

2017-10-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 690c36f2f1085145d364a89bfed5944dd2470308 by Victor Stinner (Pablo Galindo) in branch '3.6': [3.6] bpo-31852: Fix segfault caused by using the async soft keyword (GH-4122)

Re: [Tutor] request.post in If condition

2017-10-30 Thread Mike Miller
What do you mean when you say it is not hitting? Is there a specific error, or are you saying it simply isn't posting to your site? Mike On Mon, Oct 30, 2017, 8:21 AM sourav voip wrote: > Hi All, > > I'm trying to hit request.post with condition using if-else as

[issue31739] socket.close recommended but not demonstrated in same-page example code

2017-10-30 Thread Adam Mitchell
Adam Mitchell added the comment: I submitted a pull request, #4181, to fix this issue. I am now waiting for my contributor agreement to be approved. -- nosy: +AdamMitchell ___ Python tracker

[issue31852] Crashes with lines of the form "async \"

2017-10-30 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31852] Crashes with lines of the form "async \"

2017-10-30 Thread STINNER Victor
STINNER Victor added the comment: Thank you Alexandre Hamelin for the bug report and Pablo Galindo for the fix ;-) -- ___ Python tracker

[issue31629] Running test_curses on FreeBSD changes signal handlers

2017-10-30 Thread STINNER Victor
STINNER Victor added the comment: Pablo Galindo Salgado: > Also, it seems that calling initscr registers signal handlers for SIGTERM: > (...) The problem is that endwin() doesn't restore the old handler. Attached PR 4183 fixes the bug, it saves/restores signal

[issue31629] test_many_processes() of test_multiprocessing_fork fails randomly on FreeBSD

2017-10-30 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Also, it seems that calling initscr registers signal handlers for SIGTERM: Without calling initscr: ... rt_sigaction(SIGINT, {sa_handler=0x55d9351a9155, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f7d22b36da0},

[issue31907] Clarify error message when attempting to call function via str.format()

2017-10-30 Thread mickey695
New submission from mickey695 : PEP 3101 states that format strings may only use the "."(getattr) or the "[]" (getitem) operators to address either attributes or items of parameters. Should a programmer attempt to, for example, call a function of a parameter as follows:

[issue31114] 'make install' fails when the configure 'prefix' is '/' and DESTDIR is used

2017-10-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: Actually, sys.prefix is '/usr' because '/usr/bin' is in PATH while '/bin' is not in PATH. After adding '/bin' to the start of PATH, then sys.prefix becomes '/.' when Python is run as 'python3'. The confusion comes from the '/bin' symlink

  1   2   >