[issue25720] Fix curses module compilation with ncurses6

2016-01-13 Thread Ismail Donmez
Ismail Donmez added the comment: Any patch review/comment ? -- ___ Python tracker ___ ___ Python-bugs-list

Re: How to remove item from heap efficiently?

2016-01-13 Thread Cem Karan
On Jan 12, 2016, at 11:18 AM, "Sven R. Kunze" wrote: > On 12.01.2016 03:48, Cem Karan wrote: >> >> Jumping in late, but... >> >> If you want something that 'just works', you can use HeapDict: >> >> http://stutzbachenterprises.com/ >> >> I've used it in the past, and it

SSL certification fails / tweepy

2016-01-13 Thread K. Elo
Dear list members! I have written I small python script for twitter mining utilising the 'tweepy' library. Since a couple of days I cannot use the script anymore, due to a "ssl certificate verification failed" error. The authentication with Twitter API succeess, but when I try to run the

[issue26058] PEP 509: Add ma_version to PyDictObject

2016-01-13 Thread STINNER Victor
STINNER Victor added the comment: I'm not a big fan of pybench (it looks unstable and so not reliable), but here are results with dict_version-4.patch. I used more loops and a lower warp factor to get more reliable tests (I hope): ./python Tools/pybench/pybench.py -f pybench.orig -w 2 -C 100

Re: Data Entry

2016-01-13 Thread Peter Otten
Chris Angelico wrote: > On Wed, Jan 13, 2016 at 12:52 PM, wrote: >> If i change the value from origin to origin energy and save - the value >> updated to the database is correct but when the page is re displayed it >> only shows origin in the text field - as if it ignores

Need solution with this problem

2016-01-13 Thread ifeanyioprah--- via Python-list
Create a class called BankAccount­ Create a constructor that takes in an in­teger and assigns this to a `balance` pr­operty. Create a method called `deposit` that ta­kes in cash deposit amount and updates t­he balance accordingly. Create a method called `withdraw` that t­akes in cash withdrawal

Re: Need solution with this problem

2016-01-13 Thread Joel Goldstick
On Wed, Jan 13, 2016 at 3:58 AM, Tim Golden wrote: > On 13/01/2016 05:57, ifeanyioprah--- via Python-list wrote: > > [... snip yet another homework dump with one more still held in > moderation ...] > > At this point you're basically spamming this list. I won't allow any >

Re: Which Python editor has this feature?

2016-01-13 Thread Terry Reedy
On 1/12/2016 8:20 PM, jf...@ms4.hinet.net wrote: Terry Reedy at 2016/1/12 UTC+8 3:56:03PM wrote: Revamping IDLE to 1. use ttk widgets and 2. become a modern single window app with multiple panes, including a tabbed editor pane, is a goal for 2016. That will be great, I'm looking forward to

[issue23551] IDLE to provide menu link to PIP gui.

2016-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: On python-list, Chris Angelico reported 2 other problems when running something like "import pip; pip.main(['install','psycopg2'])" from IDLE. Both can be worked around in a pipgui program. 1. pip displays a progress bar by sending to stdout a sequence of

[issue25720] Fix curses module compilation with ncurses6

2016-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: configure.ac directly uses w->_flags in a check. It looks that this check always fails with ncurses6. -- ___ Python tracker

[issue23990] Callable builtin doesn't respect descriptors

2016-01-13 Thread Graham Dumpleton
Changes by Graham Dumpleton : -- nosy: +grahamd ___ Python tracker ___ ___

Re: Which Python editor has this feature?

2016-01-13 Thread Chris Angelico
On Wed, Jan 13, 2016 at 8:05 PM, Terry Reedy wrote: > Assuming that sys.__sydout__ is not None is a bug on pip's part. Perhaps you > could report it to it list or tracker, and point Donald and whoever to > https://docs.python.org/3/library/sys.html#sys.__stdin__ > > "Note > >

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2016-01-13 Thread Ionel Cristian Mărieș
Changes by Ionel Cristian Mărieș : -- nosy: +ionelmc ___ Python tracker ___ ___

