Re: Obtain javascript result

2016-10-21 Thread eproser
Yes, the page is http://www.betexplorer.com/next/soccer/ and You have to open any match You want. This pop-up new windows with match detail and odds (if present). I try to extract home team, away team, results, and bet365's bookmaker odds. I can't continue in my fun analyses because the odds

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2016-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since no Unicode mapping table is found at the Unicode website, we need at least the link to public official document that specifies the encoding. If VN3 is a subset of VN2, which itself is a subset of VN1, VN1 definitely looks the most preferable choice

[issue28496] Mark up constants 0, 1, -1 in C API docs

2016-10-21 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Serhiy, I think you can commit it. -- nosy: +matrixise stage: patch review -> commit review ___ Python tracker ___

dll files missings ....how to solve this problem

2016-10-21 Thread mohammed iqtefan
hi i installed python 3.5.2 but i coudln't run it because i always have this msg api-ms-win-crt-conio-l1-1-0.dll is missing and its not the only dll file that missing there is dozens more help me plz -- https://mail.python.org/mailman/listinfo/python-list

[issue28439] Remove redundant checks in PyUnicode_EncodeLocale and PyUnicode_DecodeLocaleAndSize

2016-10-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Added comments on Rietveld. Xiang, seem you have provided wrong e-mail address for Rietveld. I constantly get error messages "Undelivered Mail Returned to Sender" after pushing comments to patches that your are following. I suppose you don't receive

[issue28492] C implementation of asyncio.Future doesn't set value of StopIteration correctly

2016-10-21 Thread Yury Selivanov
Changes by Yury Selivanov : -- stage: commit review -> resolved ___ Python tracker ___

[issue28281] Remove year limits from calendar

2016-10-21 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Who can merge this patch ? -- nosy: +matrixise ___ Python tracker ___ ___

[issue28208] update sqlite to 3.14.2

2016-10-21 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: how to build the osx installer ? Thank you -- ___ Python tracker ___ ___

ReGex with python

