Re: A little test for you Guys

2015-09-22 Thread Akira Li
Python_Teacher via Python-list writes: ... > Let's define the function plural : > > def plural(words): > plurals = [] > for word in words: >plurals.append(word + 's') > return plurals > > for word in plural(['cabagge','owl','toy']): > print word

[issue24295] Backport of #17086 causes regression in setup.py

2015-09-22 Thread Moritz Sichert
Moritz Sichert added the comment: No this isn't an issue in Python 3.5. It was caused by the backport that was diffed against an older version that didn't include 7955d769fdf5 and thus reverted that. -- ___ Python tracker

Re: Successfully send sms with python

2015-09-22 Thread mm0fmf via Python-list
On 22/09/2015 12:19, Timon Rhynix wrote: Hello, I have used pyserial, sms0.4 and other libraries to send sms via huawei E1750 modem. The code runs well and no error is thrown but the text message is not sent/delivered to the number. One of my code is as follows: import serial import time

[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread Georg Brandl
Georg Brandl added the comment: > As a french, I was always distributed by this, but it's correct in english :-) You know what you have to tell LaTeX to not put extra space after all full stops? \frenchspacing :) -- nosy: +georg.brandl ___ Python

[issue25213] Regression: Python 3.5.0 shutil.copy2 doesn't raise PermissionError on Windows 7

2015-09-22 Thread eryksun
eryksun added the comment: This issue doesn't pertain to the 64-bit version. C:\Temp>py -3.5 Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import

[issue23329] _ssl cannot be compiled with LibreSSL anymore (on OpenBSD 5.5) because of ALPN

2015-09-22 Thread Remi Pointel
Remi Pointel added the comment: Maybe we could check if the functionality is available instead of checking a version? What do you think about that? -- ___ Python tracker

[issue10717] Multiprocessing module cannot call instance methods across processes

2015-09-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> wont fix stage: needs patch -> resolved status: pending -> closed ___ Python tracker

A little test for you Guys

2015-09-22 Thread Python_Teacher via Python-list
you have 10 minutes Good luck!! 1. What is PEP8 ? 2. What are the different ways to distribute some python source code ? 2 Lists Let's define the function plural : def plural(words): plurals = [] for word in words: plurals.append(word + 's') return plurals for word in

[issue16251] pickle special methods are looked up on the instance rather than the type

2015-09-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is this issue fixed? -- nosy: +serhiy.storchaka status: open -> pending ___ Python tracker ___

[issue25217] Method cache can crash at shutdown in _PyType_Lookup

2015-09-22 Thread Mark Shannon
Changes by Mark Shannon : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list

[issue16251] pickle special methods are looked up on the instance rather than the type

2015-09-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't think so. On Tue, Sep 22, 2015, at 11:52, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > Is this issue fixed? > > -- > nosy: +serhiy.storchaka > status: open -> pending > > ___ >

Re: A little test for you Guys

2015-09-22 Thread Sven R. Kunze
Hmm, why not. :D On 22.09.2015 20:43, Python_Teacher via Python-list wrote: you have 10 minutes Good luck!! 1. What is PEP8 ? A PEP. 2. What are the different ways to distribute some python source code ? unison, rsync, scp, ftp, sftp, samba, http, https, mail, git, 2 Lists

[issue25214] asyncio ssl transport regression

2015-09-22 Thread STINNER Victor
STINNER Victor added the comment: The specific case of getpeercert(), there is an extra info. For other info, did you notice that I just added ssl_object to extra info? :-) http://bugs.python.org/issue25114 -- ___ Python tracker

[issue23513] Add support for classes/object model in multiprocessing/pickle

2015-09-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___

Re: A little test for you Guys

2015-09-22 Thread Ian Kelly
On Tue, Sep 22, 2015 at 12:43 PM, Python_Teacher via Python-list wrote: > you have 10 minutes Good luck!! Sorry, I'm more interested in critiquing the questions than answering them. > Let's define the function plural : > > def plural(words): > plurals = [] > for

[issue9051] Improve pickle format for timezone aware datetime instances

