[issue26172] iBook can't open ePub

2016-01-20 Thread INADA Naoki
New submission from INADA Naoki: Script cannot run in iBook is included in ePub. Attached patch resolves the issue. -- assignee: docs@python components: Documentation files: epub.patch keywords: patch messages: 258734 nosy: docs@python, naoki priority: normal severity: normal status:

[issue25704] Update the devguide to 3.5

2016-01-20 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Stéphane! Ned applied most of your patch in f53eac8da0b8. I left "sudo apt-get build-dep python3.4" as is since python3.5 is not available in the latest LTS release of Ubuntu. -- resolution: -> fixed stage: patch review -> resolved status:

[issue25704] Update the devguide to 3.5

2016-01-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32545ee8d673 by Berker Peksag in branch 'default': Issue #25704: Update Python version to 3.5 where appropriate https://hg.python.org/devguide/rev/32545ee8d673 -- nosy: +python-dev ___ Python tracker

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2016-01-20 Thread Jason R. Coombs
Jason R. Coombs added the comment: I believe this behavior (presence of the __PYVENV_LAUNCHER__ and inheritance in child processes) continues to cause problems. See https://github.com/pypa/virtualenv/issues/845 for a simple reproducing of the issue, even on pip 6+. -- nosy:

[issue26169] Pasting 900000 chars into a tk Entry widget fails

2016-01-20 Thread Terry J. Reedy
New submission from Terry J. Reedy: '\x41' == 'A'. I don't know what 'BOF' has to do with the character 'A' or a string of them. A python or pythonw process 'hanging' does not itself mean that there is a buffer overflow, though I can understand why you suspect it. Python itself is pretty

[issue26171] heap overflow in zipimporter module

2016-01-20 Thread Insu Yun
New submission from Insu Yun: in zipimport.c 1116 bytes_size = compress == 0 ? data_size : data_size + 1; 1117 if (bytes_size == 0) 1118 bytes_size++; 1119 raw_data = PyBytes_FromStringAndSize((char *)NULL, bytes_size); If compress != 0, then bytes_size = data_size +

Re: How to fix my imports/file structure

2016-01-20 Thread Terry Reedy
On 1/20/2016 8:26 PM, Travis Griggs wrote: I wrote a simple set of python3 files for emulating a small set of mongodb features on a 32 bit platform. I fired up PyCharm and put together a directory that looked like: minu/ client.py database.py collection.py test_client.py

How to fix my imports/file structure

2016-01-20 Thread Travis Griggs
I wrote a simple set of python3 files for emulating a small set of mongodb features on a 32 bit platform. I fired up PyCharm and put together a directory that looked like: minu/ client.py database.py collection.py test_client.py test_database.py test_client.py My

[issue26171] heap overflow in zipimporter module

