[issue25131] The AST for dict and set displays has the lineno of the first value

2015-09-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f14afc959df by Benjamin Peterson in branch '3.5': make opening brace of container literals and comprehensions correspond to the line number and col offset of the AST node (closes #25131) https://hg.python.org/cpython/rev/4f14afc959df New

[issue25223] Statically or dynamically linked to the VC++runtime ? or how Python install fails on Vista despite the VC redist packages - api-ms-win-crt-runtime-l1-1-0.dll

2015-09-25 Thread acx01bc
acx01bc added the comment: @steve.dower : the vc_redist packages doesn't list the files it installs, I'm not sure of the names of the files, but who cares, please look at my screenshot of dependency walker, it shows how different versions of Python win32 releases that I downloaded on

[issue25223] Statically or dynamically linked to the VC++runtime ? or how Python install fails on Vista despite the VC redist packages - api-ms-win-crt-runtime-l1-1-0.dll

2015-09-25 Thread acx01bc
Changes by acx01bc : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue25232] CGIRequestHandler behave incorrectly with query component consisting mutliple ?

2015-09-25 Thread Xiang Zhang
New submission from Xiang Zhang: According to rfc3986, section 3.4: The query component is indicated by the first question mark ("?") character and terminated by a number sign ("#") character or by the end of the URI. The characters slash ("/") and question mark ("?") may represent data

[issue25223] Statically or dynamically linked to the VC++runtime ? or how Python install fails on Vista despite the VC redist packages - api-ms-win-crt-runtime-l1-1-0.dll

2015-09-25 Thread Steve Dower
Steve Dower added the comment: In your original post you refer to the "famous api-ms-win-crt-runtime-l1-1-0.dll problem" - I am not aware of this problem, so you will need to provide more context on what is actually not working for you. Dependency Walker doesn't know how to resolve those DLLs

[issue25232] CGIRequestHandler behave incorrectly with query component consisting mutliple ?

2015-09-25 Thread Xiang Zhang
Changes by Xiang Zhang <18518281...@126.com>: -- type: -> behavior versions: +Python 3.6 ___ Python tracker ___

[issue18967] Find a less conflict prone approach to Misc/NEWS

2015-09-25 Thread R. David Murray
R. David Murray added the comment: Because the two summaries should be *different* in most cases. The first line of the checkin should ideally be a single sentence of less than 80 characters, while the NEWS item will almost always be longer. The NEWS item should be a complete summary, while

[issue24820] IDLE themes for light on dark

2015-09-25 Thread Mark Roseman
Mark Roseman added the comment: Sounds good. I agree picking a few and tweaking them would be a good way forward (and incidentally, the 'Cobalt' theme is the one I use in my regular editor!) -- ___ Python tracker

