[issue25201] lock of multiprocessing.Value is not a keyword-only argument

2015-09-21 Thread Martin Panter
Martin Panter added the comment: I’m not familiar with this module, but I believe “lock” is indeed keyword-only. If you were to try a positional argument, it would be picked up as part of *args: >>> multiprocessing.Value("I") # Default to 0, lock=True >>> multiprocessing.Value("I", False)

Re: Lightwight socket IO wrapper

2015-09-21 Thread Cameron Simpson
On 21Sep2015 12:40, Chris Angelico wrote: On Mon, Sep 21, 2015 at 11:55 AM, Cameron Simpson wrote: On 21Sep2015 10:34, Chris Angelico wrote: If you're going to add sequencing and acknowledgements to UDP, wouldn't it be easier to use TCP

[issue25190] Define StringIO seek offset as code point offset

2015-09-21 Thread Martin Panter
Martin Panter added the comment: I see the _pyio implementation wraps BytesIO with UTF-8 encoding. Perhaps it would be okay to change to UTF-32 encoding (a fixed-length Unicode encoding). That would use more memory, but the C implementation seems to use a Py_UCS4 buffer already. Then you

[issue23177] test_ssl: failures on OpenBSD with LibreSSL

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: I don't care so much of issues introduced by LibreSSL, I don't understand why they broke the API. For me, it doesn't seem right to have a version different if it's a number or if it's a string: OPENSSL_VERSION_NUMBER should be consistent with

Re: Lightwight socket IO wrapper

2015-09-21 Thread Michael Ströder
Marko Rauhamaa wrote: > I recommend using socket.TCP_CORK with socket.TCP_NODELAY where they are > available (Linux). If these options are not available are both option constants also not available? Or does the implementation have to look into sys.platform? Ciao, Michael. --

[issue25138] test_socket: socket.EAI_NODATA doesn't exist on FreeBSD

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset f13a5b5a2824 by Victor Stinner in branch '3.4': Issue #25138: test_socket.test_idna() uses support.transient_internet() instead https://hg.python.org/cpython/rev/f13a5b5a2824 New changeset a7baccf0b1c2 by Victor Stinner in branch '3.5': Merge 3.4

Re: Postscript to pdf

2015-09-21 Thread Baladjy KICHENASSAMY
well one more question :/ i tried this def save(): Canevas.update() Canevas.postscript(file=tkFileDialog.asksaveasfilename(), colormode='color') subprocess.call(["ps2pdf", "-dEPSCrop", "test.ps", "test.pdf"]) i got the ps file but i didn't get the pdf file :/ 2015-09-20 21:52

Re: Lightwight socket IO wrapper

2015-09-21 Thread Marko Rauhamaa
Chris Angelico : > On Mon, Sep 21, 2015 at 4:27 PM, Cameron Simpson wrote: >> For sizes below 128, one byte of length. For sizes 128-16383, two bytes. And >> so on. Compact yet unbounded. > > [...] > > It's generally a lot faster to do a read(2) than a loop

Re: Lightwight socket IO wrapper

2015-09-21 Thread Marko Rauhamaa
Michael Ströder : > Marko Rauhamaa wrote: >> I recommend using socket.TCP_CORK with socket.TCP_NODELAY where they >> are available (Linux). > > If these options are not available are both option constants also not > available? Or does the implementation have to look into

[issue25184] "python -m pydoc -w" fails in nondecodable directory

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: Technically, I think that it's possible to put bytes in an URL using %HH format. I didn't check if we can retrieve the "raw bytes". -- nosy: +haypo ___ Python tracker

Re: Lightwight socket IO wrapper

2015-09-21 Thread Chris Angelico
On Mon, Sep 21, 2015 at 5:59 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> On Mon, Sep 21, 2015 at 4:27 PM, Cameron Simpson wrote: >>> For sizes below 128, one byte of length. For sizes 128-16383, two bytes. And >>> so on. Compact yet

[issue25084] remove semi-busy loop in py2.7 threading.Condition.wait(timeout=x)

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: Nick Coghlan added the comment: > +1 - after the further discussion, addressing this downstream as a patch > specifically to the pthread backend sounds good to me. Cool, I like when we agree :-) @Flavio Grossi: Sorry for you, but it's time to upgrade to

