[issue24991] Define instance mutability explicitly on type objects

2015-09-03 Thread Eugene Toder
Changes by Eugene Toder : -- nosy: +eltoder ___ Python tracker ___ ___ Python-bugs-list

[issue21192] Idle: Print filename when running a file from editor

2015-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry, my memory was that I was supposed to that as a signal, but maybe that was with a different RM. -- ___ Python tracker

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2015-09-03 Thread Cory Benfield
Cory Benfield added the comment: Martin, the idea of simply rejecting the LifeAndFileWrapper HTTP/0.9 fallback for _tunnel feels reasonable to me, that can work. Let me whip up an alternative patch that does that. -- ___ Python tracker

[issue24991] Define instance mutability explicitly on type objects

2015-09-03 Thread Nick Coghlan
New submission from Nick Coghlan: Issue #24912 showed that the interpreter has historically assumed that all instances of non-heap types are immutable when it comes to preventing __class__ reassignment, and changing this assumption caused problems with genuinely immutable types that use

[issue23375] test_py3kwarn fails on Windows

2015-09-03 Thread Zachary Ware
Zachary Ware added the comment: Could this have anything to do with the fact that imageop is a 'built-in' (as opposed to 'extension') module on Windows? Either way, I'm about ready to just skip testing the warning for that module on Windows. --

[issue24912] The type of cached objects is mutable

2015-09-03 Thread Nick Coghlan
Nick Coghlan added the comment: I've filed issue 24991 to suggest reviewing the wider question of how we deal with identifying whether or not a type's instances are expected to be "truly immutable" in the Python 3.6 time frame. For 3.5, I think Nathaniel's proposed patch restoring the

[issue24989] scan_eol() Buffer Over-read

2015-09-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +larry ___ Python tracker ___ ___

[issue24989] scan_eol() Buffer Over-read

2015-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It should be self->string_size, not PyBytes_GET_SIZE(self->buf). Thank you for your report and your patch John. Here is revised patch with tests based on Martin's test. Larry, perhaps this bug is grave enough to be fixed in RC3. -- components:

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf634dfe076f by Victor Stinner in branch 'default': Issue #23517: fromtimestamp() and utcfromtimestamp() methods of https://hg.python.org/cpython/rev/bf634dfe076f -- ___ Python tracker

[issue24991] Define instance mutability explicitly on type objects

2015-09-03 Thread Nathaniel Smith
Nathaniel Smith added the comment: Adding Eric Snow to nosy because it seems like there may be some natural overlap between this and the per-subinterpreter GIL ideas he brought up on python-ideas back in June. -- nosy: +eric.snow ___ Python tracker

[issue23375] test_py3kwarn fails on Windows

2015-09-03 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file40332/test_py3kwarn-2.patch ___ Python tracker ___

[issue24987] subprocess.Popen with shell=True doesn't create socket

2015-09-03 Thread asduj
asduj added the comment: After executing this code in Python 2.7 I check if OpenOffice is listening the localhost:8100, and get the output: netstat -a | grep 8100 tcp 0 0 localhost:8100 *:* LISTEN If I executing the same code in Python 3.4 and check, I get nothing. Platform: Ubuntu