2016-10-21 Thread ...
Hi, I have a problem I could not solve, ask for your cooperation. "show_app_install": true, "static_root": "//instagramstatic-a.akamaihd.net/h1", "platform": "web", "activity_counts": null, "hostname": "www.instagram.com", "entry_data": {"PostPage": [{"media": {"caption_is_edited": false,

Re: How to handle errors?

2016-10-21 Thread Wildman via Python-list
On Fri, 21 Oct 2016 16:14:41 +1100, Steve D'Aprano wrote: > On Fri, 21 Oct 2016 11:03 am, Wildman wrote: > >> On Thu, 20 Oct 2016 12:48:28 -0700, SS wrote: >> >>> The following script works fine: >>> >>> #!/bin/python >> >> I meant to include this with my other post but I forgot it. >> >>

[issue28482] test_typing fails if asyncio unavailable

2016-10-21 Thread Martin Panter
Martin Panter added the comment: I will this to Git Hub when I get a chance to get set up, if that helps though :) -- ___ Python tracker ___

[issue23214] BufferedReader.read1(size) signature incompatible with BufferedIOBase.read1(size=-1)

2016-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2af6d94de492 by Martin Panter in branch 'default': Issue #23214: Fix formatting of -1 https://hg.python.org/cpython/rev/2af6d94de492 -- ___ Python tracker

Re: dll files missings ....how to solve this problem

2016-10-21 Thread eryk sun
On Fri, Oct 21, 2016 at 4:05 PM, Dennis Lee Bieber wrote: > On Fri, 21 Oct 2016 15:00:58 +, mohammed iqtefan > declaimed the following: > >>i installed python 3.5.2 >> ... >>api-ms-win-crt-conio-l1-1-0.dll is missing >>and its not the only dll

[issue28482] test_typing fails if asyncio unavailable

2016-10-21 Thread Guido van Rossum
Guido van Rossum added the comment: Martin can you verify that this worked? -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker

Building manylinux wheels & auditwheel

2016-10-21 Thread Patrick Young
Hello, I've been exploring building manylinux wheels and trying to use auditwheel to vendorize my shared libraries. Essentially, I can't seem to get "auditwheel repair" to fix up my wheel that has some dependencies that need to be packed up. I've described my problem at

[issue28499] Logging module documentation needs a rework.

2016-10-21 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list

[issue28482] test_typing fails if asyncio unavailable

2016-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3363f684a2d by Guido van Rossum in branch '3.5': Issue #28482: Skip a few test_typing tests if asyncio unavailable https://hg.python.org/cpython/rev/c3363f684a2d New changeset 8f3b4779afaf by Guido van Rossum in branch '3.6': Issue #28482: Skip a

[issue28439] Remove redundant checks in PyUnicode_EncodeLocale and PyUnicode_DecodeLocaleAndSize

2016-10-21 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks for your review Serhiy. I don't receive the notification. :-( Honestly speaking I miss some notification emails from time to time, but not all. I'll consider choosing another ISP. I have to manually check the Rietveld now to avoid missing any comments.

[issue28499] Logging module documentation needs a rework.

2016-10-21 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Pierre, Thank you for your issue and mainly for me ;-) Now, I am really interested by your feedback or the feedback of Florian Strzelecki because he can give us the organization of the sections and maybe we can try to improve the current documentation of

[issue26923] asyncio.gather drops cancellation

2016-10-21 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you, Johannes! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue26796] BaseEventLoop.run_in_executor shouldn't specify max_workers for default Executor

2016-10-21 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you, Hans! -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.6, Python 3.7 ___ Python tracker

[issue26796] BaseEventLoop.run_in_executor shouldn't specify max_workers for default Executor

2016-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 785597e758a1 by Yury Selivanov in branch '3.5': Issue #26796: Don't configure the number of workers for default threadpool executor. https://hg.python.org/cpython/rev/785597e758a1 New changeset 99941cacfc38 by Yury Selivanov in branch '3.6': Merge

[issue23214] BufferedReader.read1(size) signature incompatible with BufferedIOBase.read1(size=-1)

2016-10-21 Thread Martin Panter
Martin Panter added the comment: Modifying the API to accept a keyword argument is not worthwhile IMO. That means modifying modules like http.client and zipfile (which use the wrong keyword name), and user-defined implementations may become incompatible. The question of documentation is

[issue28414] SSL match_hostname fails for internationalized domain names

2016-10-21 Thread Yury Selivanov
Yury Selivanov added the comment: Christian, what's the status on this one? -- ___ Python tracker ___ ___

[issue28482] test_typing fails if asyncio unavailable

2016-10-21 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Martin, I have opened a PR with your patch at python/typing https://github.com/python/typing/pull/304 -- ___ Python tracker

[issue28498] tk busy command

2016-10-21 Thread klappnase
klappnase added the comment: Funny thing, just today I came across the same issue. So far I came up with an a little bit refined version of the OP's suggestions. Until now I have tested this with Python-2.7.9 and tk-8.6.0 on debian Jessie, I think the same code should work for Python-3 , too.

[issue28498] tk busy command

2016-10-21 Thread klappnase
klappnase added the comment: Oops, just made a quick test with Python3, and found that I had missed that types.StringType is no longer present. So to be compatible with Python3 the busy_configure() func ought to look like: def busy_configure(self, cnf=None, **kw): if kw:

[issue28396] Remove *.pyo references from man page

2016-10-21 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch, Ville! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

Re: dll files missings ....how to solve this problem

2016-10-21 Thread Michael Torrie
On 10/21/2016 09:00 AM, mohammed iqtefan wrote: > hi > > i installed python 3.5.2 but i coudln't run it because i always have > this msg > > api-ms-win-crt-conio-l1-1-0.dll is missing > > and its not the only dll file that missing there is dozens more The api-ms-win-crt-conio dll is part of

[issue25152] venv documentation doesn't tell you how to specify a particular version of python

2016-10-21 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue28396] Remove *.pyo references from man page