[issue25138] test_socket: socket.EAI_NODATA doesn't exist on FreeBSD

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: > Looking at this more closely, the check seems to be there just to check if > basic DNS lookups are working. It was added for Issue 12804. One option might > be to replace it with a support.transient_internet() handler: (...) Oh good idea. This context

[issue25118] OSError in os.waitpid() on Windows [3.5.0 regression]

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +3.5regression ___ Python tracker ___ ___

[issue25155] Windows: datetime.datetime.now() raises an OverflowError for date after year 2038

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +3.5regression ___ Python tracker ___ ___

[issue25095] test_httpservers hangs on 3.5.0, win 7

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +3.5regression ___ Python tracker ___ ___

[issue25114] asynico: add ssl_object extra info

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +3.5regression ___ Python tracker ___ ___

[issue25184] "python -m pydoc -w" fails in nondecodable directory

2015-09-21 Thread Martin Panter
Martin Panter added the comment: Seems to be caused by the Python directory being non-decodable; the current working directory does not matter. What is going on is “pydoc” is trying to make a link to a module’s source code, such as /usr/lib/python3.4/pydoc.py For non-decodable paths, the

Re: Lightwight socket IO wrapper

2015-09-21 Thread Marko Rauhamaa
Chris Angelico : > On Mon, Sep 21, 2015 at 2:39 PM, Marko Rauhamaa wrote: >> Chris Angelico : >> >>> If you write a packet of data, then write another one, and another, >>> and another, and another, without waiting for responses, Nagling >>>

Re: Dummy Decoder Example (was Re: Parallel decoding lesson for you.)

2015-09-21 Thread Skybuck Flying
Just to be clear on this, the code you have to write doesn't need to be truely parallel. It must be parallel in potential, so it should be able to execute independenlty from each other and out of order. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list

[issue25047] xml.etree.ElementTree encoding declaration should be capital ('UTF-8') rather than lowercase ('utf-8')

2015-09-21 Thread Stefan Behnel
Stefan Behnel added the comment: LGTM -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25150] 3.5: Include/pyatomic.h is incompatible with OpenMP (compilation of the third-party yt module fails on Python 3.5)

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +3.5regression ___ Python tracker ___ ___

Re: Lightwight socket IO wrapper

2015-09-21 Thread Chris Angelico
On Mon, Sep 21, 2015 at 4:27 PM, Cameron Simpson wrote: > I don't like embedding arbitrary size limits in protocols or data formats if > I can easily avoid it. So (for my home grown binary protocols) I encode > unsigned integers as big endian octets with the top bit meaning

[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 855484b55da3 by Terry Jan Reedy in branch '2.7': Issue #16893: Add idlelib.help.copy_strip() to copy-rstrip Doc/.../idle.html. https://hg.python.org/cpython/rev/855484b55da3 New changeset df987a0bc350 by Terry Jan Reedy in branch '3.4': Issue

[issue25201] lock of multiprocessing.Value is not a keyword-only argument

2015-09-21 Thread Berker Peksag
Berker Peksag added the comment: I didn't test it carefully. It was a mistake on my part :) But I think the function signature could be clearer by changing that part to "*, lock=True". -- resolution: -> not a bug stage: needs patch -> resolved status: open -> closed

Re: Sqlite pragma statement "locking_mode" set to "EXCLUSIVE" by default

2015-09-21 Thread Ryan Stuart
On Thu, Sep 17, 2015 at 2:24 PM, sol433tt wrote: > I would like to have the Sqlite pragma statement "locking_mode" set to > "EXCLUSIVE" by default (RO database). Does this need to be compiled in? How > might this be achieved? > You can issue any PRAGA statement you like

[issue25210] Special-case NoneType() in do_richcompare()

2015-09-21 Thread Ezio Melotti
New submission from Ezio Melotti: do_richcompare() has a comment (at Objects/object.c:689) that reads: /* XXX Special-case None so it doesn't show as NoneType() */ This refers to the following error message: >>> 3 < None Traceback (most recent call last): File "", line 1, in TypeError:

[issue24841] Some test_ssl network tests fail if svn.python.org is not accessible.

2015-09-21 Thread Berker Peksag
Berker Peksag added the comment: The attached patch should fix the test failures. -- keywords: +patch stage: needs patch -> patch review type: -> behavior Added file: http://bugs.python.org/file40542/issue24841.diff ___ Python tracker

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Cai Gengyang
On Tuesday, September 22, 2015 at 4:34:45 AM UTC+8, Christian Gollwitzer wrote: > Am 21.09.15 um 17:16 schrieb Cai Gengyang: > > 2) A system where where the users can then edit these > > photos/images/videos into short , funny cartoons/videos > > > > This one's a bit open-ended, but more