2015-09-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For stability it is better to use public name 'timezone.utc' instead of '_utc'. Dotted names now are supported with all protocols. > but there is still room for improvement: Don't worry about this. When you pickle a number of datetime objects with the same

Re: Lightwight socket IO wrapper

2015-09-22 Thread James Harris
"Dennis Lee Bieber" wrote in message news:mailman.12.1442794762.28679.python-l...@python.org... On Sun, 20 Sep 2015 23:36:30 +0100, "James Harris" declaimed the following: There are a few things and more crop up as time goes on. For example,

[issue25217] Method cache can crash at shutdown in _PyType_Lookup

2015-09-22 Thread Antoine Pitrou
New submission from Antoine Pitrou: In the following gdb backtrace you'll see that if Python code is executed from the PyInterpreterState_Clear() step in Py_Finalize() (apparently when clearing the builtins), _PyType_Lookup() can be executed and crash on a NULL entry in the method cache.

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

2015-09-22 Thread Sol T
Hi, I know I can do this per connection, however how can I have it set to default? Does this need to be compiled into python? On Tue, Sep 22, 2015 at 2:04 PM, Ryan Stuart wrote: > On Thu, Sep 17, 2015 at 2:24 PM, sol433tt wrote: > >> I would like

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2015-09-22 Thread eryksun
eryksun added the comment: > import locale > locale.setlocale(locale.LC_ALL, '') > > import importlib > import time > importlib.reload(time) > > it does not work when imported after importing time. > What is the reason? Does reload() work only for > modules coded as Python sources? The

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

2015-09-22 Thread Chris Angelico
On Tue, Sep 22, 2015 at 3:53 PM, Cai Gengyang wrote: > A piece of software that would let end users easily create gorgeous > real-life, real-time cartoons on the web might not exist yet. But if it were > possible to invent this and get it commercialised , it could indeed

[issue25177] OverflowError in statistics.mean when summing large floats

2015-09-22 Thread Steven D'Aprano
Steven D'Aprano added the comment: Bar, thanks for the time you put into diagnosing this error, it is definitely a bug. The intention is for mean([huge, huge]) to return huge, not raise OverflowError. I'm reluctant to say that mean() will *never* raise OverflowError, but it certainly

[issue25209] Append space after completed keywords

2015-09-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch Martin. Indeed, "pass", "break" and "continue" don't need a space, and "True", "False" and "None" need a space only in rare cases like "None in collection". Some keywords ("else", "finally", "try") need a colon. But while "return" and "lambda"

[issue25205] setattr accepts invalid identifiers

2015-09-22 Thread W deW
W deW added the comment: Thanks for the ref to issue14029. I think I see how it works. As long as the object's __dict__ accepts the attributeName as a key, it needs not be a valid string nor a string at all. Though the latter *is* checked for, and that in turn can be circumvented by adding

[issue25205] setattr accepts invalid identifiers

2015-09-22 Thread eryksun
eryksun added the comment: This is a documentation issue and not specific to a particular version of Python. What's the rule on version tagging in this case? -- components: +Documentation ___ Python tracker

[issue25157] Installing Python 3.5.0 32bit on Windows 8.1 64bit system gives Error 0x80240017

2015-09-22 Thread Shirshendu Bhowmick
Shirshendu Bhowmick added the comment: I am the person with this problem, i have tired the installation on another Windows 8.1 machine but faced the same error. Is there any update on this issue. -- nosy: +Shirshendu Bhowmick ___ Python tracker

[issue17781] optimize compilation options

