[issue22107] tempfile module misinterprets access denied error on Windows

2016-05-03 Thread Billy McCulloch
Billy McCulloch added the comment: I've also run into this bug on Windows. In my case, the tempdir path includes directories on a network share, which I lack write access permissions to. Python tries to generate a *lot* of files, and never figures out it should move on to another directory.

python chess engines

2016-05-03 Thread DFS
On 5/3/2016 8:00 PM, DFS wrote: How far along are you in your engine development? I can display a text-based chess board on the console (looks better with a mono font). 8 BR BN BB BQ BK BB BN BR 7 BP BP BP BP BP BP BP BP 6 __ __ __ __ __ __ __ __ 5 __ __ __ __ __ __ __ __ 4 __

[issue26932] android: test_posix fails

2016-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +haypo ___ Python tracker ___ ___

[issue26932] android: test_posix fails

2016-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. But needed to update pyconfig.h.in and configure. RTLD_* constants are also used in Modules/_ctypes/_ctypes.c and Python/pystate.c (this can be a cause of threading and ctypes issues on Android). -- ___

[issue26932] android: test_posix fails

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

[issue26932] android: test_posix fails

2016-05-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: For test_getgroups, in Android 5.1 `id` does not support -G. [1] In Android 6.x `id` seems to support -G. [2] I guess CPython can just skip the test on Android < 6.0. [1] https://android.googlesource.com/platform/system/core/+/android-5.1.1_r37/toolbox/id.c

Re: How to become more motivated to learn Python

2016-05-03 Thread Christopher Reimer
On 5/3/2016 8:00 PM, DFS wrote: How far along are you in your engine development? I can display a text-based chess board on the console (looks better with a mono font). 8 BR BN BB BQ BK BB BN BR 7 BP BP BP BP BP BP BP BP 6 __ __ __ __ __ __ __ __ 5 __ __ __ __ __ __ __ __

[issue26932] android: test_posix fails

2016-05-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Patch attached for improved RTLD_* checking. -- keywords: +patch Added file: http://bugs.python.org/file42703/posixmodule_rtld_constants.patch ___ Python tracker

Re: Not x.islower() has different output than x.isupper() in list output...

2016-05-03 Thread Steven D'Aprano
On Wed, 4 May 2016 12:49 am, Jussi Piitulainen wrote: > DFS writes: > >> On 5/3/2016 9:13 AM, Chris Angelico wrote: > >>> It doesn't invert, the way numeric negation does. >> >> What do you mean by 'case inverted'? >> >> It looks like it swaps the case correctly between upper and lower. > >

[issue26922] build from fresh checkout fails

2016-05-03 Thread Nick Coghlan
Nick Coghlan added the comment: Even updating from remote, and then making a fresh clone in a new directory, I can't reproduce this one - "./configure && make -j4" works for me. Does strace give any potentially useful hints? For me: $ strace -e trace=file ./python -c "pass" the

Re: How to become more motivated to learn Python

2016-05-03 Thread DFS
On 5/3/2016 10:12 PM, Christopher Reimer wrote: When I realized that I wasn't learning enough about the Python language from translating BASIC games, I started coding a chess engine. If you ever look at the academic literature for chess programming from the last 50+ years, you can spend a

Re: How to become more motivated to learn Python