2016-01-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 01ddd608b85c by Benjamin Peterson in branch '3.4': prevent buffer overflow in get_data (closes #26171) https://hg.python.org/cpython/rev/01ddd608b85c New changeset 985fc64c60d6 by Benjamin Peterson in branch '2.7': prevent buffer overflow in

[issue26167] Improve copy.copy speed for built-in types (list/set/dict)

2016-01-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: Good point. Though I don't see any attached patches... -- ___ Python tracker ___

Re: How to fix my imports/file structure

2016-01-20 Thread Steven D'Aprano
On Thursday 21 January 2016 12:26, Travis Griggs wrote: > I wrote a simple set of python3 files for emulating a small set of mongodb > features on a 32 bit platform. I fired up PyCharm and put together a > directory that looked like: > > minu/ > client.py > database.py >

How to use the docstring in this property example

2016-01-20 Thread Robert
Hi, I read below code snippet on link: https://docs.python.org/2/library/functions.html#property -- class C(object): def __init__(self): self._x = None def getx(self): return self._x def setx(self, value): self._x = value def delx(self):

Re: How to use the docstring in this property example

2016-01-20 Thread Steven D'Aprano
On Thursday 21 January 2016 15:00, Robert wrote: > Hi, > > I read below code snippet on link: > https://docs.python.org/2/library/functions.html#property Property docstrings are hard to get to. But with the class C you gave, this works in the interactive interpreter: help(C.__dict__['x'])

[issue26172] iBook can't open ePub

2016-01-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 562179b7912f by Benjamin Peterson in branch '3.4': remove script from epub (closes #26172) https://hg.python.org/cpython/rev/562179b7912f New changeset 56e68089ad65 by Benjamin Peterson in branch '3.5': merge 3.4 (#26172)

Re: Same function but different names with different set of default arguments

2016-01-20 Thread Yann Kaiser
partial treats keyword arguments as default values, though they become keyword-only as a result : f1 = functools.partial(g, p="p1") On Thu, Jan 21, 2016, 08:35 Paulo da Silva wrote: > Hi all. > > What is the fastest implementation of the following code? > > def

Installing on linux - missing devel packages

2016-01-20 Thread Frank Millman
Hi all Fedora 22 comes standard with Python 3.4.2. I want to install 3.5.1. It is easy enough to download the source and run ./configure;make;make altinstall. But then I find that I cannot import gzip because zlib-devel is missing. I fix that, then I find that sqlite-devel is missing. Is

[issue22872] multiprocessing.Queue raises AssertionError

2016-01-20 Thread Berker Peksag
Berker Peksag added the comment: See issue 5001 for more general cleanup in multiprocessing. > [...] (2) altering the behavior in a new release version (perhaps 3.6 when it > comes) and documenting that change appropriately there. +1. We can also document AssertionError in older Python

[issue26106] Move licences to literal blocks

2016-01-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset a04d9589e2c4 by Victor Stinner in branch '3.5': Issue #26106: doc: Move text of licenses to parsed literal block https://hg.python.org/cpython/rev/a04d9589e2c4 -- nosy: +python-dev ___ Python tracker

Re: Installing on linux - missing devel packages

2016-01-20 Thread Chris Angelico
On Thu, Jan 21, 2016 at 6:18 PM, Frank Millman wrote: > Fedora 22 comes standard with Python 3.4.2. I want to install 3.5.1. > > It is easy enough to download the source and run ./configure;make;make > altinstall. But then I find that I cannot import gzip because zlib-devel is

Same function but different names with different set of default arguments

2016-01-20 Thread Paulo da Silva
Hi all. What is the fastest implementation of the following code? def g(p): ... return something def f1(p="p1"): return g(p) def f2(p="p2"): return g(p) Thanks Paulo -- https://mail.python.org/mailman/listinfo/python-list

[issue26170] pip Crash on Unpacking in get_platform() line 119

2016-01-20 Thread Vinyl Darkscratch-Kazotetsu
New submission from Vinyl Darkscratch-Kazotetsu: Since upgrading to pip 8.0, I get a crash whenever I try to run it. It fails to unpack to major, minor, and micro for the release, saying there's only two values. Traceback (most recent call last): File

[issue26170] pip Crash on Unpacking in get_platform() line 119

2016-01-20 Thread Donald Stufft
Donald Stufft added the comment: Hey, This is actually a bug with pip not with CPython and is being tracked by https://github.com/pypa/pip/issues/3408. It's fixed in pip's repository and we'll soon have an 8.0.1 release out to fix it. -- nosy: +dstufft resolution: -> third party

[issue26170] pip Crash on Unpacking in get_platform() line 119

2016-01-20 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> resolved type: crash -> behavior ___ Python tracker ___

Re: Single format descriptor for list

2016-01-20 Thread Grobu
On 20/01/16 10:35, Paul Appleby wrote: In BASH, I can have a single format descriptor for a list: $ a='4 5 6 7' $ printf "%sth\n" $a 4th 5th 6th 7th Is this not possible in Python? Using "join" rather than "format" still doesn't quite do the job: a = range(4, 8) print

[issue26166] zlib compressor/decompressor objects should support copy protocol

2016-01-20 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- type: -> enhancement ___ Python tracker ___

[issue26167] Improve copy.copy speed for built-in types

2016-01-20 Thread Josh Rosenberg
New submission from Josh Rosenberg: copy.copy uses a relatively high overhead approach to copying list, set and dict, using: def _copy_with_constructor(x): return type(x)(x) This is despite the fact that all three types implement a .copy() method, and there is already a defined

[issue26167] Improve copy.copy speed for built-in types (list/set/dict)

2016-01-20 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- title: Improve copy.copy speed for built-in types -> Improve copy.copy speed for built-in types (list/set/dict) ___ Python tracker

[issue25843] code_richcompare() don't use constant type when comparing code constants

2016-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks to me that the patch makes set and frozenset constants to be equal, but makes sets with different order (as {2**62, 1} and {1, 2**62}) differ. And looks you had missed my comments to previous patches. -- stage: -> patch review versions:

[issue26168] Py_BuildValue may leak 'N' arguments on PyTuple_New failure

2016-01-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> needs patch versions: +Python 3.5, Python 3.6 ___ Python tracker

[issue8519] doc: termios and ioctl reference links

2016-01-20 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -Guido.van.Rossum ___ Python tracker ___ ___

[issue18858] dummy_threading lacks threading.get_ident() equivalent

2016-01-20 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> berker.peksag stage: patch review -> commit review ___ Python tracker ___

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-01-20 Thread Steve Dower
Steve Dower added the comment: MSVC has had Link-Time Code Generation for many releases, and it should have been used for all 2.7 releases (definitely used in 3.5+) to optimize references between object files. I assume this is equivalent to LTO. We currently don't use PGO in the official

[issue26166] zlib compressor/decompressor objects should support copy protocol

2016-01-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: Oops. Sorry. I swear I searched, but I can't figure out how I missed the obvious duplicate there. -- ___ Python tracker

[issue25007] Add support of copy protocol to zlib compressors and decompressors

2016-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree with Josh. Needed __deepcopy__ and tests. And I think there may be problem with sharing a docstring (that includes a signature) between copy() and __copy__(). It is better to just add separate method that calls the implementation of copy().

[issue26168] Py_BuildValue may leak 'N' arguments on PyTuple_New failure

2016-01-20 Thread squidevil
New submission from squidevil: Expected behavior: Calling Py_BuildValue with a 'N' argument should take ownership of the N object, and on failure (returns NULL), call Py_DECREF() on any N argument. The documentation explicitly says that this is the intended usage: "N": Same as "O",

[issue25934] ICC compiler: ICC treats denormal floating point numbers as 0.0

2016-01-20 Thread Mark Dickinson
Mark Dickinson added the comment: The dtoa.c occurrence is also straightforward to fix. It's coming from this declaration: static const double tinytens[] = { 1e-16, 1e-32, 1e-64, 1e-128, 9007199254740992.*9007199254740992.e-256}; We need to be a tiny bit careful

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

2016-01-20 Thread Stefan Krah
Stefan Krah added the comment: 1) Feedback whether the compiler used on FreeBSD recognizes FENV_ACCESS. 2) If not, an indication why the man page mentions it. -- ___ Python tracker