2016-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c298486d879 by Brett Cannon in branch '3.5': Issue #28396: Remove any mention of .pyo files from the man page. https://hg.python.org/cpython/rev/0c298486d879 New changeset b33c7055220e by Brett Cannon in branch '3.6': Merge (issue #28396)

[issue25152] venv documentation doesn't tell you how to specify a particular version of python

2016-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9feff7ba89b2 by Brett Cannon in branch '3.5': Issue #25152: Mention the deprecation of pyvenv https://hg.python.org/cpython/rev/9feff7ba89b2 New changeset 126ff1f3b6cd by Brett Cannon in branch '3.6': Merge (issue #25152)

[issue28499] Logging module documentation needs a rework.

2016-10-21 Thread Pierre Bousquie
New submission from Pierre Bousquie: At pyconf-fr 2016 Florian Strzelecki (@Exirel) made a great talk on how to make good documentation. At one time he asked "python logging doc?, did you realy found it clear and helpfull?" clear answer from the crowd: not at all. Stephane Wirtel ask us (the

[issue28498] tk busy command

2016-10-21 Thread Miguel
New submission from Miguel: tcl tk 8.6.6 has a new busy command. The new tkinter library doesn't provide an interface for this command. https://www.tcl.tk/man/tcl/TkCmd/busy.htm The solution is to add to the class Misc of tkinter these methods: def tk_busy(self, *args, **kw):

[issue28500] pep 525/asyncio: Handle when async generators are GCed from another thread

2016-10-21 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue28500] pep 525/asyncio: Handle when async generators are GCed from another thread

2016-10-21 Thread Yury Selivanov
New submission from Yury Selivanov: Proxy for https://github.com/python/asyncio/pull/447 -- assignee: yselivanov components: asyncio messages: 279154 nosy: gvanrossum, yselivanov priority: normal severity: normal stage: resolved status: open title: pep 525/asyncio: Handle when async

[issue28497] future in tkinter

2016-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not Python issue, this is an issue of the future module. _default_root is dynamic attribute, it shouldn't be imported. And it is is private undocumented implementation detail, be careful with its using. -- nosy: +serhiy.storchaka resolution:

[issue28208] update sqlite to 3.14.2

2016-10-21 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- stage: needs patch -> commit review ___ Python tracker ___

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2016-10-21 Thread Antti Haapala
Antti Haapala added the comment: I found the full document on SlideShare: http://www.slideshare.net/sacobat/tcvn-5712-1993-cng-ngh-thng-tin-b-m-chun-8bit-k-t-vit-dng-trong-trao-i-thng-tin As far as I can understand, they're "subsets" of each other only in the sense that VN1 has the widest

[issue28497] future in tkinter

2016-10-21 Thread Miguel
New submission from Miguel: I load the future package. In the new package installed here: python2.7/dist-packages/tkinter/__init__.py it's not possible to import _default_root. One possible solution is to create a method in tkinter module that returns the _default_root object. ``` def

[issue28482] test_typing fails if asyncio unavailable

2016-10-21 Thread Guido van Rossum
Guido van Rossum added the comment: Ivan, if you want to apply it upstream be my guest! -- ___ Python tracker ___

[issue24882] ThreadPoolExecutor doesn't reuse threads until #threads == max_workers

2016-10-21 Thread David MacKenzie
David MacKenzie added the comment: This issue seems to overlap with 14119. -- ___ Python tracker ___ ___

[issue28213] asyncio SSLProtocol _app_transport is private

2016-10-21 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one. I don't think we want to expose/document _app_transport. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

Re: Obtain javascript result

2016-10-21 Thread Michael Torrie
On 10/21/2016 07:29 AM, epro...@gmail.com wrote: > Hello NG. > > I'm new in Python for fun. > > I have a html page (I load it by BeautifulSoap) that contain > also this javascript code: > ... > > $(document).ready(function() { > matchdetails_init('rLu2Xsdi', '1x2'); > }); > > ... >

Re: Obtain javascript result

