Re: Letter class in re

2015-03-09 Thread Antoon Pardon
Op 09-03-15 om 12:17 schreef Tim Chase: On 2015-03-09 11:37, Wolfgang Maier wrote: On 03/09/2015 11:23 AM, Antoon Pardon wrote: Does anyone know what regular expression to use for a sequence of letters? There is a class for alphanumerics but I can't find one for just letters, which I find

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower
Steve Dower added the comment: Setuptools just does a monkey patch of distutils, so importing it is sufficient. Or you can find the patching in the setuptools source and copy it into your setup.py file. -- ___ Python tracker rep...@bugs.python.org

[issue23622] Deprecate unrecognized backslash+letter escapes

2015-03-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Regular expressions use the backslash character for two functions: 1) to indicate special forms; 2) to allow special characters to be used without invoking their special meaning. If backslash + character is not recognized as special form (1), it

Re: Letter class in re

2015-03-09 Thread Wolfgang Maier
On 03/09/2015 01:26 PM, Antoon Pardon wrote: Op 09-03-15 om 12:17 schreef Tim Chase: On 2015-03-09 11:37, Wolfgang Maier wrote: On 03/09/2015 11:23 AM, Antoon Pardon wrote: Does anyone know what regular expression to use for a sequence of letters? There is a class for alphanumerics but I

Re: Idle - ImportError: No module named numpy

2015-03-09 Thread Dave Angel
On 03/07/2015 02:15 PM, Markos wrote: Hi, I'm beginning to study the numpy. When I open a terminal (Debian Squeeze) and run the python interpreter the command import numpy as np run without errors. But when I run the same command on idle3 the following error appears. import numpy as np

Re: Letter class in re

2015-03-09 Thread Antoon Pardon
Op 09-03-15 om 11:37 schreef Wolfgang Maier: On 03/09/2015 11:23 AM, Antoon Pardon wrote: I am using PLY for a parsing task which uses re for the lexical analysis. Does anyone know what regular expression to use for a sequence of letters? There is a class for alphanumerics but I can't find

Re: Letter class in re