[no subject]

2016-01-20 Thread John 111
Sent from Windows Mail I can’t use python. I just download it on my windows but when I open it they show me three options only change,repair & uninstall. I am looking forward for the solution from you. Hope to hear from you soon!!! --

[issue25007] Add support of copy protocol to zlib compressors and decompressors

2016-01-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: Patch looks good, but incomplete. Supporting __deepcopy__ (as a simple wrapper around __copy__ that ignores the second argument) would provide complete support. Also, should there be tests? I mean, I assume the .copy() method itself is tested, but just to

[issue26165] devguide: table summarizing status of Python branches

2016-01-20 Thread STINNER Victor
New submission from STINNER Victor: A frequent question is to get the status of a Python branch: is it still maintained? when does the support stop? Attached patch adds a short table giving the current status of Python branches between 2.6 and 3.6 (default). I sorted branches by their

[issue26165] devguide: table summarizing status of Python branches

2016-01-20 Thread STINNER Victor
STINNER Victor added the comment: The table is inspired by http://docs.openstack.org/releases/ which only gives the status, not the past or scheduled end-of-life date. -- ___ Python tracker

[issue26165] devguide: table summarizing status of Python branches

2016-01-20 Thread koobs
koobs added the comment: OH THANK YOU! If possible, add Months or Quarter (Q1-4) for the EoL's, if those are defined, would be great. We @ FreeBSD/Python would like to proactively (as early as possible) set DEPRECATED dates in our ports to ensure our users have ample time to upgrade to

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