[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

2015-09-25 Thread Xiang Zhang
Xiang Zhang added the comment: The path with query component are unquoted entirely and then pass into _url_collapse_path. I think this behaviour is wrong and according to rfc3875 query component should be left encoded in QUERY_STRING. This patch seems to solve the problem. It passes the tests

[issue25210] Special-case NoneType() in do_richcompare()

2015-09-25 Thread R. David Murray
R. David Murray added the comment: As I said to Ezio on irc, I like his formulation. -- ___ Python tracker ___

[issue25230] Unix datagram sockets not supported

2015-09-25 Thread Guido van Rossum
Guido van Rossum added the comment: See https://github.com/python/asyncio/pull/267. Can you patch that in and see if you can make it work? -- ___ Python tracker

[issue25223] Statically or dynamically linked to the VC++runtime ? or how Python install fails on Vista despite the VC redist packages - api-ms-win-crt-runtime-l1-1-0.dll

2015-09-25 Thread eryksun
eryksun added the comment: > Dependency Walker doesn't know how to resolve those DLLs on > any platform - Win10 looks exactly the same. On older systems the api-ms-win-crt-* DLLs should be physically installed in System32, so Dependency Walker should find them if they exist. For example, on

[issue24820] IDLE themes for light on dark

2015-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: For me, Idle comes with one light theme, under 2 names. I don't know what happens on Mac. Let us add one dark theme as Idle Dark, before 3.4.4 if possible. We can later consider whether to add more light and dark built-in themes. But I think more important

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Laura Creighton
In a message of Fri, 25 Sep 2015 22:15:26 +0200, Laura Creighton writes: >No. You are going to return whatever is called 'experience' and >whatever is called 'monsters' and assign them to 'count' and 'monsters'. ARRGH! I meant assign them to 'count' and 'animals'. (I read that 3 times and

[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-09-25 Thread Brett Cannon
Brett Cannon added the comment: Here is a patch that should work. Can someone who has had the problem test it? It works in my limited testing but I want to make sure this solves it before I commit it. -- keywords: +patch stage: needs patch -> patch review Added file:

[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-25 Thread Brett Cannon
Brett Cannon added the comment: I should mention I would have committed my patch but test_einter is hanging for me, so if someone else wants to test the patch and verify it works then I can commit it. -- assignee: -> brett.cannon ___ Python

[issue23447] Import fails when doing a circular import involving an `import *`

2015-09-25 Thread Brett Cannon
Brett Cannon added the comment: Just so Steven knows, I'm still thinking about whether I want to accept the patch (and waiting to see if anyone else has an opinion =). I did realize that the patch as it stands does not add the found module as an attribute on the package which is potentially

[issue24820] IDLE themes for light on dark

2015-09-25 Thread Mark Roseman
Mark Roseman added the comment: Ok, do you want to add the dark theme in then? I'll add some code to the ttk based preferences dialog (for when that gets in) to give the user the option of applying the new background color to all the other elements which had the same original background

[issue24781] Improve UX of IDLE Highlighting configuration tab

2015-09-25 Thread Mark Roseman
Mark Roseman added the comment: Have added the 'apply changes to other elements with same background?' feature in my private copy. To save constantly uploading new versions on every tweak, when we're ready to evaluate/integrate, I'll pass it along. --

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Laura Creighton
In a message of Fri, 25 Sep 2015 11:50:10 -0700, Cody Cox writes: >Awesome guys! Thank you for helping me understand this material. Parameters >and Arguments are tricky. Looks like its mainly a game of connect the dots >with variables. lol. > >When you return a variable, it needs somewhere to

[issue25236] str.maketrans wrong description for optional 3rd parameter

2015-09-25 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> resolved ___ Python tracker ___ ___

[issue15347] IDLE - does not close if the debugger was active

2015-09-25 Thread Mark Roseman
Mark Roseman added the comment: Doing some testing using "-n". Various close/quit scenarios are either disallowed or broken as it turns out. I found that removing the "interacting" check on close improved the matter quite substantially, so that I could quit when the debugger was sitting

[issue25175] Documentation-Tkinter Clarify module spelling change in Python 3 docs

2015-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Martin> Normally the documentation doesn’t mention changes from Python 2 Right: forward notes in 2.7 doc, no backward notes in 3.x doc. The 2.7 doc has near the top "Note: Tkinter has been renamed to tkinter in Python 3. The 2to3 tool will automatically adapt

[issue17781] optimize compilation options

2015-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: #24915 is about adding pgo and has a slew of patches. -- nosy: +terry.reedy ___ Python tracker ___

[issue21264] test_compileall fails to build in the installed location

2015-09-25 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___

[issue21264] test_compileall fails to build in the installed location

2015-09-25 Thread Brett Cannon
Brett Cannon added the comment: Issue #25099 seems to also be related to a similar issue. A proposed fix can be found over there. -- nosy: +brett.cannon ___ Python tracker

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Cody Cox
On Friday, September 25, 2015 at 1:26:02 PM UTC-7, Laura Creighton wrote: > In a message of Fri, 25 Sep 2015 22:15:26 +0200, Laura Creighton writes: > > >No. You are going to return whatever is called 'experience' and > >whatever is called 'monsters' and assign them to 'count' and 'monsters'. >

[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-25 Thread Tim Peters
Tim Peters added the comment: The only way to be certain you're never going to face re-entrancy issues in the future is to call malloc() directly - and hope nobody redefines that too with some goofy macro ;-) In the meantime, stick to PyMem_Malloc(). That's the intended way for code holding

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Cody Cox
#Cody Cox #9/16/2015 #Programming Exercise 1 - Kilometer Converter #Design a modular program that asks the user to enter a distance in kilometers and then covert it to miles # Miles = Kilometers * 0.6214 def main(): #set the variable to 0.0, makes it a float and creates a place in memory

[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Timmy! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25236] str.maketrans wrong description for optional 3rd parameter

2015-09-25 Thread Brian O'Neill
New submission from Brian O'Neill: The doc says "If there is a third argument, it must be a string, whose characters will be mapped to None in the result." The characters of the optional third argument get mapped to '', of course, not to None. -- assignee: docs@python components:

[issue25233] AssertionError from asyncio Queue get

2015-09-25 Thread STINNER Victor
STINNER Victor added the comment: 2015-09-25 20:12 GMT+02:00 Yury Selivanov : >> This looks like an important regression and we should fix it before 3.5.1 >> goes out. > > I agree. Any ETA on 3.5.1? See

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Cody Cox
Awesome guys! Thank you for helping me understand this material. Parameters and Arguments are tricky. Looks like its mainly a game of connect the dots with variables. lol. When you return a variable, it needs somewhere to go, and that's why it goes to the next call into the argument area if I

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Cody Cox
Oh, i also noticed that declaring the variable I was using and setting it =0.0 helped me out, seems the program had "garbage" in it... (that's what my professor said.) -- https://mail.python.org/mailman/listinfo/python-list

[issue25234] test_einter.test_os_open hangs under Xcode 7

2015-09-25 Thread Brett Cannon
New submission from Brett Cannon: Specifically: Apple LLVM version 7.0.0 (clang-700.0.72) Target: x86_64-apple-darwin14.5.0 Thread model: posix I'm assuming this is a Mac issue since none of the buildbots are having a similar issue. -- components: Macintosh messages: 251597 nosy:

[issue25235] EmailMessage.add_attachment() creates parts with spurious MIME-Version header.

2015-09-25 Thread Kai Groner
New submission from Kai Groner: Because MIMEPart.add_attachment() creates parts using type(self), EmailMessage.add_attachment() creates parts of type EmailMessage. This results in a MIME-Version header being added to parts where it isn't needed. https://tools.ietf.org/html/rfc2045#section-4

[issue25235] EmailMessage.add_attachment() creates parts with spurious MIME-Version header.

2015-09-25 Thread Kai Groner
Changes by Kai Groner : Added file: http://bugs.python.org/file40578/test_MIME_Version.patch ___ Python tracker ___

[issue25154] Drop the pyvenv script

2015-09-25 Thread Brett Cannon
Brett Cannon added the comment: Here is a patch that adds a message to stderr about the deprecation. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file40579/issue25154.diff ___ Python tracker

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Ian Kelly
On Fri, Sep 25, 2015 at 1:03 PM, Cody Cox wrote: > def main(): > #set the variable to 0.0, makes it a float and creates a place in memory > for the variable. > kilo = 0.0 This is addressing a symptom, not the actual problem. Initializing kilo here prevents Python

[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-25 Thread Brett Cannon
Brett Cannon added the comment: Here is a tweaked 3.6 patch so that --pgo doesn't even emit the failure count so you really can't tell what is going on unless some error info from the test spews out on to the shell (which I can't seem to stop since 2>/dev/null causes a test failure).

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-09-25 Thread Cyd Haselton
Cyd Haselton added the comment: Still battling this bus error issue. Recompiling gdb --with-python did not help; I still cannot get any useful info out of it. I suspect it may be due to this error: setpgrp failed in child: No such process but I'm not sure. At this point I'm going to try

[issue25186] Don't duplicate _verbose_message in importlib._bootstrap and _bootstrap_external

2015-09-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1266e98fd04c by Brett Cannon in branch 'default': Issue #25186: Remove duplicated function from importlib._bootstrap_external https://hg.python.org/cpython/rev/1266e98fd04c -- nosy: +python-dev ___

[issue25235] EmailMessage.add_attachment() creates parts with spurious MIME-Version header.

2015-09-25 Thread Kai Groner
Kai Groner added the comment: Relatedly EmailMessage.make_mixed(), etc don't set MIME-Version on the multipart (it is only set on the part). Additional tests attached. -- Added file: http://bugs.python.org/file40577/test_add_attachment_does_not_add_MIME_Version_in_attachment.patch

[issue25186] Don't duplicate _verbose_message in importlib._bootstrap and _bootstrap_external

2015-09-25 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue25236] str.maketrans wrong description for optional 3rd parameter

2015-09-25 Thread Brian O'Neill
Brian O'Neill added the comment: Closed as this is a actually true of maketrans. -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue25233] AssertionError from asyncio Queue get

2015-09-25 Thread Guido van Rossum
New submission from Guido van Rossum: See https://github.com/python/asyncio/issues/265 and https://github.com/python/asyncio/issues/268. This looks like an important regression and we should fix it before 3.5.1 goes out. The symptom is "AssertionError: queue non-empty, why are getters

[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I'm not sure that you understand what you are trying to do. The goal is to avoid possible re-entrancy both now and in the future. Since PyMem_RawMalloc is thread-safe and doesn't require the GIL to be held, it is guaranteed that there won't be a

[issue25233] AssertionError from asyncio Queue get

2015-09-25 Thread Yury Selivanov
Yury Selivanov added the comment: > This looks like an important regression and we should fix it before 3.5.1 > goes out. I agree. Any ETA on 3.5.1? -- ___ Python tracker

[issue25223] Statically or dynamically linked to the VC++runtime ? or how Python install fails on Vista despite the VC redist packages - api-ms-win-crt-runtime-l1-1-0.dll

2015-09-25 Thread eryksun
eryksun added the comment: > this update doesn't apply to you system Was that Windows6.0-KB2999226-x86.msu? Open a command prompt and enter the following: wmic os get Version, OSArchitecture Windows Vista SP 2 is version 6.0.6002, and the OS architecture should be 32-bit. --

[issue25194] Register of Financial Interests for core contributors

2015-09-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue25232] CGIRequestHandler behave incorrectly with query component consisting mutliple ?

2015-09-25 Thread Martin Panter
Martin Panter added the comment: Thanks for the report and patch. Would you be interested in making a new regression test for this bug? While we are fixing this code, we might as well simplify that whole “if” block to [rest, query] = rest.partition("?") -- components: +Library (Lib)

[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

2015-09-25 Thread Martin Panter
Martin Panter added the comment: It would be good to have a regression test case for this one too. -- stage: needs patch -> patch review ___ Python tracker

[issue24781] Improve UX of IDLE Highlighting configuration tab

2015-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK, will ask before review. -- ___ Python tracker ___ ___ Python-bugs-list

[issue25171] does not build on OpenBSD with no value defined for PY_GETENTROPY

2015-09-25 Thread Martin Panter
Martin Panter added the comment: Patch looks sensible to me, although I notice the rest of that module tends to prefer the #elif defined(PY_GETENTROPY) style. It looks like this might be introduced with Issue 25003. -- nosy: +haypo, martin.panter stage: -> patch review type: ->

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

2015-09-25 Thread Martin Panter
Martin Panter added the comment: I just tested your patch on Arch Linux with the default 3.6 Python branch. The test suite passed happily and all seems to be well: Python 3.6.0a0 (python_have_alpn.diff qbase qtip tip:eb8ee60ace13, Sep 25 2015, 22:53:15) [GCC 5.1.0] on linux Type "help",

[issue24820] IDLE themes for light on dark

2015-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Here is an Idle Dark theme that is the near-inverse of the standard Idle theme, with foreground colors tweaked just a bit to account for the background switch and its blue tint. It otherwise retains the current color mapping. What do you think? --

[issue24820] IDLE themes for light on dark

2015-09-25 Thread Mark Roseman
Mark Roseman added the comment: Looks good to me! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Terry Reedy
On 9/25/2015 2:50 PM, Cody Cox wrote: Awesome guys! Thank you for helping me understand this material. Parameters and Arguments are tricky. Looks like its mainly a game of connect the dots with variables. lol. If you stick with the convention that parameters are names in the header of a

[issue25211] Error message formatting errors in int object unit-test script

2015-09-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 697781ff3b49 by Martin Panter in branch '3.4': Issue #25211: Eliminate lazy error message class by using subTest https://hg.python.org/cpython/rev/697781ff3b49 New changeset 6e11708dcb3b by Martin Panter in branch '3.5': Issue #25211: Merge

[issue23218] Modernize the IDLE Find/Replace/Find in Files dialogs

2015-09-25 Thread Mark Roseman
Mark Roseman added the comment: Have attached find-dialogs.patch, which does some cosmetic tweaks to the existing dialogs, as per the previous screenshot. It uses ttk widgets if available, and standard Tk widgets if not. Relies on the ui.py module (not attached, as it is changing often).

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Denis McMahon
On Fri, 25 Sep 2015 12:03:43 -0700, Cody Cox wrote: > #Design a modular program that asks the user to enter a distance in > kilometers and then covert it to miles # Miles = Kilometers * 0.6214 #!/usr/bin/python # main calls the input routine to get the km value, then # calls the conversion

[issue25125] "Edit with IDLE" does not work for shortcuts

2015-09-25 Thread Thijs van Dien
Thijs van Dien added the comment: That works fine, but then again the ticket only concerns the context menu of _shortcuts_ to Python files. Opening Python files directly, either via "Edit with IDLE" in context menu or directly via the CLI, has worked from the beginning. --

[issue25211] Error message formatting errors in int object unit-test script

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

[issue25173] IDLE - several common dialogs don't have correct parent set

2015-09-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset e406d62014f7 by Terry Jan Reedy in branch '2.7': Issue #25173: Replace 'master' with 'parent' in tkinter.messagebox calls. https://hg.python.org/cpython/rev/e406d62014f7 New changeset e494316a9291 by Terry Jan Reedy in branch '3.4': Issue #25173:

[issue25209] Append space after completed keywords

2015-09-25 Thread Martin Panter
Martin Panter added the comment: Yes I am interesting in making a patch for auto-completing module names. I’ll leave it on my to-do list, but don’t expect it overnight. :) My code does some rough parsing of Python syntax, but maybe that is not needed for “import x”, though it might be needed

[issue12219] tkinter.filedialog.askopenfilename XT dialog on Windows 7

2015-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am closing this because for 3.4.3 and 3.5.0 on Win 7, both of which use tk 8.6.x, the file open dialog works as in the 'correct' png, with a navigation pane. -- resolution: -> out of date stage: -> resolved status: open -> closed

[issue25237] Add doc for tkinter commondialog.Dialog and subclasses

2015-09-25 Thread Terry J. Reedy
New submission from Terry J. Reedy: As noted in #15346, several modules are not documented except in the code. Having just had to do that for #25173, I would like there to be a page for commondialog.Dialog and its subclasses, messagebox.Message and colorchooser.Chooser, and the associated

[issue15346] Tkinter extention modules have no documentation

2015-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I opened #25237 for commondialog, messagebox, and colorchooser. -- dependencies: +Add doc for tkinter commondialog.Dialog and subclasses nosy: +terry.reedy versions: +Python 3.5, Python 3.6 -Python 2.6, Python 3.1, Python 3.2, Python 3.3

[issue25232] CGIRequestHandler behave incorrectly with query component consisting mutliple ?

2015-09-25 Thread Xiang Zhang
Xiang Zhang added the comment: I add a testcase but I worry it's not in the right format. Please review it. Partition is a good choice here. -- Added file: http://bugs.python.org/file40584/multiple?.patch ___ Python tracker

[issue25237] Add doc for tkinter commondialog.Dialog and subclasses

2015-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Side issue: Dialog has this: # we need a dummy widget to properly process the options # (at least as long as we use Tkinter 1.63) w = Frame(self.master) Do you know what 'Tkinter 1.63' refers to? In 2.7, Tkinter.__version__ is

[issue25173] IDLE - several common dialogs don't have correct parent set

2015-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Opened #25237 about Dialog+subclass docs. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

2015-09-25 Thread Xiang Zhang
Xiang Zhang added the comment: Add the testcase and use str.partition. -- Added file: http://bugs.python.org/file40585/cgihander.patch ___ Python tracker

Problem to calculate the mean in version 3.4

2015-09-25 Thread Michel Guirguis
Good morning, I have downloaded the version 3.4 and I have a problem to calculate the mean. The software does not recognise the function mean(). I am getting the following error. >>> mean([1, 2, 3, 4, 4]) Traceback (most recent call last): File "", line 1, in mean([1, 2, 3,

Re: Problem to calculate the mean in version 3.4

2015-09-25 Thread Peter Otten
Michel Guirguis wrote: > I have downloaded the version 3.4 and I have a problem to calculate the > mean. The software does not recognise the function mean(). I am getting > the following error. > mean([1, 2, 3, 4, 4]) > Traceback (most recent call last): > File "", line 1, in

[issue25223] Statically or dynamically linked to the VC++runtime ? or how Python install fails on Vista despite the VC redist packages - api-ms-win-crt-runtime-l1-1-0.dll

2015-09-25 Thread Wolfgang Langner
Wolfgang Langner added the comment: As a note, I had problems installing Python 3.5 on a computer at work. The redist package could not install with access denied error. But the workaround installing the Universal CRT update helped. After this I was able to install Python 3.5 without problems.

Re: Problem to calculate the mean in version 3.4

2015-09-25 Thread Paul Rubin
Michel Guirguis writes: mean([1, 2, 3, 4, 4]) > Traceback (most recent call last):... > NameError: name 'mean' is not defined Before you can use that function, you have to import the statistics module, e.g.: >>> import statistics >>>

Re: ConnectionError handling problem

2015-09-25 Thread Cameron Simpson
On 24Sep2015 22:46, shiva upreti wrote: On Friday, September 25, 2015 at 10:55:45 AM UTC+5:30, Cameron Simpson wrote: On 24Sep2015 20:57, shiva upreti wrote: >Thank you Cameron. >I think the problem with my code is that it just hangs without

Re: PyInstaller+ Python3.5 (h5py import error)

2015-09-25 Thread Hedieh E
On Thursday, September 24, 2015 at 1:12:31 PM UTC+2, Laura Creighton wrote: > In a message of Thu, 24 Sep 2015 02:58:35 -0700, Heli Nix writes: > >Thanks Christian, > > > >It turned out that h5py.defs was not the only hidden import that I needed to > >add. > > > >I managed to get it working

[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-25 Thread STINNER Victor
STINNER Victor added the comment: "Victor, I was thinking of switching to PyMem_RawMalloc instead of PyMem_Malloc. The advantages are that there are guaranteed to be no side-effects, the GIL doesn't need to be held, and there is less overhead. Are there any disadvantage I should know

[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Victor, I was thinking of switching to PyMem_RawMalloc instead of PyMem_Malloc. The advantages are that there are guaranteed to be no side-effects, the GIL doesn't need to be held, and there is less overhead. Are there any disadvantage I should know

[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch that copies only used part of the block. I don't see an actual bug in patch 2 besides that it fallbacks to current popping behavior. -- Added file: http://bugs.python.org/file40572/deque_nonreentrant_clear4.diff

[issue25231] Argparse module and escape sequence (special symbols) in argument value

2015-09-25 Thread Ondřej Profant
New submission from Ondřej Profant: I am trying to put tabulator '\t' into argument value. Minimal working example: #!/usr/bin/env python3 import argparse def main(): parser = argparse.ArgumentParser() parser.add_argument('-f', '--foo', default="test", help="test")

[issue25231] Argparse module and escape sequence (special symbols) in argument value

2015-09-25 Thread Martin Panter
Martin Panter added the comment: As far as I know “argparse” takes arguments straight from the command line without interpreting any escape sequences. Perhaps you should look up how to pass a literal tab on the command line, but this is nothing specific to do with Python. E.g. in the Bash

Re: Modifying signature of ctor in class

2015-09-25 Thread gal kauffman
Sorry, you really can't give FunctionType an argument list. Maybe you can wrap the function with a callable object, this way you can change the argument list returned, and doest have to eval or compile code. On Sep 25, 2015 12:46 AM, "Joseph L. Casale" wrote: > > I

Re: Modifying signature of ctor in class

2015-09-25 Thread gal kauffman
You can use the FunctionType class found in the types module (and its friends) to create functions on the run. And you can use the 'inspect' module to inspect existing functions, if you need to base the new function on an existing one. On Sep 24, 2015 11:28 PM, "Joseph L. Casale"

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread alister
On Thu, 24 Sep 2015 11:45:06 -0700, codywcox wrote: > I seem to be having a problem understanding how arguments and parameters > work, Most likely why my code will not run. > Can anyone elaborate on what I am doing wrong? > > ''' > Cody Cox 9/16/2015 Programming Exercise 1 - Kilometer Converter