2015-09-22 Thread Matthias Klose
Matthias Klose added the comment: On 22.09.2015 12:31, Antoine Pitrou wrote: > Also note LTO can make compilation times much longer (it's the linking step > actually, which can take minutes). use -flto=jobserver -- ___ Python tracker

Re: Lightwight socket IO wrapper

2015-09-22 Thread James Harris
"Marko Rauhamaa" wrote in message news:8737y6cgp6@elektro.pacujo.net... "James Harris" : I agree with what you say. A zero-length UDP datagram should be possible and not indicate end of input but is that guaranteed and portable? The

Re: A little test for you Guys

2015-09-22 Thread sohcahtoa82
On Tuesday, September 22, 2015 at 11:45:00 AM UTC-7, Lj Fc wrote: > you have 10 minutes Good luck!! > > > 1. What is PEP8 ? > > 2. What are the different ways to distribute some python source code ? > > 2 Lists > > Let's define the function plural : > > def plural(words): > plurals = []

[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-22 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower ___ Python tracker ___ ___

Re: Lightwight socket IO wrapper

2015-09-22 Thread Gregory Ewing
Random832 wrote: Isn't this technically the same problem as pressing ctrl-d at a terminal - it's not _really_ the end of the input (you can continue reading after), but it sends the program something it will interpret as such? Yes. There's no concept of "closing the connection" with UDP,

[issue25165] Windows uninstallation should not remove launcher if other versions remain

2015-09-22 Thread Steve Dower
Steve Dower added the comment: I'm going to look into having the launcher's MSI stay behind when the bundle is removed, so it will have to be uninstalled separately. It can already be installed separately, though there isn't a really easy way to get the installer so you can do that. (Because

[issue16701] Docs missing the behavior of += (in-place add) for lists.

2015-09-22 Thread Martin Panter
Martin Panter added the comment: Here is a patch documenting the += and *= mutable sequence operations. Please review my wording. These operations already seem to be tested, at least on the basic mutable sequences: see /Lib/test/list_tests.py, test_array, test_collections, test_bytes (tests

[issue25163] Windows installer in AllUsers mode presents wrong installation path

2015-09-22 Thread Steve Dower
Steve Dower added the comment: Just an incorrect variable reference in the localization file. Should be easy enough to fix (if the variable is initialized at the start of installation...) -- assignee: -> steve.dower ___ Python tracker

[issue10404] IDLE on OS X popup menus do not work: cannot set/clear breakpoints

2015-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Right click for context menu in Mac Aqua is fixed in ##24570. -- nosy: +terry.reedy ___ Python tracker ___

[issue25164] Windows default installation path is inconsistent between per-user and system-wide installation

2015-09-22 Thread Steve Dower
Steve Dower added the comment: Might be too much of a breaking change for 3.5.1 - what do the other Windows guys think about making them both "Python 3.5" (or "Python 3.5-32" in the per-user case, to avoid conflicting with a 64-bit install)? -- ___

[issue24570] IDLE Autocomplete and Call Tips Do Not Pop Up on OS X with ActiveTcl 8.5.18

2015-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset b79dd0d7dc98 by Terry Jan Reedy in branch '2.7': Issue #24570: Right-click for context menus now work on Mac Aqual also. https://hg.python.org/cpython/rev/b79dd0d7dc98 New changeset 51b2b1a821b7 by Terry Jan Reedy in branch '3.4': Issue #24570:

[issue25112] Windows installer assigns non-existent icons to Python file types

2015-09-22 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue24801] right-mouse click in IDLE on Mac doesn't work

2015-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy, thanks for the review. I bungled the issue number on the commit message, so here are the commit notices. Will correct for NEWS. New changeset b79dd0d7dc98 by Terry Jan Reedy in branch '2.7': Issue #24570: Right-click for context menus now work on Mac

[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-22 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue25196] Installer>Install in user folder by default when you check: for all users

2015-09-22 Thread Steve Dower
Steve Dower added the comment: Did you check the checkbox on the front page? The checkbox that says "Install launcher for all users" only installs the launcher for all users, which is recommended for compatibility with Python 3.4 or 2.7 (which would otherwise override the launcher with one

[issue25213] Regression: Python 3.5.0 shutil.copy2 doesn't raise PermissionError on Windows 7

2015-09-22 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue25085] Windows x86-64 embeddable zip file contains test directorys

2015-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: If the Tcl/Tk/Idle bundle is installed, then I prefer that /idle-test be included, even if '[ ] include tests' is left blank, as I may someday make part of it runnable from the help menu. IE, the status quo. I do not care about any of the other package test

[issue25117] Windows installer: precompiling stdlib fails with missing DLL errors

2015-09-22 Thread eryksun
eryksun added the comment: > The problem here is probably that installing the CRT update > required a restart I saw that, but it didn't make any sense to me that the DLL isn't available immediately after wusa.exe exits. Is it in limbo until the system is restarted? I know in Windows 10 these

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

2015-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset ff7aba08ada6 by Martin Panter in branch '3.4': Issue #25047: Respect case writing XML encoding declarations https://hg.python.org/cpython/rev/ff7aba08ada6 New changeset 9c248233754c by Martin Panter in branch '3.5': Issue #25047: Merge Element Tree

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

2015-09-22 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

Re: A little test for you Guys

2015-09-22 Thread Ray Cote
On Tue, Sep 22, 2015 at 7:32 PM, Mark Lawrence wrote: > >> 2 Lists >> > > Tut, tut, tut. That is not a list, that is a tutple. -- https://mail.python.org/mailman/listinfo/python-list

[issue25117] Windows installer: precompiling stdlib fails with missing DLL errors

2015-09-22 Thread Steve Dower
Steve Dower added the comment: The problem here is probably that installing the CRT update required a restart (see the line below from the log), but we didn't interrupt installation to make you restart before continuing. >From the first log file: [0A68:0EC8][2015-09-14T05:54:24]i319: Applied

[issue25143] 3.5 install fails poorly on Windows XP

2015-09-22 Thread Steve Dower
Steve Dower added the comment: I don't have any XP machines handy, but I'll see if I can at least get an early termination from the installer rather than broken UI. IIRC, Larry was against having prominent warnings about unsupported platforms on the download page, but with python.org being

[issue25166] Windows AllUsers installation places uninstaller in user profile

2015-09-22 Thread Steve Dower
Steve Dower added the comment: Burn is always started in the per-user scope so that we can do per-user installs without elevating, but it looks like we need to manually change this once we know it's an all-users install. -- assignee: -> steve.dower

[issue24570] IDLE Autocomplete and Call Tips Do Not Pop Up on OS X with ActiveTcl 8.5.18

2015-09-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg251380 ___ Python tracker ___

[issue10404] IDLE on OS X popup menus do not work: cannot set/clear breakpoints

2015-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry, #24801. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25112] Windows installer assigns non-existent icons to Python file types

2015-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4d0d987bf6a8 by Steve Dower in branch '3.5': Issues #25112: py.exe launcher is missing icons https://hg.python.org/cpython/rev/4d0d987bf6a8 -- nosy: +python-dev ___ Python tracker

[issue25081] Windows installer Upgrade->Customize->Back goes to Install page

2015-09-22 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue25102] Windows installer: 'precompile standard library' option should pre-compile with -O and -OO

2015-09-22 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue25126] Non-web installer fails without a connection when doing debug install