2016-01-20 Thread STINNER Victor
STINNER Victor added the comment: Andrew Turner: "Can this be applied?" koobs: "What remains to be done/identified/answers here to make progress?" *I* don't understand if replacing fpsetmask() with fedisableexcept() is enough, or if we also need to starting putting "#pragma STDC FENV_ACCESS

ANN: psutil 3.4.2 released

2016-01-20 Thread Giampaolo Rodola'
Hello all, I'm glad to announce the release of psutil 3.4.2: https://github.com/giampaolo/psutil/ About = psutil (python system and process utilities) is a cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, network) in Python.

[issue25934] ICC compiler: ICC treats denormal floating point numbers as 0.0

2016-01-20 Thread Zachary Ware
Zachary Ware added the comment: Ah, it's been a while since I tested that, so my reporting was inaccurate. The problem is actually that the compile fails: ..\Modules\mathmodule.c(1924): error C2099: initializer is not a constant [C:\cpython\PCbuild\pythoncore.vcxproj]

[issue25934] ICC compiler: ICC treats denormal floating point numbers as 0.0

2016-01-20 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks. The offending lines in the math module are: static const double degToRad = Py_MATH_PI / 180.0; static const double radToDeg = 180.0 / Py_MATH_PI; It would be trivial to replace these with suitable constants. --

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

2016-01-20 Thread Stefan Krah
Stefan Krah added the comment: Thanks, then the patch looks good to me. -- ___ Python tracker ___ ___

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2016-01-20 Thread Samuel BOVÉE
Samuel BOVÉE added the comment: Up for this bug. I got this bug in my code and loose one hour to understand what happened. Please review Martin's patch ! -- nosy: +Samuel BOVÉE ___ Python tracker

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

2016-01-20 Thread Andrew Turner
Andrew Turner added the comment: I think this patch is correct. Clang, as shipped by FreeBSD, doesn't support FENV_ACCESS. It raises the following warning: fenv_test.c:2:14: warning: pragma STDC FENV_ACCESS ON is not supported, ignoring pragma [-Wunknown-pragmas] #pragma STDC FENV_ACCESS ON

Re:

2016-01-20 Thread Igor Korot
Hi, John, On Wed, Jan 20, 2016 at 11:29 AM, John 111 wrote: > > > Sent from Windows Mail > I can’t use python. I just download it on my windows but when I > open it they show me three options only change,repair & uninstall. I am > looking forward for the

[issue25687] Error during test case and tearDown

2016-01-20 Thread Gedai Tamás Bence
Gedai Tamás Bence added the comment: I think it's in the docs, although if you don't find it sufficient I might try to update it. `tearDown method `_ "This is called even if the test method raised an exception [...]

[issue25934] ICC compiler: ICC treats denormal floating point numbers as 0.0

2016-01-20 Thread Steve Dower
Steve Dower added the comment: I'm -0 on changing the universal default (and want to call out that it's a relevant porting note for 3.6, not appropriate for 3.5), but we can presumably fix those in case someone wants to use strict for their own build. --

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

2016-01-20 Thread koobs
koobs added the comment: This issue is becoming increasingly important as FreeBSD 11.0-RELEASE time nears. What remains to be done/identified/answers here to make progress? -- versions: +Python 2.7, Python 3.5 ___ Python tracker

Re:

2016-01-20 Thread Joel Goldstick
On Wed, Jan 20, 2016 at 11:29 AM, John 111 wrote: > > > Sent from Windows Mail > I can’t use python. I just download it on my windows but > when I open it they show me three options only change,repair & uninstall. I > am looking forward for the solution from

paramiko transport and invoke_shell

2016-01-20 Thread greg . szewski
Hi, I've found below code which almost suits my needs but I need to interact via shell so can do stuff like sudo su - user then when sudo asks for password I need to send password and working as user run next commands . I'm pretty sure invoke_shell method is the solution but my programing

[issue26168] Py_BuildValue may leak 'N' arguments on PyTuple_New failure

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