[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2cf85e2834c2 by Victor Stinner in branch 'default': Issue #24870: Reuse the new _Py_error_handler enum https://hg.python.org/cpython/rev/2cf85e2834c2 New changeset aa247150a8b1 by Victor Stinner in branch 'default': Issue #24870: Add

Re: Sqlite pragma statement "locking_mode" set to "EXCLUSIVE" by default

2015-09-21 Thread Sol T
Is anyone aware of documentation that describes how to compile various sqlite options? On Thu, Sep 17, 2015 at 2:24 PM, sol433tt wrote: > hello > > I would like to have the Sqlite pragma statement "locking_mode" set to > "EXCLUSIVE" by default (RO database). Does this need

[issue25201] lock of multiprocessing.Value is not a keyword-only argument

2015-09-21 Thread Davin Potts
Davin Potts added the comment: Berker: It looks to me like the docs are indeed in sync with the code on Value in that lock really is a keyword-only argument. It looks like it's been that way since at least 2.7 (I didn't look at earlier). There are enough other things in the

[issue25209] Append space after completed keywords

2015-09-21 Thread Martin Panter
Martin Panter added the comment: I agree with adding a space in some cases, but not others. E.g. "pass" would only need a space if you wanted to add a comment, "return" often takes no argument, "lambda" may need an immediate colon (lambda: x). See

Problem installing pip

2015-09-21 Thread Stephan
Good Morning, I've tried ten times to install pip with no success in windows 10 using python 64bit version. Is there a solution available? I'm looking forward hearing you soon. -- https://mail.python.org/mailman/listinfo/python-list

Re: Lightwight socket IO wrapper

2015-09-21 Thread MRAB
On 2015-09-21 09:47, Marko Rauhamaa wrote: Michael Ströder : Marko Rauhamaa wrote: Michael Ströder : Marko Rauhamaa wrote: I recommend using socket.TCP_CORK with socket.TCP_NODELAY where they are available (Linux). If these options are not

[issue25047] xml.etree.ElementTree encoding declaration should be capital ('UTF-8') rather than lowercase ('utf-8')

2015-09-21 Thread Simeon Warner
Simeon Warner added the comment: Path looks fine and seems to work as expected -- Simeon -- ___ Python tracker ___

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Chris Angelico
On Mon, Sep 21, 2015 at 10:53 PM, Cai Gengyang wrote: > Ok, so basically these are the features I want the app to have : > > 1) A system where users can upload photos/images/videos of their loved ones > and family onto the web-based app (It's going to be web-based website)

[issue25202] Windows: with-statement doesn't release file handle after exception on "No space left on device" error

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- title: with-statement doesn't release file handle after exception -> Windows: with-statement doesn't release file handle after exception on "No space left on device" error ___ Python tracker

[issue25202] Windows: with-statement doesn't release file handle after exception on "No space left on device" error

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

Re: Postscript to pdf

2015-09-21 Thread Nobody
On Sun, 20 Sep 2015 23:11:20 +0200, Baladjy KICHENASSAMY wrote: > i tried this > > def save(): > Canevas.update() > Canevas.postscript(file=tkFileDialog.asksaveasfilename(), > colormode='color') > subprocess.call(["ps2pdf", "-dEPSCrop", "test.ps", "test.pdf"]) > > > i got the ps

[issue24520] Stop using deprecated floating-point environment functions on FreeBSD

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: It looks like fpsetmask() was deprecated since many years, and that fedisableexcept() is available since FreeBSD 5.3. Since we try to support FreeBSD 9, it's fine to drop support of FreeBSD < 5.3. I'm concerned by the "CAVEATS" section below. Should we put

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Mark Lawrence
On 21/09/2015 13:55, Robin Becker wrote: I have installed VS2015; this is the full version and was a great deal of trouble to install. First time out it started whining and I had to 'repair' it. Anyhow after the 'repair' it said all was OK and no complaints. However, when I try to use it I

[issue25194] Register of Financial Interests for core contributors

2015-09-21 Thread Ezio Melotti
Ezio Melotti added the comment: > Wouldn't it be better to put the emphasis on a) core devs who do this > in their free time, b) core devs who would be available for hired work, > and c) showing off which companies indirectly support Python via > employing core devs and giving them time to do

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Great Avenger Singh
On Monday, 21 September 2015 15:08:53 UTC+5:30, Cai Gengyang wrote: > Hello, > > > So, I want to use Python to design a photo/image/video sharing app that i can > >test on users. One Example is DropBox doing this at very large extent. ;) > I have Python 2.7.10, 3.3.2 and 3.3.4 downloaded