[issue26058] PEP 509: Add ma_version to PyDictObject

2016-01-13 Thread STINNER Victor
STINNER Victor added the comment: Patch version 4: I forgot to include my patch to update test_sys. Now the full Python test suite pass. -- Added file: http://bugs.python.org/file41599/dict_version-4.patch ___ Python tracker

[issue23551] IDLE to provide menu link to PIP gui.

2016-01-13 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue26097] 2.7 documentation about TextTestRunner do not specify all the arguments

2016-01-13 Thread Nicolas Évrard
New submission from Nicolas Évrard: Some of the arguments although specified further in the documentation do not appear in the signature of TextTestRunner. Here's a simple patch to include them. -- assignee: docs@python components: Documentation files: unittest_doc_bug.diff keywords:

[issue25911] Regression: os.walk now using os.scandir() breaks bytes filenames on windows

2016-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Did we want a deprecation warning too? I didn't tested on Windows. If bytes paths considered deprecated on Windows, os.listdir() should emit a warning. Otherwise I don't think we should special case os.walk(). --

Re: Which Python editor has this feature?

2016-01-13 Thread Terry Reedy
On 1/12/2016 5:18 AM, Chris Angelico wrote: On Tue, Jan 12, 2016 at 7:27 PM, Terry Reedy wrote: Can psycopg2 be installed with pip? There is an issue (#23551) to make a pip GUI and make it accessible from IDLE. We need someone with both pip and tkinter knowledge to either

[issue25911] Regression: os.walk now using os.scandir() breaks bytes filenames on windows

2016-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed a typo found by Eryk Sun. -- Added file: http://bugs.python.org/file41598/walk_bytes_2.patch ___ Python tracker

Re: Need solution with this problem

2016-01-13 Thread Tim Golden
On 13/01/2016 05:57, ifeanyioprah--- via Python-list wrote: [... snip yet another homework dump with one more still held in moderation ...] At this point you're basically spamming this list. I won't allow any more of your posts through unless they appear to be engaging with the help shown to you

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-01-13 Thread bonfaceo3
On Saturday, December 12, 2015 at 12:05:29 PM UTC+3, Harbey Leke wrote: > Create a class called BankAccount > > .Create a constructor that takes in an integer and assigns this to a > `balance` property. > > .Create a method called `deposit` that takes in cash deposit amount and > updates the

Re: local variable 'juveniles' referenced before assignment

2016-01-13 Thread Alan Robinson
On Wednesday, 13 January 2016 12:32:51 UTC, Chris Angelico wrote: > On Wed, Jan 13, 2016 at 11:23 PM, Alan Robinson > wrote: > > def menu(): > > option = int(input("Please select an option: \n 1: Set Generation 0 > > Values \n 2: View Generation 0 Values \n 3:

Re: local variable 'juveniles' referenced before assignment

2016-01-13 Thread Alan Robinson
On Wednesday, 13 January 2016 13:06:11 UTC, Peter Otten wrote: > Alan Robinson wrote: > > > On Wednesday, 13 January 2016 12:32:51 UTC, Chris Angelico wrote: > >> On Wed, Jan 13, 2016 at 11:23 PM, Alan Robinson > >> wrote: > >> > def menu(): > >> > option =

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-01-13 Thread phatsammhiel
please kindly inbox me the solution thanks in anticipation of your kind gesture sammhielade...@gmail.com -- https://mail.python.org/mailman/listinfo/python-list

[issue25720] Fix curses module compilation with ncurses6

2016-01-13 Thread Ismail Donmez
Ismail Donmez added the comment: Thats not an issue for ncurses because Include/py_curses.h does: #ifdef HAVE_NCURSES_H /* configure was checking , but we will use , which has all these features. */ #ifndef WINDOW_HAS_FLAGS #define WINDOW_HAS_FLAGS 1 #endif #ifndef

local variable 'juveniles' referenced before assignment

2016-01-13 Thread Alan Robinson
def menu(): option = int(input("Please select an option: \n 1: Set Generation 0 Values \n 2: View Generation 0 Values \n 3: Run Model \n 4: Print values")) if option == 1: juveniles,adults,seniles = setGen() elif option == 2: displayGen() elif option == 3:

Re: local variable 'juveniles' referenced before assignment

2016-01-13 Thread Chris Angelico
On Wed, Jan 13, 2016 at 11:23 PM, Alan Robinson wrote: > def menu(): > option = int(input("Please select an option: \n 1: Set Generation 0 > Values \n 2: View Generation 0 Values \n 3: Run Model \n 4: Print values")) > > if option == 1: >

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-01-13 Thread phatsammhiel
please assist with the solution on this p h a t s a m m hi e l...@gmail.com thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: Data Entry

2016-01-13 Thread Chris Angelico
On Wed, Jan 13, 2016 at 10:21 PM, Peter Otten <__pete...@web.de> wrote: >> To set a multi-word value as an HTML attribute, you'll need to put >> quotes around it. You might be able to get away with using %r instead >> of %s, or even just "%s", > > That is bad advice that "works" until there is a

Re: local variable 'juveniles' referenced before assignment

2016-01-13 Thread Peter Otten
Alan Robinson wrote: > On Wednesday, 13 January 2016 12:32:51 UTC, Chris Angelico wrote: >> On Wed, Jan 13, 2016 at 11:23 PM, Alan Robinson >> wrote: >> > def menu(): >> > option = int(input("Please select an option: \n 1: Set Generation 0 >> > Values \n 2:

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-01-13 Thread Chris Angelico
On Thu, Jan 14, 2016 at 12:28 AM, wrote: > please kindly inbox me the solution > > thanks in anticipation of your kind gesture > > > sammhielade...@gmail.com Don't you get it? You are not going to be given the code. All you're doing is making us resent your presence,

45

2016-01-13 Thread Hongyi Zhao
rt -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- https://mail.python.org/mailman/listinfo/python-list

[issue26098] PEP 510: Specialize functions with guards

2016-01-13 Thread STINNER Victor
New submission from STINNER Victor: Attached patch implements the PEP 510 "Specialize functions with guards". Changes on the C API are described in the PEP: https://www.python.org/dev/peps/pep-0510/#changes Additions of the patch: * Add func_specialize() and func_get_specialized() to

Re: local variable 'juveniles' referenced before assignment

2016-01-13 Thread Chris Angelico
On Wed, Jan 13, 2016 at 11:54 PM, Alan Robinson wrote: > On Wednesday, 13 January 2016 12:32:51 UTC, Chris Angelico wrote: >> On Wed, Jan 13, 2016 at 11:23 PM, Alan Robinson >> wrote: >> > def menu(): >> > option = int(input("Please

Re: local variable 'juveniles' referenced before assignment

2016-01-13 Thread Alan Robinson
On Wednesday, 13 January 2016 13:23:04 UTC, Alan Robinson wrote: > On Wednesday, 13 January 2016 13:06:11 UTC, Peter Otten wrote: > > Alan Robinson wrote: > > > > > On Wednesday, 13 January 2016 12:32:51 UTC, Chris Angelico wrote: > > >> On Wed, Jan 13, 2016 at 11:23 PM, Alan Robinson > > >>

[issue23762] python.org page on new-style classes should be updated

2016-01-13 Thread Berker Peksag
Berker Peksag added the comment: I've now added a warning to the document. -- stage: needs patch -> resolved status: pending -> closed ___ Python tracker

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2016-01-13 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the patch, however I got several errors while trying to apply it, so I ended up backporting d560eece0857 instead. This can be closed now. -- assignee: -> ezio.melotti resolution: -> fixed stage: patch review -> resolved status: open ->

[issue25668] Deadlock in logging caused by a possible race condition with "format"

2016-01-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: -r.david.murray ___ Python tracker ___ ___

Re: How to remove item from heap efficiently?

2016-01-13 Thread Sven R. Kunze
On 13.01.2016 12:20, Cem Karan wrote: On Jan 12, 2016, at 11:18 AM, "Sven R. Kunze" wrote: Thanks for replying here. I've come across these types of wrappers/re-implementations of heapq as well when researching this issue. :) Unfortunately, they don't solve the underlying

[issue22642] trace module: convert to argparse

2016-01-13 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Senthil. My comment was for Vajrasky's patch, not for the whole argparse switch. We need to add tests for the old getopt code first to avoid regressions. After 0aa46b9ffba3, if we add tests we won't be able to test the old interface. My other

[issue26102] access violation in PyErrFetch if tcur==null in PyGILState_Release

2016-01-13 Thread Christian Berger
New submission from Christian Berger: I've been messing with PyGILState_... handling for my embedded python interpreter and came across this issue: code in PyGILState_Release: PyThreadState *tcur = (PyThreadState *)PyThread_get_key_value(

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

2016-01-13 Thread Aaron Hall
New submission from Aaron Hall: Based on the data-model documentation (https://docs.python.org/2/reference/datamodel.html#invoking-descriptors) and the dotted lookup behavior, the follow definitions are correct: "If the descriptor defines __set__() and/or __delete__(), it is a data

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2016-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset e3763d98c46e by Ezio Melotti in branch '2.7': #7944: close files explicitly in test_tarfile (backport d560eece0857). https://hg.python.org/cpython/rev/e3763d98c46e -- nosy: +python-dev ___ Python tracker

[issue25668] Deadlock in logging caused by a possible race condition with "format"

2016-01-13 Thread Vinay Sajip
Vinay Sajip added the comment: Logging has been in the Python stdlib for over a dozen years, and in all that time, no one else has had a problem with the way handler locks and formatting work in logging. Your problem arises because your use case is very unusual, and this is why I don't

[issue25924] investigate if getaddrinfo(3) on OSX is thread-safe

2016-01-13 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: An Apple Developer Relations engineer tells me it's "reasonable to assume that getaddrinfo() is thread safe" on OS X 10.5 and later. (He mentioned that iOS inherited the OS X 10.5 DNS architecture, so Apple phones, watches, TVs, hairdryers, etc. can all

me, my arm, my availability ...

2016-01-13 Thread Laura Creighton
I fell recently. Ought to be nothing, but a small chip of bone, either an existing one or one I just made is nicely wedged in the joint taking away a whole lot of the ability of my arm to rotate in the elbow joint. Or hold my arm in a position that is usual for typing. Plus, now that the

[issue24203] Deprecate threading.Thread.isDaemon etc

2016-01-13 Thread Berker Peksag
Berker Peksag added the comment: The docs for old API already say: Old getter/setter API for name; use it directly as a property instead. https://docs.python.org/3.5/library/threading.html#threading.Thread.getName Users don't read the documentation every six or fifteen months so it would

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Michael Torrie
On 01/13/2016 08:29 PM, Rick Johnson wrote: > Of course. But when you leave things open for speculation, > you enviably create a situation where rumors can start > circulating. GvR is not just any "John Doe" engineer, no, > he's the head of an open source community, and the community > has a right

Re: [Python-ideas] Password masking for getpass.getpass

2016-01-13 Thread Marko Rauhamaa
Steven D'Aprano : > What about those who are so frustrated with trying to get sites to > work that they just Allow All On This Page? I'm occasionally frustrated by that, but I simply won't read that page. Nothing truly important is lost. Marko --

Stop writing Python 3.5 incompatible code :-)

2016-01-13 Thread Frank Millman
This is a tongue-in-cheek follow-up to the thread on Python 4 incompatible code, but it did happen to me, and may help someone else. I execute a lot of database SELECT commands. In many cases I expect to get only one row returned, but it could be zero or more than one. Using LBYL, one would

[issue26104] Reference leak in functools.partial constructor in failure case

2016-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This bug is fixed by more comprehensive patch for issue25945. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Type confusion in partial_setstate and partial_call leads to memory

Re: Stop writing Python 3.5 incompatible code :-)

2016-01-13 Thread Frank Millman
"Chris Angelico" wrote in message news:captjjmps+vfu33tulae5oivrvn_otfuxrp8yluy68qmu36-...@mail.gmail.com... On Thu, Jan 14, 2016 at 5:27 PM, Frank Millman wrote: > Using LBYL, one would retrieve the row(s) and check the length. I found > a > way to use EAFP, as follows

Re: When I need classes?

2016-01-13 Thread Mike S via Python-list
On 1/11/2016 3:45 PM, Travis Griggs wrote: On Jan 10, 2016, at 9:48 AM, Bernardo Sulzbach wrote: Essentially, classes (as modules) are used mainly for organizational purposes. Although you can solve any problem you would solve using classes without classes,

Re: Stop writing Python 3.5 incompatible code :-)

2016-01-13 Thread Chris Angelico
On Thu, Jan 14, 2016 at 5:27 PM, Frank Millman wrote: > Using LBYL, one would retrieve the row(s) and check the length. I found a > way to use EAFP, as follows - > > cur.execute('SELECT ...') > (row,) = cur > > This uses tuple unpacking, and only works if exactly one row is

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Terry Reedy
On 1/13/2016 8:02 PM, Rick Johnson wrote: and a leader who lost his cushy job at Google Unless you have access to facts that I do not, 'lost' is impolite speculation. But lets move on. I have a contrary hypothesis based on the facts quoted below. As far as I know, Google is somewhat stuck

[issue26106] Move licences to literal blocks

2016-01-13 Thread Ezio Melotti
Ezio Melotti added the comment: Sounds like a reasonable request to me. Given the content of document, special care should be taken in reviewing the patch and making sure that nothing has gone missing. -- nosy: +ezio.melotti stage: -> patch review type: -> enhancement

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Steven D'Aprano
On Thu, 14 Jan 2016 03:25 am, Random832 wrote: > On Wed, Jan 13, 2016, at 09:21, sjms...@gmail.com wrote: >> This strikes me as very good advice. Thanks for being so far-sighted. >> And let's hope that Python 4 has fewer incompatibilities (none would >> good) than Python 3! > > Who says there's

Re: me, my arm, my availability ...

2016-01-13 Thread Steven D'Aprano
On Thu, 14 Jan 2016 07:47 am, Laura Creighton wrote: > > I fell recently. Ought to be nothing, [...] Ouch! Much ouch! Hope you get well soon Laura! My best wishes and sympathies to you! -- Steven -- https://mail.python.org/mailman/listinfo/python-list

[issue25791] Raise an ImportWarning when __spec__.parent/__package__ isn't defined for a relative import

2016-01-13 Thread Rose Ames
Rose Ames added the comment: that's what I figured. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue26069] Remove the Deprecated API in trace module

2016-01-13 Thread Berker Peksag
Berker Peksag added the comment: Sorry, I don't have much time investigate this further, but here is a few references from my bookmarks: * http://bugs.python.org/msg253473 (from issue 20438) * https://hg.python.org/peps/rev/570913685f49 (this doesn't mention old APIs, but I think we can

Re: me, my arm, my availability ...

2016-01-13 Thread Steven D'Aprano
On Thu, 14 Jan 2016 08:41 am, David H. Lipman wrote: > From: "Laura Creighton" > >> >> I fell recently. Ought to be nothing, but a small chip of bone, either >> an > > Due to the side-effects of the prescription drugs you were given, I > suggest > you not use a computer until

[issue25791] Raise an ImportWarning when __spec__.parent/__package__ isn't defined for a relative import

2016-01-13 Thread Rose Ames
Rose Ames added the comment: Patch with tests. Not sure if importlib.h should be included? -- ___ Python tracker ___

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Gregory Ewing
Steven D'Aprano wrote: Quote: if six.PY2: # Python 2 code elif six.PY3: # Python 3 code In this case, no code will get executed on Python 4 at all! Which is good, because if no code is executed, it can't exhibit any bugs. Everyone should write

[issue26105] Python JSON module doesn't actually produce JSON

2016-01-13 Thread Ezio Melotti
Ezio Melotti added the comment: This is documented at https://docs.python.org/3/library/json.html#standard-compliance-and-interoperability and https://docs.python.org/3/library/json.html#infinite-and-nan-number-values The default could be changed if we go through a deprecation process, but I'm

[issue25791] Raise an ImportWarning when __spec__.parent/__package__ isn't defined for a relative import

2016-01-13 Thread Rose Ames
Changes by Rose Ames : -- keywords: +patch Added file: http://bugs.python.org/file41609/issue25791.patch ___ Python tracker ___

[issue26104] Reference leak in functools.partial constructor in failure case

2016-01-13 Thread Josh Rosenberg
New submission from Josh Rosenberg: Minor bug introduced while implementing the fix for #7830: In the case where functools.partial is wrapping another functools.partial instance, both of them providing positional arguments, the value nargs is not freed when the tuple concatenation fails and

[issue25668] Deadlock in logging caused by a possible race condition with "format"

2016-01-13 Thread Florent Viard
Florent Viard added the comment: Come on, please stop trying to close the issue so fast without deeply thinking about it. A lot of years without a "detailed" bug report indicating the root cause is not a "proof" that there is no bug. Otherwise, you can say that there is no more bug in

[issue26106] Move licences to literal blocks

2016-01-13 Thread Julien
New submission from Julien: In the context of translating the documentation: I'd like to move the licence texts in https://docs.python.org/3.5/license.html to literal blocks, so they won't pollute the po files with legal (untranslatable) stuff, and it's visually more appealing (as far as it's

Re: [Python-ideas] Password masking for getpass.getpass

2016-01-13 Thread Chris Angelico
On Thu, Jan 14, 2016 at 11:17 AM, Ian Kelly wrote: > On Wed, Jan 13, 2016 at 3:19 AM, Chris Angelico wrote: >> You're quite probably right that obfuscating the display is security >> theatre; but it's the security theatre that people are expecting. If >>

Re: me, my arm, my availability ...

2016-01-13 Thread Laura Creighton
In a message of Wed, 13 Jan 2016 16:41:57 -0500, "David H. Lipman" writes: >From: "Laura Creighton" > >> >> I fell recently. Ought to be nothing, but a small chip of bone, either an > >Due to the side-effects of the prescription drugs you were given, I suggest >you not use a

[issue25791] Raise an ImportWarning when __spec__.parent/__package__ isn't defined for a relative import

2016-01-13 Thread Rose Ames
Rose Ames added the comment: Thanks for the quick review, new patch uploaded. -- Added file: http://bugs.python.org/file41611/issue25791_2.patch ___ Python tracker

[issue26105] Python JSON module doesn't actually produce JSON

2016-01-13 Thread Connor Wolf
New submission from Connor Wolf: The Python library JSON library doesn't emit JSON by default. Basically, `json.dumps(float('nan'))` produces something that kind of looks like json, but isn't (specifically, `'NaN'`). Valid JSON must be `null`. JSON *does not allow `NaN`, `infinity`, or

Re: Building list

2016-01-13 Thread Terry Reedy
On 1/13/2016 10:23 AM, Eddy Quicksall wrote: What list do I use for building issues? I'm building 3.5.1. Start here. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] Password masking for getpass.getpass

2016-01-13 Thread Ian Kelly
On Wed, Jan 13, 2016 at 3:19 AM, Chris Angelico wrote: > You're quite probably right that obfuscating the display is security > theatre; but it's the security theatre that people are expecting. If > you're about to enter your credit card details into a web form, does > it really

[issue25791] Raise an ImportWarning when __spec__.parent/__package__ isn't defined for a relative import

2016-01-13 Thread Brett Cannon
Brett Cannon added the comment: Including importlib.h doesn't hurt. -- ___ Python tracker ___ ___

Re: me, my arm, my availability ...

2016-01-13 Thread David H. Lipman
From: "Laura Creighton" I fell recently. Ought to be nothing, but a small chip of bone, either an Due to the side-effects of the prescription drugs you were given, I suggest you not use a computer until you are no longer taking them. ;-) -- Dave Multi-AV Scanning Tool

[issue25591] refactor imaplib tests

2016-01-13 Thread Maciej Szulik
Maciej Szulik added the comment: David can you please take a look once more, I've applied all the changes you've asked for. I'm currently working on adding the existing tests rewritten to use the new framework so it's easy to compare. It's still in progress but the general idea should

[issue26105] Python JSON module doesn't actually produce JSON

2016-01-13 Thread Connor Wolf
Connor Wolf added the comment: The problem here is that JSON is *everywhere*, and I only ran into this particular issue after a whole bunch of digging as to why my "JSON" messages were disappearing in some javascript. Basically, with the default the way it is, you have interoperability bombs

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Bernardo Sulzbach
On Wed, Jan 13, 2016 at 7:38 PM, Gregory Ewing wrote: > Steven D'Aprano wrote: >> >> Quote: >> >> if six.PY2: >> # Python 2 code >> elif six.PY3: >> # Python 3 code >> >> In this case, no code will get executed on Python 4

[issue25791] Raise an ImportWarning when __spec__.parent/__package__ isn't defined for a relative import

2016-01-13 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___

Re: [Python-ideas] Password masking for getpass.getpass

2016-01-13 Thread Steven D'Aprano
On Thu, 14 Jan 2016 11:17 am, Ian Kelly wrote: > On Wed, Jan 13, 2016 at 3:19 AM, Chris Angelico wrote: >> You're quite probably right that obfuscating the display is security >> theatre; but it's the security theatre that people are expecting. If >> you're about to enter your

Re: Which Python editor has this feature?

2016-01-13 Thread jfong
Terry Reedy at 2016/1/13 UTC+8 5:15:20PM wrote: > This was a Windows specific problem that was fixed (for me) in all three > recent (last November/December) bugfix releases. If you have a problem > with *current* IDLE, I would like to know. I download/install the latest version 3.4.4 and it

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Rick Johnson
On Wednesday, January 13, 2016 at 6:11:06 PM UTC-6, Steven D'Aprano wrote: > But [GvR] has definitely ruled that 4.0 (assuming there is > one) will not be a major backwards-incompatible version > like 3.0 was. Well for the sake of Python's future, let's all hope so! I typically don't give much

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread BartC
On 14/01/2016 01:21, Chris Angelico wrote: On Thu, Jan 14, 2016 at 12:02 PM, BartC wrote: I was surprised recently by just how much incompatibility there was between Python 2 and 3. It wasn't just about print with parentheses and range instead of xrange. I wanted to try out a

Re: me, my arm, my availability ...

2016-01-13 Thread Joel Goldstick
On Wed, Jan 13, 2016 at 7:30 PM, Steven D'Aprano wrote: > On Thu, 14 Jan 2016 08:41 am, David H. Lipman wrote: > > > From: "Laura Creighton" > > > >> > >> I fell recently. Ought to be nothing, but a small chip of bone, either > >> an > > > > Due to the

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Gene Heskett
On Wednesday 13 January 2016 21:39:12 Dennis Lee Bieber wrote: > On Thu, 14 Jan 2016 12:02:59 +1100, Steven D'Aprano > > > declaimed the following: > >On Thu, 14 Jan 2016 11:40 am, Bernardo Sulzbach wrote: > >> On Wed, Jan 13, 2016 at 10:10 PM, Steven D'Aprano > >>

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Rick Johnson
On Wednesday, January 13, 2016 at 9:08:40 PM UTC-6, Chris Angelico wrote: > You're talking about a very serious matter between two legal entities > - if someone was *fired* because of social, technological, or other > problems with Python, that has implications that could matter in a > court of

Re: [Python-ideas] Password masking for getpass.getpass

2016-01-13 Thread Steven D'Aprano
On Thu, 14 Jan 2016 11:27 am, Chris Angelico wrote: > On Thu, Jan 14, 2016 at 11:17 AM, Ian Kelly wrote: >> I realize that I'm taking this thread off-topic, but yes it's >> important that the form itself be downloaded over a secure connection. >> If I can MitM the form

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Bernardo Sulzbach
On Wed, Jan 13, 2016 at 10:10 PM, Steven D'Aprano wrote: > (...) 4.0 (assuming there is one) Isn't it just a matter of time? Do you think it is even possible not to have Python 4 eventually? -- Bernardo Sulzbach -- https://mail.python.org/mailman/listinfo/python-list

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Terry Reedy
On 1/13/2016 7:10 PM, Steven D'Aprano wrote: On Thu, 14 Jan 2016 03:25 am, Random832 wrote: On Wed, Jan 13, 2016, at 09:21, sjms...@gmail.com wrote: This strikes me as very good advice. Thanks for being so far-sighted. And let's hope that Python 4 has fewer incompatibilities (none would

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread BartC
On 13/01/2016 07:30, Steven D'Aprano wrote: Quote: With the end of support for Python 2 on the horizon (in 2020), many package developers have made their packages compatible with both Python 2 and Python 3 by using constructs such as: if sys.version_info[0] == 2:

[issue26059] Integer Overflow in strop.replace()

2016-01-13 Thread STINNER Victor
STINNER Victor added the comment: > Do you have any idea how to fix it? strop is a deprecated module, you can write ("\x100" *0xEAAA).replace("\x100", "AA"*0x). Does this instruction also crash? -- nosy: +haypo ___ Python tracker

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Chris Angelico
On Thu, Jan 14, 2016 at 1:51 PM, Rick Johnson wrote: > On Wednesday, January 13, 2016 at 8:11:40 PM UTC-6, Michael Torrie wrote: >> Hmm, so Guido moved to Dropbox because Google fired him? >> [...] I can find zero evidence to support your assertion, > > Feel free to

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Steven D'Aprano
On Thu, 14 Jan 2016 11:40 am, Bernardo Sulzbach wrote: > On Wed, Jan 13, 2016 at 10:10 PM, Steven D'Aprano > wrote: >> (...) 4.0 (assuming there is one) > > Isn't it just a matter of time? Do you think it is even possible not > to have Python 4 eventually? 3.9 is probably

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Michael Torrie
On 01/13/2016 06:02 PM, Steven D'Aprano wrote: > Or we're too busy dealing with rising sea levels, crop failures, antibiotic > resistant diseases, chaotic mass migrations, terrorists, wars for control > over resources like water, and the collapse of the corporate state to care > about such little

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Chris Angelico
On Thu, Jan 14, 2016 at 12:02 PM, Rick Johnson wrote: > In fact, in the years before Python3 arrived, it had enjoyed > a steady ascension from obscurity into mainstream hacker > culture, but now, all that remains is a fractured community, > a fractured code base, and

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Michael Torrie
On 01/13/2016 06:02 PM, Rick Johnson wrote: > In fact, in the years before Python3 arrived, it had enjoyed > a steady ascension from obscurity into mainstream hacker > culture, but now, all that remains is a fractured community, > a fractured code base, and a leader who lost his cushy job > at

Re: [Python-ideas] Password masking for getpass.getpass

2016-01-13 Thread Michael Torrie
On 01/13/2016 05:47 PM, Steven D'Aprano wrote: > What of the poor souls who, for whatever reason, can't use NoScript? > > What about those who are so frustrated with trying to get sites to work that > they just Allow All On This Page? I've seen websites that rely on anything > up to forty or

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Chris Angelico
On Thu, Jan 14, 2016 at 12:02 PM, BartC wrote: > I was surprised recently by just how much incompatibility there was between > Python 2 and 3. It wasn't just about print with parentheses and range > instead of xrange. > > I wanted to try out a jpeg decoder with PyPy and the three

Re: Stop writing Python 4 incompatible code

2016-01-13 Thread Rick Johnson
On Wednesday, January 13, 2016 at 8:11:40 PM UTC-6, Michael Torrie wrote: > Hmm, so Guido moved to Dropbox because Google fired him? > [...] I can find zero evidence to support your assertion, Feel free to post evidence that will *DISPROVE* my statement. > Dishonesty is a harsh accusation, but

  1   2   >