2016-10-21 Thread bob gailer
On 10/21/2016 11:07 AM, epro...@gmail.com wrote: Yes, the page is http://www.betexplorer.com/next/soccer/ and You have to open any match You want. This pop-up new windows with match detail and odds (if present). I try to extract home team, away team, results, and bet365's bookmaker odds. I

[issue28498] tk busy command

2016-10-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka components: +Library (Lib) nosy: +serhiy.storchaka stage: -> needs patch type: -> enhancement versions: -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6

[issue28500] pep 525/asyncio: Handle when async generators are GCed from another thread

2016-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3908f432d0ac by Yury Selivanov in branch '3.6': Issue #28500: Fix asyncio to handle async gens GC from another thread. https://hg.python.org/cpython/rev/3908f432d0ac New changeset 3c82fa5b7b52 by Yury Selivanov in branch 'default': Merge 3.6 (issue

[issue24882] ThreadPoolExecutor doesn't reuse threads until #threads == max_workers

2016-10-21 Thread David MacKenzie
David MacKenzie added the comment: If each worker thread ties up other resources in an application, such as handles to server connections, conserving threads could have a significant impact. That's the situation for an application I am involved with. I've written and tested a patch to make

[issue28430] asyncio: C implemeted Future cause Tornado test fail

2016-10-21 Thread Yury Selivanov
Yury Selivanov added the comment: The patch looks good. 2 things: - It appears it also touches Misc/NEWS a bit too much. Please make sure to not to commit that. - I'd also add a comment explaining why we ignore values passed to FI.send() and simply send None. The reason is how

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2016-10-21 Thread Antti Haapala
Antti Haapala added the comment: Ah there was something that I overlooked before - the VN1 and VN2 both have combining accents too. If I read correctly, the main letter should precede the combining character, just as in Unicode; VN3 seems to lack combining characters altogether. Thus, for

[issue28212] Closing server in asyncio is not efficient

2016-10-21 Thread Yury Selivanov
Yury Selivanov added the comment: > Seems that its not so hard - in loop.remove_reader add If you have a patch in mind, please create a PR on github.com/python/asyncio -- ___ Python tracker

Re: Obtain javascript result

2016-10-21 Thread justin walters
On Fri, Oct 21, 2016 at 8:07 AM, wrote: > Yes, > > the page is http://www.betexplorer.com/next/soccer/ > and You have to open any match You want. > > This pop-up new windows with match detail and odds > (if present). > > I try to extract home team, away team, results, and >

[issue28482] test_typing fails if asyncio unavailable

2016-10-21 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue26923] asyncio.gather drops cancellation

2016-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset b1aa485fad1b by Yury Selivanov in branch '3.5': Issue #26923: Fix asyncio.Gather to refuse being cancelled once all children are done. https://hg.python.org/cpython/rev/b1aa485fad1b New changeset b0af901b1e2a by Yury Selivanov in branch '3.6':

[issue24658] open().write() fails on 2 GB+ data (OS X)

2016-10-21 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: upload a new version -- Added file: http://bugs.python.org/file45178/issue24658-3-3.6.diff ___ Python tracker ___

[issue28482] test_typing fails if asyncio unavailable

2016-10-21 Thread Martin Panter
Martin Panter added the comment: Yep, working well. Thanks Guido & Ivan. -- stage: commit review -> resolved ___ Python tracker ___

[issue27321] Email parser creates a message object that can't be flattened

2016-10-21 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: While I was reviewing https://gitlab.com/mailman/mailman/merge_requests/197/diffs I noticed the KeyError and it made me thing "hmm, I wonder if this should be turned into one of the email package errors"? -- ___

[issue26240] Docstring of the subprocess module should be cleaned up

2016-10-21 Thread Martin Panter
Martin Panter added the comment: Here are corresponding patches for 3.5 and 2.7. -- stage: patch review -> commit review Added file: http://bugs.python.org/file45179/subprocess3-3.5.patch ___ Python tracker

[issue27755] Retire DynOptionMenu with a ttk Combobox

2016-10-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I did some experiments that cleared up some previous puzzlements about seemingly inconsistent behavior between interactive commands and those in scripts. The following prints '.mycombo' twice, on two lines, after selecting 'beta'. import tkinter as tk from