[issue25186] Don't duplicate _verbose_message in importlib._bootstrap and _bootstrap_external

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___

[issue24520] Stop using deprecated floating-point environment functions on FreeBSD

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___

[issue25047] xml.etree.ElementTree encoding declaration should be capital ('UTF-8') rather than lowercase ('utf-8')

2015-09-21 Thread Simeon Warner
Simeon Warner added the comment: s/Path/Patch/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[ANN] bbrecorder - a black box handler for logs

2015-09-21 Thread Laurent Pointal
Hello, I'm please to annouce the availability of bbrecorder module and its BlackBoxHandler logging handler for Python 3 (tested on 3.4). This logging handler manage caching of last N log records in memory until they are needed — and then generate them using standard common Python logging

[issue25047] xml.etree.ElementTree encoding declaration should be capital ('UTF-8') rather than lowercase ('utf-8')

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Cai Gengyang
On Monday, September 21, 2015 at 7:38:21 PM UTC+8, Great Avenger Singh wrote: > On Monday, 21 September 2015 15:08:53 UTC+5:30, Cai Gengyang wrote: > > Hello, > > > > > > So, I want to use Python to design a photo/image/video sharing app that i > > can >test on users. > > One Example is

[issue25184] "python -m pydoc -w" fails in nondecodable directory

2015-09-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We could use url = urllib.parse.quote_from_bytes(os.fsencode(path)) on Posix systems, but I heart that on Windows os.fsencode() can irreversible spoil file names (replace unencodable characters with '?'). On other side, I'm not sure that Windows unicode

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Chris Angelico
On Mon, Sep 21, 2015 at 11:27 PM, Mark Lawrence wrote: >> There is a folder "C:\Program Files (x86)\Microsoft Visual Studio >> 14.0\VC", but it doesn't contain any batch scripts. Document >> https://msdn.microsoft.com/en-us/library/x4d2c09s.aspx claims to be >> about

[ANN] floatrange - a range() for floats

2015-09-21 Thread Laurent Pointal
Hello, I'm please to publish a small utility module allowing to produce float based range sequences, with I hope a complete range-like interface. Because of floating point arithmetic, floatrange allows to specify a precision for "equality" when working with operators like 'in'. It is Python2

[ANN] osc4py3 - Open Sound Control package for Python 3

2015-09-21 Thread Laurent Pointal
Hello, I'm please to annouce the availability of osc4py3 package, yet another implementation of the OSC protocol (packets manipulations, transport, messages routing). * encoding/decoding of OSC message packets (including bundles) * routing of incoming messages based on selector regexps or

[issue25183] python -m inspect --details fails in nondecodable directory

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___

[issue25184] "python -m pydoc -w" fails in nondecodable directory

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___

Re: True == 1 weirdness

2015-09-21 Thread jmp
On 09/16/2015 02:53 PM, Jussi Piitulainen wrote: But now I expect to see a long thread about whether chained comparisons are a natural thing to have in the language. Nice forecast by the way. JM -- https://mail.python.org/mailman/listinfo/python-list

