[issue26103] Contradiction in definition of "data descriptor" between (dotted lookup behavior/datamodel documentation) and (inspect lib/descriptor how-to)

2017-06-07 Thread Aaron Hall
Aaron Hall added the comment: I tweaked the docs a little more this morning, but I believe I am done making any further changes unless so requested. This issue doesn't say it's assigned to anyone. Is there anything else that needs to happen here? --

Re: Access flles on a Android device from Windows PC << YES! Thanks

2017-06-07 Thread Fred Fishbin
Yup, that seems to be the deal, and there doesn't seem tpo be a really simple way to deal with this. ...but at least I know what I need to look for. thanks! Freddie eryk sun wrote: >On Tue, Jun 6, 2017 at 7:36 PM, Fred Fishbin wrote: >> >> I want

Re: Hello from a super noob!

2017-06-07 Thread Steve D'Aprano
On Thu, 8 Jun 2017 09:56 am, CB wrote: > Can anyone try to run it? Yes, you can. Doctor to patient: "So, what seems to be the problem?" Patient: "You're the doctor, you tell me." -- Steve “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, things got worse.

Re: New to Python - Career question

2017-06-07 Thread Matt
On Tuesday, June 6, 2017 at 3:37:56 PM UTC-7, Marko Rauhamaa wrote: > pta...@gmail.com: > > > New to Python and have been at it for about a month now. I'm doing > > well and like it very much. Considering a career change down the road > > and have been wondering... What are the job prospects for

[issue30589] With forkserver, Process.exitcode does not get signal number

2017-06-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2055 ___ Python tracker ___ ___

Re: Hello from a super noob!

2017-06-07 Thread MRAB
On 2017-06-08 00:56, CB wrote: Hi everyone, I am taking a python class and I'm stuck in an exercise. what am i doing wrong? Can anyone try to run it? Thanks so much! #Description:Input validation and while loops. import random def main(): #main function need in all programs for automated

[issue30589] With forkserver, Process.exitcode does not get signal number

2017-06-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review ___ Python tracker ___ ___

Hello from a super noob!

2017-06-07 Thread CB
Hi everyone, I am taking a python class and I'm stuck in an exercise. what am i doing wrong? Can anyone try to run it? Thanks so much! #Description:Input validation and while loops. import random def main(): #main function need in all programs for automated testing #your program

[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-06-07 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Nobody has AFAIK. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30593] sqlite3 executescript does not respect isolation_level?

2017-06-07 Thread Noah Levitt
New submission from Noah Levitt: As far as I can tell, sqlite3 executescript() does not respect isolation_level. Is that true? If so, I think it's worth mentioning in the doc. Or maybe it should respect isolation_level, not sure there's any particular reason not to. -- components:

[issue30579] Allow traceback objects to be instantiated/mutated/annotated

2017-06-07 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> needs patch ___ Python tracker ___ ___

Time Calculation to Tag a Sentence/File

2017-06-07 Thread subhabangalore
I am trying to calculate the time required to tag one sentence/file by one trained NLTK HMM Tagger. To do this I am writing the following code, please suggest if I need to revise anything here. import nltk from nltk.corpus.reader import TaggedCorpusReader import time #HMM reader =

[issue30542] test_files() of test_tools.test_unparse.DirectoryTestCase leaks references

2017-06-07 Thread STINNER Victor
STINNER Victor added the comment: Attached test_unparse.py file should be copied to Lib/test/test_tools/test_unparse.py to run: ./python -m test -R 1:2 -m test_files test_tools With this change, I get this output: --- haypo@selma$ ./python -m test -R 1:2 -m test_files test_tools Run tests

[issue1207613] Idle Editor: Bottom Scroll Bar