2015-03-09 Thread Wolfgang Maier
On 03/09/2015 02:33 PM, Albert-Jan Roskam wrote: On Mon, 3/9/15, Tim Chase python.l...@tim.thechases.com wrote: [^\d\W_]+ means something like one or more (+) of 'not (a digit, a non-word, an underscore)'. interesting (using Python3.4 and U+2188

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-09 Thread Tim
On Wednesday, March 4, 2015 at 8:34:16 PM UTC-5, Xrrific wrote: Guys, please Help!!! I am trying to impress a girl who is learning python and want ask her out at the same time. Could you please come up with something witty incorporating a simple python line like If...then... but..etc.

[issue23619] Python 3.5.0a2 installer fails on Windows

2015-03-09 Thread STINNER Victor
STINNER Victor added the comment: Same error on my Windows 7 VM. I have VS 2008 2010 installed, but also Python 2.7, 3.3 and 3.4 (all installed twice: 3264 bits). It's not a fresh Windows :-) Here is a ZIP of Python 3.5* logs in my Temp directory. I cannot compress the whole directory, it's

[issue23621] Uninstalling Python 3.5 removes a py.exe that was installed with Python 3.4

2015-03-09 Thread Paul Moore
New submission from Paul Moore: When I installed Python 3.4, I included the py.exe launcher. I have just installed Python 3.5a0, then uninstalled it again, and the py.exe launcher has gone. Either the 3.5 installer should notice that py.exe is already present and remember *not* to uninstall

Re: Letter class in re

2015-03-09 Thread Albert-Jan Roskam
On Mon, 3/9/15, Tim Chase python.l...@tim.thechases.com wrote: Subject: Re: Letter class in re To: python-list@python.org Date: Monday, March 9, 2015, 12:17 PM On 2015-03-09 11:37, Wolfgang Maier wrote: On 03/09/2015 11:23 AM, Antoon Pardon

[issue23619] Python 3.5.0a2 installer fails

2015-03-09 Thread Ben Hoyt
Ben Hoyt added the comment: Same exact issue here. I didn't have a Python 3.5 alpha 1 previously installed, and I tried running the installer normally and also (after uninstalling) with right-click, Run as administrator. Both do the same thing for me: pop up a dialog box at the end of

[issue23620] cross-type comparison is different in python minor versions

2015-03-09 Thread R. David Murray
R. David Murray added the comment: In Python2, all objects were comparable (except DateTime stuff...and maybe there was one other exception, I forget). We did indeed decide this was a bug and fixed it in Python3. Now objects of different types are comparable if only if at least one of them

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Michael Clerx
Michael Clerx added the comment: Thanks! However, importing setuptools causes a string of errors about PYTHONPATH and .pth files (even on a linux system) In addition, a monkeypatched version of find_vcvarsall allowed things to run, but it seems finding plain C libraries with Visual C++ for

Re: Letter class in re

2015-03-09 Thread Serhiy Storchaka
On 09.03.15 14:26, Antoon Pardon wrote: So if I understand correctly the following should be a regular expression for a python3 identifier. (?:(?!_|\d)\w)\w+ It seems odd that one should need such an ugly expression for something that is used rather frequently for parsing computer languages

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-09 Thread Omar Abou Mrad
On Thu, Mar 5, 2015 at 3:34 AM, Xrrific xiaok...@gmail.com wrote: Guys, please Help!!! I am trying to impress a girl who is learning python and want ask her out at the same time. Could you please come up with something witty incorporating a simple python line like If...then... but..etc.

Re: Letter class in re

2015-03-09 Thread Tim Chase
On 2015-03-09 13:26, Antoon Pardon wrote: Op 09-03-15 om 12:17 schreef Tim Chase: (?:(?!_|\d)\w) So if I understand correctly the following should be a regular expression for a python3 identifier. (?:(?!_|\d)\w)\w+ If you don't have to treat it as an atom, you can simplify that to

Re: Letter class in re

2015-03-09 Thread Tim Chase
On 2015-03-09 11:37, Wolfgang Maier wrote: On 03/09/2015 11:23 AM, Antoon Pardon wrote: Does anyone know what regular expression to use for a sequence of letters? There is a class for alphanumerics but I can't find one for just letters, which I find odd. how about [a-zA-Z] ? That breaks if

[issue23604] Python 3.4 and 2.7 installation no Script folder and no pip installed

2015-03-09 Thread Daiyue Weng
Daiyue Weng added the comment: The fix that referred to another thread solved my issue completely. thanks -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23604

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Cyd Haselton
Cyd Haselton added the comment: Ryan, What version of Android and KBOX are you using? Are you cross-compiling? If not could you post the output of printenv from within KBOX here? -- ___ Python tracker rep...@bugs.python.org

Re: Newbie question about text encoding

2015-03-09 Thread Rustom Mody
On Monday, March 9, 2015 at 12:05:05 PM UTC+5:30, Steven D'Aprano wrote: Chris Angelico wrote: As to the notion of rejecting the construction of strings containing these invalid codepoints, I'm not sure. Are there any languages out there that have a Unicode string type that requires that

[issue23619] Python 3.5.0a2 installer fails

2015-03-09 Thread Steve Dower
Steve Dower added the comment: If you look in your AppData\Local\Temp directory then you should find a whole pile of log files. Zipping those up and posting them here or emailing them to me would be great. It sounds like the CRT update didn't install, since it's supposed to include that

[issue23619] Python 3.5.0a2 installer fails

2015-03-09 Thread Paul Moore
Paul Moore added the comment: Sent via private email as it's a work PC and I didn't check what's logged in there... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23619 ___

[issue19610] setup.py does not allow a tuple for classifiers

2015-03-09 Thread Éric Araujo
Éric Araujo added the comment: I think classifiers and keywords are the only commonly used fields. This issue could be limited to classifiers, or also include other list fields. -- ___ Python tracker rep...@bugs.python.org

Re: Letter class in re

2015-03-09 Thread Wolfgang Maier
On 03/09/2015 03:04 PM, Wolfgang Maier wrote: On 03/09/2015 02:33 PM, Albert-Jan Roskam wrote: On Mon, 3/9/15, Tim Chase python.l...@tim.thechases.com wrote: [^\d\W_]+ means something like one or more (+) of 'not (a digit, a non-word, an

[issue23613] searchindex.js is annoying

2015-03-09 Thread R. David Murray
R. David Murray added the comment: Martin's solution is similar to the one I use except that I made an alias for it and I also exclude topics.py. Which is a tracked file. It seems that what one wants to ignore is a bit of a personal decision, and so it is probably best left up to the

Re: Letter class in re

2015-03-09 Thread Chris Angelico
On Mon, Mar 9, 2015 at 11:26 PM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: It seems odd that one should need such an ugly expression for something that is used rather frequently for parsing computer languages and the like. Possibly because computer language parsers don't use regular

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-09 Thread Paul Moore
New submission from Paul Moore: With Python 3.5 on Windows defaulting (for all users installs) to the read-only Program Files directory, and with Add Python to PATH having problems adding the per-user user scripts directory to PATH, the Python 3.5 documentation needs to explain the

Re: Letter class in re

2015-03-09 Thread Antoon Pardon
Op 09-03-15 om 14:35 schreef Chris Angelico: On Mon, Mar 9, 2015 at 11:26 PM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: It seems odd that one should need such an ugly expression for something that is used rather frequently for parsing computer languages and the like. Possibly

Re: Letter class in re

2015-03-09 Thread Antoon Pardon
Op 09-03-15 om 15:39 schreef Chris Angelico: On Tue, Mar 10, 2015 at 1:34 AM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: There is str.isidentifier, which returns True if something is a valid identifier name: '℮'.isidentifier() True Which is not very usefull in a context of lexical

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower
Steve Dower added the comment: Python does not support being built with MinGW, but we have support to build extensions with MinGW. It isn't great support, and we're open to patches/contributions (none of our core Windows devs use MinGW AFAIK). And yes, VC is different from MinGW because MinGW

Re: Mock return_value

2015-03-09 Thread Daniel
I found that the following change worked: @mock.patch('dao.dao.execute_ldap_search') def test_find_by_last_first_comma(self, mock_dao): # setup the mock mock_dao.return_value = self.ldap_person_response Daniel On Monday, March 9, 2015 at 10:28:20 AM UTC-5, Daniel wrote:

[issue21478] mock calls don't propagate to parent (autospec)

2015-03-09 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21478 ___ ___ Python-bugs-list

[issue21385] in debug mode, compile(ast) fails with an assertion error if an AST node has no line number information

2015-03-09 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21385 ___ ___ Python-bugs-list

[issue22964] dbm.open(..., x)

2015-03-09 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22964 ___ ___ Python-bugs-list

[issue23618] PEP 475: handle EINTR in the socket module

2015-03-09 Thread STINNER Victor
STINNER Victor added the comment: connect_eintr.py: script calling socket.connect() in a loop and sending SIGARLM signal every millisecond. -- Added file: http://bugs.python.org/file38408/connect_eintr.py ___ Python tracker rep...@bugs.python.org

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-03-09 Thread Claudiu Popa
Claudiu Popa added the comment: I find the new error messages clear and straight to the point. It would be nice if this would get into 3.5. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org

[issue12916] Add inspect.splitdoc

2015-03-09 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Ok, so in this case, you are right to move this issue to the Python 3.6 version, and it's too late for 3.5 Thank you for your help and feedbacks. Stephane -- ___ Python tracker rep...@bugs.python.org

Re: Letter class in re

2015-03-09 Thread Tim Chase
On 2015-03-09 15:29, Antoon Pardon wrote: Op 09-03-15 om 13:50 schreef Tim Chase: (?:(?!_|\d)\w)\w+ If you don't have to treat it as an atom, you can simplify that to just (?!_|\d)\w+ which just means that the first character can't be an underscore or digit. Though for a

[issue23619] Python 3.5.0a2 installer fails on Windows

2015-03-09 Thread Steve Dower
Steve Dower added the comment: I definitely don't want the whole directory, especially from Windows 7 :) (Later versions are better at cleaning up unused files) I'll take a look once I get to work. Thanks -- ___ Python tracker

Re: Letter class in re

2015-03-09 Thread Antoon Pardon
Op 09-03-15 om 14:32 schreef Wolfgang Maier: ... It seems odd that one should need such an ugly expression for something that is used rather frequently for parsing computer languages and the like. There is str.isidentifier, which returns True if something is a valid identifier name:

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Stefan Krah
Stefan Krah added the comment: ImportError: cannot import name 'module_from_spec' The command line uses the system python3, which is too old and does not have 'module_from_spec' yet. Try running ... python3 -S -m sysconfig --generate-posix-vars ... and then continue with `make`. We

Re: Letter class in re

2015-03-09 Thread Chris Angelico
On Tue, Mar 10, 2015 at 1:41 AM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: Op 09-03-15 om 14:35 schreef Chris Angelico: On Mon, Mar 9, 2015 at 11:26 PM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: It seems odd that one should need such an ugly expression for something that is

[issue23618] PEP 475: handle EINTR in the socket module

2015-03-09 Thread STINNER Victor
STINNER Victor added the comment: Oops, connect_eintr.py noticed me (thanks to my recent change of the issue #23571 !) that connect_eintr.patch is wrong: socket.connect() returned None with an exception sent, send connect() was interrupted by SIGINT (CTRL+c). Fixed patch. -- Added

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower
Steve Dower added the comment: Very ugly :-) And also incorrect on 64-bit interpreters (but not 32-bit interpreters on 64-bit machines, oddly enough), and machines where the user has installed the compiler just for themselves. I'd seriously suggest copying the monkey patch from

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Michael Clerx
Michael Clerx added the comment: Thanks! If I do copy this patch, do I need to add anything to my license text other than a reference in the file itself? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23246

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-03-09 Thread Mark Shannon
Mark Shannon added the comment: The column offset has always been the offset of the start of the expression. Therefore the expression `x.y` should have the same offset as the sub-expresssion `x`. Likewise for calls, `f(args)` should have the same offset as the `f` sub expression. Our static

[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires

2015-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that for consistency either parse empty name-value pair as key=, value=None, or ignore all non-conformed cases. For backward compatibility I prefer first way. -- ___ Python tracker rep...@bugs.python.org

[issue22189] collections.UserString missing some str methods

2015-03-09 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22189 ___

[issue12916] Add inspect.splitdoc

2015-03-09 Thread Yury Selivanov
Yury Selivanov added the comment: Berker, I agree. Let's wait till 3.6. I still don't like having this function in the inspect module, and I still don't understand why it should be there. -- versions: +Python 3.6 -Python 3.5 ___ Python tracker

Re: Idle - ImportError: No module named numpy

2015-03-09 Thread Tim Golden
On 09/03/2015 14:15, Dave Angel wrote: On 03/07/2015 02:15 PM, Markos wrote: Hi, I'm beginning to study the numpy. When I open a terminal (Debian Squeeze) and run the python interpreter the command import numpy as np run without errors. But when I run the same command on idle3 the

Re: Letter class in re

2015-03-09 Thread Antoon Pardon
Op 09-03-15 om 14:33 schreef Albert-Jan Roskam: I was going to make the same remark, but with a slightly different solution: In [1]: repr(re.search([a-zA-Z], é)) Out[1]: 'None' In [2]: repr(re.search(u[^\d\W_]+, ué, re.I | re.U)) Out[2]: '_sre.SRE_Match object at 0x027CDB10' [^\d\W_]+

Re: Letter class in re

2015-03-09 Thread Antoon Pardon
Op 09-03-15 om 13:50 schreef Tim Chase: On 2015-03-09 13:26, Antoon Pardon wrote: Op 09-03-15 om 12:17 schreef Tim Chase: (?:(?!_|\d)\w) So if I understand correctly the following should be a regular expression for a python3 identifier. (?:(?!_|\d)\w)\w+ If you don't have to treat it

Re: Letter class in re

2015-03-09 Thread Antoon Pardon
Op 09-03-15 om 15:44 schreef Chris Angelico: On Tue, Mar 10, 2015 at 1:41 AM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: Op 09-03-15 om 14:35 schreef Chris Angelico: On Mon, Mar 9, 2015 at 11:26 PM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: It seems odd that one should need

Mock return_value

2015-03-09 Thread Daniel
I have a dao.py module with a dao class declared and I want to use mock to set a return value for a dao function, dao.execute_ldap_search(). import mock import unittest import model, dao class TestPeopleDAO(unittest.TestCase): ldap_person_response = SOME_DICT @mock.patch('dao.dao')

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Mark Lawrence
Mark Lawrence added the comment: @Michael in case you are not aware Python does not support MINGW. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23246 ___

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Michael Clerx
Michael Clerx added the comment: @Mark I don't quite understand what you're saying. Distutils supports it, provided you add a line to distutils.cfg. I've been using the PythonXY versions of Python with MinGW (everything before 2.7.9.0) to happily compile for nearly 4 years now. Regarding

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower
Steve Dower added the comment: You could also distribute wheels for your Windows users, which they will appreciate much more than being told to install MinGW. (If you do go the latter route, WinPython is a pretty good distribution that sets that stuff up fairly transparently.) --

[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires

2015-03-09 Thread Demian Brecht
Demian Brecht added the comment: I agree that the current implementation doesn't conform to standards, but do you think those cases are worth fixing as they can potentially break backwards compatibility? I think that the reported case makes sense to fix as the name/value pair are entirely

Re: Letter class in re

2015-03-09 Thread Chris Angelico
On Tue, Mar 10, 2015 at 1:34 AM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: There is str.isidentifier, which returns True if something is a valid identifier name: '℮'.isidentifier() True Which is not very usefull in a context of lexical analysis. I don't need to know if a

[issue21271] reset_mock needs parameters to also reset return_value and side_effect

2015-03-09 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21271 ___ ___ Python-bugs-list

[issue22189] collections.UserString missing some str methods

2015-03-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22189 ___ ___ Python-bugs-list

[issue21574] Port image types detections from PIL to the imghdr module

2015-03-09 Thread Claudiu Popa
Claudiu Popa added the comment: In general, the patch looks good, I left a couple of comments on Rietvld. It should be applied to 3.5 only. Also, there are some image test files which aren't included in this patch, could you update it to include them? Thanks. --

[issue2211] Cookie.Morsel interface needs update

2015-03-09 Thread Demian Brecht
Demian Brecht added the comment: New patch addresses most review comments. Thanks for the review Serhiy. -- Added file: http://bugs.python.org/file38410/issue2211_1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2211

[issue23618] PEP 475: handle EINTR in the socket module

2015-03-09 Thread STINNER Victor
STINNER Victor added the comment: http://www.madore.org/~david/computers/connect-intr.html This article contains a program connect_test.c to test how connect() behaves on EINTR. Since it's in the public domain, I attached a copy. The program contains the comment: All systems function as

[issue23618] PEP 475: handle EINTR in the socket module

2015-03-09 Thread STINNER Victor
STINNER Victor added the comment: connect_eintr-3.patch: Different patch, don't retry connect() if it returns EINTR, but poll using poll/select. The patch changes also the asyncio module. -- Added file: http://bugs.python.org/file38412/connect_eintr-3.patch

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-03-09 Thread Aivar Annamaa
Aivar Annamaa added the comment: Yes, I also need col_offset to work as advertised because of a real world use case: Thonny (http://thonny.cs.ut.ee/) is a visual Python debugger which highlights the (sub)expression about to be evaluated. -- ___

Re: Letter class in re

2015-03-09 Thread Steven D'Aprano
Antoon Pardon wrote: I am using PLY for a parsing task which uses re for the lexical analysis. Does anyone know what regular expression to use for a sequence of letters? There is a class for alphanumerics but I can't find one for just letters, which I find odd. I am using python 3.4 The

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-03-09 Thread Sven Brauch
Sven Brauch added the comment: But if you need the start of the full expression, can't you just go up in the parent chain until the parent is not an expression any more? Could additional API be introduced which provides the value I am looking for as well as the one you need? I was not on the

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower
Steve Dower added the comment: Hard to be sure. It was my contribution originally, and I'm okay to remain unattributed, but I've nosied Jason so he can answer authoritatively (especially since he rewrote most of my original contribution to make it work better :) ). -- nosy:

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-09 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23623 ___ ___ Python-bugs-list

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Stefan Krah
Stefan Krah added the comment: On Ubuntu, when I uploaded the script to #5404, I only needed: ./configure --prefix=/tmp/arm-install --without-ensurepip --host=arm-linux-gnueabi --build=x86_64 --disable-ipv6 (And config.site of course.) We just have to fix the pgen etc. issues and someone

[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2015-03-09 Thread required field
Changes by required field requiredfield...@gmail.com: -- nosy: +required field ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16318 ___ ___

[issue23619] Python 3.5.0a2 installer fails on Windows

2015-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0469af231d22 by Steve Dower in branch 'default': Issue #23619: Ensure C variable is initialized before using it. https://hg.python.org/cpython/rev/0469af231d22 -- nosy: +python-dev ___ Python tracker

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-09 Thread Paul Moore
Paul Moore added the comment: At a minimum, the example should show adding setting the 2 script directories to PATH, and not just sys.prefix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23623

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Ethan Furman
Ethan Furman added the comment: This would be a build-bot for cross-compiling? As opposed to an android build-bot (which we'll also need) ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496

[issue11726] linecache becomes specific to Python scripts in Python 3

2015-03-09 Thread Thomas Kluyver
Thomas Kluyver added the comment: Someone on reddit ran into this, expecting that linecache can be used for an arbitrary text file: http://www.reddit.com/r/Python/comments/2yetxc/utf8_encoding_problems/ I was quite surprised that the docs say allows one to get any line from any file. I've

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: This is what I'm using: PYTHON_FOR_BUILD=`realpath ../cpython/python` CC=arm-linux-androideabi-clang CXX=arm-linux-androideabi-clang++ ./configure --host=arm-linux-androideabi --build=x86_64 --disable-ipv6 ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no

Re: A strange statement in the bisect documentation?

2015-03-09 Thread Dmitry Chichkov
Steven, I'm somewhat argeeing with you, regarding the general analysisn, yet I'm not quite sure about your analysis of the repeated bisect call code. In particular, in the sample that you've given: data = [i/100 for i in range(1, 701, 7)] data.sort(key=str) keyed_data = [str(x) for x in

[issue12916] Add inspect.splitdoc

2015-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It's not too late for 3.5. Just there is no consensus. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12916 ___

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-09 Thread David Linke
Changes by David Linke dr.david.li...@gmail.com: -- nosy: +dalito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23623 ___ ___ Python-bugs-list

[issue23619] Python 3.5.0a2 installer fails on Windows

2015-03-09 Thread Steve Dower
Steve Dower added the comment: Well that was embarrassing, but it's fixed now :) Larry, would you like me to rebuild the installer with the fix in it? -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23619

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-03-09 Thread Mark Shannon
Mark Shannon added the comment: How do I get the start of `(x+y).bit_length()` in `total += (x+y).bit_length()`? With your change, I can't get it from `x`, `x+y`, or from the whole statement. The primary purpose of the locations are for tracebacks, not for static tools. Also, most tools need

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Python really needs some way of separating the host C compiler and the target C compiler. I'm giving up cross-compiling from my computer and am going to install KBOX on an Android virtual device. It worked for Cyd, it'll work for me. Beats compiling two

[issue11726] clarify that linecache only works on files that can be decoded successfully

2015-03-09 Thread R. David Murray
R. David Murray added the comment: Sure, clarifying the docs seems sensible. Any file is slightly different from the reality. -- nosy: +r.david.murray resolution: rejected - stage: - needs patch status: closed - open title: linecache becomes specific to Python scripts in Python 3 -

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-09 Thread Steve Dower
Steve Dower added the comment: FYI, the docs in the Python 3.5.0a2 CHM are newer than what's on docs.p.o, specifically the Using Python on Windows section. (Apparently I need to do something other than commit changes to get the website updated?)

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Stefan Krah
Stefan Krah added the comment: Cross compiling worked for a while in 3.4. It broke again because we don't have a buildbot for that. You should not need 20 args for ./configure. At least on Ubuntu the script from #5404 generally works, but indeed pgen, importlib and the above issue are currently

[issue19547] HTTPS proxy support missing without warning

2015-03-09 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19547 ___ ___ Python-bugs-list

[issue21610] load_module not closing opened files

2015-03-09 Thread mattip
mattip added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21610 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-09 Thread Ned Deily
Ned Deily added the comment: Steve, how does https://docs.python.org/dev/using/windows.html look now? (There may have been an update lag.) -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23623

[issue20741] Documentation archives should be available also in tar.xz format

2015-03-09 Thread Mark Lawrence
Mark Lawrence added the comment: Do we need documentation archives in tar.xz format? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20741

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2015-03-09 Thread Claudiu Popa
Claudiu Popa added the comment: The patch adds support only for unbound methods and requires additional parameter for this. Just curios, which part works only for unbound methods? It is not what should be done in this issue at all. It should be easier to write it myself than describe it.

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-09 Thread Jonas Wielicki
On 09.03.2015 14:39, Omar Abou Mrad wrote: On Thu, Mar 5, 2015 at 3:34 AM, Xrrific xiaok...@gmail.com wrote: Guys, please Help!!! I am trying to impress a girl who is learning python and want ask her out at the same time. Could you please come up with something witty incorporating a

[issue23619] Python 3.5.0a2 installer fails on Windows

2015-03-09 Thread Steve Dower
Steve Dower added the comment: Scratch that, I screwed up the hg dance (multiple times...). Newer bits coming -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23619 ___

[issue23613] searchindex.js is annoying

2015-03-09 Thread Georg Brandl
Georg Brandl added the comment: Most important reason to close this: this is not something to change in Python, but would have to be changed in Sphinx. -- resolution: - third party status: open - closed ___ Python tracker rep...@bugs.python.org

[issue23415] add-to-pydotorg does not support .exe installers for Windows

2015-03-09 Thread Georg Brandl
Georg Brandl added the comment: Well, it's not a complicated script. You're welcome to try and debug it, but if the bug is in the depths of new pydotorg, I don't know how easy it is to find. -- ___ Python tracker rep...@bugs.python.org

[issue23616] Idle: conflict between loop execution and undo shortcut.

2015-03-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe you are reporting the following behavior, which I believe I have seen before but which seems not to be the subject of a tracker issue. If I run import time for i in range(20): print(i) time.sleep(.5) either in Shell at or from the

[issue20659] Want to make a class method a property by combining decorators

2015-03-09 Thread Mark Lawrence
Mark Lawrence added the comment: @the mulhern sorry that this slipped under our radar. @Nick I've put you on the nosy list as you actioned #16267 which is referenced in msg211416. -- nosy: +BreamoreBoy, ncoghlan versions: +Python 3.5 -Python 2.7, Python 3.1, Python 3.2, Python 3.3,

[issue23546] Windows, 'Edit withIDLE', and multplie installed versions

2015-03-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: At one time, there would not have been any point. https://docs.python.org/3/library/__main__.html#module-__main__ contains this sentence For a package, the same effect can be achieved by including a __main__.py module, the contents of which will be executed

[issue20751] Misleading examples in the descriptor protocol documentation

2015-03-09 Thread Mark Lawrence
Mark Lawrence added the comment: Who is best placed to comment on the suggested docs changes given in msg212035? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

  1   2   3   >