[issue25122] test_eintr randomly fails on FreeBSD

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3184c43627f5 by Victor Stinner in branch '3.5': Issue #25122: test_eintr: the FreeBSD fix will be released in FreeBSD 10.3 https://hg.python.org/cpython/rev/3184c43627f5 -- ___ Python tracker

[issue25185] Inconsistency between venv and site

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___

[issue22729] `wait` and `as_completed` depend on private api

2015-09-21 Thread Ben Mather
Ben Mather added the comment: Sorry for slow response. I completely missed your reply. I was working on a project that used a concurrent.futures thread pool but also needed to listen to responses from a chip-and-pin card reader. Payment sessions operated in three phases: - check with card

Re: Lightwight socket IO wrapper

2015-09-21 Thread Jorgen Grahn
On Mon, 2015-09-21, Dennis Lee Bieber wrote: > On Sun, 20 Sep 2015 23:36:30 +0100, "James Harris" > declaimed the following: ... >>I thought UDP would deliver (or drop) a whole datagram but cannot find >>anything in the Python documentaiton to guarantee that. In fact

Re: Problem installing pip

2015-09-21 Thread Mark Lawrence
On 18/09/2015 06:54, Stephan wrote: Good Morning, I’ve tried ten times to install pip with no success in windows 10 using python 64bit version. Is there a solution available? I’m looking forward hearing you soon. The obvious solution is to get a version of Python like 3.4.3 or 3.5.0 which

