[issue24756] doctest run_docstring_examples does have an obvious utility

2015-07-30 Thread Ethan Furman
Ethan Furman added the comment: Looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24756 ___ ___ Python-bugs-list mailing list

Logical Query JSON

2015-07-30 Thread subhabrata . banerji
Dear Group, I am trying to query JSON with Logical operators. I tried to experiment lot with it, but could not do much. I came many times pretty close but missed it almost. I tried to experiment with json, jsonquery, jsonschema, jsonpipe, objectpath, requests. I got a good example from

Looking for Python developers with SOP Simulation experience

2015-07-30 Thread regoricardo
Hi all, We're starting a new Python project where any extra help will be warmly welcomed. Please, contact us at: ricardo att r2software dott com dott br Cheers, Ricardo -- https://mail.python.org/mailman/listinfo/python-list

[issue24754] argparse add_argument with action=store_true, type=bool should not crash

2015-07-30 Thread R. David Murray
R. David Murray added the comment: Looking at the source it appears that there are many actions for which it is not legal to also specify type. That is, this looks like a design decision rather than a bug. -- nosy: +r.david.murray ___ Python

Logical Query in Python

2015-07-30 Thread subhabrata . banerji
Dear Group, I am trying to query JSON with Logical operators. I tried to experiment lot with it, but could not do much. I came many times pretty close but missed it almost. I tried to experiment with json, jsonquery, jsonschema, jsonpipe, objectpath, requests. I got a good example from

Re: Python launcher problem

2015-07-30 Thread Zachary Ware
On Jul 30, 2015 2:05 AM, ElChino elch...@cnn.cn wrote: If I in a cmd-shell (actually it is 4NT), do: c:py -3 -V python3 -V I get: Requested Python version (3) not installed ! from py -3 -V Python 3.5.0b2! from the 2nd cmd. What nonsense is this? I DO HAVE Python3 in my %PATH.

[issue24756] doctest run_docstring_examples does have an obvious utility

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