[issue26162] thread error

2016-01-20 Thread Eryk Sun
Eryk Sun added the comment: It's no surprise to see a memory error at 845 threads if you're using 32-bit Python, which is limited to 2 GiB of address space. python.exe is built with a default stack reservation of 200 bytes, so 845 threads reserve a total of about 1.58 GiB. Consider also

[issue26152] A non-breaking space in a source

2016-01-20 Thread Martin Panter
Martin Panter added the comment: The caret always points to the end of the token, I think. -- nosy: +martin.panter ___ Python tracker ___

[issue26169] Buffer OverFlow

2016-01-20 Thread Soufiane BOUSSALI
Changes by Soufiane BOUSSALI : Added file: http://bugs.python.org/file41674/py2.7.11.png ___ Python tracker ___

[issue26167] Improve copy.copy speed for built-in types (list/set/dict)

2016-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: methodcaller is not needed. We can use just list.copy etc. Proposed patch speeds up copying list, dict, set, bytearray, slice, NotImplemented. It makes deepcopying list, tuple, dict a little faster. It makes the code for copying and deepcopying using

[issue26152] A non-breaking space in a source

2016-01-20 Thread Adam Bartoš
Adam Bartoš added the comment: We have one particular invalid token, so why it should point to the next token rather than to the invalid one? -- ___ Python tracker

[issue26152] A non-breaking space in a source

2016-01-20 Thread Martin Panter
Martin Panter added the comment: Assuming Andrew is correct, it sounds like the tokenizer is treating the NBSP and the “2” as part of the same token, because NBSP is non-ASCII. -- ___ Python tracker

[issue26169] Buffer OverFlow in IDLE

2016-01-20 Thread SilentGhost
Changes by SilentGhost : -- nosy: +kbk, roger.serwy, terry.reedy title: Buffer OverFlow -> Buffer OverFlow in IDLE ___ Python tracker

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

2016-01-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 76f35f35be50 by Victor Stinner in branch '3.5': Replace fpgetmask() with fedisableexcept() https://hg.python.org/cpython/rev/76f35f35be50 New changeset 6134d9ecab60 by Victor Stinner in branch 'default': Merge 3.5 (issue #24520)

[issue25520] unittest load_tests protocol not working as documented

2016-01-20 Thread Stefan Seefeld
Stefan Seefeld added the comment: Hi, I'm investigating more issues related to test loading, and thus I have discovered issue #16662. I have found quite a number of inconsistencies and bugs in the loading of tests. But without getting a sense of what the supposed behavior is I find it

[issue26169] Buffer OverFlow

2016-01-20 Thread Soufiane BOUSSALI
Changes by Soufiane BOUSSALI : -- components: IDLE files: poc.py nosy: Soufiane BOUSSALI priority: normal severity: normal status: open title: Buffer OverFlow type: crash versions: Python 2.7 Added file: http://bugs.python.org/file41673/poc.py

[issue26165] devguide: table summarizing status of Python branches

2016-01-20 Thread STINNER Victor
STINNER Victor added the comment: > If possible, add Months or Quarter (Q1-4) for the EoL's, if those are > defined, would be great. I added the estimated *day* of the end-of-line. But the release manager is free to adjust it. > We @ FreeBSD/Python would like to proactively (as early as

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

2016-01-20 Thread STINNER Victor
STINNER Victor added the comment: "I expect the man page mentions it because it is mentioned in the standard. In the bugs section it does say the pragma is unimplemented." Ah ah, funnny. Sorry, I was confused by the manual page. I pushed your patch to Python 2.7, 3.5 and default (3.6)

[issue26152] A non-breaking space in a source

2016-01-20 Thread Adam Bartoš
Adam Bartoš added the comment: It could still point to the first or the last byte of the invalid token rather than to the start of the next token. Also, by the Python implementation of the tokenizer in tokenize module we get an ERRORTOKEN containing a non-breaking space followed by a number

[issue26165] devguide: table summarizing status of Python branches

2016-01-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 75b95ada261f by Victor Stinner in branch 'default': Add a table "Status of Python branches" to the front page https://hg.python.org/devguide/rev/75b95ada261f -- nosy: +python-dev ___ Python tracker

