[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-15 Thread Ned Deily
Ned Deily added the comment: [cherrypicked for 3.6.0rc2] -- priority: release blocker -> deferred blocker ___ Python tracker ___

[issue28979] What's New entry on compact dict mentions "faster" implementation

2016-12-15 Thread Ned Deily
Ned Deily added the comment: [cherrypicked for 3.6.0rc2] -- priority: release blocker -> resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue28089] asyncio: Document that TCP_NODELAY is now used by default

2016-12-15 Thread Ned Deily
Ned Deily added the comment: [cherrypicked for 3.6.0rc2] -- priority: deferred blocker -> ___ Python tracker ___

[issue28783] Embedded/nuget packages incorrectly reference bdist_wininst

2016-12-15 Thread Ned Deily
Ned Deily added the comment: [cherrypicked for 3.6.0rc2] -- priority: release blocker -> resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-15 Thread Ned Deily
Ned Deily added the comment: [cherrypicked for 3.6.0rc2] -- priority: release blocker -> ___ Python tracker ___

[issue28898] Can't compile gdb with Python 3.6

2016-12-15 Thread Ned Deily
Ned Deily added the comment: [cherrypicked for 3.6.0rc2] -- assignee: ned.deily -> priority: release blocker -> resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue28635] Update What's New for 3.6

2016-12-15 Thread Ned Deily
Ned Deily added the comment: [cherrypicked for 3.6.0r2] -- ___ Python tracker ___ ___ Python-bugs-list