[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

2015-09-21 Thread takayuki
takayuki added the comment: This bug seems to remain in Python 3.5.0. How to reproduce: 1. Save the attached cgitest.py into cgi-bin directory and changed it to executable file by "chmod +x cgitest.py" 2. Run CGIHTTPRequestHandler [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux Type "help",

[issue25202] with-statement doesn't release file handle after exception

2015-09-21 Thread Lauri Kajan
New submission from Lauri Kajan: Hi all, I found out that handle to a file opened with with-statement is not released in all cases. I'm trying to delete a file when space on a disk is filled (0 bit left) by writing this file. I catch the IOError 28 to figure this out. I write the file within

Re: Postscript to pdf

2015-09-21 Thread Christian Gollwitzer
Am 20.09.15 um 20:27 schrieb Baladjy KICHENASSAMY: Hello, I'm using macosx, ps2pdf version i don't know :/ sorry ok actually i found what is the problem... There is no problem with the ps file every thing is fine =) You could try ps2pdf -dEPSCrop input.ps output.pdf that should create

[issue25207] ICC compiler warnings

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 170cd0104267 by Victor Stinner in branch 'default': Issue #25207, #14626: Fix my commit. https://hg.python.org/cpython/rev/170cd0104267 -- ___ Python tracker

[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 170cd0104267 by Victor Stinner in branch 'default': Issue #25207, #14626: Fix my commit. https://hg.python.org/cpython/rev/170cd0104267 -- ___ Python tracker

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread cjgohlke
On Monday, September 21, 2015 at 9:54:51 AM UTC-7, Robin Becker wrote: > . > > > > This also sounds like the C++ stuff just wasn't installed. I'm afraid > > reinstallation is probably your best bet. > > > I used the default installation, but it failed first time around (perhaps a >

[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

2015-09-21 Thread Martin Panter
Martin Panter added the comment: Yes it also seems to apply to Python 3. Perhaps you forgot your test script, so I made my own. After running python3 -m http.server --cgi The response from the following URL has no double slashes to be seen:

[issue25184] "python -m pydoc -w" fails in nondecodable directory

2015-09-21 Thread Martin Panter
Martin Panter added the comment: Serhiy’s patch essentially uses the local filesystem encoding and then percent encoding, rather than the current behaviour of strict UTF-8 encoding and percent encoding. This is similar to what the “pathlib” make_uri() methods do, so maybe we could let

[issue18967] Find a less conflict prone approach to Misc/NEWS

2015-09-21 Thread Brett Cannon
Brett Cannon added the comment: As soon as someone finds the time to make the change we can switch. While this is a necessary requirement to change the workflow it isn't gated by it either. -- ___ Python tracker

Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread Chris Angelico
On Tue, Sep 22, 2015 at 7:36 AM, wrote: > Thank you very much. Can I write .py pages like in PHP or should I > use a framework like Django, Web2py or TurboGears? I recommend using WSGI and a framework that uses it (my personal preference is Flask, but the above will

[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-21 Thread Martin Panter
Martin Panter added the comment: Also in the first example, the colon (format specifier) and exclamation mark (conversion) are in the wrong order. It should either be f"{expr3:!s}" → format(expr3, "!s") or f"{expr3!s:}" → format(str(expr3), "") -- nosy: +martin.panter

[issue25205] setattr accepts invalid identifiers

2015-09-21 Thread Martin Panter
Martin Panter added the comment: Previous report: Issue 14029 -- nosy: +martin.panter ___ Python tracker ___

[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: Ok, I prepared the code for the UTF-8 optimization. @Serhiy: would you like to rebase your patch faster_surrogates_hadling.patch? Attached utf8.patch is a less optimal implementation which only changes PyUnicode_DecodeUTF8Stateful(). Maybe it's enough? I

[issue24861] deprecate importing components of IDLE

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset e9edb95ca8b6 by Terry Jan Reedy in branch '2.7': Issue #24861: add Idle news items and correct previous errors. https://hg.python.org/cpython/rev/e9edb95ca8b6 New changeset 5087ca9e6002 by Terry Jan Reedy in branch '3.4': Issue #24861: add Idle

[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-21 Thread Brett Cannon
Brett Cannon added the comment: Ah, OK. As I said I had not run it so I wasn't sure of the actual outcome. =) As for keyword-only arguments/parameters, see https://www.python.org/dev/peps/pep-3102/ . They are a Python 3 feature. -- ___ Python

[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: NEWS entries are done. I added a function, copy_strip, to help.py to rstrip (in bytes mode) idle.html as it copies to help.html. (I changed the name to better remember which is which.) In my .bat file, with Doc as current directory, I use

[issue18967] Find a less conflict prone approach to Misc/NEWS

2015-09-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is that something that might happen 'soon' or only when the whole workflow is redone? -- ___ Python tracker ___

[issue1731717] race condition in subprocess module

2015-09-21 Thread Vitaly
Vitaly added the comment: Is this issue fixed in python 2.7.10? I am experiencing strange race conditions in code that combines threads with multiprocessing pool, whereby a thread is spawned by each pool worker. Running on latest Mac OS X. -- nosy: +vitaly

[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3c430259873e by Victor Stinner in branch 'default': Issue #24870: Optimize the ASCII decoder for error handlers: surrogateescape, https://hg.python.org/cpython/rev/3c430259873e -- nosy: +python-dev ___

[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: I pushed a change to optimize the ASCII decoder. Attached bench.py script: microbenchmark on the ASCII decoder. My results follows. Common platform: Platform: Linux-4.1.5-200.fc22.x86_64-x86_64-with-fedora-22-Twenty_Two Bits: int=32, long=64, long long=64,

[issue25114] asynico: add ssl_object extra info

2015-09-21 Thread Yury Selivanov
Yury Selivanov added the comment: the patch lgtm -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25202] Windows: with-statement doesn't release file handle after exception on "No space left on device" error

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: @Lauri: What is your Python version? Can you retry your test with Python 3.5? -- nosy: +haypo ___ Python tracker ___

Re: Getting PyCharm to import sklearn

2015-09-21 Thread Joel Goldstick
On Mon, Sep 21, 2015 at 11:27 AM, wrote: > Beginner here. > > I'm trying to use sklearn in pycharm. When importing sklearn I get an > error that reads "Import error: No module named sklearn" The project > interpreter in pycharm is set to 2.7.10 (/anaconda/bin/python.app),

Re: Hello

2015-09-21 Thread Zachary Ware
On Thu, Sep 17, 2015 at 10:10 AM, moon khondkar wrote: > Hello I have problem with python installation.I downloaded python 3.5 but I > cannot use it on my computer.I can not open the idle. I get something like > saying "users\local settings\Application >

Looking for a Database Developer with 2-3 years Python experience

2015-09-21 Thread liannebloemen
Looking for Database Developer - London (up to £30k) The Database Developer requires a wide set of database development and data integration skills, along with demonstrated excellence in problem solving and communication. Experience with Python is highly essential, as we will be developing a

Getting PyCharm to import sklearn

2015-09-21 Thread edanmizrahi
Beginner here. I'm trying to use sklearn in pycharm. When importing sklearn I get an error that reads "Import error: No module named sklearn" The project interpreter in pycharm is set to 2.7.10 (/anaconda/bin/python.app), which should be the right one. Under default preferenes, project

[issue25202] Windows: with-statement doesn't release file handle after exception on "No space left on device" error

2015-09-21 Thread eryksun
eryksun added the comment: Lauri changed the version from 3.4 to 3.2, and I was able to reproduce the problem in 3.2.5: C:\Temp>py -3.2 --version Python 3.2.5 C:\Temp>py -3.2 nospace.py removing fill.txt Traceback (most recent call last): File "nospace.py", line 8, in

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Robin Becker
The most reported problem trying to build anything on Windows that is Python related. . I'd be inclined to go for the reinstall, painful as that might be. I've tried finding the batch file as a separate download but there's just too many hits about "download Visual

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Phil Thompson
On 21 Sep 2015, at 3:00 pm, Robin Becker wrote: > > >> >> The most reported problem trying to build anything on Windows that is Python >> related. >> > . >> >> I'd be inclined to go for the reinstall, painful as that might be. I've >> tried >> finding

[issue25202] Windows: with-statement doesn't release file handle after exception on "No space left on device" error

2015-09-21 Thread Zachary Ware
Changes by Zachary Ware : -- superseder: -> file descriptor not being closed with context manager on IOError when device is full ___ Python tracker

[issue24520] Stop using deprecated floating-point environment functions on FreeBSD

2015-09-21 Thread Stefan Krah
Stefan Krah added the comment: Regarding volatile: gcc/clang seem to honor *some* changes to the control word. At least in libmpdec both compilers have always left the settings 80bit-prec/ROUND_CHOP intact, even though it's not the default. Let's rewrite Python in asm to avoid these issues. :)

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Cai Gengyang
Hi ChrisA, 1) A system where users can upload photos/images/videos of their loved ones and family onto the web-based app (It's going to be web-based website) Creating a web site using Python is pretty easy. Grab Flask, Django, etc, and off you go.Uploading files isn't difficult, although

[issue18967] Find a less conflict prone approach to Misc/NEWS

2015-09-21 Thread Brett Cannon
Brett Cannon added the comment: It should be mentioned in this issue that the core-workflow mailing list decided on having NEWS entries being attached to the related issue in the issue tracker. This was then presented to python-committers and no one objected to the idea. --

Re: Getting PyCharm to import sklearn

2015-09-21 Thread edanmizrahi
On Monday, September 21, 2015 at 9:00:16 AM UTC-7, Joel Goldstick wrote: > On Mon, Sep 21, 2015 at 11:27 AM, wrote: > Beginner here. > > > > I'm trying to use sklearn in pycharm. When importing sklearn I get an error > that reads "Import error: No module named sklearn"

[issue23972] Asyncio reuseport

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: Hum, the latest patch was not reviewed yet :-( -- nosy: +ysionneau ___ Python tracker ___

[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-21 Thread Brett Cannon
Brett Cannon added the comment: I left some comments on the Python 3.6 version of the patch. I don't know if we should apply such a change to Python 2.7 or 3.5, though, as it is a new feature of regrtest and thus runs the risk of breaking stuff. Then again, we have said that anything in the

[issue24779] Python/ast.c: decode_unicode is never called with rawmode=True

2015-09-21 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue24779] Python/ast.c: decode_unicode is never called with rawmode=True

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5230115de64d by Eric V. Smith in branch 'default': Issue #24779: Remove unused rawmode parameter to unicode_decode. https://hg.python.org/cpython/rev/5230115de64d -- nosy: +python-dev ___ Python tracker

  1   2   >