2015-09-22 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue25086] Windows x86-64 embeddable zip file, lot of big EXE files in distuils

2015-09-22 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue25085] Windows x86-64 embeddable zip file contains test directorys

2015-09-22 Thread Steve Dower
Steve Dower added the comment: The change is for two issues. I now filter out "Lib\*\test" and "Lib\*\tests" for this one, and bdist_wininst.py and *.exe for #25086. I believe that's what the suggestions were - the regular installer (that we've been discussing) wasn't mentioned in the

[issue25166] Windows AllUsers installation places uninstaller in user profile

2015-09-22 Thread eryksun
eryksun added the comment: Where is the API documented to change the install scope dynamically? I see where it's apparently defined in the burn manifest (extracted from the executable) as PerMachine="no": http://schemas.microsoft.com/wix/2008/Burn;> <>

[issue25117] Windows installer: precompiling stdlib fails with missing DLL errors

2015-09-22 Thread Steve Dower
Steve Dower added the comment: Windows Updates may do something different here. I'd guess it's added to a queue and will be installed on next restart, probably based on something it detected as being in use, or maybe just because it's a server OS (or possibly both - typically a reboot isn't

[issue22052] Comparison operators called in reverse order for subclasses with no override.

2015-09-22 Thread Martin Panter
Martin Panter added the comment: Does anyone know enough about Python 2 to propose a fix? I don’t know enough about object classes versus “instance” classes, and potential interference of the __cmp__() method. In Python 2 the order seems to depend on the class type: (<__main__.A instance at

Re: sort help

2015-09-22 Thread Paul Rubin
Larry Martell writes: > def GetObjKey(a): > return a[2] This function is called operator.itemgetter: from operator import itemgetter sorted(a + b + c, key=itemgetter(2)) > So for example, if my initial data was this (I'll only show the

[issue25144] 3.5 Win install fails with "TARGETDIR"

2015-09-22 Thread Steve Dower
Steve Dower added the comment: Well, I made this happen once, but not a second time. That's better than most setup issues I get to deal with :) Still working on it - will post when I figure it out. -- assignee: -> steve.dower ___ Python tracker

[issue25162] Windows installation does not appear in list of installed applications

2015-09-22 Thread Steve Dower
Steve Dower added the comment: This is caused by the same configuration as issue 25166, so I'm closing this one as a duplicate. -- resolution: -> duplicate status: open -> closed superseder: -> Windows AllUsers installation places uninstaller in user profile

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

2015-09-22 Thread Martin Panter
Martin Panter added the comment: The tests seem to have grown a new Deprecation Warning (triggered when run with python -bWall). Looks like this may be a side effect of revision 2d808b72996d. [160/392] test_idle /media/disk/home/proj/python/cpython/Lib/idlelib/EditorWindow.py:88:

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

2015-09-22 Thread Martin Panter
Changes by Martin Panter : -- assignee: -> martin.panter nosy: +berker.peksag stage: patch review -> commit review ___ Python tracker

[issue25166] Windows AllUsers installation places uninstaller in user profile

2015-09-22 Thread Steve Dower
Steve Dower added the comment: Not sure yet :) There are a lot of undocumented (or not-yet-documented) APIs accessible from the bootstrap app and I haven't gone through them yet - see https://github.com/wixtoolset/wix3/tree/develop/src/libs, probably dutil. It may also be something that we

[issue25205] setattr accepts invalid identifiers

2015-09-22 Thread Martin Panter
Martin Panter added the comment: Eryksun: If you mean tagging the bug report, I think we usually tag all the applicable open branches that are due for another release. I’m not sure anything needs to be documented regarding setattr(). At best it is an implementation detail that should not be

[issue25085] Windows x86-64 embeddable zip file contains test directorys

2015-09-22 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower ___ Python tracker ___ ___

[issue25126] Non-web installer fails without a connection when doing debug install

2015-09-22 Thread Steve Dower
Steve Dower added the comment: Yeah, changing the item description is a good suggestion. It basically doubles the size of the download to include everything all at once. -- assignee: -> steve.dower ___ Python tracker

Re: Lightwight socket IO wrapper

2015-09-22 Thread James Harris
"Akira Li" <4kir4...@gmail.com> wrote in message news:mailman.18.1442804862.28679.python-l...@python.org... "James Harris" writes: ... There are a few things and more crop up as time goes on. For example, over TCP it would be helpful to have a function to receive a

Re: A little test for you Guys

2015-09-22 Thread James Harris
On Tuesday, September 22, 2015 at 7:45:00 PM UTC+1, Lj Fc wrote: > you have 10 minutes Good luck!! A good set of questions, IMO. Am answering as someone coming back to Python after a few years. > 1. What is PEP8 ? Coding guidelines, I think. > 2. What are the different ways to distribute

Re: Lightwight socket IO wrapper

2015-09-22 Thread Marko Rauhamaa
"James Harris" : > I agree with what you say. A zero-length UDP datagram should be > possible and not indicate end of input but is that guaranteed and > portable? The zero-length payload size shouldn't be an issue, but UDP doesn't make any guarantees about delivering

[issue25159] Regression in time to import a module

2015-09-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I just have rebuilt my Python's in development brances after made distclean to avoid possible effects of incremental building, and got the same results. (1) for i in `seq 5`; do ./python -I -m timeit -n1 -r1 -s "import sys; sys.modules.clear()" -- "import

[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-22 Thread Steve Dower
Steve Dower added the comment: Arguably it's because of the platforms that don't reliably set errno. (I don't know exactly which those are, but I'm not about to enable it everywhere right now. If someone else wants to do it and deal with the fallout they're welcome.) --

Re: Python, convert an integer into an index?

2015-09-22 Thread Ian Kelly
On Sep 22, 2015 3:46 PM, "Chris Roberts" wrote: > > > (How do I make it into an index? ) > Preferably something fairly easy to understand as I am new at this. > > results = 134523 #(Integer) > > Desired: > results = [1, 2, 3, 4, 5, 2, 3] #(INDEX) > > Somehow I see ways

Re: problem building python 3.5 extensions for windows

2015-09-22 Thread Terry Reedy
On 9/22/2015 9:35 AM, Robin Becker wrote: On 22/09/2015 11:14, Robin Becker wrote: On 22/09/2015 01:36, cjgoh...@gmail.com wrote: .t . Thanks for the pointer Christoph. I certainly didn't let it run for 30 minutes. When I build with 2.7,

Re: A little test for you Guys

2015-09-22 Thread James Harris
wrote in message news:5218c7f9-74ea-4ca0-abd1-46a9bcd3d...@googlegroups.com... ... Pretty sure this guy is asking us to do his homework. :-P Maybe (and I hope not) but asking what PEP8 is could be easily found on the internet and asking what the values would be at

Re: problem building python 3.5 extensions for windows

2015-09-22 Thread cjgohlke
On Tuesday, September 22, 2015 at 1:49:16 PM UTC-7, Terry Reedy wrote: > On 9/22/2015 9:35 AM, Robin Becker wrote: > > On 22/09/2015 11:14, Robin Becker wrote: > >> On 22/09/2015 01:36, CG wrote: > > .t > >>> . > >>> > >> Thanks for the pointer

Python, convert an integer into an index?

2015-09-22 Thread Chris Roberts
(How do I make it into an index? ) Preferably something fairly easy to understand as I am new at this. results = 134523 #(Integer) Desired: results = [1, 2, 3, 4, 5, 2, 3] #(INDEX) Somehow I see ways to convert index to list to int, but not back again. Thanks, crzzy1 --

[issue25116] It failed to install Py3.5 on win2008R2

2015-09-22 Thread Steve Dower
Steve Dower added the comment: If you could provide more information, that would be helpful. In particular, there may be some entries in the Event Log around the time you were trying to install 3.5, if nothing popped up at all. There may also be log files in your %TEMP% directory. --

[issue25085] Windows x86-64 embeddable zip file contains test directorys

2015-09-22 Thread Steve Dower
Steve Dower added the comment: True, those files aren't needed in the embeddable distro. Terry - you're right, if someone chooses to install Tcl/Tk/idle then they'll get the tests for them as well, regardless of their test suite selection. Since we're not really talking about a lot of files,

[issue25209] Append space after completed keywords

2015-09-22 Thread Martin Panter
Martin Panter added the comment: “Else” doesn’t always use a colon. Consider “1 if x else 2”. Again, if Python started adding unwanted spaces and colons I imagine users could be annoyed and think Python is being too smart and complicated for its own good. But maybe see what others say.

[issue20519] Replace uuid ctypes usage with an extension module.

2015-09-22 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue25124] No single .msi available for 3.5 release

2015-09-22 Thread Steve Dower
Steve Dower added the comment: The decision cannot reasonably be reversed now - this sort of passionate feedback was really needed during the alphas to have any impact. I'm sorry you didn't feel the need to participate in Python's development, as this extra feedback would have been useful.

[issue23630] support multiple hosts in create_server/start_server

2015-09-22 Thread Yann Sionneau
Yann Sionneau added the comment: Thanks a lot Victor for your numerous reviews and your help on this! Also thanks for all other who commented. -- ___ Python tracker

[issue25103] 3.5.0 installed standard library on Windows has LF line endings

2015-09-22 Thread Steve Dower
Steve Dower added the comment: Yeah, this was just me forgetting to enable eol when I last recreated my build machine. It's on now, so the next release will be fine. -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue25112] Windows installer assigns non-existent icons to Python file types

2015-09-22 Thread Steve Dower
Steve Dower added the comment: The file associations are actually part of the launcher, which *technically* is independent of the Python install it is bundled with. So it doesn't have any references to the Python install directory, and double-clicking Python files with shebang lines will work

Re: A little test for you Guys

2015-09-22 Thread Ian Kelly
On Tue, Sep 22, 2015 at 3:18 PM, wrote: > On Tuesday, September 22, 2015 at 11:45:00 AM UTC-7, Lj Fc wrote: >> you have 10 minutes Good luck!! > > Pretty sure this guy is asking us to do his homework. :-P Well, looks like it was due 2 hours ago. --

[issue25213] Regression: Python 3.5.0 shutil.copy2 doesn't raise PermissionError on Windows 7

2015-09-22 Thread Steve Dower
Steve Dower added the comment: Confirmed. I have a trivial fix coming to restore the requestedExecutionLevel. -- assignee: -> steve.dower ___ Python tracker

[issue25086] Windows x86-64 embeddable zip file, lot of big EXE files in distuils

2015-09-22 Thread Steve Dower
Steve Dower added the comment: Good catch, none of the bdist_wininst command is really needed. I'll drop it. -- assignee: -> steve.dower ___ Python tracker

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

2015-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 26e819909891 by Terry Jan Reedy in branch '2.7': Issue #16893: Move idlelib.EditorWindow.HelpDialog deprecation warning https://hg.python.org/cpython/rev/26e819909891 New changeset c607004a98bf by Terry Jan Reedy in branch '3.4': Issue #16893: Move

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

2015-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Through the contributions of several people, Zack's key idea, that Idle documentation should have a single source, idle.rst, has come to fruition. So I think it time to close this. I already mentioned #25198 for improving the tkinter viewer. I also opened

[issue22834] Unexpected FileNotFoundError when current directory is removed

2015-09-22 Thread Christopher Meng
Changes by Christopher Meng : -- nosy: +Christopher Meng ___ Python tracker ___ ___

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

2015-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for reporting this. My general problem is that idlelib was only informally private until PEP434 and I only started adding 'private' and 'deprecated' to the code a week ago. So I am trying to make changes in existing versions while not breaking even

Re: Successfully send sms with python

2015-09-22 Thread Michael Torrie
On 09/22/2015 05:19 AM, Timon Rhynix wrote: > When run it, the "message sent!" is printed but no message is sent/delivered. > Please assist on what I am missing. Thank you Is this "message sent!" from your code or is it a message you get back on the serial port from the gsm modem? Oh nevermind I

[issue22555] Tracking issue for adjustments to binary/text boundary handling

2015-09-22 Thread Nick Coghlan
Nick Coghlan added the comment: The Fedora RFE at https://bugzilla.redhat.com/show_bug.cgi?id=902094 to provide a C.UTF-8 locale by default has been addressed for Fedora 24 (the current Fedora Rawhide). This means the "LANG=C.UTF-8 python3" replacement for the ASCII-centric "LANG=C python3"

Line by Line Debug Python Scripts In GDB

2015-09-22 Thread Jondy Zhao
There is a gdb extension "libpython.py" within Python sources, it could print Python frame, locals/globals variable, Python sources in GDB. But it couldn't set breakpoints in Python scripts directly. Finally, I decided to write a debugger to extend GDB could debug Python scripts line by line,

[issue24455] IDLE debugger causes crash if not quitted properly before next run

2015-09-22 Thread Mark Roseman
Mark Roseman added the comment: Like #15347 and #15348, this was also caused by nested event loops, though the exact problem is slightly different. I've attached fix-mainloop2.patch which has a lengthy comment explaining the problem and how the patch solves it. This patch also includes the

[issue25218] Automate creation of idlelib/help.html from Doc/.../idle.html

2015-09-22 Thread Terry J. Reedy
New submission from Terry J. Reedy: This continues #16893, which replaced help.txt with help.html for the Idle doc display. It also replaced the display classes with new classes in help.py. I currently create help.html in a .bat file. With Doc as current directory, it uses

  1   2   >