[issue26165] devguide: table summarizing status of Python branches

2016-01-20 Thread STINNER Victor
STINNER Victor added the comment: I pushed a first version of the table. It can be adjusted later if needed. -- resolution: -> fixed status: open -> closed ___ Python tracker

Recurring Prompt

2016-01-20 Thread Mansi
Hello, I just installed Python 3.5.1 but anytime I use Pycharm, a prompt of whether I want to modify, repair or uninstall Python keeps on coming up. Even while I'm in the midst of typing a program. Please advise. Sincerely, Mansi -- https://mail.python.org/mailman/listinfo/python-list

Re: installing

2016-01-20 Thread Mark Lawrence
On 20/01/2016 20:41, navneet bhatele wrote: Whenever i try to install python-3.5.1-amd64 a problem occur , picture of which has attached. Sometimes "0*80070002 file error" also occur. WHAT SHOULD I DO This has been asked and answered repeatedly over the last few months so search the

Re: Recurring Prompt

2016-01-20 Thread Mark Lawrence
On 20/01/2016 19:30, Mansi wrote: Hello, I just installed Python 3.5.1 but anytime I use Pycharm, a prompt of whether I want to modify, repair or uninstall Python keeps on coming up. Even while I'm in the midst of typing a program. Please advise. Sincerely, Mansi This has been asked and

New user group: Rochester, MN, USA

2016-01-20 Thread Jonathan Hartley
http://www.meetup.com/PyRochesterMN First meeting planned for Thu 28th January 2016 -- Jonathan Hartley tart...@tartley.com +1 507-513-1101 -- https://mail.python.org/mailman/listinfo/python-list

installing

2016-01-20 Thread navneet bhatele
Whenever i try to install python-3.5.1-amd64 a problem occur , picture of which has attached. Sometimes "0*80070002 file error" also occur. WHAT SHOULD I DO -- https://mail.python.org/mailman/listinfo/python-list

[issue25843] code_richcompare() don't use constant type when comparing code constants

2016-01-20 Thread STINNER Victor
STINNER Victor added the comment: Patch version 4: Fix _PyCode_ConstantKey: * always return a tuple * create a frozenset/set if input is a set/frozenset, items are unordered * enhance unit tests: compare values using repr() to compare value + type at once * fix reference leak Other minor

[issue25843] code_richcompare() don't use constant type when comparing code constants

2016-01-20 Thread STINNER Victor
STINNER Victor added the comment: And sorry, I missed your comments, it looks like some emails were seen as spam :-/ -- ___ Python tracker ___

Re: libre office