Internet Data Handling » mailbox

2016-10-21 Thread Adam Jensen
The mailbox library documentation seems to be a little weak. In this example: https://docs.python.org/2.7/library/mailbox.html#examples import mailbox for message in mailbox.mbox('~/mbox'): subject = message['subject'] # Could possibly be None. if subject and 'python' in

[issue27755] Retire DynOptionMenu with a ttk Combobox

2016-10-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Your ping got me to look at the doc for tk_optionMenu, which is a function rather than a widget (http://www.tcl.tk/man/tcl8.6/TkCmd/optionMenu.htm), the code for tkinter.OptionMenu (the only accurate doc I know of), which is a widget with the function API,

[issue23214] BufferedReader.read1(size) signature incompatible with BufferedIOBase.read1(size=-1)

2016-10-21 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26240] Docstring of the subprocess module should be cleaned up

2016-10-21 Thread Martin Panter
Changes by Martin Panter : Added file: http://bugs.python.org/file45180/subprocess3-2.7.patch ___ Python tracker ___

[issue28281] Remove year limits from calendar

2016-10-21 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- stage: needs patch -> commit review ___ Python tracker ___

[issue26620] Fix ResourceWarning warnings in test_urllib2_localnet

2016-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset d76fccbad014 by Martin Panter in branch '3.5': Issue #26620: Fix ResourceWarning in test_urllib2_localnet https://hg.python.org/cpython/rev/d76fccbad014 -- ___ Python tracker

[issue28435] test_urllib2_localnet.ProxyAuthTests fails with no_proxy and NO_PROXY env

2016-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8f4424bdeadc by Martin Panter in branch '2.7': Issue #28435: Avoid no_proxy environment variable interfering with tests https://hg.python.org/cpython/rev/8f4424bdeadc New changeset dc9ad44125de by Martin Panter in branch '3.5': Issue #28435: Avoid

Re: Obtain javascript result

2016-10-21 Thread eproser
Many Thanks to everybody. -- https://mail.python.org/mailman/listinfo/python-list

[issue20847] asyncio docs should call out that network logging is a no-no

2016-10-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Hi, I added to asyncio logging doc that the log file should point to a file on local filesystem. Please review. Thanks :) -- keywords: +patch nosy: +Mariatta Added file: http://bugs.python.org/file45182/issue20847.patch

[issue28501] [Patch] Make os.umask() optional

