Re: Python Array

2016-03-30 Thread Stephen Hansen
On Wed, Mar 30, 2016, at 10:34 PM, tdspe...@gmail.com wrote: > as you can see the option element was added third but is the first one > displayed. > > Is this just standard - I am using Python 3.5 The order of items in dictionaries is based on the hash value -- which while stable, should be

Re: Python Array

2016-03-30 Thread Chris Angelico
On Thu, Mar 31, 2016 at 4:34 PM, wrote: > as you can see the option element was added third but is the first one > displayed. > Dictionaries don't have any order to them, so yes, this is something you'll have to accept. ChrisA --

Python Array

2016-03-30 Thread tdsperth
I am creating the following aData = [] # get my data from database for row in rows: aData.append({row["tierid"]:"name":row["tiername"],"description":row["tierdesc"],"option":row["tieroption"],"price":str(row["tierprice"])}}) when I display the output the order the data was entered is not

[issue2943] Distutils should generate a better error message when the SDK is not installed

2016-03-30 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

Re: Threading is foobared?

2016-03-30 Thread Random832
On Thu, Mar 31, 2016, at 01:25, Random832 wrote: > Actually, merely prepending the original Message-ID itself append, not prepend... I'd misremembered the order that References go in. -- https://mail.python.org/mailman/listinfo/python-list

Re: Threading is foobared?

2016-03-30 Thread Random832
On Thu, Mar 31, 2016, at 01:25, Random832 wrote: > > if a message is cross-posted to two lists which both gateway to Usenet, > > and Mailman didn't make the Message-IDs unique, the news server would > > discard one of the two posts as a duplicate and the post would be > > missing from one of the

Re: Threading is foobared?

2016-03-30 Thread Random832
On Thu, Mar 31, 2016, at 00:50, Mark Sapiro wrote: > What Mailman does do as noted by Random832 is replace the Message-ID: > header value in posts gated to Usenet with a list specific, Mailman > generated unique value. There is a reason for this, and that reason is > if a message is cross-posted

[issue26673] Tkinter error when opening IDLE configuration menu

2016-03-30 Thread SilentGhost
Changes by SilentGhost : -- components: +Tkinter nosy: +gpolo, kbk, roger.serwy, serhiy.storchaka, terry.reedy ___ Python tracker

Re: Threading is foobared?

2016-03-30 Thread Mark Sapiro
Hi all, I'm jumping in on this thread because Tim asked. I'm here because I'm a Mailman developer and the primary maintainer of Mailman for the @python.org lists. Regarding the initial post in this thread from Steven D'Aprano suggesting that broken threading is more common recently and quoting

Re: sympy

2016-03-30 Thread Gregory Ewing
Steven D'Aprano wrote: On Thu, 31 Mar 2016 02:23 am, Poul Riis wrote: What I intend to do is to let sympy find the derivative of some welldefined function and next define the foundation derivative as a normal function py> ftext.evalf(subs={x:3}) -0.0600 Given all that, it looks

[issue26488] hashlib command line interface

2016-03-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur. The blocksize should be fixed and large (perhaps 256kB). -- ___ Python tracker ___

[issue26653] bisect raises a TypeError when hi is None

2016-03-30 Thread Mike Lenzen
Mike Lenzen added the comment: Sounds good, but then I think the docs could be clearer about this. I scratched my head at the function signature bisect.bisect_left(a, x, lo=0, hi=len(a)) because it isn't valid (in Python, maybe in C?), so I checked the source and saw hi=None. I'm not sure how

[issue26675] Appending to a large list flushes old entries

2016-03-30 Thread Swaprava Nath
Swaprava Nath added the comment: I realised that this is a normal behavior, I just had two for loops, nested, and every time the inner for loop runs, the list flushes. No worries, sorry! -- resolution: -> not a bug ___ Python tracker

[issue26675] Appending to a large list flushes old entries

2016-03-30 Thread Swaprava Nath
Changes by Swaprava Nath : -- status: open -> closed ___ Python tracker ___ ___

[issue26675] Appending to a large list flushes old entries