[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-07-30 Thread Etienne Fortin
Etienne Fortin added the comment: I replaced: import importlib.machinery loader = importlib.machinery.ExtensionFileLoader(name, path) return loader.load_module() With: import importlib.machinery loader = importlib.machinery.ExtensionFileLoader(modname, filename)

[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-30 Thread R. David Murray
R. David Murray added the comment: You are on your own for AIX debugging, I'm afraid. You can try the #python-dev channel on freenode for questions about how things work in general. If you find real problems with the python code you can open new issues (we have accepted patches for AIX when

[issue16508] include the object type in the lists of documented types

2015-07-30 Thread Martin Panter
Martin Panter added the comment: Here is a patch. Perhaps it is what you had in mind. I added quick mentions of the “object” class to The Standard Type Hierarchy and Other Built-in Types. I added documentation of what the object class’s own implementations do where it provides them. I added

[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-30 Thread REIX Tony
REIX Tony added the comment: About test_io, when running it alone by: ./python ./Lib/test/test_io.py /tmp/test_io.res I got NO error ! Done 2 times on each of my 2 AIX machines. Hu Why these tests do block in the middle ? -- ___ Python

[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-30 Thread REIX Tony
REIX Tony added the comment: I got strange things: Tests blocked in: [300/400/22] test_signal and: # ps -edf | grep python root 7405612 12320954 0 14:52:04 pts/2 0:00 ./python -m -c -l -x test_io root 7929900 34209932 0 14:52:04 pts/2 0:00 ./python -m -c -l -x test_io

[issue24756] doctest run_docstring_examples does have an obvious utility

2015-07-30 Thread R. David Murray
New submission from R. David Murray: I propose that we remove the paragraph before 'run_docstring_exmaples' in the doctest docs. It says that there's no intent to remove the function but that it is rarely useful. However, it is in fact *very* useful, for any code that also uses testmod.

[issue24707] Assertion failed in pymonotonic_new

2015-07-30 Thread STINNER Victor
STINNER Victor added the comment: Chris Angelico added the comment: Where's this issue heading? The buildbots seem to be green now, does that imply that this is fixed? The issue still exist, it's just that the issue occurs randomly and is very rare (seen twice in 6 months...). --

[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-30 Thread REIX Tony
REIX Tony added the comment: Hum I'm now building Python 2.7.10 RPMs on AIX. The .spec file works fine. However, when adding make test in the .spec file, I've got the tests blocked in test_io. The same with 2.7.6 . Going into the directory and trying make quicktest, it is now blocked after

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4476b578b8fd by Berker Peksag in branch '3.5': Issue #15582: Add a whatsnew entry for inspect.getdoc() changes in 3.5. https://hg.python.org/cpython/rev/4476b578b8fd New changeset e0f4a5f09bfa by Berker Peksag in branch 'default': Issue #15582: Add

[issue24745] Better default font for editor

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: I'm ok with putting TkFixedFont in the config file. Only potential downside I see is that the code will look for this specific value, but people may read the config file and assume it could be changed to any Tk*Font. I'd strongly argue against putting in a

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-30 Thread Eric Snow
Eric Snow added the comment: Also, here is the output from running the pywikibot suite (using just the 3 test modules) with the logging odict wrapper. -- Added file: http://bugs.python.org/file40069/odict.log ___ Python tracker

[Ann] Package Repository Project

2015-07-30 Thread casa
Hi all, I have started a package repository project at http://github.com/c4s4/cheeseshop. This is useful if you want to share Python packages that you can't make public on pypi.python.org. It is aimed to be easy to install and efficient. Any comment welcome Enjoy! --

[issue15138] base64.urlsafe_b64**code are too slow

2015-07-30 Thread Guido van Rossum
Guido van Rossum added the comment: I'm going to apply the 2.7 patch, except I'm going to leave the (now unused) _translate() function in place, in case it's used anywhere (minimizing the risk of breaking anything). -- ___ Python tracker

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-30 Thread Eric Snow
Eric Snow added the comment: After some quick tests, it looks like during the tests only a single thread is used, so it is *not* threading-related. That makes a bit more sense to me given the consistency. Notwithstanding this development, I should be able to isolate the problem soon (when I

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2015-07-30 Thread Berker Peksag
Berker Peksag added the comment: Applied, thanks! -- nosy: +berker.peksag stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15582 ___

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: Sounds good. To clarify, (2) refers to not the overall window, but just around the text widget. Both regarding this and the comments regarding status bar (4), things look really good now on Windows. The changes I've made are barely perceptible there, but

[issue12160] codecs doc: what is StreamCodec?

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset f9694502f07c by Berker Peksag in branch '3.4': Issue #12160: Fix incorrect StreamCodec references in Codec.encode() and Codec.decode() docs. https://hg.python.org/cpython/rev/f9694502f07c New changeset 98631f35426f by Berker Peksag in branch

Re: How to Calculate NPV?

2015-07-30 Thread Dave Farrance
ryguy7272 ryanshu...@gmail.com wrote: PERFECT!! SO SIMPLE!! I don't know why the author didn't do that in the book. The book is evidently giving you code snippets to enter into Python's own interactive interpreter, i.e., you enter python at the command line, then you manually type each command

[issue24741] Hangs and errors while testing on Ubuntu/Intel

2015-07-30 Thread REIX Tony
REIX Tony added the comment: Yes. I'm on my own for AIX debugging. I'm afraid too. ;) OK. What I need is build more skills about how to get into deep details when things run badly. Lot of fun. ;) Thx -- ___ Python tracker rep...@bugs.python.org

[issue24752] SystemError when importing from a non-package directory

2015-07-30 Thread Eric Snow
Eric Snow added the comment: You are correct that SystemError indicates a non-fatal issue in the interpreter and thanks for reporting the matter. In this case I'd say that SystemError is the wrong exception type. I expect that ImportError (or perhaps RuntimeError) is more appropriate.

[issue12160] codecs doc: what is StreamCodec?

2015-07-30 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Nick! -- nosy: +berker.peksag resolution: - fixed stage: commit review - resolved status: open - closed type: - behavior versions: +Python 3.5, Python 3.6 -Python 3.1, Python 3.2 ___ Python

[issue13884] IDLE: Remove tear-off menu feature

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: Doing it via the option database vs. on each menu would be my preferred approach. The option database is global, not per toplevel, so would cover everything. Only 'downside' is the whole its-not-an-application-its-a-library thing, though in the highly unlikely

[issue15138] base64.urlsafe_b64**code are too slow

2015-07-30 Thread Guido van Rossum
Guido van Rossum added the comment: And just in case someone objects to my breaking the policy stated by Antoine in msg163432: see http://bugs.python.org/issue4753 -- it's not actually a real policy. -- versions: +Python 2.7 ___ Python tracker

[issue15138] base64.urlsafe_b64**code are too slow

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 309cbbc32491 by Guido van Rossum in branch '2.7': Issue #15138: Speed up base64.urlsafe_b64* considerably (2.7 backport). https://hg.python.org/cpython/rev/309cbbc32491 -- nosy: +python-dev ___ Python

Re: Logical Query in Python

2015-07-30 Thread Steven D'Aprano
On Thu, 30 Jul 2015 11:28 pm, subhabrata.bane...@gmail.com wrote: Dear Group, I am trying to query JSON with Logical operators. What does that mean? I tried to experiment lot with it, but could not do much. I came many times pretty close but missed it almost. Please: - show an example

[issue12932] filecmp.dircmp does not allow non-shallow comparisons

2015-07-30 Thread Robert Collins
Robert Collins added the comment: Thanks for the patch @planet36, however I think this is sufficiently large a change that we should also have a test case for it. I'm also retargeting this to the current open branches for feature work - 3.6. -- nosy: +rbcollins stage: commit review -

Re: How to re-write this bash script in Python?

2015-07-30 Thread Mark Lawrence
On 30/07/2015 19:31, sutanu@gmail.com wrote: #!/bin/bash _maillist='pa...@email.com' _hname=`hostname` _logdir=/hadoop/logs _dirlog=${_logdir}/directory_check.log _year=$(date -d -5 hour +%Y) _month=$(date -d -5 hour +%m) _day=$(date -d -5 hour +%d) _hour=$(date -d -5 hour +%H)

Re: How to re-write this bash script in Python?

2015-07-30 Thread random832
On Thu, Jul 30, 2015, at 14:31, sutanu@gmail.com wrote: _year=$(date -d -5 hour +%Y) _month=$(date -d -5 hour +%m) _day=$(date -d -5 hour +%d) _hour=$(date -d -5 hour +%H) What is the purpose of the -5 hour offset? Is it an attempt to compensate for timezones? --

[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message

2015-07-30 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24758 ___ ___

[issue12160] codecs doc: what is StreamCodec?

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 296a09614f31 by Berker Peksag in branch '2.7': Issue #12160: Fix incorrect StreamCodec references in Codec.encode() and Codec.decode() docs. https://hg.python.org/cpython/rev/296a09614f31 -- ___ Python

[issue13884] IDLE: Remove tear-off menu feature

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset bead9330438c by Terry Jan Reedy in branch '2.7': Issue #13884: Idle: Remove tearoff lines from menus. Patch by Roger Serwy. https://hg.python.org/cpython/rev/bead9330438c New changeset 6eb4441ed14b by Terry Jan Reedy in branch '3.4': Issue #13884:

[issue13884] IDLE: Remove tear-off menu feature

2015-07-30 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: - terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13884 ___ ___

[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message

2015-07-30 Thread Robert Collins
Robert Collins added the comment: How were you setting/introducing your assertions on the mocks? e.g. could you supply a small sample script showing what used to work? Thanks. -- nosy: +rbcollins ___ Python tracker rep...@bugs.python.org

[issue12932] filecmp.dircmp does not allow non-shallow comparisons

2015-07-30 Thread Robert Collins
Robert Collins added the comment: Bah, wrong stage. patch review. -- stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12932 ___

Re: using sched

2015-07-30 Thread Irmen de Jong
On 30-7-2015 17:57, Nkansah Rexford wrote: Using sched, how can I run a function, at for instance, exactly 00:00 GMT, and only that time. If sched wouldn't be the best to do so a job, please can you recommend something? The sched module is by itself not really a task scheduler. It can

[issue24757] Installing Py on Windows: Need to restart or logout for path to be added

2015-07-30 Thread eryksun
eryksun added the comment: I think a custom action can be added to Tools/msi/msisupport.c to send a [WM_SETTINGCHANGE][1] Environment message to top-level windows. This makes Explorer reload its environment from the registry, so starting a new command prompt (cmd.exe) from Explorer will see

New module (written in C) for using the high-precision QD library

2015-07-30 Thread baruchel
Hi, I wrote a module for wrapping the well-known high-precision QD library written by D.H. Bailey. You can find it here: https://github.com/baruchel/qd It is written in pure C with the CPython C-API in order to get the highest possible speed. The QD library provides floating number types for

How to rearrange array using Python?

2015-07-30 Thread Martin Schöön
Here is a problem I think I should be able to solve using Python but after having searched the internet for the better part of this evening my head spins and I would apreciate some guidance. Disclaimer My formal programming training happened 35+ years ago and initially involved F77 and later

[issue23779] imaplib authenticate raises TypeError if authenticator tries to abort

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset fe55a36a335b by Robert Collins in branch '3.4': Issue #23779: imaplib raises TypeError if authenticator tries to abort. https://hg.python.org/cpython/rev/fe55a36a335b New changeset b6f04b9d8c12 by Robert Collins in branch '3.5': Issue #23779:

[issue23779] imaplib authenticate raises TypeError if authenticator tries to abort

2015-07-30 Thread Robert Collins
Robert Collins added the comment: Thanks for the patch. Applied to 3.4 through 3.6. -- nosy: +rbcollins resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13884] IDLE: Remove tear-off menu feature

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I decided the accessibility argument does not apply because a) there is only one nested menu, Recent files b) that menu can be very wide and I intend to make it longer, making it a bad candidate for staying on the screen, and c) when torn off, it did not seem

[issue24724] Element.findall documentation misleading

2015-07-30 Thread Eric S
Eric S added the comment: Pointing to XPath and clarifying the example reference are good ideas. For me though, the phrase direct children would still lead me to believe that findall() would only give me the first generation right below the element (e.g. only the countries in the example),

[issue24759] Idle: require 8.5 / ttk

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tested by renaming installed 3.5 ttk, editing 3.5 PyShell with 3.4, and clicking 3.5 icon. -- stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24759

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: Great. Sent in the contributor agreement Monday so I assume it should percolate through soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24750 ___

[issue24760] IDLE settings dialog shouldn't be modal

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't know. I do not thing that any option settings affect the dialog box itself, Someone could switch modal off and experiment. It would certainly make it easier to change something, Apply, and then try it out. The is one place I would not feel obligated

[issue24039] Idle: some modal dialogs maximize, don't minimize

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another solution to this issue is to not make things modal. See #24760. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24039 ___

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-30 Thread Eric Snow
Eric Snow added the comment: Getting closer. Here's a reproducer derived from the calls made while running the pywikibot test suite (3 tests only). Note that the KeyError indicates a different key for each run, even though the code is consistent. This means that order preservation is

[issue24724] Element.findall documentation misleading

2015-07-30 Thread Martin Panter
Martin Panter added the comment: How about something like: ''' :meth:`Element.findall` finds all elements matching a path expression; in this example, all country children of *root*. meth:`Element.find` finds the *first* matching element, in this example the first rank child. . . . ''' Also,

Re: How to rearrange array using Python?

2015-07-30 Thread Robin Koch
Am 30.07.2015 um 22:31 schrieb Martin Schöön: Scores to the right show how many wishes are fulfilled in each room Is it possible the is a mistake in the sum column on the third row? Should the be a 1? The goal is to re-shuffle the array to maximize this score. How do I go about doing that?

[issue24759] Idle: require 8.5 / ttk

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: Sounds good. Only suggestion, given it's user facing, is to have the error message point them towards a solution. Off the top of my head, maybe something like IDLE requires Python be configured to use Tk 8.5 or newer (you have Tk x.x) with a title of IDLE

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looks fine on Windows. Now to be picky: Is it possible to move 'Col:' to the left, leaving space to the right, so that 'Col:' does not move when going from 9 to 10? Ditto for 'Ln:'? -- ___ Python tracker

Re: [Tutor] Mailbox

2015-07-30 Thread ltc.hotspot
Hi Cameron, New revision code: count = 0 fn = raw_input(Enter file name: ) if len(fn) 1 : fname = mbox-short.txt for line in fn: if 'From' in line.split()[0]: count += 1 print There are %d lines starting with From % count print len(line) fn = open(fname) print There were, count, lines in the

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: The attached mainwin.patch implements these few small changes (except for removing the Mac grow box space); checked active/inactive on Mac, Windows, Linux. -- keywords: +patch Added file: http://bugs.python.org/file40070/mainwin.patch

[issue24707] Assertion failed in pymonotonic_new

2015-07-30 Thread STINNER Victor
STINNER Victor added the comment: Hum, I'm not sure that I was clear: in fact, the assertion is only useful for me, because I'm curious to know bugs in implementations of monotonic clocks. In the case of this buildbot, it may be a bug in qemu, less likely in the linux kernel. I don't think that

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-30 Thread Eric Snow
Eric Snow added the comment: As expected (considering the link to dict ordering here), the inconsistent results are tied to hash randomization: $ for i in `seq 1 25`; do echo $i; PYTHONHASHSEED=$i ./python /tmp/odict_reproduce.py; done

[issue24759] Idle: require 8.5 / ttk

2015-07-30 Thread Terry J. Reedy
New submission from Terry J. Reedy: PyShell currently has this code try: from tkinter import * except ImportError: print(** IDLE can't import Tkinter.\n Your Python may not be configured for Tk. **, file=sys.__stderr__) sys.exit(1) import tkinter.messagebox as tkMessageBox

[issue13248] deprecated in 3.2/3.3, should be removed in 3.5 or ???

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset ad4c1bfe257f by Berker Peksag in branch 'default': Issue #13248: Delete remaining references of inspect.getargspec(). https://hg.python.org/cpython/rev/ad4c1bfe257f -- ___ Python tracker

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-07-30 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Alessandro! I left some additional comments on Rietveld: https://bugs.python.org/review/19475/#ps15278 -- nosy: +berker.peksag stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added a dependency to gracefully exit when no ttk. Mark: If you have not yet, please sign PSF Contributor Agreement before submitting further patches. https://www.python.org/psf/contrib/ https://www.python.org/psf/contrib/contrib-form/ I now see what you

[issue24760] IDLE settings dialog shouldn't be modal

2015-07-30 Thread Mark Roseman
New submission from Mark Roseman: Is there any reason the IDLE settings dialog is modal? (Actually while it is modal on Windows and Linux, on OS X you can actually switch back to the main window while the settings dialog is up, but you can't actually type etc. into it!) While I could

[issue24760] IDLE settings dialog shouldn't be modal

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: Ok, I'll do some playing around with that one over the next few days, and see if anything comes up. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24760

[issue18383] test_warnings modifies warnings.filters when running with -W default

2015-07-30 Thread Berker Peksag
Berker Peksag added the comment: Here is an updated patch (against 3.4 branch). I've just made some small cosmetic changes and split the test into two parts (filterwarnings and simplefilter). Patch looks reasonable to me, but it would be nice to get a second opinion. -- Added file:

[issue24759] Idle: require 8.5 / ttk

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Improved message. Thanks. Should be good enough for the extremely few times it should ever be triggered. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I patched the other scrollbars for 3.4 and verified the expected appearance change. For 2.7, with 8.5.15, I so not see any difference. Is this what I should expect on Windows? Did ttk.Scrollbar only use the Win7 scrollbar in 8.6? --

Re: How to rearrange array using Python?

2015-07-30 Thread Mark Lawrence
On 30/07/2015 21:31, Martin Schöön wrote: Here is a problem I think I should be able to solve using Python but after having searched the internet for the better part of this evening my head spins and I would apreciate some guidance. Disclaimer My formal programming training happened 35+ years

Re: How to rearrange array using Python?

2015-07-30 Thread ltc.hotspot
Hi Mark, I’m still confused because line 4 reads: fh=open(fname,'r') # Open a new file handle, not fn = open(fname) Can you write down line by line from error to correction? Hal Sent from Surface From: Mark Lawrence Sent: ‎Thursday‎, ‎July‎ ‎30‎, ‎2015 ‎3‎:‎21‎ ‎PM To:

[issue24707] Assertion failed in pymonotonic_new

2015-07-30 Thread Chris Angelico
Chris Angelico added the comment: Ah. It's one of *those* bugs. Got it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24707 ___ ___

'open' is not defined

2015-07-30 Thread ltc.hotspot
Hi Everyone: Why is open not defined in the following code:NameError: name 'open' is not defined Code reads as follows: fname = raw_input(Enter file name: ) if len(fname) 1 : fname = mbox-short.txt fh = open(fname) count = 0 for line in fh: if not line.startswith('From'):

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Mark Roseman
Mark Roseman added the comment: The mainwin2.patch keeps the width of the fields constant. Thanks! -- Added file: http://bugs.python.org/file40071/mainwin2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24750

[issue24759] Idle: require 8.5 / ttk

2015-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8203fc75b3d2 by Terry Jan Reedy in branch '2.7': Issue 24759: Gracefull exit Idle if ttk import fails. https://hg.python.org/cpython/rev/8203fc75b3d2 New changeset 13a8782a775e by Terry Jan Reedy in branch '3.4': Issue 24759: Gracefull exit Idle if

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-30 Thread Eric Snow
Eric Snow added the comment: For the reproducer I'm sticking with a seed of 1: PYTHONHASHSEED=1 ./python /tmp/odict_reproduce.py -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24667 ___

[issue21657] pip.get_installed_distributions() Does not return packages in the current working directory

2015-07-30 Thread Robert Collins
Robert Collins added the comment: Yes, Python vendors pip, but is not maintaining it - it should be filed in https://github.com/pypa/pip/issues. -- nosy: +rbcollins resolution: third party - rejected status: pending - closed ___ Python tracker

[issue21657] pip.get_installed_distributions() Does not return packages in the current working directory

2015-07-30 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- resolution: rejected - third party stage: - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21657 ___

[issue20674] Update comments in dictobject.c

2015-07-30 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- components: +Documentation keywords: +easy stage: - needs patch versions: +Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20674

[issue21657] pip.get_installed_distributions() Does not return packages in the current working directory

2015-07-30 Thread Zachary Ware
Zachary Ware added the comment: I sincerely apologize for it taking more than a year for somebody to say this, but I think this is in the wrong bug tracker and should be reported to the pip project at https://github.com/pypa/pip/issues Donald, could you confirm? -- nosy: +zach.ware

[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message

2015-07-30 Thread Randy Syring
Randy Syring added the comment: Old functionality: (temp)rsyring@loftex:~/projects/hllapi-src$ python Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2 Type help, copyright, credits or license for more information. import mock mock.__version__ '1.0.0' m = mock.Mock()

[issue23420] python -m cProfile -s fails with non informative message

2015-07-30 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23420 ___ ___

[issue13248] deprecated in 3.2/3.3, should be removed in 3.5 or ???

2015-07-30 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you, Berker! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13248 ___ ___ Python-bugs-list mailing list

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I assume that change should be apparent on 2.7 with other system, but I'd like to make sure that I have not missed anything. I am otherwise ready to commit these. -- Added file: http://bugs.python.org/file40075/@scroll.diff

Re: using sched

2015-07-30 Thread Nkansah Rexford
Great. Thanks -- https://mail.python.org/mailman/listinfo/python-list

[issue24750] IDLE: Cosmetic improvements for main window

2015-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Hmm, the problem with maxsize = constant is occasionally losing a trailing digit or two. For instance, if one enters 8**, one might be interested in the number of digits and put cursor at end of wrapped line. But trailing 7 of 2007 is missing. Is there

Re: How to rearrange array using Python?

2015-07-30 Thread Thomas 'PointedEars' Lahn
Mark Lawrence wrote: On 30/07/2015 21:31, Martin Schöön wrote: I am just back from visiting my sisters and the younger of them was busy planning a youth orchestra summer camp. For some reason the kids are allowed to wish with whom they want to share rooms and my sister spent several evenings

[issue24751] regrtest/buildbot: test run marked as failure even when re-run succeeds

2015-07-30 Thread Zachary Ware
Zachary Ware added the comment: Here's a patch. -- components: +Tests keywords: +patch stage: - patch review type: - behavior versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file40076/issue24751.diff ___

[issue24761] ERROR: test_dh_params (test.test_ssl.ThreadedTests)

2015-07-30 Thread Zhang Yun
Changes by Zhang Yun cloud2h...@163.com: -- components: Tests files: test_ssl.log nosy: cloud2han9 priority: normal severity: normal status: open title: ERROR: test_dh_params (test.test_ssl.ThreadedTests) versions: Python 3.4 Added file: http://bugs.python.org/file40077/test_ssl.log

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-30 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: Added file: http://bugs.python.org/file40078/odict_reproduce.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24667 ___

[issue20051] PA-RISC buildbot: compiler cannot create executables

2015-07-30 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- resolution: - out of date stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20051 ___

[issue21126] Return results from doctest.run_docstring_examples()

2015-07-30 Thread Zachary Ware
Zachary Ware added the comment: Patch looks straightforward enough to me, and I think it's a good idea; tests would be nice though (was another issue opened for that?). -- nosy: +zach.ware stage: - commit review title: Integrate doctest.run_docstring_examples() with unittest - Return

[issue20464] Update distutils sample config file in Doc/install/index.rst

2015-07-30 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- versions: +Python 3.5, Python 3.6 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20464 ___

[issue23652] ifdef uses of EPOLLxxx macros so we can compile on systems that don't have them

2015-07-30 Thread Zachary Ware
Zachary Ware added the comment: Looks good to me. -- nosy: +zach.ware stage: - commit review versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23652 ___

[issue24762] Branchless, vectorizable frozen set hash

2015-07-30 Thread Raymond Hettinger
New submission from Raymond Hettinger: Speed-up frozenset_hash(). Switching to an entry++ style loop instead of set_next() eliminates much of the loop overhead. Removing the key=NULL or key==dummy checks eliminates the unpredictable branches and makes the loop vectorizable. Those benefits

[issue24762] Branchless, vectorizable frozen set hash

2015-07-30 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Added file: http://bugs.python.org/file40080/timings_fasthash.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24762 ___

[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message

2015-07-30 Thread Dima Tisnek
Changes by Dima Tisnek dim...@gmail.com: -- nosy: +Dima.Tisnek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24758 ___ ___ Python-bugs-list

Re: Fwd: Request for Information XML-RPC (Python)

2015-07-30 Thread dieter
Davide D'Arenzo davide.dare...@gmail.com writes: I'm Davide D'Arenzo and I'm working with Python using the standard xmlrpclib library communicating between a JavaServer (that host xmlrpc server) and my python client. I have a problem and I hope that you should solve my issue. I want to send

  1   2   >