2016-10-21 Thread Ed Schouten
New submission from Ed Schouten: CloudABI is a POSIX-like strongly sandboxed runtime environment, for which we got Python to work (https://mail.python.org/pipermail/python-dev/2016-July/145708.html). Patches for this are slowly being upstreamed. As CloudABI uses a capability-based security

Re: Internet Data Handling » mailbox

2016-10-21 Thread MRAB
On 2016-10-22 03:43, Adam Jensen wrote: The mailbox library documentation seems to be a little weak. In this example: https://docs.python.org/2.7/library/mailbox.html#examples import mailbox for message in mailbox.mbox('~/mbox'): subject = message['subject'] # Could possibly be None.

Re: Internet Data Handling » mailbox

2016-10-21 Thread Ben Finney
Adam Jensen writes: > import mailbox > for message in mailbox.mbox('~/mbox'): > subject = message['subject'] # Could possibly be None. > if subject and 'python' in subject.lower(): > print subject > > What is the structure of "message"? You're binding

[issue28435] test_urllib2_localnet.ProxyAuthTests fails with no_proxy and NO_PROXY env

2016-10-21 Thread Martin Panter
Martin Panter added the comment: I altered the comment (looks like it was a copy from code forcing proxies to be bypassed). Also, I didn’t port the second no_proxy fix to 2.7; it looks like there is a different workaround there which is not affected by the environment. -- resolution:

[issue27701] [posixmodule] [Refactoring patch] Simply call into *at() functions unconditionally when present

2016-10-21 Thread Ed Schouten
Ed Schouten added the comment: Attached is an updated version of the patch that applies cleanly against Python 3.6.0b2. -- Added file: http://bugs.python.org/file45181/27701.diff ___ Python tracker

[issue28502] [Patch] Make os.chdir() optional

2016-10-21 Thread Ed Schouten
New submission from Ed Schouten: CloudABI is a POSIX-like strongly sandboxed runtime environment, for which we got Python to work (https://mail.python.org/pipermail/python-dev/2016-July/145708.html). Patches for this are slowly being upstreamed. CloudABI uses a capability-based security

Re: function call questions

2016-10-21 Thread Anssi Saari
"Frank Millman" writes: > Let's see if I can explain. I am using 't' and 'r' instead of 'tree' > and 'root', but otherwise it is the same as your original example. > t = {} r = t id(t) > 2542235910088 id(r) > 2542235910088 > > At this point, t and r are

[issue28099] Drop Mac OS X Tiger support in Python 3.6

2016-10-21 Thread Ned Deily
Ned Deily added the comment: With the recent changes (fd9a4bd16587) in Issue28092 to make the dtrace stubs static inline, 3.6 once again compiles and links with the Xcode 2.5 gcc4.0 on Mac OS X 10.4. We can look at this again for 3.7. -- resolution: -> out of date stage: ->

[issue18219] csv.DictWriter is slow when writing files with large number of columns

2016-10-21 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : Added file: http://bugs.python.org/file45170/issue18219v4.patch ___ Python tracker ___

[issue28496] Mark up constants 0, 1, -1 in C API docs

2016-10-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch marks up constants 0, 1 and -1 (mostly return values) in C API documentation as literal test. Most occurrences already are marked up. It also changes :const:`ULONG_MAX + 1` to ``ULONG_MAX + 1``, since this is not a constant name.

Re: HTML templating tools

2016-10-21 Thread lists
+1 for Jinja2. I love that shit On 2016-10-20 23:16, Adrian Petrescu wrote: On Thu, 20 Oct 2016 11:34:36 +0200, Tony van der Hoff wrote: Can anyone recommend a suitable replacement (preferably compatible with htmltmpl)? I don't think anything is going to be compatible with htmltmpl, but

tkinter callbacks stop working

2016-10-21 Thread namenobodywants
hello pythonistas the script below plays tictactoe; everything works; but if i replace the block at the bottom if True: with this instead def function(): function() then the tkinter callbacks don't work anymore; can anybody make sense of this? thanks if you can help peace stm

[issue28410] Add convenient C API for "raise ... from ..."

2016-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 81666d3e4a37 by Serhiy Storchaka in branch '3.5': Issue #28410: Keep the traceback of original exception in _PyErr_ChainExceptions(). https://hg.python.org/cpython/rev/81666d3e4a37 New changeset 23a1d9ec35d5 by Serhiy Storchaka in branch '3.6':

Obtain javascript result

2016-10-21 Thread eproser
Hello NG. I'm new in Python for fun. I have a html page (I load it by BeautifulSoap) that contain also this javascript code: ... $(document).ready(function() { matchdetails_init('rLu2Xsdi', '1x2'); }); ... Please, can You me to aim on the right way to obtain into a Python data

[issue28495] MagickMock created by patсh annotation refuses to apply function side_effect at second time

2016-10-21 Thread R. David Murray
R. David Murray added the comment: Your test file only compiles the function definitions, it doesn't actually run any code. If I convert it into a unittest, it works as expected. If this is minimized example of code where you actually found a problem, I suspect there's something else wrong

[issue28447] socket.getpeername() failure on broken TCP/IP connection

2016-10-21 Thread R. David Murray
R. David Murray added the comment: The socket module is a relatively thin wrapper around the C socket library. 'getpeername' is inspecting the *current* peer of the socket, and if there is no current peer, there is no current peer name. Retaining information the socket library does not is

[issue18219] csv.DictWriter is slow when writing files with large number of columns

2016-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Shouldn't docs changes and new tests be added to 3.5? -- ___ Python tracker ___

[issue18219] csv.DictWriter is slow when writing files with large number of columns

2016-10-21 Thread R. David Murray
R. David Murray added the comment: Serhiy: I know you prefer applying test changes to the maint version, and I don't disagree, but there are others who prefer not to and we really don't have an official policy on it at this point. (We used to say no, a few years ago :) The doc change looks

[issue28214] Improve exception reporting for problematic __set_name__ attributes

2016-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7e1e39ccddd by Serhiy Storchaka in branch '3.6': Issue #28214: Improved exception reporting for problematic __set_name__ https://hg.python.org/cpython/rev/f7e1e39ccddd New changeset 7c3ec24f4582 by Serhiy Storchaka in branch 'default': Issue

[issue28410] Add convenient C API for "raise ... from ..."

2016-10-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue28214] Improve exception reporting for problematic __set_name__ attributes

2016-10-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue18219] csv.DictWriter is slow when writing files with large number of columns