2016-05-03 Thread Cai Gengyang
Cool, I have finally summoned up enough activation energy to start on Unit 3, now going through the topic on Conditionals and Control Flows (stuff like this) >>> boolthree = 200 == (50 * 5) >>> boolthree False Guess it would be really cool to work on AI and games. ( I have been addicted to

[issue26932] android: test_posix fails

2016-05-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: On Android RTLD_* constants are not defined via macros but as enum values. I guess CPython needs to check each one in configure.ac. See [1] [1] https://android.googlesource.com/platform/bionic/+/master/libc/include/dlfcn.h -- nosy: +Chi Hsuan Yen

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2016-05-03 Thread Xiang Zhang
Xiang Zhang added the comment: I agree with you josh. Actually that's what I want to know, consistency. But I don't mention it in my post, so Guido only gives what to do in this case. In this thread, it means does Python code have to keep the invariant mentioned in msg75735? --

Re: How to become more motivated to learn Python

2016-05-03 Thread Christopher Reimer
On 5/3/2016 4:20 AM, Cai Gengyang wrote: So I have completed up to CodeAcademy's Python Unit 2 , now moving on to Unit3 : Conditionals and Control Flow. But I feel my motivation wavering , at times I get stuck and frustrated when trying to learn a new programming language ? This might not be

Re: Not x.islower() has different output than x.isupper() in list output...

2016-05-03 Thread Steven D'Aprano
On Wed, 4 May 2016 12:42 am, Jussi Piitulainen wrote: > Ceterum censeo, the only suggested use for .swapcase I've ever heard of > is encryption. iF YOU'RE PROGRAMMING AN EDITOR, sWAP cASE IS REALLY USEFUL FOR THOSE LITTLE capslock ACCIDENTS THAT PLAGUE TYPISTS. -- Steven --

Re: You gotta love a 2-line python solution

2016-05-03 Thread Steven D'Aprano
On Tue, 3 May 2016 01:56 pm, DFS wrote: > On 5/2/2016 11:27 PM, jf...@ms4.hinet.net wrote: >> DFS at 2016/5/3 9:12:24AM wrote: >>> try >>> >>> from urllib.request import urlretrieve >>> >>> http://stackoverflow.com/questions/21171718/urllib-urlretrieve-file-python-3-3 >>> >>> >>> I'm running

Analytical Geometry in Python with GeoMath

2016-05-03 Thread Vinicius Mesel
Hey guys, I'm back after some time in the darkness(lol). So I'm here to announce my contribution for the mathematicians and physicians and other guys who love geometry like me! I created a library called "GeoMath" that it's intent is to solve all Analytical Geometry problems in a simple

Re: Use __repr__ to show the programmer's representation (was: Need help understanding list structure)

2016-05-03 Thread Chris Angelico
On Wed, May 4, 2016 at 4:35 AM, Dan Strohl via Python-list wrote: > I also have never actually used repr() to create code that could be fed back > to the interpreter (not saying it isn’t done, just that I haven’t run into > needing it), and there are so many of the

Re: How to call a Python Class?

2016-05-03 Thread Ben Finney
David Shi via Python-list writes: > I found a Python class within an Open Source software. > I would like to use it in my own Python script. > I tried to import it, but I got following message. Your text is mangled in transit. Please post only plain text messages (avoid

Re: How to call a Python Class?

2016-05-03 Thread Chris Angelico
On Wed, May 4, 2016 at 8:56 AM, David Shi via Python-list wrote: > I found a Python class within an Open Source software. > I would like to use it in my own Python script. > I tried to import it, but I got following message. > from intersection import *Traceback (most

How to call a Python Class?

2016-05-03 Thread David Shi via Python-list
I found a Python class within an Open Source software. I would like to use it in my own Python script. I tried to import it, but I got following message. from intersection import *Traceback (most recent call last):  File "", line 1, in     from intersection import *ImportError: bad

Re: Trouble porting glob bash behavior with argparse to windows shell

2016-05-03 Thread Terry Reedy
On 5/3/2016 4:55 PM, Sayth Renshaw wrote: Is there something obvious to this I am doing wrong? Sayth Somethin happened so that I don't see what you did. Fortunately, it did show up for Peter, between the '?' and name, so he could answer. -- Terry Jan Reedy --

RE: How to become more motivated to learn Python

2016-05-03 Thread Clayton Kirkwood
Find some thing that you really need done, but you've put off because you didn't have the programming knowledge to do. Program parts of some thing that you are really interested in doing. For instance, at some point, I need to find duplicate copies of hardcopy photos that I have. I'd love to write

[issue26932] android: test_posix fails

2016-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What RTLD_* constants exist on Android? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue26927] android: test_mmap fails

2016-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is other manifestation of issue26926. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> android: test_io fails ___ Python tracker

[issue26926] android: test_io fails

2016-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks similar to issue11184. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue26929] android: test_strptime fails

2016-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is other bug at the last week of a year: import datetime for i in range(25, 32): print(datetime.date(1906, 12, i).strftime('%Y %U %w %G %V %u')) for i in range(1, 10): print(datetime.date(1907, 1, i).strftime('%Y %U %w %G %V %u'))

Re: Trouble porting glob bash behavior with argparse to windows shell

2016-05-03 Thread Peter Otten
Sayth Renshaw wrote: > Is there something obvious to this I am doing wrong? > parser.add_argument("path", nargs="+") The "+" implicitly turns args.path into a list > files |= set(glob.glob(args.path + '/*' + args.extension)) so the glob() argument is evaluated as list + str + str

[issue26929] android: test_strptime fails

2016-05-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: GNU libc says: ‘%V’ The ISO 8601:1988 week number as a decimal number (range ‘01’ through ‘53’). ISO weeks start with Monday and end with Sunday. Week ‘01’ of a year is the first week which has the majority of its

Re: Fastest way to retrieve and write html contents to file

2016-05-03 Thread Tim Chase
On 2016-05-03 13:00, DFS wrote: > On 5/3/2016 11:28 AM, Tim Chase wrote: > > On 2016-05-03 00:24, DFS wrote: > >> One small comparison I was able to make was VBA vs python/pyodbc > >> to summarize an Access database. Not quite a fair test, but > >> interesting nonetheless. > >> > >> Access 2003

[issue26812] ExtendedInterpolation drops user-defined 'vars' during _interpolate_some() recursion

2016-05-03 Thread Yih-En Andrew Ban
Yih-En Andrew Ban added the comment: Sure, patch attached. -- keywords: +patch Added file: http://bugs.python.org/file42702/issue26812.patch ___ Python tracker

Trouble porting glob bash behavior with argparse to windows shell

2016-05-03 Thread Sayth Renshaw
Is there something obvious to this I am doing wrong? Sayth -- https://mail.python.org/mailman/listinfo/python-list

[issue23003] traceback.{print_exc, print_exception, format_exc, format_exception}: Potential AttributeError

2016-05-03 Thread Andy Edwards
Andy Edwards added the comment: I'm seeing this issue in Python 2.7 Andys-MacBook-Pro:jcore-api-py andy$ which python /Library/Frameworks/Python.framework/Versions/2.7/bin/python Andys-MacBook-Pro:jcore-api-py andy$ python setup.py test running test running egg_info writing requirements to

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2016-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> rhettinger nosy: +serhiy.storchaka ___ Python tracker ___

[issue26219] implement per-opcode cache in ceval

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

[issue26110] Speedup method calls 1.2x

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

Broken pipe from gevent/pywsgi.py

2016-05-03 Thread Larry Martell
I have a python server that has this in the main: from gevent import pywsgi try: httpd = pywsgi.WSGIServer(('0.0.0.0', 8000), app) httpd.serve_forever() except KeyboardInterrupt: pass Recently we began getting HTTPError: 504 Server Error: Gateway Time-out on requests to the server.

[issue26929] android: test_strptime fails

2016-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thus there is a gap between 1904-12-31 and 1905-1-1. This is a bug in strftime() on Android. -- ___ Python tracker

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2016-05-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: At some point someone really needs to decide if the C layer behavior of performing an identity test before full equality checking is something that should be emulated at the Python layer or not. The current state seems ridiculous, where C containers check

[issue26929] android: test_strptime fails

2016-05-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: >>> for i in range(25, 32): ... print(datetime.date(1904, 12, i).strftime('%Y %U %w %G %V %u')) ... 1904 52 0 1904 51 7 1904 52 1 1904 52 1 1904 52 2 1904 52 2 1904 52 3 1904 52 3 1904 52 4 1904 52 4 1904 52 5 1904 52 5 1904 52 6 1904 52 6 >>>

[issue26929] android: test_strptime fails

2016-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks. And what is the output of following code? for i in range(25, 32): print(datetime.date(1904, 12, i).strftime('%Y %U %w %G %V %u')) -- ___ Python tracker

[issue26929] android: test_strptime fails

2016-05-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: root@generic_x86:/data/local/tmp # python Python 3.6.0a0 (default:f4c6dab59cd8+, May 3 2016, 21:59:47) [GCC 4.9 20140827 (prerelease)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import datetime >>> for i in range(1,

Re: Need help understanding list structure

2016-05-03 Thread MRAB
On 2016-05-03 18:54, Dan Strohl via Python-list wrote: I added a __repr__ method at the end of the gedcom library like so: def __repr__(self): """ Format this element as its original string """ result = repr(self.level()) if self.pointer() != "": result +=

[issue26929] android: test_strptime fails

2016-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the output of following code? import datetime for i in range(1, 10): print(datetime.date(1905, 1, i).strftime('%Y %U %w %G %V %u')) -- nosy: +serhiy.storchaka ___ Python tracker

[issue26039] More flexibility in zipfile write interface

2016-05-03 Thread Марк Коренберг
Changes by Марк Коренберг : -- nosy: -mmarkk ___ Python tracker ___ ___

[issue17909] Autodetecting JSON encoding

2016-05-03 Thread Geoffrey Sneddon
Changes by Geoffrey Sneddon : -- nosy: +gsnedders ___ Python tracker ___ ___

Re: Use __repr__ to show the programmer's representation (was: Need help understanding list structure)

2016-05-03 Thread Random832
On Tue, May 3, 2016, at 15:24, moa47...@gmail.com wrote: > I also wanted to understand what character set it was returning. I was > giving it a gedcom file with ansel encoding, which is normal. My > genealogy program can also export its database to gedcom using UTF-8 and > Unicode. But both of

Re: crash while using PyCharm / Python3

2016-05-03 Thread Adam
"Jonathan N. Little" wrote in message news:ncqc7j$na1$1...@dont-email.me... > Adam wrote: >> "Adam" wrote in message >> news:ncprqb$tl9$1...@news.albasani.net... >>> >>> "Jonathan N. Little" wrote in message >>>

Re: Use __repr__ to show the programmer's representation (was: Need help understanding list structure)

2016-05-03 Thread moa47401
quote - (Though to be fair, I don't really know what the actual problem was, so I might provide a different approach with a different goal ) Originally I was trying to understand the exact structure of the list being returned by the gedcom library. It worked as it was, but I wanted to add

[issue26940] android: test_importlib hangs on armv7

2016-05-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: Interestingly, all the tests (issues #26938, #26939, #26940 and #26941) that hang on arm use sys.setswitchinterval() aggressively. -- ___ Python tracker

[issue26941] android: test_threading hangs on armv7

2016-05-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: Interestingly, all the tests (issues #26938, #26939, #26940 and #26941) that hang on arm use sys.setswitchinterval() aggressively. -- ___ Python tracker

[issue26938] android: test_concurrent_futures hangs on armv7

2016-05-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: Interestingly, all the tests (issues #26938, #26939, #26940 and #26941) that hang on arm use sys.setswitchinterval() aggressively. -- ___ Python tracker

[issue26939] android: test_functools hangs on armv7

2016-05-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: The attached test_output.txt file is the corresponding gdb backtrace[1]. Interestingly, all the tests (issues #26938, #26939, #26940 and #26941) that hang on arm use sys.setswitchinterval() aggressively. [1] The backtrace is interleaved with: * Python

[issue24950] FAIL: test_expanduser when $HOME=/

2016-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26876] Extend MSVCCompiler class to respect environment variables

2016-05-03 Thread Steve Dower
Steve Dower added the comment: I was thinking more like this: if DISTUTILS_USE_SDK: assume PATH is configured execute os.getenv("CC", "cl.exe") directly else: find VS in the registry execute "cl.exe" etc. The only change here from the current situation is preferring the CC

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-05-03 Thread Łukasz Langa
Łukasz Langa added the comment: Oh, my bad. Yeah, that sounds like a worthwhile change. -- resolution: not a bug -> status: closed -> open ___ Python tracker

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-05-03 Thread Jason R. Coombs
Jason R. Coombs added the comment: Łukasz, my proposal was to also update distutils (in all Python versions that get bugfixes) to match the Setuptools behavior and Python 2 behavior. I'd still like to do that to harmonize the implementations. --

RE: Use __repr__ to show the programmer's representation (was: Need help understanding list structure)

2016-05-03 Thread Dan Strohl via Python-list
> > One other point for you, if your "__repr__(self)" code is the same as > > the "__str__(self)" code (which it looks like it is, at a glance at > > least), you can instead reference the __str__ method and save having a > > duplicate code block... > > Alternatively, consider: the ‘__repr__’

[issue24950] FAIL: test_expanduser when $HOME=/

2016-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 194b356c84f5 by Serhiy Storchaka in branch '3.5': Issue #24950: Fixed expanduser tests when the users home directory in pwd is "/". https://hg.python.org/cpython/rev/194b356c84f5 New changeset b9b99cb85a5f by Serhiy Storchaka in branch 'default':

Use __repr__ to show the programmer's representation (was: Need help understanding list structure)

2016-05-03 Thread Ben Finney
Dan Strohl via Python-list writes: > One other point for you, if your "__repr__(self)" code is the same as > the "__str__(self)" code (which it looks like it is, at a glance at > least), you can instead reference the __str__ method and save having a > duplicate code

[issue24950] FAIL: test_expanduser when $HOME=/

2016-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yet one corner case is empty HOME value. -- ___ Python tracker ___ ___

RE: Need help understanding list structure

2016-05-03 Thread Dan Strohl via Python-list
> I added a __repr__ method at the end of the gedcom library like so: > > def __repr__(self): > """ Format this element as its original string """ > result = repr(self.level()) > if self.pointer() != "": > result += ' ' + self.pointer() > result += ' '

[issue26933] android: test_posixpath fails

2016-05-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: You are right. I will do that. -- ___ Python tracker ___ ___

Re: How to become more motivated to learn Python

2016-05-03 Thread mm0fmf
On 03/05/2016 17:50, Rob Gaddi wrote: Cai Gengyang wrote: So I have completed up to CodeAcademy's Python Unit 2 , now moving on to Unit3 : Conditionals and Control Flow. But I feel my motivation wavering , at times I get stuck and frustrated when trying to learn a new programming language ?

Re: Need help understanding list structure

2016-05-03 Thread moa47401
I added a __repr__ method at the end of the gedcom library like so: def __repr__(self): """ Format this element as its original string """ result = repr(self.level()) if self.pointer() != "": result += ' ' + self.pointer() result += ' ' + self.tag()

[issue26933] android: test_posixpath fails

2016-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'll push a patch for issue24950 in short time. Try to search precedences for other your issues. May be they have patches, additional information or experienced people. -- ___ Python tracker

Re: Fastest way to retrieve and write html contents to file

2016-05-03 Thread DFS
On 5/3/2016 11:28 AM, Tim Chase wrote: On 2016-05-03 00:24, DFS wrote: One small comparison I was able to make was VBA vs python/pyodbc to summarize an Access database. Not quite a fair test, but interesting nonetheless. Access 2003 file Access 2003 VBA code Time: 0.18 seconds same Access

RE: Need help understanding list structure

2016-05-03 Thread Dan Strohl via Python-list
Take a look at the docs for print() https://docs.python.org/3.5/library/functions.html#print str() https://docs.python.org/3.5/library/stdtypes.html#str repr() https://docs.python.org/3.5/library/functions.html#repr When you do "print(object)", python will run everything through str() and

[issue26696] Document collections.abc.ByteString

2016-05-03 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list

Re: How to become more motivated to learn Python

2016-05-03 Thread Rob Gaddi
Cai Gengyang wrote: > So I have completed up to CodeAcademy's Python Unit 2 , now moving on to > Unit3 : Conditionals and Control Flow. > > But I feel my motivation wavering , at times I get stuck and frustrated when > trying to learn a new programming language ? > > This might not be a

Re: Fastest way to retrieve and write html contents to file

2016-05-03 Thread Tim Chase
On 2016-05-03 00:24, DFS wrote: > One small comparison I was able to make was VBA vs python/pyodbc to > summarize an Access database. Not quite a fair test, but > interesting nonetheless. > > Access 2003 file > Access 2003 VBA code > Time: 0.18 seconds > > same Access 2003 file > 32-bit python

Re: Saving Consol outputs in a python script

2016-05-03 Thread Terry Reedy
On 5/3/2016 8:14 AM, drewes@gmail.com wrote: Hello, I'm new to python and have a Question. I'm running a c++ file with a python script like: import os import subprocess subprocess.call(["~/caffe/build/examples/cpp_classification/classification", "deploy.prototxt", "this.caffemodel",

Re: installing scipy

2016-05-03 Thread Heli
Yes, the python I have installed is 64bit. Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)] on win32 and the scipy wheel I am trying to install from is : scipy-0.17.0-cp34-none-win_amd64.whl At Sayth: Thanks for recommending Anaconda. I already am familiar

Re: Not x.islower() has different output than x.isupper() in list output...

2016-05-03 Thread Terry Reedy
On 5/3/2016 11:42 AM, Grant Edwards wrote: Interesting. FWIW, Å and Å definitely look different with the terminal and font I'm using (urxvt with -misc-fixed-medium-r-normal-*-18-120-*-*-*-90-iso10646-*) In the fixed pitch font used by Thunderbird (Courier?), Angstrom Å has the circle

[issue26933] android: test_posixpath fails

2016-05-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: That was fast! Thanks Serhiy. -- ___ Python tracker ___ ___

Re: You gotta love a 2-line python solution

2016-05-03 Thread Stephen Hansen
On Mon, May 2, 2016, at 08:57 PM, jf...@ms4.hinet.net wrote: > Stephen Hansen at 2016/5/3 11:49:22AM wrote: > > On Mon, May 2, 2016, at 08:27 PM, jf...@ms4.hinet.net wrote: > > > But when I try to get this forum page, it does get a html file but can't > > > be viewed normally. > > > > What does

[issue26922] build from fresh checkout fails

2016-05-03 Thread Brett Cannon
Brett Cannon added the comment: That exception usually stems from when importlib.h has an error in it. -- nosy: +brett.cannon ___ Python tracker ___

Re: Need help understanding list structure

2016-05-03 Thread moa47401
At the risk of coming across as a complete dunder-head, I think my confusion has to do with the type of data the library returns in the list. Any kind of text or integer list I manually create, doesn't do this. See my questions down below at the end. If I run the following statements on the

[issue26865] Meta-issue: support of the android platform

2016-05-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: All the dependencies of this issue are tagged with Components:Cross-Build and a title starting with 'android'. Tests that fail on an android emulator running an x86 system image at API level 21: issue #26918: android: test_pipes fails issue #26919:

[issue26537] ConfigParser has optionxform, but not sectionxform

2016-05-03 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list

[issue26942] android: test_ctypes crashes on armv7

2016-05-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: test_ctypes crashes on an android emulator running an armv7 system image (but not on x86) at API level 21. 143|root@generic:/data/local/tmp # python -m test -v test_ctypes == CPython 3.6.0a0 (default:f4c6dab59cd8+, May 3

Re: Saving Consol outputs in a python script

2016-05-03 Thread Stephen Hansen
On Tue, May 3, 2016, at 05:14 AM, drewes@gmail.com wrote: > What I need are the 2 values for the 2 classes saved in a variable in the > .py script, so that I can write them into a text file. > > Would be super nice if someone could help me! You shouldn't use the call() convienence function,

[issue26941] android: test_threading hangs on armv7

2016-05-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: test_threading hangs on an android emulator running an armv7 system image (but not on x86) at API level 21. The test suite hangs at test_is_alive_after_fork (test.test_threading.ThreadTests) ... A cause of this problem may be related to the fact that the

Re: Not x.islower() has different output than x.isupper() in list output...

2016-05-03 Thread Grant Edwards
On 2016-05-03, Jussi Piitulainen wrote: >> Does that mean: >> >> lower(Å) != å ? >> >> and >> >> upper(å) != Å ? > > It means "\N{ANGSTROM SIGN}" != "Å", yet both lower to "å", which then > uppers back to "Å" (U+00c5). > > The Ångström sign (U+212b) looks like

[issue26940] android: test_importlib hangs on armv7

2016-05-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: test_importlib hangs on an android emulator running an armv7 system image (but not on x86) at API level 21. The test suite hangs at test_deadlock (test.test_importlib.test_locks.Frozen_DeadlockAvoidanceTests) ... A cause of this problem may be related to

[issue26938] android: test_concurrent_futures hangs on armv7

2016-05-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: test_concurrent_futures hangs on an android emulator running an armv7 system image (but not on x86) at API level 21. The test suite hangs at: test_pending_calls_race (test.test_concurrent_futures.ThreadPoolWaitTests) ... A cause of this problem may be

[issue26939] android: test_functools hangs on armv7

2016-05-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: test_functools hangs on an android emulator running an armv7 system image (but not on x86) at API level 21. The test suite hangs at test_lru_cache_threaded (test.test_functools.TestLRUC) ... A cause of this problem may be related to the fact that the

[issue26922] build from fresh checkout fails

2016-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note this is a data point of how obscure and hard to debug the current early startup phase is :-) -- nosy: +ncoghlan ___ Python tracker

Re: Not x.islower() has different output than x.isupper() in list output...

2016-05-03 Thread Jussi Piitulainen
DFS writes: > On 5/3/2016 10:49 AM, Jussi Piitulainen wrote: >> DFS writes: >> >>> On 5/3/2016 9:13 AM, Chris Angelico wrote: >> It doesn't invert, the way numeric negation does. >>> >>> What do you mean by 'case inverted'? >>> >>> It looks like it swaps the case correctly between upper and

[issue24950] FAIL: test_expanduser when $HOME=/

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

[issue26933] android: test_posixpath fails

2016-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue24950. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> FAIL: test_expanduser when $HOME=/ ___ Python tracker

Re: Not x.islower() has different output than x.isupper() in list output...

2016-05-03 Thread DFS
On 5/3/2016 10:49 AM, Jussi Piitulainen wrote: DFS writes: On 5/3/2016 9:13 AM, Chris Angelico wrote: It doesn't invert, the way numeric negation does. What do you mean by 'case inverted'? It looks like it swaps the case correctly between upper and lower. There's letters that do not

[issue26936] android: test_socket fails

2016-05-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: test_socket fails on an android emulator running an x86 system image at API level 21. == ERROR: testGetServBy (test.test_socket.GeneralModuleTests)

[issue26937] android: test_tarfile fails

2016-05-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: test_tarfile fails on an android emulator running an x86 system image at API level 21. == [0/9481] FAIL: test_extract_with_numeric_owner

[issue26935] android: test_os fails

2016-05-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: One test of test_os fails on an android emulator running an x86 system image at API level 21. See the attached test_output.txt file. -- components: Cross-Build, Library (Lib) files: test_output.txt messages: 264736 nosy: Alex.Willmer, loewis,

[issue26934] android: test_faulthandler fails

2016-05-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: test_faulthandler fails on an android emulator running an x86 system image at API level 21. See the attached test_output.txt file. -- components: Cross-Build, Library (Lib) files: test_output.txt messages: 264735 nosy: Alex.Willmer, haypo, xdegaye

Re: Not x.islower() has different output than x.isupper() in list output...

2016-05-03 Thread Jussi Piitulainen
DFS writes: > On 5/3/2016 9:13 AM, Chris Angelico wrote: >> It doesn't invert, the way numeric negation does. > > What do you mean by 'case inverted'? > > It looks like it swaps the case correctly between upper and lower. There's letters that do not come in exact pairs of upper and lower case,

[issue26932] android: test_posix fails

2016-05-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: test_posix fails on an android emulator running an x86 system image at API level 21. For the first ERROR, on android we have instead of a list of group IDs: root@generic_x86:/data/local/tmp # id -G uid=0(root) gid=0(root)

[issue26933] android: test_posixpath fails

2016-05-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: test_posixpath fails on an android emulator running an x86 system image at API level 21. On android we have: root@generic_x86:/data/local/tmp # python Python 3.6.0a0 (default:f4c6dab59cd8+, May 3 2016, 10:42:45) [GCC 4.9 20140827 (prerelease)] on linux

  1   2   >