2017-06-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Output Window definitely needs a scrollbar available on screens where it cannot be stretched to 160 chars or so. Thinking about it, if one greps idlelib in a local install, with a url something like C:/users/somename/appdata/local/python/lib/idlelib/*.py,

[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for catching this bug SylvainDe. This is a regression caused by issue30534. I added "()" after the function name for unifying with other error messages but missed that _PyArg_NoKeywords() often is called with argument containing "()", e.g.

[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-07 Thread SylvainDe
SylvainDe added the comment: The issue seems to be in: int _PyArg_NoKeywords(const char *funcname, PyObject *kwargs) I'm happy to submit a PR if needed. -- ___ Python tracker

[issue30542] test_files() of test_tools.test_unparse.DirectoryTestCase leaks references

2017-06-07 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: -easy (C) ___ Python tracker ___ ___

[issue30542] test_files() of test_tools.test_unparse.DirectoryTestCase leaks references

2017-06-07 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I tagged the issue too early as "[EASY]" while it's a super complex bug... I'm unable to say if the issue is a real leak or not... -- title: [EASY] test_files() of test_tools.test_unparse.DirectoryTestCase leaks references -> test_files() of

[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-07 Thread SylvainDe
SylvainDe added the comment: Reproduced locally using unit tests: +def test_varargs0_kw(self): +msg = r"bool\(\) takes no keyword arguments" +self.assertRaisesRegex(TypeError, msg, bool, x=2) + giving: Traceback (most recent call last): File

Re: Error in initialization of IDLE.

2017-06-07 Thread Terry Reedy
On 6/7/2017 7:59 AM, Mohit Soni via Python-list wrote: I have python 3.5.2 installed and recently I installed python 3.6 and after installing the problem seems to occur. What OS are you using? Did IDLE run correctly before adding 3.6? How did you start IDLE? Whenever I start IDLE it shows

[issue25514] Improve IDLE's "subprocess didn't make connection" message

2017-06-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: #26413 is about fixing shadowing problem. Current thought for this issue: add a section to IDLE doc listing known possible causes (message above). Reference section in message, giving web link. -- ___ Python

[issue30591] textwrap: placeholder backtracking special case lacks test coverage

2017-06-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.7 -Python 3.6 ___ Python tracker

[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka components: +Interpreter Core nosy: +serhiy.storchaka type: enhancement -> behavior versions: +Python 3.7 ___ Python tracker

[issue30591] textwrap: placeholder backtracking special case lacks test coverage

2017-06-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5edf827c8052958b9d293f75ce8d93b66c1d58da by Serhiy Storchaka (Jonathan Eunice) in branch 'master': bpo-30591: Added test for textwrap backtracking. (#1988) https://github.com/python/cpython/commit/5edf827c8052958b9d293f75ce8d93b66c1d58da

[issue30542] [EASY] test_files() of test_tools.test_unparse.DirectoryTestCase leaks references

2017-06-07 Thread Nikhil Patel
Nikhil Patel added the comment: I'd like to respectfully disagree with the suggestions/conclusions mentioned here. I'll explain my reasoning and conclusions below. First the short version - I'm fairly confident the leak actually has to do with:

!RE: Namedtuple problem #32.11.d

2017-06-07 Thread Deborah Swanson
Neil Cerutti wrote, on Wednesday, June 07, 2017 10:36 AM > > On 2017-06-06, Deborah Swanson wrote: > >> I too have sometimes started with a namedtuple and then found I > >> needed to make changes to the records. I typically abandon > namedtuple > >> at this point,

[issue30592] Bad error message 'bool()() takes no keyword arguments'

2017-06-07 Thread SylvainDe
New submission from SylvainDe: Very recent "regression". Issue found because of a pet project trying to parse error messages using regexps : more on https://github.com/SylvainDe/DidYouMean-Python/issues/31 . On recent Cron builds on Jenkins, running the following code

[issue30591] textwrap: placeholder backtracking special case lacks test coverage

2017-06-07 Thread Jonathan Eunice
Changes by Jonathan Eunice : -- pull_requests: +2054 ___ Python tracker ___ ___

[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-06-07 Thread Chris Wilcox
Chris Wilcox added the comment: I am going to work on this if no one else has started. -- nosy: +crwilcox ___ Python tracker ___

[issue29981] Update Index for set, dict, and generator 'comprehensions'

2017-06-07 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: needs patch -> patch review ___ Python tracker ___

Re: Generator and return value

2017-06-07 Thread Ian Kelly
On Wed, Jun 7, 2017 at 10:00 AM, Rob Gaddi wrote: > > On 06/06/2017 11:13 PM, Frank Millman wrote: >> >> Hi all >> >> It would be nice to write a generator in such a way that, in addition to 'yielding' each value, it performs some additional work and then

[issue30590] str.format no longer accepts unpacked defaultdict for default values

2017-06-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There was a bug (see issue18531). It was fixed in 3.6. Use str.format_map() for formatting with arbitrary mapping. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed

[issue28686] py.exe ignored PATH when using python3 shebang

2017-06-07 Thread Riccardo Polignieri
Riccardo Polignieri added the comment: @Jens Lindgren I know, pretty annoying right? But see previous answer by Paul here http://bugs.python.org/issue28686#msg287181 > The Unix ability to have 2 different versions of Python on PATH > and select which you use based on executable name doesn't

[issue30353] ctypes: pass by value for structs broken on Cygwin/MinGW 64-bit

2017-06-07 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 9ba3aa4d02a110d1a1ea464a8aff3be7dd9c63c3 by Vinay Sajip (Erik Bray) in branch 'master': bpo-30353: Fix pass by value for structs on 64-bit Cygwin/MinGW (GH-1559) https://github.com/python/cpython/commit/9ba3aa4d02a110d1a1ea464a8aff3be7dd9c63c3

Re: Namedtuple problem #32.11.d

2017-06-07 Thread Neil Cerutti
On 2017-06-06, Deborah Swanson wrote: >> I too have sometimes started with a namedtuple and then found >> I needed to make changes to the records. I typically abandon >> namedtuple at this point, after only one bad experience trying >> to work around my choice of

Re: Bug or intended behavior?

2017-06-07 Thread Chris Angelico
On Thu, Jun 8, 2017 at 2:27 AM, Peter Pearson wrote: > More seriously, I thought "format" was the Cool New Thing toward which > all the cool kids were moving. But here I tried to be cool and put in a > plug for "format", and the hip community seems to be sticking up

[issue30584] test_os fails on non-English (Russian) Windows

2017-06-07 Thread STINNER Victor
STINNER Victor added the comment: I merged your fix. Thanks! Let's wait for Windows buildbots. If tests pass on buildbots, the change should be backported to other branches impacted by the bug. http://buildbot.python.org/all/waterfall?category=3.x.stable=3.x.unstable --

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-06-07 Thread Steve Dower
Steve Dower added the comment: Good point about not needing 3.5. Buildbots were clean, so I merged it. Thanks Antoine! -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker

Re: Bug or intended behavior?

2017-06-07 Thread Skip Montanaro
On Wed, Jun 7, 2017 at 11:27 AM, Peter Pearson wrote: > I thought "format" was the Cool New Thing toward which > all the cool kids were moving. But here I tried to be cool and put in a > plug for "format", and the hip community seems to be sticking up for > "%". The

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-06-07 Thread Steve Dower
Steve Dower added the comment: New changeset ceabf9acf03f9bbe660d856bff90ecab475ab543 by Steve Dower (Antoine Pietri) in branch '3.6': bpo-30177: pathlib: include the full path in resolve(strict=False) (#1893) (#1985)

[issue30584] test_os fails on non-English (Russian) Windows

2017-06-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 897bba75632dfce87c355e3cd4700468357715a7 by Victor Stinner (Denis Osipov) in branch 'master': bpo-30584: Fix test_os fails on non-English Windows (#1980) https://github.com/python/cpython/commit/897bba75632dfce87c355e3cd4700468357715a7

[issue30542] [EASY] test_files() of test_tools.test_unparse.DirectoryTestCase leaks references

2017-06-07 Thread STINNER Victor
STINNER Victor added the comment: It seems like compile() only leaks when using PyCF_ONLY_AST: compile(source, "filename", "exec", ast.PyCF_ONLY_AST) It's maybe a leak in the PyAST_mod2obj() function when creating dictionaries of created AST objects. But in ast_dealloc() of

Re: plot time on X axis

2017-06-07 Thread Peter Pearson
On Wed, 07 Jun 2017 09:20:25 -0300, jorge.conr...@cptec.inpe.br wrote: [snip] > I was an IDL user and I'm using Python. I have several meteorological > daily time seriee for several years. Please can someone help me. I would > like to plot on X axis only the values o the year. Is matplotlib

[issue30590] str.format no longer accepts unpacked defaultdict for default values

2017-06-07 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___

[issue30542] [EASY] test_files() of test_tools.test_unparse.DirectoryTestCase leaks references

2017-06-07 Thread STINNER Victor
STINNER Victor added the comment: (Oops, I modified the file while uploading here. I reuploaded the correct bug.py.) -- Added file: http://bugs.python.org/file46930/bug.py ___ Python tracker

[issue30542] [EASY] test_files() of test_tools.test_unparse.DirectoryTestCase leaks references

2017-06-07 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file46929/bug.py ___ Python tracker ___

[issue30542] [EASY] test_files() of test_tools.test_unparse.DirectoryTestCase leaks references

2017-06-07 Thread STINNER Victor
STINNER Victor added the comment: I isolated the leak to attached bug.py script. Output: --- haypo@selma$ ./python bug.py [ Top 10 differences ] bug.py:40: size=6728 B (+6728 B), count=80 (+80), average=84 B bug.py:46: size=2464 B (+2464 B), count=28 (+28), average=88 B bug.py:43: size=2464 B

Re: Psycopg2 pool clarification

2017-06-07 Thread israel
On 2017-06-06 22:53, dieter wrote: israel writes: Since I've gotten no replies to this, I was wondering if someone could at least confirm which behavior (my expected or my observed) is *supposed* to be the correct? Should a psycopg2 pool keep connections open when

[issue30591] textwrap: placeholder backtracking special case lacks test coverage

2017-06-07 Thread Jonathan Eunice
New submission from Jonathan Eunice: A rare case in textwrap when max_lines insufficient and textwrap needs to backtrack to a previous line to add the placeholder seems to lack test coverage. This issue added as prereq for suggesting an additional test. PR imminent. Code: Lib/textwrap.py (as

[issue30590] str.format no longer accepts unpacked defaultdict for default values

2017-06-07 Thread Carmen Bianca Bakker
New submission from Carmen Bianca Bakker: As brief as can be, the following script works in Python 3.4 and Python 3.5: from collections import defaultdict mydict = defaultdict(lambda: 'default') print('{foo}'.format(**mydict)) And prints "default". In Python 3.6, you get a

Re: Bug or intended behavior?

2017-06-07 Thread Peter Pearson
On Tue, 6 Jun 2017 13:16:00 -0400, Terry Reedy wrote: > On 6/5/2017 1:01 PM, Peter Pearson wrote: >> On Fri, 2 Jun 2017 10:17:05 -0700 (PDT), sean.diza...@gmail.com wrote: >> [snip] >> print "foo %s" % 1-2 >>> Traceback (most recent call last): >>>File "", line 1, in

[issue30566] punycode codec raises IndexError in decode_generalized_number()

2017-06-07 Thread Vikram Hegde
Changes by Vikram Hegde : -- pull_requests: +2053 ___ Python tracker ___ ___

Re: Generator and return value

2017-06-07 Thread Rob Gaddi
On 06/06/2017 11:13 PM, Frank Millman wrote: Hi all It would be nice to write a generator in such a way that, in addition to 'yielding' each value, it performs some additional work and then 'returns' a final result at the end. From Python 3.3, anything 'returned' becomes the value of the

[issue30586] Encode to EBCDIC doesn't take into account conversion table irregularities

2017-06-07 Thread Vladimir Filippov
Vladimir Filippov added the comment: According to ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/EBCDIC/CP037.TXT symbols [ and ] have other codes (instead of 0xAD and 0xBD): 0xBA0x005B #LEFT SQUARE BRACKET 0xBB0x005D #RIGHT SQUARE BRACKET Looks like

[issue30546] [EASY][Windows] test_uname_win32_ARCHITEW6432() of test_platform leaks references

2017-06-07 Thread STINNER Victor
STINNER Victor added the comment: Ok, this issue was a duplicate of bpo-30567 which was already fixed. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Leak in sys.getwindowsversion ___ Python tracker

[issue30567] Leak in sys.getwindowsversion

2017-06-07 Thread STINNER Victor
STINNER Victor added the comment: The issue 30546 has been marked as a duplicate of this issue. -- nosy: +haypo ___ Python tracker ___

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-06-07 Thread Antoine Pietri
Antoine Pietri added the comment: The only backport was for 3.6 as the previous versions don't have the strict= parameter. PR submitted here: https://github.com/python/cpython/pull/1985 -- ___ Python tracker

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2017-06-07 Thread Mikhail
Mikhail added the comment: So, I tried the modified patch (see http://aldan.algebra.com/~mi/tmp/patch-issue30345) -- and now I simply get a different variable name in the error-message: (gdb) py-bt Python Exception Variable 'func' not found.: Error occurred in Python command: Variable

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-06-07 Thread Antoine Pietri
Changes by Antoine Pietri : -- pull_requests: +2052 ___ Python tracker ___ ___

[issue30588] Missing documentation for codecs.escape_decode

2017-06-07 Thread Matthieu Dartiailh
Matthieu Dartiailh added the comment: The issue is that unicode_escape will not properly handle strings mixing unicode character and escaped character as it assumes latin-1 compatible characters only. For example, given the literal string 'Δ\nΔ', one cannot encode using latin-1 and encoding it

[issue30580] WSGI examples raise AttributeError: __exit__

2017-06-07 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug ___ Python tracker ___ ___

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-06-07 Thread Steve Dower
Steve Dower added the comment: New changeset add98eb4fe41baeaa70fbd4ccc020833740609a4 by Steve Dower (Antoine Pietri) in branch 'master': bpo-30177: pathlib: include the full path in resolve(strict=False) (#1893) https://github.com/python/cpython/commit/add98eb4fe41baeaa70fbd4ccc020833740609a4

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-06-07 Thread Steve Dower
Steve Dower added the comment: As usual, I can easily hit merge but may not be able to get to the backport immediately. Someone else can feel free to cherrypick and submit the PRs and I'll hit merge on them. We should also watch the buildbots for failures though before backporting.

[issue30588] Missing documentation for codecs.escape_decode

2017-06-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is an internal function kept for compatibility. It is used only for decoding pickle protocol 0 data created in Python 2. Look at unicode_escape and raw_unicode_escape codecs for doing similar decoding to strings in Python 3. -- nosy:

[issue30589] With forkserver, Process.exitcode does not get signal number

2017-06-07 Thread Antoine Pitrou
New submission from Antoine Pitrou: The documentation for multiprocessing.exitcode says: """ The child’s exit code. This will be None if the process has not yet terminated. A negative value -N indicates that the child was terminated by signal N. """ This is true for the "fork" method, but

[issue30588] Missing documentation for codecs.escape_decode

2017-06-07 Thread Matthieu Dartiailh
New submission from Matthieu Dartiailh: codecs.escape_decode does not appear in the codecs documentation. This function is to my knowledge the only convenient way to process the escaped characters in a literal string (actually found here

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2017-06-07 Thread Jeremy Kloth
Jeremy Kloth added the comment: It seems that commit (https://github.com/python/cpython/commit/c52572319cbd50adff85050a54122c25239a516d) changed the parameter name in the definition of _PyCFunction_FastCallDict(). I believe that changing 'func_obj' to just 'func' should fix it (in

[issue28686] py.exe ignored PATH when using python3 shebang

2017-06-07 Thread Jens Lindgren
Jens Lindgren added the comment: Sorry I need to clarify. On Linux both python and python3 works as there is a symlink created from python to python3 in the venv folder. On Windows only python.exe is created. I copied it to python3.exe. Now I can use python3 script.py to start but py-launcher

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2017-06-07 Thread Mikhail
Mikhail added the comment: The actual stack, which I'm trying to debug, begins like this: #0 0xbfbfd34e in ?? () #1 0x2a9ec81e in ?? () from /opt/lib/qt5/libQt5WebKit.so.5 #2 0x2acf0efe in ?? () from /opt/lib/qt5/libQt5WebKit.so.5 #3 0x2acd8b74 in ?? () from /opt/lib/qt5/libQt5WebKit.so.5

[issue30014] Speedup DefaultSelectors.modify() by 2x

2017-06-07 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: OK, https://github.com/python/cpython/pull/1030 should be good to go. -- ___ Python tracker ___

[issue12815] Coverage of smtpd.py

2017-06-07 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue28686] py.exe ignored PATH when using python3 shebang

2017-06-07 Thread Jens Lindgren
Jens Lindgren added the comment: I just got hit by this bug and would like to add my thoughts on this. If you are in an activated venv, no matter if you launch with command python or python3, it will launch the version in venv (version 3.6.1 in this case). I expect the py-launcher and shebang

Re: script output appears correct but still raises, AssertionError

2017-06-07 Thread john polo
ChrisA, Thank you for pointing out my error: using print() when I should have used return(). John -- https://mail.python.org/mailman/listinfo/python-list

Re: how to decrypt encrypted text to a clear text

2017-06-07 Thread blue
Test again your chain programming way , because : >>> dir(RSA.importKey) ['__call__', '__class__', '__cmp__', '__delattr__', '__doc__', '__format__', '__func__', '__get__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__self__',

Re: plot time on X axis

2017-06-07 Thread Paul Barry
Take a look at Jake VanderPlas's book, which is available online as free-to-read: https://github.com/jakevdp/PythonDataScienceHandbook See Chapter 3 (and 4). On 7 June 2017 at 13:20, wrote: > > Hi, > > I was an IDL user and I'm using Python. I have several

Re: Generator and return value

2017-06-07 Thread Cameron Simpson
On 07Jun2017 19:19, Steve D'Aprano wrote: Frank Millman writes: It would be nice to write a generator in such a way that, in addition to 'yielding' each value, it performs some additional work and then 'returns' a final result at the end. From Python 3.3, anything

[issue30586] Encode to EBCDIC doesn't take into account conversion table irregularities

2017-06-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> not a bug status: open -> pending ___ Python tracker ___

plot time on X axis

2017-06-07 Thread jorge . conrado
Hi, I was an IDL user and I'm using Python. I have several meteorological daily time seriee for several years. Please can someone help me. I would like to plot on X axis only the values o the year. Thanks, Conrado -- https://mail.python.org/mailman/listinfo/python-list

[issue30586] Encode to EBCDIC doesn't take into account conversion table irregularities

2017-06-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The cp500 codec in Python is generated from the table ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/EBCDIC/CP500.TXT . There are several EBCDIC code pages. EBCDIC-compatible encodings supported in Python are: cp037, cp273, cp424, cp500, cp875, cp1026

[issue30587] Mock with spec object does not ensure method call signatures

2017-06-07 Thread Claudiu Belu
New submission from Claudiu Belu: Mock can accept a spec object / class as argument, making sure that accessing attributes that do not exist in the spec will cause an AttributeError to be raised, but there is no guarantee that the spec's methods signatures are respected in any way. This

Re: Error in initialization of IDLE.

2017-06-07 Thread Mohit Soni via Python-list
Sent from Yahoo Mail on Android I have python 3.5.2 installed and recently I installed python 3.6 and after installing the problem seems to occur. Whenever I start IDLE it shows an error message like "IDLE can't create a sub process or windows firewall might be blocking it" I did a fresh

[issue30359] Annotating a function as returning an (async) context manager?

2017-06-07 Thread Nick Coghlan
Nick Coghlan added the comment: As far as whether or not this usage fits within the guidelines at https://www.python.org/dev/peps/pep-0008/#function-annotations, it would definitely be worth bringing up in a python-dev thread before going ahead with it. I think it's a good dynamic use of

[issue30359] Annotating a function as returning an (async) context manager?

2017-06-07 Thread Nick Coghlan
Nick Coghlan added the comment: Even Python 2 functions support setting arbitrary attributes, so contextlib2.contextmanager can always just add an __annotations__ dict to decorated functions if it doesn't already exist. ``` >>> def f(): ... pass ... >>> f.__annotations__ Traceback (most

[issue1207613] Idle Editor: Bottom Scroll Bar

2017-06-07 Thread Cheryl Sabella
Cheryl Sabella added the comment: I hope you don't mind that I made a change for this. I was working with 'Find in files' and couldn't see the full line, so I figured out where to add the scroll bar. I only found this ticket after the fact. If it's not appropriate, I can withdraw the PR.

[issue1207613] Idle Editor: Bottom Scroll Bar

2017-06-07 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +2050 ___ Python tracker ___ ___

[issue22898] segfault during shutdown attempting to log ResourceWarning

2017-06-07 Thread Xavier de Gaye
Xavier de Gaye added the comment: With PR 1981, a ResourceWarning is printed when a RecursionError occurs while normalizing another exception and its traceback holds a reference to a non-closed file object. For information, issue 5437 removed the MemoryError singleton for the same reasons as

[issue30537] Using PyNumber_AsSsize_t in itertools.islice

2017-06-07 Thread Will Roberts
Will Roberts added the comment: Github PR adds simple test, as well as an entry in Misc/NEWS. -- ___ Python tracker ___

[issue30586] Encode to EBCDIC doesn't take into account conversion table irregularities

2017-06-07 Thread Vladimir Filippov
New submission from Vladimir Filippov: These 4 symbols were encoded incorrectly to EBCDIC (codec cp500): "![]|". Correct table of conversation for these symbols described in

[issue22898] segfault during shutdown attempting to log ResourceWarning

2017-06-07 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: +2049 ___ Python tracker ___ ___

[issue12815] Coverage of smtpd.py

2017-06-07 Thread Milan Oberkirch
Changes by Milan Oberkirch : -- nosy: -zvyn ___ Python tracker ___ ___

[issue30359] Annotating a function as returning an (async) context manager?

2017-06-07 Thread Nathaniel Smith
Nathaniel Smith added the comment: I can think of two downsides to using __annotations__ for this: 1) Obviously contextlib itself isn't going to add any kind of annotation in any versions before 3.7, but third-party projects might (like contextlib2, say). And these projects have been known to

[issue30537] Using PyNumber_AsSsize_t in itertools.islice

2017-06-07 Thread Sven Marnach
Sven Marnach added the comment: The current behaviour of islice() seems inconsistent with the rest of Python. All other functions taking start, stop and step arguments like slice(), range() and itertools.count() do accept integer-like objects. The code given as "roughly equivalent" in the

[issue30080] Add the --duplicate option for timeit

2017-06-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, I even didn't know that "perf timeit" supports -n since it doesn't report the number of loops. And seems it runs the benchmark much more times, since even with -n1 it is slow. If the number of loops is determined automatically, it would do not matter.

[issue30546] [EASY][Windows] test_uname_win32_ARCHITEW6432() of test_platform leaks references

2017-06-07 Thread STINNER Victor
STINNER Victor added the comment: It seems like the bug was already fixed last days! -- ___ Python tracker ___

Re: Generator and return value

2017-06-07 Thread Steve D'Aprano
On Wed, 7 Jun 2017 05:09 pm, Jussi Piitulainen wrote: > Frank Millman writes: > >> It would be nice to write a generator in such a way that, in addition >> to 'yielding' each value, it performs some additional work and then >> 'returns' a final result at the end. >> >>> From Python 3.3, anything

[issue30547] [EASY][Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit leaks references

2017-06-07 Thread STINNER Victor
STINNER Victor added the comment: > At the end, you should get the commit > 6b4be195cd8868b76eb6fbe166acc39beee8ce36. The commit is a giant change. So let me help you, the following change is strange. value is replaced whereas its value is non-NULL... Maybe it's the regression? ;-) diff

[issue30547] [EASY][Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit leaks references

2017-06-07 Thread STINNER Victor
STINNER Victor added the comment: The failing unit test was added by: commit 2d350fd8af29eada0c3f264a91df6ab4af4a05fd Author: Antoine Pitrou Date: Thu Aug 1 20:56:12 2013 +0200 Issue #18619: Fix atexit leaking callbacks registered from sub-interpreters, and make it

[issue30584] test_os fails on non-English (Russian) Windows

2017-06-07 Thread Denis Osipov
Denis Osipov added the comment: Using the numeric SID instead of localized name in test_access_denied works for me (I've made PR). -- ___ Python tracker

[issue30500] [security] urllib connects to a wrong host

2017-06-07 Thread STINNER Victor
Changes by STINNER Victor : -- title: urllib connects to a wrong host -> [security] urllib connects to a wrong host ___ Python tracker

[issue30585] [security][3.3] Backport smtplib fix for TLS stripping vulnerability, CVE-2016-0772

2017-06-07 Thread STINNER Victor
STINNER Victor added the comment: PEP 398: Python 3.3 Release Schedule Python 3.3 branch end of support is expected to be at 2017-09-29, in 4 months. -- assignee: -> georg.brandl ___ Python tracker

  1   2   >