[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6249350e654a by Steve Dower in branch '3.6': Issue #28896: Deprecate WindowsRegistryFinder https://hg.python.org/cpython/rev/6249350e654a -- ___ Python tracker

[issue28089] asyncio: Document that TCP_NODELAY is now used by default

2016-12-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset dfd1019f75f9 by Yury Selivanov in branch '3.6': Issue #28089: Document TCP_NODELAY in asyncio https://hg.python.org/cpython/rev/dfd1019f75f9 -- ___ Python tracker

[issue28898] Can't compile gdb with Python 3.6

2016-12-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6c8803c55b4 by Benjamin Peterson in branch '3.6': guard HAVE_LONG_LONG definition to prevent redefinition (#28898) https://hg.python.org/cpython/rev/d6c8803c55b4 New changeset 9d0765c22bed by Ned Deily in branch '3.6': Issue #28898: add Misc/NEWS

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset b70b2d3f3167 by Victor Stinner in branch '3.6': Fix a memory leak in split-table dictionaries https://hg.python.org/cpython/rev/b70b2d3f3167 -- ___ Python tracker

[issue28091] Document PEP 525 & 530

2016-12-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a11263bb612 by Yury Selivanov in branch '3.6': Issue #28091: Document PEP 525 & PEP 530. https://hg.python.org/cpython/rev/5a11263bb612 -- ___ Python tracker

[issue28783] Embedded/nuget packages incorrectly reference bdist_wininst

2016-12-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1f69fb337288 by Steve Dower in branch '3.6': Issue #28783: Replaces bdist_wininst in nuget packages with stub https://hg.python.org/cpython/rev/1f69fb337288 -- ___ Python tracker

[issue28635] Update What's New for 3.6

2016-12-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset cb4ad88fdc91 by Yury Selivanov in branch '3.6': Issue #28635: Drop the note that whatsnew is incomplete https://hg.python.org/cpython/rev/cb4ad88fdc91 New changeset c4d6ef15bb7c by Yury Selivanov in branch '3.6': Issue #28635: asyncio-related fixes

[issue28979] What's New entry on compact dict mentions "faster" implementation

2016-12-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 911cc601089d by Victor Stinner in branch '3.6': Issue #28979: Fix What's New in Python 3.6, dict https://hg.python.org/cpython/rev/911cc601089d -- ___ Python tracker

[issue28900] update 'docs for other versions'

2016-12-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 257a1c7f9507 by Ned Deily in branch '3.6': Issue #28900: Update documentation sidebar for 3.6.0rc. https://hg.python.org/cpython/rev/257a1c7f9507 -- ___ Python tracker

[issue28977] Document PyObject_CallFunction() special case more explicitly

2016-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "O" is not the only special case. "S" and "N" unpack a tuple argument too. "O&" converter should return a tuple, otherwise it is an error. All other format codes are illegal for single argument. I would just deprecate this feature (in PyObject_CallFunction,

[issue28961] unittest.mock._Call ignores `name` parameter

2016-12-15 Thread Jiajun Huang
Jiajun Huang added the comment: code and test case has been updated. -- Added file: http://bugs.python.org/file45922/mock.patch ___ Python tracker ___

[issue28689] OpenSSL 1.1.0c test failures

2016-12-15 Thread Christian Heimes
Christian Heimes added the comment: Thanks, Ned! To clarify, it's not jus the test suite. OpenSSL 1.1.0c broke the ssl module. -- ___ Python tracker ___

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The limit to readline() was added to prevent consuming an excessive amount of memory. But this doesn't help in case of long multiline responses, since all lines are accumulated in a list in memory. A malicious server could cause a client consuming an

[issue28968] xml rpc server fails with connection reset by peer error no 104

2016-12-15 Thread Manish Singh
Manish Singh added the comment: Hi David Murray, Thanks for replying. I have mentioned that my client and server are running on same host. So communication is going through localhost address. I have checked for possible reasons of connection reset by peer error, below are the possible

[issue28985] sqlite3 authorizer codes constants not up to date

2016-12-15 Thread Berker Peksag
Berker Peksag added the comment: Looks good to me. Thanks for the patch, Dingyuan. Since this is an enhancement request, we can only commit your patch to the default branch so I updated the versions field accordingly. -- nosy: +berker.peksag stage: -> patch review versions: -Python

Re: A routine to calc Shannon's info entropy. I'm open to improvements/suggestions.

2016-12-15 Thread Steve D'Aprano
On Fri, 16 Dec 2016 09:21 am, DFS wrote: > Code is based on the formula and results here: > http://www.shannonentropy.netmark.pl [...] > Seems to work fine. > > Any suggestions to improve the code? - Separate the calculation logic from the display logic as much as practical. - Modular

Re: just started

2016-12-15 Thread Chris Angelico
On Fri, Dec 16, 2016 at 3:29 PM, wrote: > 2) if I wish to install extra libraries, in particularly SciPy, what's best > way of doing it? From command line I see the following commands: pip3 and > pip3.5. I guess pip3.5 is for python3.5 ? Can I use pip3 and pip3.5 >

just started

2016-12-15 Thread metal . suomi
Hi everybody, I have just installed python 3.5.2 (downloaded from https://www.python.org/) on my mac (El Capitan). 1) I see from command line that older version of python are already available on my machine (python, python2.6, python2.7, python3, python3.5). I guess some might have been

[issue28689] OpenSSL 1.1.0c test failures

2016-12-15 Thread Ned Deily
Ned Deily added the comment: I added the following text to the "Notes on this release" section for the 3.6.0rc1 release page and will copy it to future 3.6.x release pages until sometime after a fixed 1.1.0 is released: "If you are building Python from source, beware that the OpenSSL 1.1.0c

[issue28985] sqlite3 authorizer codes constants not up to date

2016-12-15 Thread Dingyuan Wang
New submission from Dingyuan Wang: We have the sqlite3.set_authorizer function, where the first argument to its callback is one of the Authorizer Action Codes that the SQLite documentations defines[1]. However, the constants in the sqlite3 module is not up to date. The code in

Re: Unicode script

2016-12-15 Thread MRAB
On 2016-12-15 21:57, Terry Reedy wrote: On 12/15/2016 1:06 PM, MRAB wrote: On 2016-12-15 16:53, Steve D'Aprano wrote: Suppose I have a Unicode character, and I want to determine the script or scripts it belongs to. For example: U+0033 DIGIT THREE "3" belongs to the script "COMMON"; U+0061

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-15 Thread R. David Murray
R. David Murray added the comment: Sure the comments can be updated. Some of them elsewhere have been already. The reason for the email library to have a validation function is that it has an 'SMTP' policy that is designed to produce valid SMTP messages when the message is serialized. (It

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-15 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, Thanks for the enlightment. I never figured that there was a send_message function XD. Never needed it and it's true that the example in the email library use sendmail and not send_message.

[issue28794] inspect.isasyncgen and inspect.isasyncgenfunction aren't documented

2016-12-15 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, but these two functions have already been documented in 78c8f450b84c. Closing this as 'out of date'. -- nosy: +berker.peksag resolution: -> out of date stage: commit review -> resolved status: open -> closed type: -> enhancement

[issue28972] Document all "python -m" utilities

2016-12-15 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi, I believe it's already done. The only thing that people tends to forget is that doing python -m "module.script(.py)" is only doing the equivalent of "python module/script.py". I believe it's clear though ;

[issue28983] Python 3.5.2 won't install on my computer

2016-12-15 Thread Rhesa Browning
Rhesa Browning added the comment: I went through your instructions without any improvement. I first uninstalled the program. Then I reinstalled without the items that you listed the tcl/tk and pip. The error message still came up just like before. Then I typed the two programs you gave me

Re: The right way to 'call' a class attribute inside the same class

2016-12-15 Thread Chris Angelico
On Fri, Dec 16, 2016 at 11:36 AM, Erik wrote: > On 12/12/16 23:23, Chris Angelico wrote: >> >> In JavaScript, it's normal to talk about "calling a function as a >> constructor". When you do, there is a 'this' object before you start. > > > No there isn't. There is an

[issue28982] multiprocessing.Queue.get(block=True, timeout=0) always raises queue.Empty

2016-12-15 Thread Josh Rosenberg
Josh Rosenberg added the comment: That argument combination appears to be undefined in the docs, the only cases covered are: block truthy, timeout is None block truthy, timeout is positive block falsy, (timeout unspecified) The case of block truthy, timeout <= 0 is not documented. Saying

[issue28984] json.dump + indent creates trailing extra spaces

2016-12-15 Thread Ned Deily
Ned Deily added the comment: I agree with Josh's assessment. Sorry! -- nosy: +ned.deily resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue28969] lru_cache is not threadsafe

2016-12-15 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___

[issue28984] json.dump + indent creates trailing extra spaces

2016-12-15 Thread Josh Rosenberg
Josh Rosenberg added the comment: This is documented behavior for Python 2 ( https://docs.python.org/2/library/json.html#basic-usage ): >Note: Since the default item separator is ', ', the output might include >trailing whitespace when indent is specified. You can use separators=(',', ': >')

Re: The right way to 'call' a class attribute inside the same class

2016-12-15 Thread Erik
On 12/12/16 23:23, Chris Angelico wrote: In JavaScript, it's normal to talk about "calling a function as a constructor". When you do, there is a 'this' object before you start. No there isn't. There is an implicit binding of a variable called "this" based on the syntactic sugar of whether

Re: The right way to 'call' a class attribute inside the same class

2016-12-15 Thread Erik
On 13/12/16 06:14, Gregory Ewing wrote: Ned Batchelder wrote: if a C++ constructor raises an exception, will the corresponding destructor be run, or not? (No, because it never finished making an object of type T.) So it just leaks any memory that's been allocated by the partially-run

Re: Python constructors have particular semantics2c and ‘Foo.__init__’ doesn't qualify

2016-12-15 Thread Steve D'Aprano
On Fri, 16 Dec 2016 08:09 am, Terry Reedy wrote: > The __init__ function *is* an 'instance method', but not a (bound) > method object. The distinction is important. I admit that 'instance > method' can be confusing if one does not understand the contextual > meaning of the two words. A

[issue28984] json.dump + indent creates trailing extra spaces

2016-12-15 Thread Knut
New submission from Knut: module json python 2.7.12 json.dump(..., indent=4, sort_keys=True) gives me: { "size": { "total": 19106,X "code": 18614,X "data": 492 },X "next_item": 10 } The "X" mark extra trailing space characters which are needless.

[issue28091] Document PEP 525 & 530

2016-12-15 Thread Yury Selivanov
Changes by Yury Selivanov : -- title: Document PEP 525 -> Document PEP 525 & 530 ___ Python tracker ___

[issue28635] Update What's New for 3.6

2016-12-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 418ba3a0f090 by Yury Selivanov in branch '3.6': Issue #28635: asyncio-related fixes and additions. https://hg.python.org/cpython/rev/418ba3a0f090 New changeset 83eb8053a4e1 by Yury Selivanov in branch 'default': Merge 3.6 (issue #28635)

[issue28983] Python 3.5.2 won't install on my computer

2016-12-15 Thread Steve Dower
Steve Dower added the comment: (For anyone who comes here later, those last two commands are specially crafted for this situation based on the attached log files. You'll likely need different commands for whatever your situation is.) -- ___ Python

[issue28983] Python 3.5.2 won't install on my computer

2016-12-15 Thread Steve Dower
Steve Dower added the comment: It looks like you have a partial install there, possibly from an earlier version. Do you see a "Python" entry in Programs and Features? If so, running a Repair on that may help, or removing it. If you don't see another entry there, installing Python without

[issue28090] Document PEP 530

2016-12-15 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one, the issue was resolved as part of #28091. -- priority: deferred blocker -> normal resolution: -> fixed stage: needs patch -> resolved status: open -> closed superseder: -> Document PEP 525 ___

[issue28091] Document PEP 525

2016-12-15 Thread Yury Selivanov
Yury Selivanov added the comment: Pushed. Thanks a lot, Eric, very good job! (BTW, please enable trailing whitespace trimming in your editor) Ned, maybe you want to cherry-pick this commit to 3.6.0, but I guess most people just use docs.python.org, so it's not that important. --

[issue28091] Document PEP 525

2016-12-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 78c8f450b84c by Yury Selivanov in branch '3.6': Issue #28091: Document PEP 525 & PEP 530. https://hg.python.org/cpython/rev/78c8f450b84c New changeset 6bf84e661e69 by Yury Selivanov in branch 'default': Merge 3.6 (issue #28091)

[issue28983] Python 3.5.2 won't install on my computer

2016-12-15 Thread eryk sun
Changes by eryk sun : -- components: +Installation, Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware type: performance -> behavior ___ Python tracker

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-15 Thread Maciej Szulik
Maciej Szulik added the comment: I've chatted a bit with David about this feature. Here are some thoughts: - check what SMTP standard says about some validation rules - add validate method, probably into email package -- ___ Python tracker

[issue28983] Python 3.5.2 won't install on my computer

2016-12-15 Thread Rhesa Browning
New submission from Rhesa Browning: When I install Python, I get an error message saying that the python35.dll file doesn't exist on my computer. That is at far as it goes. I have attached a RAR folder with the logs from the times I tried to install. -- files: Python installation

Re: Unicode script

2016-12-15 Thread Terry Reedy
On 12/15/2016 1:06 PM, MRAB wrote: On 2016-12-15 16:53, Steve D'Aprano wrote: Suppose I have a Unicode character, and I want to determine the script or scripts it belongs to. For example: U+0033 DIGIT THREE "3" belongs to the script "COMMON"; U+0061 LATIN SMALL LETTER A "a" belongs to the

Re: Mapping with continguous ranges of keys

2016-12-15 Thread Thomas Nyberg
On 12/15/2016 12:48 PM, Terry Reedy wrote: On 12/15/2016 12:27 PM, Thomas Nyberg wrote: I haven't dealt with a data structure exactly like this, but it's basically a sparse array. A sparse array has at least half missing values. This one has none on the defined domain, but contiguous

[issue28518] execute("begin immediate") throwing OperationalError

2016-12-15 Thread Aviv Palivoda
Aviv Palivoda added the comment: I think that adding Serhiy patch in addition to the documentation improvement in issue #8145 would be the best way to proceed. This will insure no regression problems. We can add a warning when someone try to use BEGIN, ROLLBACK, SAVEPOINT, and RELEASE without

Re: Python constructors have particular semantics, and ‘Foo.__init__’ doesn't qualify

2016-12-15 Thread Terry Reedy
On 12/15/2016 2:04 PM, Ian Kelly wrote: On Thu, Dec 15, 2016 at 11:05 AM, Terry Reedy wrote: On 12/14/2016 11:14 PM, Thomas 'PointedEars' Lahn wrote: According to , “Foo.__init__” is _not_ an instance method.

Re: Mapping with continguous ranges of keys

2016-12-15 Thread Terry Reedy
On 12/15/2016 12:27 PM, Thomas Nyberg wrote: On 12/15/2016 09:06 AM, Steve D'Aprano wrote: Has anyone dealt with data like this and could give a recommendation of the right data structure to use? I haven't dealt with a data structure exactly like this, but it's basically a sparse array. A

[issue28982] multiprocessing.Queue.get(block=True, timeout=0) always raises queue.Empty

2016-12-15 Thread Ryan Brindley
New submission from Ryan Brindley: Hey dev team, According to the following test, `q.get(True, 0)` always raises queue.Empty. from multiprocessing import Queue q = Queue() q.put('foo') q.get(True, 0) # raises Empty This result throws me off as I was expecting a similar result to the

Re: Mapping with continguous ranges of keys

2016-12-15 Thread Terry Reedy
On 12/15/2016 12:06 PM, Steve D'Aprano wrote: I have some key:value data where the keys often are found in contiguous ranges with identical values. For example: {1: "foo", 2: "foo", 3: "foo", # same for keys 4 through 99 100: "foo", 101: "bar", 102: "bar", 103: "foobar", 104: "bar",

[issue28982] multiprocessing.Queue.get(block=True, timeout=0) always raises queue.Empty

2016-12-15 Thread Ned Deily
Changes by Ned Deily : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing

RE: Re: Install Problem

2016-12-15 Thread Rhesa Browning
Eryk sun. I have not been able to find the temp folder. I am doing this on a work computer and don't have access to all the folders. Some are hidden. -Original Message- From: eryk sun [mailto:eryk...@gmail.com] Sent: Tuesday, December 13, 2016 3:49 PM To: Python-list@python.org Cc:

[issue26919] on Android python fails to decode/encode command line arguments

2016-12-15 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

Re: Re: Install Problem

2016-12-15 Thread eryk sun
On Thu, Dec 15, 2016 at 8:24 PM, Rhesa Browning wrote: > I have not been able to find the temp folder. I am doing this on a work > computer > and don't have access to all the folders. Some are hidden. Enter %temp% in Explorer's location bar or the Win+R dialog. --

A comparatively efficient software for embedding secret information bits into nataural language texts

2016-12-15 Thread Mok-Kong Shen
WORDLISTTEXTSTEGANOGRAPHY is a new software (employing an extensive English word list) which, while performing linguistic steganography, also involves pseudo-random separation of the word list into two sublists (for denoting 0 and 1 bits) that are dependent on dynamic session-key materials, thus

[issue28794] inspect.isasyncgen and inspect.isasyncgenfunction aren't documented

2016-12-15 Thread Emanuel Barry
Emanuel Barry added the comment: LGTM. Thanks for the patch! -- nosy: +ebarry stage: -> commit review ___ Python tracker ___

[issue26919] on Android python fails to decode/encode command line arguments

2016-12-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: Forgot the issue number in the commit message for the default branch, the corresponding changeset is 80a041d39c20. -- ___ Python tracker

[issue26919] on Android python fails to decode/encode command line arguments

2016-12-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset e5360d413ce4 by Xavier de Gaye in branch '3.6': Issue #26919: On Android, operating system data is now always encoded/decoded https://hg.python.org/cpython/rev/e5360d413ce4 -- nosy: +python-dev ___

Re: Unicode script

2016-12-15 Thread Terry Reedy
On 12/15/2016 11:53 AM, Steve D'Aprano wrote: Suppose I have a Unicode character, and I want to determine the script or scripts it belongs to. For example: U+0033 DIGIT THREE "3" belongs to the script "COMMON"; U+0061 LATIN SMALL LETTER A "a" belongs to the script "LATIN"; U+03BE GREEK SMALL

[issue26919] on Android python fails to decode/encode command line arguments

2016-12-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: The patch fixes also the following errors in test_warnings: == FAIL: test_nonascii (test.test_warnings.CEnvironmentVariableTests)

Re: Python constructors have particular semantics, and ‘Foo.__init__’ doesn't qualify

2016-12-15 Thread Ian Kelly
On Thu, Dec 15, 2016 at 11:05 AM, Terry Reedy wrote: > On 12/14/2016 11:14 PM, Thomas 'PointedEars' Lahn wrote: > >> According to >> , >> “Foo.__init__” is _not_ an instance method. Were it an instance >> method,

Re: Problem running Python 3.5.2 on school network PC

2016-12-15 Thread Wildman via Python-list
On Thu, 15 Dec 2016 11:11:51 -0500, Jed Mack wrote: > We are having a problem running Python 3.5.2 on Windows 10 x64 computers, > which are members of a school network. > > > > The program seems to install correctly, but when we try to run the program > it stops and give an error message

Reading python list as a newsgroup (was ...)

2016-12-15 Thread Terry Reedy
On 12/15/2016 6:23 AM, skybuck2...@hotmail.com wrote: Anyway... my ISP has problems accessing their newsserver. ... If you want to read python-list as a news group, you might try news.gmane.org. About once a year, it goes down for a few hours to a day, but has otherwise been dependable. I

Re: Problem running Python 3.5.2 on school network PC

2016-12-15 Thread Tim Golden
On 15/12/2016 16:11, Jed Mack wrote: We are having a problem running Python 3.5.2 on Windows 10 x64 computers, which are members of a school network. The program seems to install correctly, but when we try to run the program it stops and give an error message saying: *Fatal Python error:

Re: Problem running Python 3.5.2 on school network PC

2016-12-15 Thread Terry Reedy
On 12/15/2016 11:11 AM, Jed Mack wrote: We are having a problem running Python 3.5.2 on Windows 10 x64 computers, which are members of a school network. The program seems to install correctly, Is Python installed on each machine or on a network server? Rather precisely, how was Python

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I asked a question about the change in _PyObjectDict_SetItem. It is not clear to me. -- ___ Python tracker ___

Re: OT - "Soft" ESC key on the new MacBook Pro

2016-12-15 Thread Peter Pearson
On Wed, 14 Dec 2016 11:50:30 -0600, Skip Montanaro wrote: > On Wed, Dec 14, 2016 at 11:40 AM, Peter Pearson > wrote: >> Train your fingers to use C-[. > > As I recall, the location of the Ctrl key was one of the differences > between Sun and PC101 keyboards. Doesn't

[issue28981] distutils/check.py overzealous catch block hides errors

2016-12-15 Thread Matt Bogosian
New submission from Matt Bogosian: >From (e.g) >https://github.com/python/cpython/blob/2.7/Lib/distutils/command/check.py#L145: {{{ try: parser.parse(data, document) except AttributeError as e: # <- this could happen anywhere inside parser.parse

Re: Python constructors have particular semantics, and ‘Foo.__init__’ doesn't qualify

2016-12-15 Thread Terry Reedy
On 12/14/2016 11:14 PM, Thomas 'PointedEars' Lahn wrote: According to , “Foo.__init__” is _not_ an instance method. Were it an instance method, the following would not happen: This link points to subsection 9.3.4. Method

Re: Unicode script

2016-12-15 Thread MRAB
On 2016-12-15 16:53, Steve D'Aprano wrote: Suppose I have a Unicode character, and I want to determine the script or scripts it belongs to. For example: U+0033 DIGIT THREE "3" belongs to the script "COMMON"; U+0061 LATIN SMALL LETTER A "a" belongs to the script "LATIN"; U+03BE GREEK SMALL

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think this can be tested without _testcapi. See an example in issue28894. -- ___ Python tracker ___

Re: Unicode script

2016-12-15 Thread Joel Goldstick
I think this might be what you want: https://docs.python.org/3/howto/unicode.html#unicode-properties On Thu, Dec 15, 2016 at 11:53 AM, Steve D'Aprano wrote: > Suppose I have a Unicode character, and I want to determine the script or > scripts it belongs to. > > For

Re: Unicode script

2016-12-15 Thread eryk sun
On Thu, Dec 15, 2016 at 4:53 PM, Steve D'Aprano wrote: > Suppose I have a Unicode character, and I want to determine the script or > scripts it belongs to. > > For example: > > U+0033 DIGIT THREE "3" belongs to the script "COMMON"; > U+0061 LATIN SMALL LETTER A "a"

Re: Mapping with continguous ranges of keys

2016-12-15 Thread Peter Otten
Steve D'Aprano wrote: > I have some key:value data where the keys often are found in contiguous > ranges with identical values. For example: > > {1: "foo", > 2: "foo", > 3: "foo", > # same for keys 4 through 99 > 100: "foo", > 101: "bar", > 102: "bar", > 103: "foobar", > 104: "bar", >

Re: Mapping with continguous ranges of keys

2016-12-15 Thread Thomas Nyberg
On 12/15/2016 09:06 AM, Steve D'Aprano wrote: Has anyone dealt with data like this and could give a recommendation of the right data structure to use? I haven't dealt with a data structure exactly like this, but it's basically a sparse array. (I'm sure it has a name somewhere in the

Re: Mapping with continguous ranges of keys

2016-12-15 Thread D'Arcy Cain
On 2016-12-15 12:06 PM, Steve D'Aprano wrote: I have about a million or two keys, with a few hundred or perhaps a few thousand distinct values. The size of each contiguous group of keys with the same value can vary from 1 to perhaps a hundred or so. There isn't enough info in your post to be

Mapping with continguous ranges of keys

2016-12-15 Thread Steve D'Aprano
I have some key:value data where the keys often are found in contiguous ranges with identical values. For example: {1: "foo", 2: "foo", 3: "foo", # same for keys 4 through 99 100: "foo", 101: "bar", 102: "bar", 103: "foobar", 104: "bar", 105: "foo", } So in this case, the keys 1

Re: Python3, column names from array - numpy or pandas

2016-12-15 Thread Rhodri James
On 15/12/16 01:56, renjith madhavan wrote: I have a dataset in the below format. id A B C D E 100 1 0 0 0 0 101 0 1 1 0 0 102 1 0 0 0 0 103 0 0 0 1 1 I

Re: Python constructors have particular semantics, and ‘Foo.__init__’ doesn't qualify

2016-12-15 Thread Thomas 'PointedEars' Lahn
Ben Finney wrote: > Chris Angelico writes: >> On Tue, Dec 13, 2016 at 10:17 AM, Ben Finney >> wrote: >> > If the differences didn't matter I would agree that “overly >> > pedantic” is fair. But those differences trip up newcomers. Thinking >> > of

Problem running Python 3.5.2 on school network PC

2016-12-15 Thread Jed Mack
We are having a problem running Python 3.5.2 on Windows 10 x64 computers, which are members of a school network. The program seems to install correctly, but when we try to run the program it stops and give an error message saying: *Fatal Python error: Py_Initialize: unable to load the file

Unicode script

2016-12-15 Thread Steve D'Aprano
Suppose I have a Unicode character, and I want to determine the script or scripts it belongs to. For example: U+0033 DIGIT THREE "3" belongs to the script "COMMON"; U+0061 LATIN SMALL LETTER A "a" belongs to the script "LATIN"; U+03BE GREEK SMALL LETTER XI "ξ" belongs to the script "GREEK". Is

Re: Best attack order for groups of numbers trying to destroy each other, given a victory chance for number to number attack.

2016-12-15 Thread Random832
On Thu, Dec 15, 2016, at 08:31, Dennis Lee Bieber wrote: > As for my posts disappearing: I run with "X-NoArchive" set. I have from > before Google absorbed DejaNews. Back then, most news-servers expired > posts > on some periodic basis (my ISP tended to hold text groups for 30 days or > so,

[issue28870] Reduce stack consumption of PyObject_CallFunctionObjArgs() and like

2016-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have tested all three patches with the stack_overflow.py script. The only affected are recursive Python implementations of __call__, __getitem__ and __iter__. unpatched less_stack alloca subfunc test_python_call

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-15 Thread STINNER Victor
STINNER Victor added the comment: I dislike pushing a change written by another core dev, I prefer that he/she directly push it, but we are out of time. Ned asked to first push to Python 3.6 to get a confirmation of buildbots, before being able to ask for a cherry-pick in 3.6.0 final.

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 85be9dcc16a8 by Victor Stinner in branch '3.6': Fix a memory leak in split-table dictionaries https://hg.python.org/cpython/rev/85be9dcc16a8 -- nosy: +python-dev ___ Python tracker

[issue11322] encoding package's normalize_encoding() function is too slow

2016-12-15 Thread STINNER Victor
STINNER Victor added the comment: Oh, while reading Mercurial history, I found a note that I wrote: "It's not exactly the same than encodings.normalize_encoding(): the C function also converts to lowercase." IHMO it's fine to modify encodings.normalize_encoding() to also convert to

[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2016-12-15 Thread Matt Bogosian
Changes by Matt Bogosian : -- nosy: +posita ___ Python tracker ___ ___

[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-12-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset ecd218c41cd4 by Victor Stinner in branch 'default': Use _PyDict_NewPresized() in _PyStack_AsDict() https://hg.python.org/cpython/rev/ecd218c41cd4 -- ___ Python tracker

[issue28979] What's New entry on compact dict mentions "faster" implementation

2016-12-15 Thread Ned Deily
Changes by Ned Deily : -- priority: normal -> release blocker ___ Python tracker ___ ___

[issue28976] incorrect description that dose not conform to the actual behavior

2016-12-15 Thread woo yoo
Changes by woo yoo : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue28976] incorrect description that dose not conform to the actual behavior

2016-12-15 Thread woo yoo
woo yoo added the comment: I think i understand you now.My english needs to improve.Thanks for your patience. -- ___ Python tracker ___

  1   2   3   >