[issue23375] test_py3kwarn fails on Windows

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: To easily test my patch, you can inject a Python 3 DeprecationWarning in the unicodedata module using attached unicodedata.patch, and then modify Lib/test/test_py3kwarn.py to add "unicodedata" to the "optional_modules" list. I tested my patch on Linux (Fedora

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-09-03 Thread Christoph Gohlke
Christoph Gohlke added the comment: Just to confirm: the following script fails with `ImportError: DLL load failed` on Python 3.5.0rc2. It fails around the 120th extension. The script passes on Python 3.4.3. Also, Python 3.5.0rc2 (not Python 3.4.3) requires the `extra_postargs=['/DLL']`

[issue24912] The type of cached objects is mutable

2015-09-03 Thread Larry Hastings
Larry Hastings added the comment: Mark, Victor, Benjamin: how do you feel about v2 patch vs rolling back the change entirely? -- ___ Python tracker ___

[issue24989] scan_eol() Buffer Over-read

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: scan_eol_Buffer_Over-read_2.patch looks good to me. > Larry, perhaps this bug is grave enough to be fixed in RC3. Since it looks like a regression in Python 3.5, yes, it's a severe bug. Please send a pull request to Larry for it. --

Re: .py to .html generation

2015-09-03 Thread Laura Creighton
In a message of Wed, 02 Sep 2015 22:04:03 -0700, uday3prak...@gmail.com writes: >Hi friends! > >Can some one help me with the best module and/or its tutorial, to generate >html reports for python scripts? > >I tried pyreport and sphc; but, i am getting errors. >--

[issue23375] test_py3kwarn fails on Windows

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: > I can't reproduce the failure on Linux. Do you have a 64-bit system? imageop is only built on 32-bit systems... > Looks like a test ordering issue. When test_imageop runs before > test_py3kwarn, the warning has presumably already been shown once and so >

[issue23375] test_py3kwarn fails on Windows

2015-09-03 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file40331/test_py3kwarn.patch ___ Python tracker ___

[issue23375] test_py3kwarn fails on Windows

2015-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The approach LGTM. I left comments on Rietveld. -- stage: -> patch review ___ Python tracker ___

Re: Reading \n unescaped from a file

2015-09-03 Thread Friedrich Rentsch
On 09/02/2015 04:03 AM, Rob Hills wrote: Hi, I am developing code (Python 3.4) that transforms text data from one format to another. As part of the process, I had a set of hard-coded str.replace(...) functions that I used to clean up the incoming text into the desired output format,

[issue24305] The new import system makes it inconvenient to correctly issue a deprecation warning for a module

2015-09-03 Thread Larry Hastings
Larry Hastings added the comment: Well, this is making me nervous to apply during the RCs. But... I'm willing to risk it. My price: I want to see this run on a bunch of otherwise-healthy buildbots to make sure it doesn't break any platforms. In case you've never done such a thing, here's

[issue24912] The type of cached objects is mutable

2015-09-03 Thread Nathaniel Smith
Nathaniel Smith added the comment: Since I know there's a lot of text here for people to process, here's an attempted TL;DR (with inspiration from Serhiy's msg249495): There were three parts to the original change: 1) Bug fixes for typeobject.c 2) Enabling __class__ assignment for module

[issue21192] Idle: Print filename when running a file from editor

2015-09-03 Thread Larry Hastings
Larry Hastings added the comment: Terry, if you want this pulled in to Python 3.5.0, you'll need to create a pull request on Bitbucket. Instructions are here: https://mail.python.org/pipermail/python-dev/2015-August/141167.html and here:

[issue23375] test_py3kwarn fails on Windows

2015-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset d739bc20d7b2 by Victor Stinner in branch '2.7': Issue #23375: Fix test_py3kwarn for modules implemented in C https://hg.python.org/cpython/rev/d739bc20d7b2 -- nosy: +python-dev ___ Python tracker

[issue23375] test_py3kwarn fails on Windows

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: > The approach LGTM. I left comments on Rietveld. Thanks for the review. I replaced warnings.warn() with a simple print(). This issue should now be fixed. -- resolution: -> fixed status: open -> closed ___ Python

[issue24974] ICC on Windows 8.1: _decimal fails to compile with default fp model

2015-09-03 Thread Stefan Krah
Stefan Krah added the comment: Are you sure that you always tested the 32-bit build, also with ICC 15.0? -- ___ Python tracker ___

Re: .py to .html generation

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 09:22:27 +0200, Laura Creighton writes: >There is also a report generator implemented as an extension to sphinx. >https://github.com/AndreasHeger/CGATReport >Interfaces nicely with ipython. Makes it easy to stick matplotlib >graphs into your report. I forgot

[issue24989] scan_eol() Buffer Over-read

2015-09-03 Thread Larry Hastings
Larry Hastings added the comment: Yes, please create a pull request for this patch. Thanks! And just to confirm: I just applied patch 2 to CPython, then undid the change to bytesio.c. The new test fails, and sometimes Python will segmentation fault. If I then apply the patch to bytesio.c

[issue24989] scan_eol() Buffer Over-read

2015-09-03 Thread Larry Hastings
Changes by Larry Hastings : -- priority: high -> release blocker ___ Python tracker ___

Re: Reading \n unescaped from a file

2015-09-03 Thread Peter Otten
Friedrich Rentsch wrote: > > > On 09/02/2015 04:03 AM, Rob Hills wrote: >> Hi, >> >> I am developing code (Python 3.4) that transforms text data from one >> format to another. >> >> As part of the process, I had a set of hard-coded str.replace(...) >> functions that I used to clean up the

[issue24992] collections.OrderedDict constructor (odict_new) doesn't handle PyDict_New() failure

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: You can try the odict_failmalloc.py program with a Python compiled in debug mode to see the bug. The script requires: https://pypi.python.org/pypi/pyfailmalloc -- Added file: http://bugs.python.org/file40335/odict_failmalloc.py

[issue24992] collections.OrderedDict constructor (odict_new) doesn't handle PyDict_New() failure

2015-09-03 Thread STINNER Victor
New submission from STINNER Victor: If PyDict_New() fails (ex: memory allocation failure), odict_new() returns a new OrderedDict with an exception set. It's a bug. Attached patch fixes it. odict_new() constructor also returns NULL without destroying the newly created object if

[issue22241] strftime/strptime round trip fails even for UTC datetime object

2015-09-03 Thread Berker Peksag
Berker Peksag added the comment: I left a couple comments on Rietveld. -- nosy: +berker.peksag ___ Python tracker ___

[issue7175] Define a standard location and API for configuration files

2015-09-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 02.09.2015 16:37, flying sheep wrote: > > hi mark, i’ve just lengthily replied to you on python-ideas. > > in short: nope! many command line tools that are relatively new (among them > your examples git and pip) honor the specs, my ~/.cache, ~/.config,

[issue24993] The C function PyCodec_NameReplaceErrors doesn't handle PyCapsule_Import() failure

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: Note: I found the bug when running test_codecs using failmalloc, a library to inject MemoryError. -- ___ Python tracker

[issue24993] The C function PyCodec_NameReplaceErrors doesn't handle PyCapsule_Import() failure

2015-09-03 Thread STINNER Victor
New submission from STINNER Victor: The namereplace error handler introduced in Python 3.5 doesn't handle correctly PyCapsule_Import() failure. If the function raises an exception, the PyCodec_NameReplaceErrors() function must return NULL. I see that the code correctly handle the case where

Strange location for a comma

2015-09-03 Thread ast
Hello, At the end of the last line of the following program, there is a comma, I dont understand why ? Thx from cx_Freeze import setup, Executable # On appelle la fonction setup setup( name = "salut", version = "0.1", description = "Ce programme vous dit bonjour", executables =

[issue23719] PEP 475: port test_eintr to Windows

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: The change ed0e6a9c11af replaced os.fork() with subprocess to try to fix race conditions in test_eintr (the test sometimes hangs on FreeBSD buildbots). os.fork() is not available on Windows, so this change should help to port test_eintr to Windows. About

[issue7175] Define a standard location and API for configuration files

2015-09-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 03.09.2015 13:37, flying sheep wrote: > all three OSs have stable, widely followed standards in place, and the idea > of providing a python stdlib API for them received an almost unanimously > positive response – with the sole exception being you. I'm

[issue23406] interning and list comprehension leads to unexpected behavior

2015-09-03 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Applying review comments. Now, there is an internal link to the FAQ entry on multidimensional lists. -- Added file: http://bugs.python.org/file40337/issue23406_doc_stdtypes_and_faq.patch ___ Python tracker

[issue7175] Define a standard location and API for configuration files

2015-09-03 Thread flying sheep
flying sheep added the comment: you’re right about the two problems being mixed, however not about the standards. also you’re intermingling conventions with actual standards. the directory standards for all three big OSs are either not going to change or fitted with a backwards-compatibility

Re: Python handles globals badly.

2015-09-03 Thread Mark Lawrence
On 03/09/2015 20:47, Ian Kelly wrote: On Thu, Sep 3, 2015 at 1:05 PM, wrote: Or does anyone really name a global var xxx and a function var xxx? I am sure no one at all will do it. I dont want read such a code. Intentionally, it's probably rare. But if I'm adding

Need Help w. PIP!

2015-09-03 Thread Steve Burrus
Well I hjave certainly noted more than once that pip is cont ained in Python 3.4. But I am having the most extreme problems with simply typing "pip" into my command prompt and then getting back the normal information on pip! I have repeatedly downloaded [to my Desktop] that get-pip.py file then

Re: Python handles globals badly.

2015-09-03 Thread Michael Torrie
On 09/03/2015 01:05 PM, t...@freenet.de wrote: > And a compiler can surely recognize if a defined var xxx outside is > not a var yyy inside a function. At issue here is the idea of Python namespaces and how Python uses them in a consistent way with your code. The consistency is that binding of a

[issue24992] collections.OrderedDict constructor (odict_new) doesn't handle PyDict_New() failure

2015-09-03 Thread Eric Snow
Eric Snow added the comment: Thanks for taking care of this, Victor (and Serhiy). :) -- stage: -> resolved type: -> behavior ___ Python tracker ___

[issue24989] scan_eol() Buffer Over-read

2015-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a5858c30db7c by Serhiy Storchaka in branch '3.5': Issue #24989: Fixed buffer overread in BytesIO.readline() if a position is https://hg.python.org/cpython/rev/a5858c30db7c New changeset 215800fb955d by Serhiy Storchaka in branch 'default': Issue

[issue24913] deque.index() overruns deque boundary

2015-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9f8c59e61594 by Brett Cannon in branch '3.5': Issue #24913: Fix overrun error in deque.index(). https://hg.python.org/cpython/rev/9f8c59e61594 New changeset d093d87e449c by Brett Cannon in branch '3.5': Merge from 3.5.0 for issue #24913

Re: Python handles globals badly.

2015-09-03 Thread Sven R. Kunze
On 03.09.2015 00:25, t...@freenet.de wrote: It is the good idea of Python about modules which are singletons and therefore have already its state (so in some way they are already somehow like classes - except the bad annoying thing with the "global" statement). So, what you really want is a

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2015-09-03 Thread Cory Benfield
Cory Benfield added the comment: Ok, version three of the patch is now available. -- Added file: http://bugs.python.org/file40345/readline_3.patch ___ Python tracker

[issue24913] deque.index() overruns deque boundary

2015-09-03 Thread Brett Cannon
Brett Cannon added the comment: OK, that should cover 3.5.0 and then null merge through 3.5 and default. I thus consider my favour to Larry done and Raymond now owes me one. -- ___ Python tracker

Re: Strange location for a comma

2015-09-03 Thread Sven R. Kunze
On 03.09.2015 14:20, ast wrote: Hello, At the end of the last line of the following program, there is a comma, I dont understand why ? Thx from cx_Freeze import setup, Executable # On appelle la fonction setup setup( name = "salut", version = "0.1", description = "Ce programme vous

Re: Need Help w. PIP!

2015-09-03 Thread Mark Lawrence
On 03/09/2015 23:20, Steve Burrus wrote: Well I hjave certainly noted more than once that pip is cont ained in Python 3.4. But I am having the most extreme problems with simply typing "pip" into my command prompt and then getting back the normal information on pip! I have repeatedly downloaded

Re: Need Help w. PIP!

2015-09-03 Thread Steve Burrus
On Thursday, September 3, 2015 at 7:06:27 PM UTC-5, Mark Lawrence wrote: > On 03/09/2015 23:20, Steve Burrus wrote: > > Well I hjave certainly noted more than once that pip is cont ained in > > Python 3.4. But I am having the most extreme problems with simply typing > > "pip" into my command

Re: How do I real a SSL certs serial number using Python?

2015-09-03 Thread Laura Creighton
Is this a good enough point? https://pyopenssl.readthedocs.org/en/stable/api/crypto.html?highlight=serial%20number#OpenSSL.crypto.X509.get_serial_number Write back if you need more help. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 07:32:55 -0700, Heli Nix writes: >Dear all, > >I have my python scripts that use several python libraries such as h5py, >pyside, numpy > >In Windows I have an installer that will install python locally on user >machine and so my program gets access to this

Re: Python handles globals badly.

2015-09-03 Thread Ian Kelly
On Thu, Sep 3, 2015 at 4:13 PM, Mark Lawrence wrote: > On 03/09/2015 20:47, Ian Kelly wrote: >> >> On Thu, Sep 3, 2015 at 1:05 PM, wrote: >>> >>> Or does anyone really name a global var xxx and a function var xxx? >>> I am sure no one at all

Re: packing unpacking depends on order.

2015-09-03 Thread Sven R. Kunze
On 03.09.2015 03:17, random...@fastmail.us wrote: The question is what does "assign it to the left side at once" even *mean* in the presence of subscripts? Build up a list of object-subscript pairs (evaluating all the subscripts, including if any may have side effects) before executing any

[issue24996] IDLE: debugger local/global vars should not be editable

2015-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: That makes sense, given that a string or list could be indefinitely long. -- ___ Python tracker ___

Re: Python handles globals badly.

2015-09-03 Thread Mark Lawrence
On 04/09/2015 01:06, Michael Torrie wrote: On 09/03/2015 01:05 PM, t...@freenet.de wrote: [The same e.g. with switch statement: add it] Switch is a nice-to-have thing, but definitely not essential. A PEP here (probably already has been several) would at least be read anyway. However, there

[issue24857] mock: Crash on comparing call_args with long strings

2015-09-03 Thread A Kaptur
A Kaptur added the comment: It looks like there's a related bug in call_args around __ne__: >>> m = Mock() >>> m(1,2) >>> m.call_args call(1, 2) >>> m.call_args == call(1,2) True >>> m.call_args != call(1,2) True Any reason not to define __ne__ as not __eq__? Otherwise it looks like you fall

[issue24857] mock: Crash on comparing call_args with long strings

2015-09-03 Thread A Kaptur
A Kaptur added the comment: Here's a simple patch + test for the original bug. I'll file the __ne__ question separately. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file40348/issue24857.patch ___ Python

[issue24989] scan_eol() Buffer Over-read

2015-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: https://bitbucket.org/larry/cpython350/pull-requests/13/issue-24989/diff -- ___ Python tracker ___

[issue24986] It should be possible to build successfully without external libraries

2015-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2bc91f1f2b34 by Zachary Ware in branch '2.7': Issue #24986: Allow building Python without external libraries on Windows https://hg.python.org/cpython/rev/2bc91f1f2b34 New changeset 301c36746e42 by Zachary Ware in branch '3.5': Issue #24986: Allow

[issue24986] It should be possible to build successfully without external libraries

2015-09-03 Thread Zachary Ware
Zachary Ware added the comment: The committed versions are slightly different, I had bad logic in adding _socket to ExtensionModules (if IncludeExternals was false while IncludeSSL was true, _socket wasn't added). build.bat also uses the property names instead of its own internal names so as

[issue24989] scan_eol() Buffer Over-read

2015-09-03 Thread Larry Hastings
Larry Hastings added the comment: Pull request accepted. Please forward-merge. Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

Re: Need Help w. PIP!

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 11:04 AM, Steve Burrus wrote: > I have tried the 'python get-pip.py' command over amnd over again in my > command prompt and the 'python easy-install.py" command a little less. I > swear I have set ALL of the env. variables correctly! My OS is

Re: No request in module urllib ?

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 11:56 AM, Vincent Vande Vyvre wrote: > Python 3.2.3 (default, Jun 18 2015, 21:46:42) > [GCC 4.6.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. import urllib

[issue24991] Define instance mutability explicitly on type objects

2015-09-03 Thread Eric Snow
Eric Snow added the comment: Yeah, this definitely relates to the project I'm working on. -- ___ Python tracker ___

Re: No request in module urllib ?

2015-09-03 Thread MRAB
On 2015-09-04 03:17, Vincent Vande Vyvre wrote: Le 04/09/2015 04:08, Chris Angelico a écrit : On Fri, Sep 4, 2015 at 11:56 AM, Vincent Vande Vyvre wrote: Python 3.2.3 (default, Jun 18 2015, 21:46:42) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or

Re: Need Help w. PIP!

2015-09-03 Thread Mark Lawrence
On 04/09/2015 02:55, Chris Angelico wrote: On Fri, Sep 4, 2015 at 11:04 AM, Steve Burrus wrote: I have tried the 'python get-pip.py' command over amnd over again in my command prompt and the 'python easy-install.py" command a little less. I swear I have set ALL of

Re: Need Help w. PIP!

2015-09-03 Thread Steve Burrus
On Thursday, September 3, 2015 at 8:55:52 PM UTC-5, Chris Angelico wrote: > On Fri, Sep 4, 2015 at 11:04 AM, Steve Burrus wrote: > > I have tried the 'python get-pip.py' command over amnd over again in my > > command prompt and the 'python easy-install.py" command a

Re: Need Help w. PIP!

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 1:04 PM, Mark Lawrence wrote: > On 04/09/2015 02:55, Chris Angelico wrote: >> >> On Fri, Sep 4, 2015 at 11:04 AM, Steve Burrus >> wrote: >>> >>> I have tried the 'python get-pip.py' command over amnd over again in my >>>

Re: Need Help w. PIP!

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 1:07 PM, Steve Burrus wrote: > On Thursday, September 3, 2015 at 8:55:52 PM UTC-5, Chris Angelico wrote: >> On Fri, Sep 4, 2015 at 11:04 AM, Steve Burrus >> wrote: >> > I have tried the 'python get-pip.py' command over

[issue24997] mock.call_args compares as equal and not equal

2015-09-03 Thread A Kaptur
New submission from A Kaptur: mock.call_args can be both equal to and not equal to another object: >>> m = Mock() >>> m(1,2) >>> m.call_args call(1, 2) >>> m.call_args == call(1,2) True >>> m.call_args != call(1,2) True This appears to be a recent regression - it repros on trunk, but not on

[issue24998] docs: subprocess.Popen example has extra/invalid parameter

2015-09-03 Thread Paul Clarke
New submission from Paul Clarke: in "subprocess" module documentation has a section for "replacing older functions with subprocess", specifically 17.1.4.5 "replacing os.popen", which includes the example on "return code handling", specifically this line: -- process = Popen("cmd", 'w',

[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-09-03 Thread Petr Viktorin
Petr Viktorin added the comment: Indeed. I don't have access to a Windows machine, but I will try reproducing the problem on another system. -- ___ Python tracker

Re: Python handles globals badly.

2015-09-03 Thread tdev
Reflecting the answers I want to add following first: I should have better started a new thread. But now it is here, I want just clarify something before I move on (later) with repsonding. I think this has lead to some confusing. There are now two main topics in this thread. First topic:

[issue24993] The C function PyCodec_NameReplaceErrors doesn't handle PyCapsule_Import() failure

2015-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The purpose was to make the dependence of unicodedata optional. Here is a patch that adds missing lines to clear import error. But your approach looks reasonable too and the patch is correct. I have no strong preferences, but now I think that probably your

Re: Strange location for a comma

2015-09-03 Thread Peter Otten
ast wrote: > > "ast" a écrit dans le message de > news:55e83afb$0$3157$426a7...@news.free.fr... >> Hello, >> At the end of the last line of the following program, >> there is a comma, I dont understand why ? >> >> Thx >> >> >> from cx_Freeze import setup, Executable >> >> #

Re: Strange location for a comma

2015-09-03 Thread MRAB
On 2015-09-03 13:28, ast wrote: "ast" a écrit dans le message de news:55e83afb$0$3157$426a7...@news.free.fr... Hello, At the end of the last line of the following program, there is a comma, I dont understand why ? Thx from cx_Freeze import setup, Executable # On

Fwd: Strange location for a comma

2015-09-03 Thread Vladimir Ignatov
>> >> # On appelle la fonction setup >> setup( >>name = "salut", >>version = "0.1", >>description = "Ce programme vous dit bonjour", >>executables = [Executable("salut.py")],# <--- HERE >> ) >> >> > > Ok its understood, it's a 1 element only tuple > > example: > A = 5,

Re: sending push notifications

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 08:30:35 -0400, Larry Martell writes: >I'm looking for people's experiences with the different ways to send >push notifications to mobile devices. I have an app that will be >running on Amazon, so I can use their SNS API or I can do it myself. >>From googling there

Re: Strange location for a comma

2015-09-03 Thread Laura Creighton
No, I am wrong. You are in the middle of a fuction definition. You are correct, that is a wierd place for a comma, though I can see doing that if you anticipate adding more arguments to the function in the near future. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Strange location for a comma

2015-09-03 Thread ast
"ast" a écrit dans le message de news:55e83afb$0$3157$426a7...@news.free.fr... Hello, At the end of the last line of the following program, there is a comma, I dont understand why ? Thx from cx_Freeze import setup, Executable # On appelle la fonction setup setup(

Re: Strange location for a comma

2015-09-03 Thread ast
"ast" a écrit dans le message de news:55e83afb$0$3157$426a7...@news.free.fr... Hello, At the end of the last line of the following program, there is a comma, I dont understand why ? Thx from cx_Freeze import setup, Executable # On appelle la fonction setup setup(

sending push notifications

2015-09-03 Thread Larry Martell
I'm looking for people's experiences with the different ways to send push notifications to mobile devices. I have an app that will be running on Amazon, so I can use their SNS API or I can do it myself. >From googling there appear to be a few different packages but PyAPNs and python-gcm seem to be

[issue24987] subprocess.Popen with shell=True doesn't create socket

2015-09-03 Thread Eric V. Smith
Eric V. Smith added the comment: With both python 2 and 3, what does "ps -efww | fgrep soffice" produce? -- nosy: +eric.smith ___ Python tracker ___

Re: Strange location for a comma

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 14:20:06 +0200, "ast" writes: >Hello, > >At the end of the last line of the following program, >there is a comma, I dont understand why ? > >Thx > > >from cx_Freeze import setup, Executable > ># On appelle la fonction setup >setup( >name = "salut", >

Re: XML Binding

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 3:21 PM, Palpandi wrote: > Thanks Burak. > > lmxl is good. But it is not supported with python 2.5. Any other option? The latest version isn't. But PyPI has an older version which is: https://pypi.python.org/pypi/lxml/3.3.6 You should be able to

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Christian Gollwitzer
Am 03.09.15 um 16:32 schrieb Heli Nix: I have my python scripts that use several python libraries such as h5py, pyside, numpy In Windows I have an installer that will install python locally on user machine and so my program gets access to this local python and runs successfully. How can I

Re: XML Binding

2015-09-03 Thread Palpandi
Thanks Burak. lmxl is good. But it is not supported with python 2.5. Any other option? -- https://mail.python.org/mailman/listinfo/python-list

[issue24989] scan_eol() Buffer Over-read

2015-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b6ce7e9595c by Serhiy Storchaka in branch '3.5': Issue #24989: Fixed buffer overread in BytesIO.readline() if a position is https://hg.python.org/cpython/rev/2b6ce7e9595c -- ___ Python tracker

Re: Need Help w. PIP!

2015-09-03 Thread MRAB
On 2015-09-04 02:04, Steve Burrus wrote: On Thursday, September 3, 2015 at 7:06:27 PM UTC-5, Mark Lawrence wrote: On 03/09/2015 23:20, Steve Burrus wrote: > Well I hjave certainly noted more than once that pip is cont ained in Python 3.4. But I am having the most extreme problems with simply

[issue21192] Idle: Print filename when running a file from editor

2015-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: On 9/3/2015 4:31 AM, Larry Hastings wrote: > Terry, if you want this pulled in to Python 3.5.0, you'll need to create a > pull request on Bitbucket. Instructions are here: > > https://mail.python.org/pipermail/python-dev/2015-August/141167.html I don't

Re: packing unpacking depends on order.

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 9:25 AM, Sven R. Kunze wrote: > Both sides may have side-effects, but at least independently from each > other. That's at least how I feel about it. You can't do that, though. Every piece of Python code can cause arbitrary code to execute, and unless you

Re: No request in module urllib ?

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 12:17 PM, Vincent Vande Vyvre wrote: >> import urllib.request >> urllib.request.urlopen('http://example.org') >> > > Thanks, that works with 3.4.0. No with 3.2.3 Hmm, not sure why it wouldn't. According to the docs [1] it should be

Re: No request in module urllib ?

2015-09-03 Thread Vincent Vande Vyvre
Le 04/09/2015 04:30, Chris Angelico a écrit : On Fri, Sep 4, 2015 at 12:17 PM, Vincent Vande Vyvre wrote: import urllib.request urllib.request.urlopen('http://example.org') Thanks, that works with 3.4.0. No with 3.2.3 Hmm, not sure why it wouldn't. According

Re: Need Help w. PIP!

2015-09-03 Thread Mark Lawrence
On 04/09/2015 04:08, Chris Angelico wrote: On Fri, Sep 4, 2015 at 1:04 PM, Mark Lawrence wrote: On 04/09/2015 02:55, Chris Angelico wrote: On Fri, Sep 4, 2015 at 11:04 AM, Steve Burrus wrote: I have tried the 'python get-pip.py' command

[issue18540] imaplib.IMAP4() ends with "Name or service not known" on Fedora 18

2015-09-03 Thread Milan Oberkirch
Milan Oberkirch added the comment: I shouldn't criticize my own patches if I want to have them committed: Here comes the final and perfect patch for this issue ;) (I only rephrased the comment for the test to make the intuition clear.) -- Added file:

<    1   2   3   >