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

[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

[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 ___

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 >>

[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 ___

[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

[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 ___ ___

[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?

[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 ___

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: 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

[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 ___

[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

[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

[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

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

[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

[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

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

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

[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

[issue22699] cross-compilation of Python3.4

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 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
Changes by Alex Willmer : -- nosy: +Alex.Willmer ___ Python tracker ___ ___

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

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

[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 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

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

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

[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

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

[issue22654] issue with PYTHON_FOR_BUILD

2016-03-01 Thread Alex Willmer
Changes by Alex Willmer : -- nosy: +Alex.Willmer ___ 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

[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
Alex Willmer added the comment: This looks like a duplicate of #20211, and IMO the patch there is more correct. -- ___ Python tracker ___

[issue26463] asyncio-related (?) segmentation fault

2016-03-01 Thread STINNER Victor
STINNER Victor added the comment: Please try to get the Python stacktrace on the segfault using the faulthandler module: add faulthandler.enable() call at the beginning of your application. https://docs.python.org/dev/library/faulthandler.html I suspect a bug in your C code, not in asyncio.

[issue26167] Improve copy.copy speed for built-in types (list/set/dict)

2016-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there are no other comments, I'm going to commit the patch in short time. -- ___ Python tracker ___

[issue23921] Standardize documentation whitespace, formatting

2016-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: James, could you please update your patch to address Martin's comments? In general the patch LGTM and I hope to commit it in short time. -- nosy: +georg.brandl versions: +Python 3.6 -Python 3.4 ___ Python tracker

Re: Condition fullfilled to early but only "sometimes"

2016-03-01 Thread jonas . thornvall
Den tisdag 1 mars 2016 kl. 08:49:57 UTC+1 skrev Ian: > It's not at all clear what the problem is from your description. What > is it that you expect the code to do? What is it doing instead that > violates your expectation? Why are you asking for Javascript help on a > Python mailing list? > > On

[issue26436] Add the regex-dna benchmark

2016-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I used the code from fasta and regex-dna tests almost without changes. I.e. one part create the data in standard FASTA format (with 60-character lines and headers), and other part parses this format. The code can be simple if generate and consume raw data.

Re: Sending an email with a binary attachment

2016-03-01 Thread Chris Angelico
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, Mar 1, 2016 at 4:08 AM, Peter Pearson >> wrote: >>> try:

[issue26457] Error in ipaddress.address_exclude function

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

[issue26457] Error in ipaddress.address_exclude function

2016-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d6c0a7b71f5 by Serhiy Storchaka in branch '3.5': Issue #26457: Fixed the subnets() methods in IP network classes for the case https://hg.python.org/cpython/rev/6d6c0a7b71f5 New changeset c092148a1b55 by Serhiy Storchaka in branch 'default': Issue

[issue26457] Error in ipaddress.address_exclude function

2016-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. I have wrote similar patch but with different tests. -- assignee: -> serhiy.storchaka stage: needs patch -> commit review versions: +Python 3.6 ___ Python tracker

Re: Request More Help With XBM Image

2016-03-01 Thread Peter Otten
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 for the image conversion then I can open > and display it. Of

Re: Condition fullfilled to early but only "sometimes"

2016-03-01 Thread jonas . thornvall
Den tisdag 1 mars 2016 kl. 08:49:57 UTC+1 skrev Ian: > It's not at all clear what the problem is from your description. What > is it that you expect the code to do? What is it doing instead that > violates your expectation? Why are you asking for Javascript help on a > Python mailing list? > > On

Re: Condition fullfilled to early but only "sometimes"

2016-03-01 Thread jonas . thornvall
Den tisdag 1 mars 2016 kl. 08:49:57 UTC+1 skrev Ian: > It's not at all clear what the problem is from your description. What > is it that you expect the code to do? What is it doing instead that > violates your expectation? Why are you asking for Javascript help on a > Python mailing list? > > On

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 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

[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 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 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

[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 ___ ___

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

[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

[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.

[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

[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 Guido van Rossum
Guido van Rossum added the comment: But what should we do in your opinion? -- ___ 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: 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?

[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

[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

[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

[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

[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

[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"

[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

[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 Maciej Fijalkowski
Maciej Fijalkowski added the comment: The easiest way to check is to run the tests attached -- ___ Python tracker ___

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: 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. > >

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

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: 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:

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 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

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!

[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 ___

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 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: 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

[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: Reason for not allowing import twice but allowing reload()

2016-03-01 Thread Steven D'Aprano
On Mon, 29 Feb 2016 06:01 pm, Chris Angelico wrote: > I've never used reload() in any production code, ever. Ever. reload() isn't intended for production code. It is a convenience for interactive use. I cannot imagine why you would want to reload() in production code. That would imply that

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

2016-03-01 Thread Chris Angelico
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 wanting to import them again. Why would anyone in their

Re: usage of try except for review.

2016-03-01 Thread Steven D'Aprano
On Tue, 1 Mar 2016 04:38 am, Chris Angelico wrote: > On Tue, Mar 1, 2016 at 4:34 AM, Ganesh Pal wrote: >> On Mon, Feb 29, 2016 at 10:10 PM, Dennis Lee Bieber >> wrote: >> >>> Ask yourself: Will my program still work if I remove all the >>>

Re: General computer language, syntax question.

2016-03-01 Thread Steven D'Aprano
On Tue, 1 Mar 2016 12:56 am, jonas.thornv...@gmail.com wrote: > I mean for for example Javascript Jonas, this is a Python forum. If we thought Javascript was a beautiful and well-designed language, we're be on a Javascript forum, complaining about Python. > if (typeof array[index] !==

Re: common mistakes in this simple program

2016-03-01 Thread Steven D'Aprano
On Tue, 1 Mar 2016 03:29 am, Ian Kelly wrote: > On Mon, Feb 29, 2016 at 8:18 AM, Ganesh Pal wrote: >> Iam on python 2.6 > > Python 2.6 has been unsupported since October 2013. Among other > things, that means it is no longer receiving security updates like > more recent

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

2016-03-01 Thread Steven D'Aprano
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. -- Steven -- https://mail.python.org/mailman/listinfo/python-list

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,

[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: 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: 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: 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: 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:

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 >

[issue26466] cannot build python 2.7.11 on AIX

2016-03-01 Thread David Edelsohn
David Edelsohn added the comment: Don't use XLC. It may relate to using -Wl option, which is a GCC option. -- ___ Python tracker ___

  1   2   >