[issue23921] Standardize documentation whitespace, formatting

2016-03-01 Thread Georg Brandl
Georg Brandl added the comment: I had no idea we had so many cases of wonky indentation :) This looks good to me, apart from a few comments I left on rietveld. -- ___ Python tracker

Re: How to know if an object is still be referenced?

2016-03-01 Thread Terry Reedy
On 3/1/2016 9:35 PM, jf...@ms4.hinet.net wrote: Recently I was puzzled by a tkinter problem. The codes below (from a book) can display the picture correctly. gifdir = "../gifs/" from tkinter import * win = Tk() photo = PhotoImage(file=gifdir + "ora-pp.gif") Button(win,

[issue26462] Patch to enhance literal block language declaration

2016-03-01 Thread Georg Brandl
Georg Brandl added the comment: Looks good now! I left a few comments on Rietveld. -- ___ Python tracker ___

[issue17580] ctypes: ARM hardfloat argument corruption calling functions with many float arguments

2016-03-01 Thread Berker Peksag
Berker Peksag added the comment: > Which patch? Looks like the patch can be found at https://github.com/atgreen/libffi/pull/34/ and it has been released in libffi 3.1: https://github.com/atgreen/libffi/blob/17ffc3655a531c116e9eb9cc933e50bb1e5c47f8/ChangeLog.libffi-3.1#L481 (It's hard to

Re: Is it possiable to find the fastest ones of dns servers from a huge number of them fastly with python?

2016-03-01 Thread Hongyi Zhao
On Wed, 02 Mar 2016 16:59:24 +1100, Chris Angelico wrote: > Yep! Google "how to get busted for denial of service attacks". > > Why would you want to test that many DNS servers? I'm from China, and the GFW has blocked many DNS servers. So I must pick out some good for using. > > ChrisA

Re: Is it possiable to find the fastest ones of dns servers from a huge number of them fastly with python?

2016-03-01 Thread Chris Angelico
On Wed, Mar 2, 2016 at 4:48 PM, Hongyi Zhao wrote: > I've a huge number of dns servers, around +5000, and I want to find > the top 50 fastest ones out of them for my location. > > Is it possible for this type of thing using python under my Debian Jessie > box? > Yep!

Re: Everything good about Python except GUI IDE?

2016-03-01 Thread Chris Angelico
On Wed, Mar 2, 2016 at 4:41 PM, Marko Rauhamaa wrote: > Steven D'Aprano : > >> On Wed, 2 Mar 2016 05:06 am, Marko Rauhamaa wrote: >>> A python shell would need a well-thought-out default import plus a >>> way to string together external commands. Maybe JSON

Is it possiable to find the fastest ones of dns servers from a huge number of them fastly with python?

2016-03-01 Thread Hongyi Zhao
Hi all, I've a huge number of dns servers, around +5000, and I want to find the top 50 fastest ones out of them for my location. Is it possible for this type of thing using python under my Debian Jessie box? Regards -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. --

Re: Everything good about Python except GUI IDE?

2016-03-01 Thread Marko Rauhamaa
Steven D'Aprano : > On Wed, 2 Mar 2016 05:06 am, Marko Rauhamaa wrote: >> A python shell would need a well-thought-out default import plus a >> way to string together external commands. Maybe JSON or similar could >> be the standard I/O framing format (instead of

Re: convert Dbase (.dbf) files to SQLite databases

2016-03-01 Thread Ethan Furman
On 03/01/2016 06:08 PM, Dennis Lee Bieber wrote: On Tue, 01 Mar 2016 08:49:08 -0800, Ethan Furman declaimed the following: Hmm, looks like that email was sent back in 2009. Sorry for the noise. I'm still not able to find a dbf module from John, though. Is it one of:

Re: Sending an email with a binary attachment

2016-03-01 Thread Anthony Papillion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 03/01/2016 02:03 AM, Chris Angelico wrote: > On Tue, Mar 1, 2016 at 6:58 PM, Anthony Papillion > wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 >> >> On 02/29/2016 11:13 AM, Chris Angelico wrote: >>> On Tue,

Re: Everything good about Python except GUI IDE?

2016-03-01 Thread Mike
On Saturday, February 27, 2016 at 6:19:21 AM UTC-5, wrong.a...@gmail.com wrote: > I have some VB forms with more than a hundred objects. If I cannot drag and > drop text boxes, list boxes, labels, etc., it will be too much work to create > that with several lines of code for each object. > >

How to know if an object is still be referenced?

2016-03-01 Thread jfong
Recently I was puzzled by a tkinter problem. The codes below (from a book) can display the picture correctly. gifdir = "../gifs/" from tkinter import * win = Tk() photo = PhotoImage(file=gifdir + "ora-pp.gif") Button(win, image=photo).pack() win.mainloop() And the codes

Re: Everything good about Python except GUI IDE?

2016-03-01 Thread Steven D'Aprano
On Wed, 2 Mar 2016 05:07 am, Chris Angelico wrote: > On Wed, Mar 2, 2016 at 3:44 AM, Steven D'Aprano > wrote: >> A better analogy is: >> >> When I add cocaine to my stew, the result is a appallingly bad for those >> who eat it. Do you have any idea how rough cocaine is on

Re: Reason for not allowing import twice but allowing reload()

2016-03-01 Thread Ian Kelly
On Tue, Mar 1, 2016 at 6:19 PM, Steven D'Aprano wrote: > On Wed, 2 Mar 2016 09:29 am, Ian Kelly wrote: > >> There's a big difference between >> that and clocking a year of uptime just because you can, though. > > What other reason is there for having a year of uptime? > >

Re: Everything good about Python except GUI IDE?

2016-03-01 Thread Chris Angelico
On Wed, Mar 2, 2016 at 12:51 PM, Steven D'Aprano wrote: > On Wed, 2 Mar 2016 05:06 am, Marko Rauhamaa wrote: > >> Steven D'Aprano : >> >>> On Sun, 28 Feb 2016 11:38 pm, BartC wrote: It's the GUI users who are the Neanderthals, having to effectively

Re: Everything good about Python except GUI IDE?

2016-03-01 Thread Steven D'Aprano
On Wed, 2 Mar 2016 05:06 am, Marko Rauhamaa wrote: > Steven D'Aprano : > >> On Sun, 28 Feb 2016 11:38 pm, BartC wrote: >>> It's the GUI users who are the Neanderthals, having to effectively >>> point at things with sticks. Or have to physically move that rock >>> themselves

rdflib subclass problem

2016-03-01 Thread duncan smith
Hello, I'm just getting to grips with RDF and rdflib, and I've hit something I can't figure out. I have a graph with information on two people. (I haven't shown the imports below because they're scattered around my interactive session and I might reconstruct them incorrectly. Anyone

[issue23670] Modifications to support iOS as a cross-compilation target

2016-03-01 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: Alex - The usual cause for that problem isn't regrtest (at least, not directly). The cause is one of the tests in the suite spawning a subprocess. Due to the way the test harness works, when the test suite forks/spawns a subprocess (e.g., to run a

Re: Reason for not allowing import twice but allowing reload()

2016-03-01 Thread Steven D'Aprano
On Wed, 2 Mar 2016 09:29 am, Ian Kelly wrote: > There's a big difference between > that and clocking a year of uptime just because you can, though. What other reason is there for having a year of uptime? It's not like it is difficult. My laptop doesn't actually go anywhere: for historical

[issue26443] cross building extensions picks up host headers

2016-03-01 Thread Alex Willmer
Alex Willmer added the comment: This looks like a duplicate of #20211, and IMO the patch there is more correct. -- ___ Python tracker ___

[issue22654] issue with PYTHON_FOR_BUILD

2016-03-01 Thread Alex Willmer
Changes by Alex Willmer : -- nosy: +Alex.Willmer ___ Python tracker ___ ___

[issue22699] cross-compilation of Python3.4

2016-03-01 Thread Alex Willmer
Changes by Alex Willmer : -- nosy: +Alex.Willmer ___ Python tracker ___ ___

[issue22625] When cross-compiling, don’t try to execute binaries

2016-03-01 Thread Alex Willmer
Changes by Alex Willmer : -- nosy: +Alex.Willmer ___ Python tracker ___ ___

[issue26443] cross building extensions picks up host headers

2016-03-01 Thread Alex Willmer
Changes by Alex Willmer : -- nosy: +Alex.Willmer ___ Python tracker ___ ___

Re: Reason for not allowing import twice but allowing reload()

2016-03-01 Thread Chris Angelico
On Wed, Mar 2, 2016 at 9:29 AM, Ian Kelly wrote: > I certainly understand the value of being able to work on a mudlib > without having to restart the mud. There's a big difference between > that and clocking a year of uptime just because you can, though. Oh, sure. I

[issue23670] Modifications to support iOS as a cross-compilation target

2016-03-01 Thread Alex Willmer
sys.exit() calls to return statements. I took the liberty of filtering out whitespace & other cosmetic changes that were in 20151221.diff. -- nosy: +Alex.Willmer Added file: http://bugs.python.org/file42059/20160301-brokentests.diff ___ Python tracker

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 12:56:03 -0600, Wildman wrote: > On Tue, 01 Mar 2016 19:26:55 +0100, Peter Otten wrote: > >> An exception is raised because you pass the command as a single argument > > > > I did not realize that how the command was passed would > make such a difference. I guess I am

[issue26467] Add async magic method support to unittest.mock.Mock

2016-03-01 Thread Brett Cannon
New submission from Brett Cannon: Mock doesn't support stuff like __aexit__ which means you can't mock out something like an async context manager. -- components: Library (Lib) messages: 261092 nosy: brett.cannon, michael.foord priority: normal severity: normal stage: test needed

[issue26446] Mention in the devguide that core dev stuff falls under the PSF CoC

2016-03-01 Thread Brett Cannon
Brett Cannon added the comment: The discussion seems to have gone in the direction of putting all core-controlled stuff under the CoC. So the devguide will mention this is the policy. -- title: Mention in the devguide that core devs are expected to follow the PSF CoC -> Mention in

Re: Reason for not allowing import twice but allowing reload()

2016-03-01 Thread Ian Kelly
On Tue, Mar 1, 2016 at 3:02 PM, Chris Angelico wrote: > On Wed, Mar 2, 2016 at 8:53 AM, Ian Kelly wrote: >> I have a hard time understanding the appeal of super-long uptimes. I'm not >> even comfortable running a single kernel version that long. What's so

[issue17580] ctypes: ARM hardfloat argument corruption calling functions with many float arguments

2016-03-01 Thread Maciej Fijalkowski
Maciej Fijalkowski added the comment: The easiest way to check is to run the tests attached -- ___ Python tracker ___

[issue17580] ctypes: ARM hardfloat argument corruption calling functions with many float arguments

2016-03-01 Thread Maciej Fijalkowski
Maciej Fijalkowski added the comment: Then maybe it's fixed, I have no idea -- ___ Python tracker ___ ___

[issue17580] ctypes: ARM hardfloat argument corruption calling functions with many float arguments

2016-03-01 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +doko ___ Python tracker ___ ___

[issue17580] ctypes: ARM hardfloat argument corruption calling functions with many float arguments

2016-03-01 Thread STINNER Victor
STINNER Victor added the comment: David Schneider: "A patch for this issue has been accepted into libffi." fijal: "Can you please commit the upstream fix that has been committed 3 years ago (...)" Which patch? Attached tar archive doesn't look like a patch and I see no reference to a fix.

[issue17580] ctypes: ARM hardfloat argument corruption calling functions with many float arguments

2016-03-01 Thread STINNER Victor
STINNER Victor added the comment: To me, it doesn't make sense to maintain a downstream "fork" of libffi. I would prefer to "simply" upgrade to a more recent version of libffi in CPython. But I don't know why we have a downstream version. What was patched? Does anyone know anything about it?

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

2016-03-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I feel odd trying to advocate a POV that I disagree with, so let me just quote MAL: """ In practice you often don't know the resolution of the timing source. Nowadays, the reverse of what you said is usually true: the source resolution is higher than

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

2016-03-01 Thread STINNER Victor
STINNER Victor added the comment: > Personally, I don't rounding is that useful. Nice, it looks like I agree with you on using ROUNDING_FLOOR :-) I don't think that we should be prepared for theorical user requests, but rather focus on the concrete and well defined current existing user

Re: Reason for not allowing import twice but allowing reload()

2016-03-01 Thread Chris Angelico
On Wed, Mar 2, 2016 at 8:53 AM, Ian Kelly wrote: > On Mar 1, 2016 4:41 AM, "Chris Angelico" wrote: >> >> On Tue, Mar 1, 2016 at 10:18 PM, Steven D'Aprano > wrote: >> > I cannot imagine why you would want to reload() in production

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

2016-03-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Personally, I don't rounding is that useful. My working assumption is that users will select say timespec='millisecond' only when they know that their time source produces datetime instances with millisecond precision and they don't want to kill more

Re: Reason for not allowing import twice but allowing reload()

2016-03-01 Thread Ian Kelly
On Mar 1, 2016 4:41 AM, "Chris Angelico" wrote: > > On Tue, Mar 1, 2016 at 10:18 PM, Steven D'Aprano wrote: > > I cannot imagine why you would want to reload() in production code. That > > would imply that your production code is modifying already-imported

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

2016-03-01 Thread STINNER Victor
STINNER Victor added the comment: > Maybe a datetime.round() method along these lines will be a worthwhile > addition? Sorry, what is the use case of this method? -- ___ Python tracker

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

2016-03-01 Thread Guido van Rossum
Guido van Rossum added the comment: IIUC truncation traditionally means "towards zero" -- that's why we have separate "floor" and "ceiling" operations meaning "towards [negative] infinity". Fortunately we shouldn't have to deal with negative values here so floor and truncate mean the same

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

2016-03-01 Thread Guido van Rossum
Guido van Rossum added the comment: Except for the case where you're closer than half a usec from the next value, IMO rounding makes no sense when suppressing digits. I most definitely would never want 9:59:59 to be rounded to 10:00 when suppressing seconds. If you really think there are use

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

2016-03-01 Thread STINNER Victor
STINNER Victor added the comment: > But what should we do in your opinion? Use ROUND_FLOOR rounding method. time.time(), datetime.datetime.now(), etc. round the current time using the ROUND_FLOOR rounding method. Only datetime.datetime.fromtimestamp() uses ROUND_HALF_EVEN, but it's more an

[issue26462] Patch to enhance literal block language declaration

2016-03-01 Thread Zachary Ware
Zachary Ware added the comment: Attaching regenerated patch to coax Rietveld into accepting it for easier review. -- nosy: +zach.ware Added file: http://bugs.python.org/file42058/issue26462_regen.diff ___ Python tracker

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

2016-03-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I hope my prediction "I am afraid that the rounding issues may kill this proposal" (see msg202276) will not come true. I think the correct way to view "timespec" is a way to suppress/enforce printing of trailing digits. Users that choose printing less

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

2016-03-01 Thread Guido van Rossum
Guido van Rossum added the comment: But what should we do in your opinion? -- ___ Python tracker ___ ___

[issue26462] Patch to enhance literal block language declaration

2016-03-01 Thread Julien
Julien added the comment: I revewed all my ".. code-block:: bash" and you're right (I was unaware of the existence of the "console" lexer). I changed them (reviewing them one by one) to ".. code-block:: shell-session", a synonym for ".. code-block:: console"

[issue26271] freeze.py makefile uses the wrong flags variables

2016-03-01 Thread Daniel Shaulov
Daniel Shaulov added the comment: Pinging after a month without review (as the devguide suggests). -- ___ Python tracker ___

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

2016-03-01 Thread STINNER Victor
STINNER Victor added the comment: > Given that we're talking about what to do when we're suppressing the usecs I > don't think roundtripping matters. :-) I changed many times how Python rounds nanoseconds in the private PyTime API, and I got a bug report because of that! => issue #23517. By

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

2016-03-01 Thread Guido van Rossum
Guido van Rossum added the comment: Given that we're talking about what to do when we're suppressing the usecs I don't think roundtripping matters. :-) -- ___ Python tracker

Re: What arguments are passed to the __new__ method ?

2016-03-01 Thread eryk sun
On Tue, Mar 1, 2016 at 2:27 PM, Terry Reedy wrote: > On 3/1/2016 12:24 PM, ast wrote: > >> class Premiere: >> def __init__(self, price): >> pass >> p = Premiere(1000) >> >> which is OK. > > Premiere is callable because it inherits object.__call__. That function, or

[issue26464] str.translate() unexpectedly duplicates characters

2016-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6643c5cc9797 by Victor Stinner in branch '3.5': Issue #26464: Fix unicode_fast_translate() again https://hg.python.org/cpython/rev/6643c5cc9797 -- ___ Python tracker

OpenFilters 1.1

2016-03-01 Thread OpenFilters
Hi All, It is with great pleasure that I announce the release of OpenFilters version 1.1. You can obtain the new version at http://larfis.polymtl.ca/index.php/en/links/openfilters What is OpenFilters? OpenFilters is an open source software written in Python for the

[issue26464] str.translate() unexpectedly duplicates characters

2016-03-01 Thread STINNER Victor
STINNER Victor added the comment: > LGTM. Thanks for the review. I pushed my fix. Sorry for the regression, I hate being responsible of a regression in a core feature :-/ I may even deserve a release, but Python doesn't have the habit of "release often" yet :-( -- nosy: +larry

Re: What arguments are passed to the __new__ method ?

2016-03-01 Thread Terry Reedy
On 3/1/2016 12:24 PM, ast wrote: Hello It's not clear to me what arguments are passed to the __new__ method. The objects passed to any function are the objects that are passed. The type and number of objects that *should be* passed depends on the signature of the function. If class C

[issue26464] str.translate() unexpectedly duplicates characters

2016-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 27ba9ba5deb1 by Victor Stinner in branch '3.5': Fix str.translate() https://hg.python.org/cpython/rev/27ba9ba5deb1 -- nosy: +python-dev ___ Python tracker

[ANN] SciPy 2016: call for papers

2016-03-01 Thread Prabhu Ramachandran
Hello world,* Call for Proposals: Submit Your Tutorial and Talk Ideas by March 25, 2015 athttp://scipy2016.scipy.org . SciPy 2016 , the 15th annual Scientific Computing with Python conference, will be held July 11-17, 2016 in

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 20:30:59 +0100, Christian Gollwitzer wrote: > Am 29.02.16 um 22:51 schrieb Wildman: >> I want to take an image file, convert it to XBM format and >> display it. Thanks to Mr. Otten I can open and display the >> XBM image without any problems. The script first calls an >>

[issue26464] str.translate() unexpectedly duplicates characters

2016-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: serhiy.storchaka -> haypo stage: needs patch -> commit review ___ Python tracker ___

[issue17580] ctypes: ARM hardfloat argument corruption calling functions with many float arguments

2016-03-01 Thread Maciej Fijalkowski
Maciej Fijalkowski added the comment: Apparently you can't have an opinion from ctypes experts. Can you please commit the upstream fix that has been committed 3 years ago or just stop vendoring random, old, broken version of ctypes if you can't maintain it enough to pull fixes from upstream?

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

2016-03-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Another argument for truncation is that this is what GNU date does: $ date --iso-8601=seconds --date="2016-03-01 15:00:00.999" 2016-03-01T15:00:00-0500 -- ___ Python tracker

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

2016-03-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Guido, Did you consider MAL's msg202274? I am still in favor of truncation, but would like to make sure we are not missing something that MAL knows from experience. -- ___ Python tracker

Re: What arguments are passed to the __new__ method ?

2016-03-01 Thread eryk sun
On Tue, Mar 1, 2016 at 11:24 AM, ast wrote: > > class Premiere: > >def __new__(cls, price): >return object.__new__(cls, price) > >def __init__(self, price): >pass > > p = Premiere(1000) > > it fails. It is strange because according to me it is

[issue26464] str.translate() unexpectedly duplicates characters

2016-03-01 Thread STINNER Victor
STINNER Victor added the comment: > See change cca6b056236a of issue #21118. The bug was introduced in Python v3.5.0a1. -- ___ Python tracker ___

[issue26464] str.translate() unexpectedly duplicates characters

2016-03-01 Thread STINNER Victor
STINNER Victor added the comment: Oh... I see. It's a bug introduced by the optimization for ASCII replacing one character with another ASCII character or deleting a character: unicode_fast_translate(). See change cca6b056236a of issue #21118. There is a confusion in the code between input

[issue26452] Wrong line number attributed to comprehension expressions

2016-03-01 Thread SilentGhost
Changes by SilentGhost : -- nosy: +haypo, serhiy.storchaka versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

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

2016-03-01 Thread Moritz Sichert
Moritz Sichert added the comment: This is still an issue in Python 2.7.11. -- ___ Python tracker ___ ___

Re: Request More Help With XBM Image

2016-03-01 Thread Christian Gollwitzer
Am 29.02.16 um 22:51 schrieb Wildman: I want to take an image file, convert it to XBM format and display it. Thanks to Mr. Otten I can open and display the XBM image without any problems. The script first calls an external program for the image conversion then I can open and display it. Of

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

2016-03-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: needs patch -> patch review ___ Python tracker ___

[issue26466] cannot build python 2.7.11 on AIX

2016-03-01 Thread David Edelsohn
David Edelsohn added the comment: It's not symbol with value 0, it's symbol number 0. You can list the symbols with the AIX "dump -t" command. -- ___ Python tracker

[issue26466] cannot build python 2.7.11 on AIX

2016-03-01 Thread Michael Felt
Michael Felt added the comment: the basic process I have used repeatedly (for calling ./configure) to package python, and many other things has not changed. Today, I repackaged version 2.7.10 (the file listed in 2.7.10.0) just to test the process I was using with 2.7.11 I learned that 2.7.10

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 19:26:55 +0100, Peter Otten wrote: > An exception is raised because you pass the command as a single argument I did not realize that how the command was passed would make such a difference. I guess I am stuck in my old VB habits for creating variables. You don't have to

Re: The debug process never connected back to Wing IDE

2016-03-01 Thread Terry Reedy
On 2/29/2016 6:42 PM, quoc tuong via Python-list wrote: Hi python stopped working on this error: The debug process never connected back to Wing IDE: Aborting debug session. See Trouble-shooting Failure to Debug in the product manual. Dit you do that -- check the manual? If the 'product

Re: Request More Help With XBM Image

2016-03-01 Thread Peter Otten
Wildman via Python-list wrote: > On Tue, 01 Mar 2016 09:56:56 +0100, Peter Otten wrote: >> Wildman via Python-list wrote: >>> convert = "convert " + fileName + " -resize 48x48! -threshold 55% xbm:-" >>> p = subprocess.Popen([convert], stdout=subprocess.PIPE, shell=True) >>> xbmFile, err =

Re:

2016-03-01 Thread Chris Angelico
On Wed, Mar 2, 2016 at 2:53 AM, Dan Strohl wrote: > If you are trying to start an argument, or trolling, I suggest trying > something more controversial... "Python is the worst language in the world > because you have to indent everything exactly, that is a really stupid >

Re: Everything good about Python except GUI IDE?

2016-03-01 Thread Marko Rauhamaa
Steven D'Aprano : > On Sun, 28 Feb 2016 11:38 pm, BartC wrote: >> It's the GUI users who are the Neanderthals, having to effectively >> point at things with sticks. Or have to physically move that rock >> themselves (ie. drag a file to a wastebasket). > > I haven't physically

Re: Everything good about Python except GUI IDE?

2016-03-01 Thread Chris Angelico
On Wed, Mar 2, 2016 at 3:44 AM, Steven D'Aprano wrote: > On Mon, 29 Feb 2016 07:33 pm, Chris Angelico wrote: > >> On Mon, Feb 29, 2016 at 7:25 PM, Marko Rauhamaa wrote: >>> As for why you should avoid JS/CSS, Web pages open very slowly, jump >>> around

Re: Reason for not allowing import twice but allowing reload()

2016-03-01 Thread Chris Angelico
On Wed, Mar 2, 2016 at 4:11 AM, Steven D'Aprano wrote: > On Tue, 1 Mar 2016 10:39 pm, Chris Angelico wrote: > >> On Tue, Mar 1, 2016 at 10:18 PM, Steven D'Aprano >> wrote: >>> I cannot imagine why you would want to reload() in production code. That >>>

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 09:56:56 +0100, Peter Otten wrote: > Wildman via Python-list wrote: > >> I want to take an image file, convert it to XBM format and >> display it. Thanks to Mr. Otten I can open and display the >> XBM image without any problems. The script first calls an >> external program

Re:

2016-03-01 Thread Bob Gailer
On Mar 1, 2016 9:11 AM, "Shamanov" wrote: > > I can't work with Python I'm sorry to hear that. If you want some help you will have to give us more information. -- https://mail.python.org/mailman/listinfo/python-list

What arguments are passed to the __new__ method ?

2016-03-01 Thread ast
Hello It's not clear to me what arguments are passed to the __new__ method. Here is a piece of code: class Premiere: def __new__(cls, price): return object.__new__(cls) def __init__(self, price): pass p = Premiere(1000) No errors, so it seems that 2 arguments are

[issue26465] Upgrade OpenSSL shipped with python installers

2016-03-01 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list

Re: Reason for not allowing import twice but allowing reload()

2016-03-01 Thread Steven D'Aprano
On Tue, 1 Mar 2016 10:39 pm, Chris Angelico wrote: > On Tue, Mar 1, 2016 at 10:18 PM, Steven D'Aprano > wrote: >> I cannot imagine why you would want to reload() in production code. That >> would imply that your production code is modifying already-imported >> modules, then

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-03-01 Thread Steven D'Aprano
On Tue, 1 Mar 2016 04:08 am, Rustom Mody wrote: > And who is the last arbiter on that 'reality'? I'll give you the benefit of the doubt that this is a genuine question, and not just an attempt to ask a rhetorical question to demonstrate your profundity. You should not assume that there is any

Re: Reason for not allowing import twice but allowing reload()

2016-03-01 Thread Steven D'Aprano
On Tue, 1 Mar 2016 12:25 am, alien2u...@gmail.com wrote: >> As for need of import in Idle session, I use it to >> - import sys >> - sys.append.path('D:\\Where\\Ever\\My\\Modules\\Lie') > > Kindly read above as > sys.path.append() > >> - import mymodule There are better ways to manage your

Re: usage of try except for review.

2016-03-01 Thread Steven D'Aprano
On Mon, 29 Feb 2016 07:13 pm, Ganesh Pal wrote: > def run_cmd_and_verify(cmd, timeout=1000): > try: > out, err, ret = run(cmd, timeout=timeout) > assert ret ==0,"ERROR (ret %d): " \ > " \nout: %s\nerr: %s\n" % (ret, out, err) Do not use assert for error

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-03-01 Thread Sven R. Kunze
On 01.03.2016 13:13, Steven D'Aprano wrote: On Tue, 1 Mar 2016 09:38 am, Larry Martell wrote: But what is reality? Reality is that which, when you stop believing in it, doesn't go away. Just like that. -- https://mail.python.org/mailman/listinfo/python-list

Re: Everything good about Python except GUI IDE?

2016-03-01 Thread Steven D'Aprano
On Mon, 29 Feb 2016 07:33 pm, Chris Angelico wrote: > On Mon, Feb 29, 2016 at 7:25 PM, Marko Rauhamaa wrote: >> As for why you should avoid JS/CSS, Web pages open very slowly, jump >> around wildly during rendering and have unexpected artifacts (not to >> mention the numerous

Re: convert Dbase (.dbf) files to SQLite databases

2016-03-01 Thread Ethan Furman
Il giorno mercoledì 15 luglio 2009 18:30:29 UTC+2, John Machin ha scritto: Hmm, looks like that email was sent back in 2009. Sorry for the noise. I'm still not able to find a dbf module from John, though. -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list

Re: Everything good about Python except GUI IDE?

2016-03-01 Thread Steven D'Aprano
On Sun, 28 Feb 2016 11:38 pm, BartC wrote: > On 28/02/2016 06:34, Steven D'Aprano wrote: > >> GUI elements are by definition graphical in nature, and like other >> graphical elements, manipulation by hand is superior to command-based >> manipulation. Graphical interfaces for manipulating

Re: convert Dbase (.dbf) files to SQLite databases

2016-03-01 Thread Ethan Furman
Il giorno mercoledì 15 luglio 2009 18:30:29 UTC+2, John Machin ha scritto: If dbfpy can't handle any new-fangled stuff you may have in your files, drop me a line ... I have a soon-to-be released DBF module that should be able to read the "new" stuff up to dBase7 and VFP9, including memo files,

[issue26464] str.translate() unexpectedly duplicates characters

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

[issue26464] str.translate() unexpectedly duplicates characters

2016-03-01 Thread Eryk Sun
Eryk Sun added the comment: It duplicates translated characters as well. For example: >>> table = str.maketrans('mnopqrb', 'rqponm\u0100', 'a') >>> 'aamnopqrb'.translate(table) 'rqponmrqponmĀ' 3.4 returns the correct result: >>> table = str.maketrans('mnopqrb',

[issue26464] str.translate() unexpectedly duplicates characters

2016-03-01 Thread Eryk Sun
Changes by Eryk Sun : -- versions: +Python 3.6 ___ Python tracker ___ ___

[issue18987] distutils.utils.get_platform() for 32-bit Python on a 64-bit machine

2016-03-01 Thread Michael Felt
Michael Felt added the comment: If you need assistance (re: AIX), just ask. However, I am guessing you have enough to move forward. -- ___ Python tracker

[issue26464] str.translate() unexpectedly duplicates untranslated characters

2016-03-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka components: +Interpreter Core nosy: +serhiy.storchaka priority: normal -> high stage: -> needs patch ___ Python tracker

[issue26466] cannot build python 2.7.11 on AIX

2016-03-01 Thread David Edelsohn
David Edelsohn added the comment: Something is building libpython2.7.a incorrectly or the python.exp script is not functioning correctly. ld: 0711-596 SEVERE ERROR: Object libpython2.7.a[ceval.o] An RLD for section 2 (.data) refers to symbol 0, but the storage class of the

[issue26466] cannot build python 2.7.11 on AIX

2016-03-01 Thread Michael Felt
Michael Felt added the comment: It worked fine using xlc with 2.7.10 (verified again today). The delta between ceval.c in 2.7.10 and 2.7.11 is large. make.out (excerpt) 2.7.10: rm -f libpython2.7.a ar rc libpython2.7.a Modules/getbuildinfo.o ar rc libpython2.7.a

  1   2   >