2016-03-30 Thread Swaprava Nath
Changes by Swaprava Nath : Removed file: http://bugs.python.org/file42330/knapsack.py ___ Python tracker ___

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-03-30 Thread Demur Rumed
Demur Rumed added the comment: Added back HAVE_ARGUMENT & HAS_ARG. As a result printing has removed arguments Removed some code which was labelled unrelated This does _not_ include having f_lasti be -1 instead of -2 -- Added file: http://bugs.python.org/file42331/wpy2.patch

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Paul Rubin
Steven D'Aprano writes: > I want to see an actual application where adding a new key to a > mapping is expected to change the other keys. directory["mary.roommate"] = "bob" directory["mary.address"] = None # unknown address ... directory["bob.address"] = "132 Elm Street"

[issue26675] Appending to a large list flushes old entries

2016-03-30 Thread Swaprava Nath
New submission from Swaprava Nath: I'm storing several variables in a list after a computation in a for loop. I'm bundling the variables in a tuple and appending this tuple to a list. So, the structure should be: iter 1: list = [tuple1] iter 2: list = [tuple1, tuple2] iter 3: list = [tuple1,

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Steven D'Aprano
On Thu, 31 Mar 2016 03:52 am, Random832 wrote: > Like, these are common patterns: > > for i, x in enumerate(l): ># do some stuff, sometimes assign l[i] > > for k, v in d.items(): ># do some stuff, sometimes assign d[k] for a, b in zip(spam, eggs): # do some stuff, sometimes assign

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Steven D'Aprano
On Thu, 31 Mar 2016 06:07 am, Antoon Pardon wrote: >> Because fundamentally, it doesn't matter whether dicts are surjections or >> not. They're still many-to-one mappings, and those mappings between keys >> and values should not change due to the insertion or deletion of >> unrelated keys. > >

Re: ANN: Python 201 - Intermediate Python book

2016-03-30 Thread Chris Angelico
On Thu, Mar 31, 2016 at 6:21 AM, Ethan Furman wrote: > Note: I'm not affiliated with the book, probably won't pledge (only a > couple topics apply to me), but I am a KickStarter fan (having purchased > more games than was probably wise ;) . Heh, me too - though more other

Re: Statements as expressions [was Re: Undefined behaviour in C]

2016-03-30 Thread Random832
On Wed, Mar 30, 2016, at 19:01, Dennis Lee Bieber wrote: > Though I'm surprised GoogleGroups would expire that fast. > > Google is the reason I inserted that header -- I started back in the > days when news-servers routinely expired stuff (text groups about monthly > lifespan, the

[issue26674] 【typo】 Japanese Documentation

2016-03-30 Thread Ezio Melotti
Ezio Melotti added the comment: The Japanese translation is not officially maintained by us -- you should report this to the translators. They should also update the page at http://docs.python.jp/3/bugs.html since it points to this bug tracker (I assume this is how you got here). Thanks

[issue26674] 【typo】 Japanese Documentation

2016-03-30 Thread Eitaro Kuwabara
New submission from Eitaro Kuwabara: I found a tiny typo in Japanese Documentation(Python3.5.1) http://docs.python.jp/3/library/pathlib.html#general-properties あなたが今までこのモジュールを使用したことがないか、あなたの作業にどのクラスを使うのが正しいのか自身がないのであれば、Path はもっともあなたに必要なものです。Path はコードが実行されているプラットフォーム用の 具象パス のインスタンスを作成します。

Re: Adding borders to ttk radiobuttons

2016-03-30 Thread Mark Lawrence via Python-list
On 30/03/2016 17:35, Terry Reedy wrote: .theme_names() only displays the themes for the OS. I believe that there is a way to access themes for other OSes (unix, mac) but don't remember. Possibly http://bugs.python.org/issue17397 which refers to

[issue26658] test_os fails when run on Windows ramdisk

2016-03-30 Thread Jeremy Kloth
Jeremy Kloth added the comment: I'm fine with the tests for CreateFunction failing for an ImDisk virtual drive, however something needs to be changed with the test to not remove the test directory on tearDown(). Changing it to use a temporary directory to link against is a workaround, but

[issue2943] Distutils should generate a better error message when the SDK is not installed

2016-03-30 Thread Karl Stahl
Changes by Karl Stahl : -- nosy: +Karl Stahl ___ Python tracker ___ ___ Python-bugs-list

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-03-30 Thread wim glenn
Changes by wim glenn : -- nosy: +wim.glenn ___ Python tracker ___ ___ Python-bugs-list

Re: pygtk button right/middle click

2016-03-30 Thread Wildman via Python-list
On Wed, 30 Mar 2016 19:23:35 +, Grant Edwards wrote: > On 2016-03-30, Grant Edwards wrote: >> On 2016-03-30, Wildman wrote: >> Is the gtk button widget really incapable of handling left or middle mouse buttons or shift/ctrl/alt

Re: Learning Python (or Haskell) makes you a worse programmer

2016-03-30 Thread Gregory Ewing
Tim Golden wrote: (I don't know how other English-speaking groups say the word, but in England the first syllable is stressed and the second is the conventional short "uh" sound). I can attest that New Zealand follows the UK on this. I was surprised when I first heard an American pronounce it

Re: ANN: Python 201 - Intermediate Python book

2016-03-30 Thread Mike Driscoll
On Wednesday, March 30, 2016 at 2:21:08 PM UTC-5, Ethan Furman wrote: > On 03/30/2016 11:41 AM, justin walters wrote: > > > That absolutely answers my questions. I'll keep an eye out for your book > > when it is realeased. It seems like it will cover some topics that could be > > useful in

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Mark Lawrence via Python-list
On 30/03/2016 21:00, Marco Sulla via Python-list wrote: Let me also add that even if it seems that my idea will not break any official contracts, I can create a new ABC class and let maps and sequence types inherit from it. IMHO it's absolutely not needed, but at least the discussion will be no

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Mark Lawrence via Python-list
On 30/03/2016 20:35, Marco Sulla via Python-list wrote: On 30 March 2016 at 02:55, Terry Reedy wrote: To me [seq.items() and seq.keys()] are useless and confusing duplications since enumerate()(seq) and range(len(seq)) are quite different from dict.items and dict.keys.

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Marco Sulla via Python-list
Let me also add that even if it seems that my idea will not break any official contracts, I can create a new ABC class and let maps and sequence types inherit from it. IMHO it's absolutely not needed, but at least the discussion will be no more distracted my secondary considerations, since the

[issue26623] JSON encode: more informative error

2016-03-30 Thread Mahmoud Lababidi
Mahmoud Lababidi added the comment: Is there a use case where the representation is too long? I think it may be useful to see the representation, but perhaps you are correct. -- ___ Python tracker

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Marco Sulla via Python-list
On 30 March 2016 at 02:55, Terry Reedy wrote: > To me [seq.items() and seq.keys()] are useless and confusing duplications > since enumerate()(seq) > and range(len(seq)) are quite different from dict.items and dict.keys. It's true. Indeed IMHO it's enumerate() that will be a

Re: pygtk button right/middle click

2016-03-30 Thread Grant Edwards
On 2016-03-30, Grant Edwards wrote: > On 2016-03-30, Wildman wrote: > >>> Is the gtk button widget really incapable of handling left or middle >>> mouse buttons or shift/ctrl/alt modifiers? >> >> This might help... >> >>

Re: pygtk button right/middle click

2016-03-30 Thread Grant Edwards
On 2016-03-30, Wildman wrote: >> Is the gtk button widget really incapable of handling left or middle >> mouse buttons or shift/ctrl/alt modifiers? > > This might help... > > http://faq.pygtk.org/index.py?req=show=faq05.004.htp Yep, I found that. I'm just missing the clues

Re: pygtk button right/middle click

2016-03-30 Thread Wildman via Python-list
On Wed, 30 Mar 2016 15:36:12 +, Grant Edwards wrote: > I'm trying to figure out how to get a pygtk button respond to > somehting other than just a simple "left click". With a standard > 3-button mouse, X11 provides at least 9 different "click" types, but > the pygtk button only seems to

Re: ANN: Python 201 - Intermediate Python book

2016-03-30 Thread Ethan Furman
On 03/30/2016 11:41 AM, justin walters wrote: That absolutely answers my questions. I'll keep an eye out for your book when it is realeased. It seems like it will cover some topics that could be useful in continuing my learning. KickStarter plug: If you want to pledge to buying the book now

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Antoon Pardon
Op 30-03-16 om 17:56 schreef Steven D'Aprano: > On Thu, 31 Mar 2016 12:12 am, Antoon Pardon wrote: > >> Op 30-03-16 om 14:22 schreef Steven D'Aprano: > > [...] >>> Why is a mapping (such as a dict) best described as a surjection? >>> Consider: >>> >>> d = {1: None, 2: 'a', 3: 'b', 4: None} >>>

[issue18844] allow weights in random.choice

2016-03-30 Thread Steven Basart
Steven Basart added the comment: Hey serhiy.storchaka I can edit the code to output just one value if called with simply a list and then return a list of values if called with the optional amount parameter. My code also needs to check that amount >= 1. My code was mostly just to restart

Re: ANN: Python 201 - Intermediate Python book

2016-03-30 Thread justin walters
On Mar 30, 2016 11:21 AM, "Mike Driscoll" wrote: > > Hi Justin, > > > > https://mail.python.org/mailman/listinfo/python-list > > > > Can you go over a couple of the topics you are going to cover? > > > > Are you going to cover any of the most popular packages such as Django

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-03-30 Thread Brett Cannon
Brett Cannon added the comment: Thanks to Demur and Raymond for running the benchmarks. All of these numbers look good and with Raymond saying the code looks cleaner and everyone so far -- including me -- liking the overall idea this definitely seems worth continuing to work on. Thanks for

Re: ANN: Python 201 - Intermediate Python book

2016-03-30 Thread Mike Driscoll
Hi Justin, > > https://mail.python.org/mailman/listinfo/python-list > > Can you go over a couple of the topics you are going to cover? > > Are you going to cover any of the most popular packages such as Django and > scrapy? Sure! I'm planning on covering several of the more popular

Re: ANN: Python 201 - Intermediate Python book

2016-03-30 Thread justin walters
On Mar 30, 2016 8:41 AM, "Mike Driscoll" wrote: > > Hi, > > I just wanted to let you know that I am hard at work on my second book, which is entitled Python 201 which will come out this Fall 2016. I currently have a Kickstarter going where you can pre-order the book:

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-03-30 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___

Re: pygtk button right/middle click

2016-03-30 Thread Grant Edwards
On 2016-03-30, Chris Angelico wrote: > On Thu, Mar 31, 2016 at 2:36 AM, Grant Edwards > wrote: >> I'm trying to figure out how to get a pygtk button respond to >> somehting other than just a simple "left click". With a standard >> 3-button mouse, X11

[issue26494] Double deallocation on iterator exhausting

2016-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 905b5944119c by Serhiy Storchaka in branch '3.5': Issue #26494: Fixed crash on iterating exhausting iterators. https://hg.python.org/cpython/rev/905b5944119c New changeset 73ce47d4a7b2 by Serhiy Storchaka in branch 'default': Issue #26494: Fixed

ArtWork in PyPyBox - Pure Python

2016-03-30 Thread Salvatore DI DIO
In pure Python, here is a nice image (for me at least) http://salvatore.diodev.fr/pypybox/ Regards -- https://mail.python.org/mailman/listinfo/python-list

Re: Statements as expressions [was Re: Undefined behaviour in C]

2016-03-30 Thread Rustom Mody
On Wednesday, March 30, 2016 at 10:37:58 PM UTC+5:30, Random832 wrote: > On Wed, Mar 30, 2016, at 12:59, Rustom Mody wrote: > > On Wednesday, March 30, 2016 at 7:56:50 PM UTC+5:30, Ben Bacarisse wrote: > > > Dennis Lee Bieber writes: > > > > Sorry Dennis > > Dont see you at all > > Neither on

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-30 Thread Steve Dower
Steve Dower added the comment: Ergh... that's awkward (but it explains why some of my own machines are missing bits). Victor, I'll get back to you about the watchdog once I'm at an actual PC. This week I'm at a conference. -- ___ Python tracker

Re: Statements as expressions [was Re: Undefined behaviour in C]

2016-03-30 Thread Random832
On Wed, Mar 30, 2016, at 12:59, Rustom Mody wrote: > On Wednesday, March 30, 2016 at 7:56:50 PM UTC+5:30, Ben Bacarisse wrote: > > Dennis Lee Bieber writes: > > Sorry Dennis > Dont see you at all > Neither on googlegroups -- which of course everyone loves to hate > Nor the archive: >

[issue26658] test_os fails when run on Windows ramdisk

2016-03-30 Thread Eryk Sun
Eryk Sun added the comment: I see now. It's not a problem with the junction. In the stat implementation, after verifying that the directory or file is a reparse point, it opens it again without FILE_FLAG_OPEN_REPARSE_POINT, in order to open the target instead of the link. I don't understand

Re: Statements as expressions [was Re: Undefined behaviour in C]

2016-03-30 Thread Rustom Mody
On Wednesday, March 30, 2016 at 7:56:50 PM UTC+5:30, Ben Bacarisse wrote: > Dennis Lee Bieber writes: Sorry Dennis Dont see you at all Neither on googlegroups -- which of course everyone loves to hate Nor the archive: https://mail.python.org/pipermail/python-list/2016-March/date.html Only see

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Random832
This discussion is getting a bit distracted from the original request. Let's look at it from a higher level. What is being requested, regardless of if you call it a "map interface" or whatever, is a single way, for sequences and maps... broadly, anything with a __getitem__, to iterate over all

Re: Adding borders to ttk radiobuttons

2016-03-30 Thread Terry Reedy
On 3/30/2016 11:14 AM, Mark Lawrence via Python-list wrote: On 30/03/2016 15:55, ast wrote: "ast" a écrit dans le message de news:56fbe699$0$4548$426a7...@news.free.fr... "Mark Lawrence" a écrit dans le message de

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-30 Thread Jeremy Kloth
Jeremy Kloth added the comment: After attempting to find the installer for ucrtbased.dll on my dev machine and reading various blog posts on the Visual C++ Team Blog and hunting through several KB articles, I've come across what I think is needed for an up-to-date Universal CRT. When

Re: Help me

2016-03-30 Thread Ethan Furman
On 03/30/2016 06:10 AM, srinivas devaki wrote: ahh, this is the beginning of a conspiracy to waste my time. PS: just for laughs. not to offend any one. It's fair: you waste ours, we waste yours. :) A fair, if not good, trade. -- ~Ethan~ --

Re: Adding borders to ttk radiobuttons

2016-03-30 Thread Terry Reedy
On 3/30/2016 11:01 AM, Mark Lawrence via Python-list wrote: On 30/03/2016 15:45, ast wrote: "Mark Lawrence" a écrit dans le message de news:mailman.204.1459343690.28225.python-l...@python.org... I believe something like this should suffice to display borders around

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Steven D'Aprano
On Wed, 30 Mar 2016 11:50 pm, Random832 wrote: > Absolutely nothing is stable under a *completely unrestricted* set of > operations. Yes, you're absolutely correct. If I create a Python dict, {1: 'a'}, and then smash the computer to smithereens with a 50lb sledge hammer, neither the key nor the

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Steven D'Aprano
On Thu, 31 Mar 2016 12:12 am, Antoon Pardon wrote: > Op 30-03-16 om 14:22 schreef Steven D'Aprano: [...] >> Why is a mapping (such as a dict) best described as a surjection? >> Consider: >> >> d = {1: None, 2: 'a', 3: 'b', 4: None} >> >> >> Every key has exactly one value. There are no values

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-03-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Report on Darwin Raymonds-2013-MacBook-Pro.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64 i386 Total CPU cores: 8 ### 2to3 ### Min: 4.680941 -> 4.437426: 1.05x faster Avg: 4.703692 ->

Re: sympy

2016-03-30 Thread Steven D'Aprano
On Thu, 31 Mar 2016 02:23 am, Poul Riis wrote: > What I intend to do is to let sympy find the derivative of some > welldefined function and next define the foundation derivative as a normal > function so that I can calculate numerical values or even make a graph. I'm glad you explained what you

Re: pygtk button right/middle click

2016-03-30 Thread Chris Angelico
On Thu, Mar 31, 2016 at 2:36 AM, Grant Edwards wrote: > I'm trying to figure out how to get a pygtk button respond to > somehting other than just a simple "left click". With a standard > 3-button mouse, X11 provides at least 9 different "click" types, but > the pygtk

Re: repeat items in a list

2016-03-30 Thread Peter Otten
Michael Selik wrote: > I prefer itertools.chain.from_iterable to the sum trick. > from itertools import chain lst = list('abc') list(chain.from_iterable([s]*3 for s in lst)) > ['a', 'a', 'a', 'b', 'b', 'b', 'c', 'c', 'c'] If you want to make this completely lazy: >>> from

ANN: Python 201 - Intermediate Python book

2016-03-30 Thread Mike Driscoll
Hi, I just wanted to let you know that I am hard at work on my second book, which is entitled Python 201 which will come out this Fall 2016. I currently have a Kickstarter going where you can pre-order the book: https://www.kickstarter.com/projects/34257246/python-201-intermediate-python I

pygtk button right/middle click

2016-03-30 Thread Grant Edwards
I'm trying to figure out how to get a pygtk button respond to somehting other than just a simple "left click". With a standard 3-button mouse, X11 provides at least 9 different "click" types, but the pygtk button only seems to support one of them. [Yes, I know there are left-handled mouse

[issue26673] Tkinter error when opening IDLE configuration menu

2016-03-30 Thread wysaard
New submission from wysaard: I'm using Python 3.5.1 on Arch Linux. I've restalled the python package which provides IDLE, and the tkinter package which is used by IDLE, but to no effect. My problem is this: When in the menu at the top in IDLE, I click on Options -> Configure IDLE, the menu

Re: sympy

2016-03-30 Thread Robert Kern
On 2016-03-30 16:23, Poul Riis wrote: What I intend to do is to let sympy find the derivative of some welldefined function and next define the foundation derivative as a normal function so that I can calculate numerical values or even make a graph.

Re: sympy

2016-03-30 Thread Poul Riis
What I intend to do is to let sympy find the derivative of some welldefined function and next define the foundation derivative as a normal function so that I can calculate numerical values or even make a graph. -- https://mail.python.org/mailman/listinfo/python-list

Re: Adding borders to ttk radiobuttons

2016-03-30 Thread Mark Lawrence via Python-list
On 30/03/2016 15:55, ast wrote: "ast" a écrit dans le message de news:56fbe699$0$4548$426a7...@news.free.fr... "Mark Lawrence" a écrit dans le message de news:mailman.204.1459343690.28225.python-l...@python.org... I believe something like this

Re: Adding borders to ttk radiobuttons

2016-03-30 Thread Mark Lawrence via Python-list
On 30/03/2016 15:45, ast wrote: "Mark Lawrence" a écrit dans le message de news:mailman.204.1459343690.28225.python-l...@python.org... I believe something like this should suffice to display borders around the radiobuttons. import tkinter as tk import tkinter.ttk as

Re: Adding borders to ttk radiobuttons

2016-03-30 Thread ast
"ast" a écrit dans le message de news:56fbe699$0$4548$426a7...@news.free.fr... "Mark Lawrence" a écrit dans le message de news:mailman.204.1459343690.28225.python-l...@python.org... I believe something like this should suffice to display

Re: Adding borders to ttk radiobuttons

2016-03-30 Thread ast
"Mark Lawrence" a écrit dans le message de news:mailman.204.1459343690.28225.python-l...@python.org... I believe something like this should suffice to display borders around the radiobuttons. import tkinter as tk import tkinter.ttk as ttk root = tk.Tk() style =

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Jussi Piitulainen
Marko Rauhamaa writes: > Steven D'Aprano: > >> On Wed, 30 Mar 2016 10:21 pm, Jussi Piitulainen wrote: >>> Ok, safer to say that some many-to-one mappings are not surjective. >> >> Can you give an example of a Python dict which is not surjective? > > Depends on the codomain. The values() method

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-30 Thread Steve Dower
Steve Dower added the comment: So you've still got the old ucrtbased.dll on the buildbot, which is why we're still seeing the issue. Because it's a different OS I'm not surprised to see a difference between ucrtbase.dll instances. There should be an installer for the debug runtime somewhere

Re: Instalação

2016-03-30 Thread Cecil Westerhof
On Wednesday 30 Mar 2016 15:36 CEST, Mark Lawrence wrote: > On 30/03/2016 14:13, Alan Evangelista wrote: >> >>> Não consigo instalar o python no meu Windows,gostaria de alguma >>> ajuda ou esclarecimento >> >> Natalia, you should use English in this mailing list. >> >> - download latest Python.

Re: Statements as expressions [was Re: Undefined behaviour in C]

2016-03-30 Thread Ben Bacarisse
Dennis Lee Bieber writes: > On Tue, 29 Mar 2016 20:14:02 -0700 (PDT), Rustom Mody > declaimed the following: > > >>Pascal ? C ? Python is a slide down because >>Pascal had the clear distinction of procedure and function > > That goes back to

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Jussi Piitulainen
Steven D'Aprano writes: > On Wed, 30 Mar 2016 10:21 pm, Jussi Piitulainen wrote: > >> Ok, safer to say that some many-to-one mappings are not surjective. > > Can you give an example of a Python dict which is not surjective? Can you give an example of a mapping which is not surjective? Can you

[issue26655] pathlib glob case sensitivity issue on Windows

2016-03-30 Thread Udo Eberhardt
Udo Eberhardt added the comment: Meanwhile I realized this problem as well. There is no easy solution to determine exact spelling of the entire path. So it seems there is no simple solution to my problem. The concept of treating file system paths case-insensitive (as Windows does) seems to be

[issue26658] test_os fails when run on Windows ramdisk

2016-03-30 Thread Jeremy Kloth
Jeremy Kloth added the comment: To reproduce: P:\python-default>PCBuild\amd64\python_d.exe Python 3.6.0a0 (default:708beeb65026, Mar 30 2016, 08:50:27) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import os, _winapi >>>

[issue26488] hashlib command line interface

2016-03-30 Thread Christian Heimes
Christian Heimes added the comment: I see a potential performance issue here. The block size is a small value, usually a couple of kb. With such a small value, the runtime will be dominated by Python call overhead and syscalls. -- ___ Python

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-30 Thread Jeremy Kloth
Jeremy Kloth added the comment: I would have responded sooner, but add me to the list of those not receiving tracker notifications... My buildbot is running Windows 7 with all updates (last checked 3/29) and VS2015 Update 1. ucrtbase: 10.0.10586.9 (11/19/2015) ucrtbased:

Re: Instalação

2016-03-30 Thread Mark Lawrence via Python-list
On 30/03/2016 14:13, Alan Evangelista wrote: Não consigo instalar o python no meu Windows,gostaria de alguma ajuda ou esclarecimento Natalia, you should use English in this mailing list. - download latest Python. Python has 2 different versions under development: Python 2 and Python 3. As

Re: Learning Python (or Haskell) makes you a worse programmer

2016-03-30 Thread Eric S. Johansson
On 3/30/2016 9:09 AM, Chris Angelico wrote: On Thu, Mar 31, 2016 at 12:06 AM, Eric S. Johansson wrote: I need a co-conspirator with better hands than mine to get through the next stage which is some form of an AST smart editor that operates on larger chunks such as idioms or

Re: Instalação

2016-03-30 Thread Igor Korot
Hi, Natalia, On Wed, Mar 30, 2016 at 9:13 AM, Alan Evangelista wrote: > >> Não consigo instalar o python no meu Windows,gostaria de alguma ajuda ou >> esclarecimento > > > Natalia, you should use English in this mailing list. > > - download latest Python. Python has 2

Re: Instalação

2016-03-30 Thread Alan Evangelista
Não consigo instalar o python no meu Windows,gostaria de alguma ajuda ou esclarecimento Natalia, you should use English in this mailing list. - download latest Python. Python has 2 different versions under development: Python 2 and Python 3. As you are a beginner, I recommend you use the

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Manolo Martínez
On 03/30/16 at 03:55pm, Marko Rauhamaa wrote: > Manolo Martínez : > > > On 03/30/16 at 02:44pm, Marko Rauhamaa wrote: > >> I don't even know if you can say much about the cardinality (or > >> countability) of mappings. The general set of mappings can't exist. > >> The

Adding borders to ttk radiobuttons

2016-03-30 Thread Mark Lawrence via Python-list
I believe something like this should suffice to display borders around the radiobuttons. import tkinter as tk import tkinter.ttk as ttk root = tk.Tk() style = ttk.Style() style.configure('BW.TRadiobutton', borderwidth=5) buttonVar = tk.IntVar() rb1 = ttk.Radiobutton(text='Hello mum',

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Antoon Pardon
Op 30-03-16 om 14:22 schreef Steven D'Aprano: > On Wed, 30 Mar 2016 09:28 pm, Jussi Piitulainen wrote: > >> Steven D'Aprano writes: >> >>> On Wed, 30 Mar 2016 06:12 pm, Jussi Piitulainen wrote: >>> Steven D'Aprano writes: > Given a surjection (many-to-one mapping) No. And I

Re: Help me

2016-03-30 Thread srinivas devaki
ahh, this is the beginning of a conspiracy to waste my time. PS: just for laughs. not to offend any one. Regards Srinivas Devaki Junior (3rd yr) student at Indian School of Mines,(IIT Dhanbad) Computer Science and Engineering Department ph: +91 9491 383 249 telegram_id: @eightnoteight On Mar 30,

Re: Learning Python (or Haskell) makes you a worse programmer

2016-03-30 Thread Chris Angelico
On Thu, Mar 31, 2016 at 12:06 AM, Eric S. Johansson wrote: > I need a co-conspirator with better hands than mine to get through the next > stage which is some form of an AST smart editor that operates on larger > chunks such as idioms or snippets in a speech friendly way. Ideally

Re: Learning Python (or Haskell) makes you a worse programmer

2016-03-30 Thread Eric S. Johansson
On 3/30/2016 6:21 AM, BartC wrote: On 30/03/2016 11:07, Sven R. Kunze wrote: On 30.03.2016 01:29, Eric S. Johansson wrote: On 3/29/2016 6:05 AM, Sven R. Kunze wrote: Python = English As someone who writes English text and code using speech recognition, I can assure you that Python is

[issue26655] pathlib glob case sensitivity issue on Windows

2016-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For now glob(r'c:\very\long\case\insensitive\path\*.txt') have to iterate names only in one directory. For restoring actual path case it have to iterate all parent directories: r'c:\very\long\case\insensitive\path', r'c:\very\long\case\insensitive',

[issue26488] hashlib command line interface

2016-03-30 Thread Aviv Palivoda
Aviv Palivoda added the comment: Sorry on the late response for some reason i don't receive email notification from the tracker for the past few days. 1) Thanks for the review SilentGhost the patch attached include your CR suggestions. 2) Raymond I have fixed the problem with ctrl+D. I tried

Re: sympy

2016-03-30 Thread Steven D'Aprano
On Wed, 30 Mar 2016 10:17 pm, Poul Riis wrote: > Is it possible to transfer results from sympy to 'normal' python. > > In the case below I think my intention is clear enough but it does not > work as intended. How can it be done? How can what be done? Unfortunately, we're not able to read your

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Marko Rauhamaa
Manolo Martínez : > On 03/30/16 at 02:44pm, Marko Rauhamaa wrote: >> I don't even know if you can say much about the cardinality (or >> countability) of mappings. The general set of mappings can't exist. >> The *class* of mappings does exist in some set theories, but I

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Random832
On Wed, Mar 30, 2016, at 01:43, Steven D'Aprano wrote: > This is not an argument about dicts being mutable, because clearly they > aren't. This is an argument about key:value pairs being stable. "Stable" > doesn't mean "immutable". If you change the value associated with a key > directly, then

Instalação

2016-03-30 Thread natalia camargo
Não consigo instalar o python no meu Windows,gostaria de alguma ajuda ou esclarecimento Enviado do Email para Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

  1   2   >