2016-01-20 Thread Karim
On 20/01/2016 00:01, jim-pc wrote: How do I get data from libre office using python? Hello, The function below search and get text between 2 delimiters inside a libre office swriter document. It is given as an example. You still have to open a document object in Swriter server.(In the

RE: libre office

2016-01-20 Thread Albert-Jan Roskam
> From: ji...@frontier.com > To: python-list@python.org > Subject: libre office > Date: Tue, 19 Jan 2016 17:01:40 -0600 > > How do I get data from libre office using python? Does this help?http://www.openoffice.org/udk/python/python-bridge.html --

[issue26169] Buffer OverFlow in IDLE 2.7.11

2016-01-20 Thread Soufiane BOUSSALI
Changes by Soufiane BOUSSALI : -- title: Buffer OverFlow in IDLE -> Buffer OverFlow in IDLE 2.7.11 ___ Python tracker ___

[issue26152] A non-breaking space in a source

2016-01-20 Thread Andrew Barnert
Andrew Barnert added the comment: > Assuming Andrew is correct, it sounds like the tokenizer is treating the NBSP > and the “2” as part of the same token, because NBSP is non-ASCII. It's more complicated than that. When you get an invalid character, it splits the token up. So, in this case,

[issue25591] refactor imaplib tests

2016-01-20 Thread Maciej Szulik
Maciej Szulik added the comment: David I think I've re-implemented, using the new style, all the methods from ThreadedNetworkedTests and ThreadedNetworkedTestsSSL, the new classes are NewIMAPTests and NewIMAPSSLTests accordingly. -- stage: -> patch review Added file:

[issue26165] devguide: table summarizing status of Python branches

2016-01-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +koobs, larry ___ Python tracker ___ ___

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-01-20 Thread Brett Cannon
Brett Cannon added the comment: To help answer MAL's question about Windows: I know the python.org installers are **not** built with PGO, but I don't know about LTO. -- nosy: +steve.dower ___ Python tracker

[issue26166] zlib compressor/decompressor objects should support copy protocol

2016-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue25007. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Add support of copy protocol to zlib compressors and decompressors

Re: installing

2016-01-20 Thread Terry Reedy
On 1/20/2016 3:41 PM, navneet bhatele wrote: Whenever i try to install python-3.5.1-amd64 a problem occur , picture of which has attached. This is a text only, no attachments allowed mailing list. So picture was discarded. -- Terry Jan Reedy --

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-01-20 Thread STINNER Victor
STINNER Victor added the comment: I suggest to only modify the default branch and work with downstream (like Linux vendors) to compile Python with best compiler options. I'm talking about the default compilation mode. Maybe we can add a configure option to 2.7 and 3.5, disabled by default, to

[issue25934] ICC compiler: ICC treats denormal floating point numbers as 0.0

2016-01-20 Thread Mark Dickinson
Mark Dickinson added the comment: Which tests fail with MSVC /fp:strict? It's surprising that making behaviour stricter causes tests to fail that wouldn't have done otherwise. :-) -- ___ Python tracker

[issue26147] Encoding errors in xmlrpc

2016-01-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb2cb184eca9 by Serhiy Storchaka in branch '2.7': Issue #26147: xmlrpclib now works with unicode not encodable with used https://hg.python.org/cpython/rev/bb2cb184eca9 New changeset 6c624ba1b61e by Serhiy Storchaka in branch '3.5': Issue #26147:

[issue1674555] sys.path in tests contains system directories

2016-01-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +martin.panter, serhiy.storchaka versions: +Python 3.6 -Python 3.4 ___ Python tracker ___

[issue25843] lambdas on the same line may incorrectly share code objects

2016-01-20 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-01-20 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file41666/lto-cpython3-v04.patch ___ Python tracker ___

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-01-20 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Thank you for your feedback, I've updated the patches and now LTO flags are used only when building with PGO (v04). CFLAGS/LDFLAGS remain untouched, as Antoine and Victor suggested is better. -- Added file:

[issue26150] SequenceMatcher's algorithm is not correct

2016-01-20 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___

[issue26147] Encoding errors in xmlrpc

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

Single format descriptor for list

2016-01-20 Thread Paul Appleby
In BASH, I can have a single format descriptor for a list: $ a='4 5 6 7' $ printf "%sth\n" $a 4th 5th 6th 7th Is this not possible in Python? Using "join" rather than "format" still doesn't quite do the job: >>> a = range(4, 8) >>> print ('th\n'.join(map(str,a))) 4th 5th 6th 7 Is there an

Re: Single format descriptor for list

2016-01-20 Thread Frank Millman
"Paul Appleby" wrote in message news:pan.2016.01.20.09.35.09@nowhere.invalid... In BASH, I can have a single format descriptor for a list: $ a='4 5 6 7' $ printf "%sth\n" $a 4th 5th 6th 7th Is this not possible in Python? Using "join" rather than "format" still doesn't quite do the job:

[issue26161] Use Py_uintptr_t instead of void* for atomic pointers

2016-01-20 Thread STINNER Victor
STINNER Victor added the comment: (Oops, I attached the wrong patch. It's now fixed.) -- Added file: http://bugs.python.org/file41668/atomic_pointer.patch ___ Python tracker

[issue26161] Use Py_uintptr_t instead of void* for atomic pointers

2016-01-20 Thread STINNER Victor
New submission from STINNER Victor: Attached patch fixes compiler warnings on atomic pointers. Python has 4 implementations of atomic types: * * GCC 4.7+ builtin atomic operations * GCC x86 and x86_64 assembler * volatile The type of atomic pointers changes depending on the implementation.

  1   2   >