2016-10-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks David. I uploaded patch to address your concern with the docs. Can you please check? Serhiy, with regards to applying docs and test to 3.5, does that require a different patch than what I have? Thanks. -- Added file:

[issue28410] Add convenient C API for "raise ... from ..."

2016-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 969c8bfe8872 by Serhiy Storchaka in branch '3.6': Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raising https://hg.python.org/cpython/rev/969c8bfe8872 New changeset 2119cb0beace by Serhiy Storchaka in branch 'default': Issue

[issue24658] open().write() fails on 2 GB+ data (OS X)

2016-10-21 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Victor, could you check the new patch ? -- Added file: http://bugs.python.org/file45177/issue24658-2-3.6.diff ___ Python tracker

[issue28426] PyUnicode_AsDecodedObject can only return unicode now

2016-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Marc-Andre, what are your thoughts about this? -- ___ Python tracker ___

Re: Obtain javascript result

2016-10-21 Thread Bob Gailer
On Oct 21, 2016 9:30 AM, wrote: > > Hello NG. > > I'm new in Python for fun. > > I have a html page (I load it by BeautifulSoap) that contain > also this javascript code: > ... > > $(document).ready(function() { > matchdetails_init('rLu2Xsdi', '1x2'); > }); > > ... >

[issue28439] Remove redundant checks in PyUnicode_EncodeLocale and PyUnicode_DecodeLocaleAndSize

2016-10-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

Re: tkinter callbacks stop working

2016-10-21 Thread Peter Otten
namenobodywa...@gmail.com wrote: > hello pythonistas > > the script below plays tictactoe; everything works; but if i replace the > block at the bottom > > if True: > > > with this instead > > def function(): Below I use main() instead. > > function() > > then the tkinter

[issue18219] csv.DictWriter is slow when writing files with large number of columns

2016-10-21 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : Added file: http://bugs.python.org/file45169/issue18219v3.patch ___ Python tracker ___

Re: HTML templating tools

2016-10-21 Thread Sayth Renshaw
On Thursday, 20 October 2016 20:51:56 UTC+11, Tony van der Hoff wrote: > For a long time, under Python 2.7, I have been using htmltmpl to > generate htmjl pages programmatically from Python. > > However, htmltmpl is not available for python3, and doesn't look as if > it ever will be. Can anyone

[issue23214] BufferedReader.read1(size) signature incompatible with BufferedIOBase.read1(size=-1)

2016-10-21 Thread STINNER Victor
STINNER Victor added the comment: 2016-10-21 5:17 GMT+02:00 Martin Panter : > The idea of changing the signature is to avoid people thinking it accepts a > keyword argument. See e.g. Issue 25030 for seek(offset, whence=SEEK_SET), > Issue 14586 for truncate(size=None).

Re: function call questions

2016-10-21 Thread Frank Millman
"Anssi Saari" wrote in message news:vg3wph2i3dt@coffee.modeemi.fi... OK, so what happens is that now t references the dictionary with {'a': {}} and r references the empty dict inside that. So when we assign to r again, it's the empty dict inside t (the one accessed by key 'a') that

  1   2   >