On Tue, Nov 13, 2012 at 1:00 AM, Cleuson Alves wrote:
> Hello, I need to solve an exercise follows, first calculate the inverse
> matrix and then multiply the first matrix.
I would just point out that in most numerical applications, you rarely
need to calculate the intermediate of the matrix inv
Well color me ignorant.
Works cleanly. I shouldn't have reinvented the wheel.
Thanks.
This seem really ugly. Is there a cleaner way to do this? Is there a keyword I could search by to find something nicer?
Use the "shlex" module in the std lib?
Cheers,
Chris -- Cheers,Chris--http://rebertia.
In sci.physics NanoThermite FBibustards
wrote:
> test
fail.
--
--
http://mail.python.org/mailman/listinfo/python-list
It seems like all the info on tkinter is around the 2000 time frame.
Is tkinter still being developed/supported?
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 12 May 2012 12:40:28 -0700 (PDT), Sverre
wrote:
>I searched for widgets used for PLC automation or lab instrumentation
>like gauges, led's etc. in the net, but didn't found anything because
>of those massive link spam sites. In the case there isn't any
>solution, with which toolkit would
I have a copy of this book and was wondering how relevant the content
is considering the publish date is 2000. Are people still using this
information? Anyone have any experience with this book? I guess what I
mean, is, any of the code in this book deprecated? or does it still
contain information
On 17 May 2012 09:53:40 GMT, Steven D'Aprano
wrote:
>On Wed, 16 May 2012 23:55:29 -0400, Mark R Rivet wrote:
>
>> I have a copy of this book and was wondering how relevant the content is
>> considering the publish date is 2000. Are people still using this
>>
I want a gui designer that writes the gui code for me. I don't want to
write gui code. what is the gui designer that is most popular?
I tried boa-constructor, and it works, but I am concerned about how
dated it seems to be with no updates in over six years.
--
http://mail.python.org/mailman/listin
w.
Try bringing your imports up out of the "if __name__" block. Where you are
referencing getopt (the main() function), the getopt module hasn't yet
been imported.
You can do something like this:
import getopt
def main():
# ...
--
- R. Tyler Croy
---
Ben Finney benfinney.id.au> writes:
> > (1) assertRaises REALLY needs a better error message. If not a custom
> > message, at least it should show the result it got instead of an
> > exception.
>
> +1
>
> Is this one of the many improvements in Python 3.2's ‘unittest’ that
> Michael Foord presid
On Sunday, November 19, 2017 at 2:05:12 PM UTC-5, Peng Yu wrote:
> Hi, R has the functions head() and str() to show the brief content of
> an object. Is there something similar in python for this purpose?
>
> For example, I want to inspect the content of the variable "train&quo
On Tuesday, December 5, 2017 at 8:33:52 PM UTC-5, nick martinez wrote:
> I have a question on my homework. My homework is to write a program in which
> the computer simulates the rolling of a die 50
> times and then prints
> (i). the most frequent side of the die
> (ii). the average die value o
On Wednesday, January 31, 2018 at 10:55:59 AM UTC-5, M.Haroon Ali wrote:
> from where we learn python for free of cost. i am begineer in python.plzz
> help me
And after you're done with the OFFICIAL tutorials; there thousands of excellent
free tutorials online. Just do some research.
If you're
Hi,
I have written some classes that represent immutable views on collections (see
"immutable-views" package on Pypi).
Currently, these view classes inherit from the abstract collection classes such
as Mapping, Sequence, Set. However, they implement the read-only methods of
dict, list and set,
Hi everyone,
maybe, I am missing something here but is it possible to specify a
delimiter for list arguments in argparse:
https://docs.python.org/3/library/argparse.html
Usually, '--' is used to separate two lists (cf. git).
Cheers,
Sven
--
https://mail.python.org/mailman/listinfo/python-li
ction='append')
At least from my point of view, I don't any way to separate both lists
on this command call:
cool-script.py thing1 thing2 stuff1 stuff2
Do I miss something here?
Best
Sven
On 03.08.21 01:49, Dan Stromberg wrote:
Isn't -- usually used to signal the end o
Hi
I would like to do some tracing in a flask. I have been able to trace
request in plain python requests using sys.settrace(), but this doesnt work
with Flask.
Moreover, what i want to trace is in a flask application, when an endpoint
is called, what was the request, which parts of the code was
On 10.09.2016 15:00, Chris Angelico wrote:
Some things are absolute hard facts. There is no way in which 1 will
ever be greater than 2, ergo "1 is less than 2" is strictly true, and
not a matter of opinion. If you hear someone trying to claim
otherwise, would you let him have his opinion, or woul
I'm not sure I understand your question, but I 'think' you area talking about
executing dynamically chunks of code. If that is the case, there are a couple
of ways to do it. These are some links that might interest you:
http://stackoverflow.com/questions/3974554/python-how-to-generate-the-code-o
On Sunday, October 16, 2016 at 1:42:23 PM UTC-4, Ayush Saluja wrote:
> Hello I want to build a desktop application which retrieves data from server
> and stores data on server. I have basic experience of python and I dont know
> how to build that thing.
I agree with Martin's suspicion on you hav
On Monday, October 17, 2016 at 1:00:14 PM UTC-4, John Gordon wrote:
> In
> ayuchitsalu...@gmail.com writes:
>
> > Hello I want to build a desktop application which retrieves data from
> > server and stores data on server. I have basic experience of python and
> > I dont know how to build that th
I don't know much about these topics but, wouldn't soundex do the job??
On Thursday, November 3, 2016 at 12:18:19 PM UTC-4, Fillmore wrote:
> Hi there, apologies for the generic question. Here is my problem let's
> say that I have a list of lists of strings.
>
> list1:#strings are sort of s
On Friday, January 6, 2017 at 10:37:40 AM UTC-5, Ethan Furman wrote:
> On 01/06/2017 05:03 AM, Steve D'Aprano wrote:
>
> > what do we call the vertical and horizontal line elements? I want to make
> > them configurable, which means the user has to be able to pass an argument
> > that specifies the
On Friday, January 6, 2017 at 8:45:41 PM UTC-5, Mario R. Osorio wrote:
> On Friday, January 6, 2017 at 10:37:40 AM UTC-5, Ethan Furman wrote:
> > On 01/06/2017 05:03 AM, Steve D'Aprano wrote:
> >
> > > what do we call the vertical and horizontal line elemen
On Friday, July 13, 2018 at 11:16:44 AM UTC-4, Bart wrote:
> On 13/07/2018 13:33, Steven D'Aprano wrote:
> > On Fri, 13 Jul 2018 11:37:41 +0100, Bart wrote:
> >
> >> (** Something so radical I've been using them elsewhere since forever.)
> >
> > And you just can't resist making it about you and y
>From vigan
Hi i wold like to join in this list because i want to start programing with
python pls acept this
--
https://mail.python.org/mailman/listinfo/python-list
Not heard of any but I can recommend django-restframework. We've got
good experience with that.
On 28.03.2016 23:06, David Shi via Python-list wrote:
Has anyone done a recent reviews of creating REST services, in Python?
Regards.
David
--
https://mail.python.org/mailman/listinfo/python-list
On 29.03.2016 06:13, Michael Torrie wrote:
On 03/28/2016 06:44 PM, Steven D'Aprano wrote:
http://lukeplant.me.uk/blog/posts/why-learning-haskell-python-makes-you-a-worse-programmer/
I have the same problem as the writer. Working in Python makes me
really dislike working in any other language
On 29.03.2016 11:39, Peter Otten wrote:
My question to those who know a bit of C#: what is the state-of-the-art
equivalent to
"\n".join(foo.description() for foo in mylist
if foo.description() != "")
Using LINQ, I suppose:
https://en.wikipedia.org/wiki/Language_Inte
On 28.03.2016 17:34, ast wrote:
"Matt Wheeler" a écrit dans le message de
news:mailman.92.1458825746.2244.python-l...@python.org...
On Thu, 24 Mar 2016 11:10 Sven R. Kunze, wrote:
On 24.03.2016 11:57, Matt Wheeler wrote:
>>>> import ast
>>>> s = "
On 27.03.2016 05:01, Steven D'Aprano wrote:
Am I the only one who has noticed that threading of posts here is severely
broken? It's always been the case that there have been a few posts here and
there that break threading, but now it seems to be much more common.
I agree. Didn't we both already
On 26.03.2016 18:06, Peter Otten wrote:
beliavsky--- via Python-list wrote:
I can use x[::n] to select every nth element of a list. Is there a
one-liner to get a list that excludes every nth element?
del x[::n]
;)
Actually quite nice.
--
https://mail.python.org/mailman/listinfo/python-list
On 29.03.2016 12:18, Sven R. Kunze wrote:
On 29.03.2016 11:39, Peter Otten wrote:
My question to those who know a bit of C#: what is the state-of-the-art
equivalent to
"\n".join(foo.description() for foo in mylist
if foo.description() != "")
U
On 29.03.2016 18:05, Peter Otten wrote:
Reformatting it a bit
String.Join(
"\n",
mylist.Where(
foo => !String.IsNullOrEmpty(foo.description)
).Select(
foo => foo.description))
this looks like a variant of Python's
str.join(
"\n",
map(lambda foo: foo.des
On 30.03.2016 01:43, Steven D'Aprano wrote:
On Tue, 29 Mar 2016 09:26 pm, Sven R. Kunze wrote:
On 27.03.2016 05:01, Steven D'Aprano wrote:
Am I the only one who has noticed that threading of posts here is
severely broken? It's always been the case that there have been a few
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 not English. :-)
:D Interesting. Never thought of how Python sounds when spoken
On 30.03.2016 12:14, Tim Golden wrote:
Not that you quite meant this, but I'm always amused (and still a little
startled) when I listen to talks recorded from, say, PyCon and hear
people with American accents pronouncing Python with the stress on the
slightly longer second syllable.
(I don't kno
On 30.03.2016 12:21, 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 not
On 31.03.2016 17:07, Steven D'Aprano wrote:
Sometimes people look for a method which is equivalent to dict.get, where
they can set a default value for when the key isn't found:
py> d = {1: 'a', 2: 'b'}
py> d.get(999, '?')
'?'
The equivalent for sequences such as lists and tuples is a slice. I
On 31.03.2016 18:30, Travis Griggs wrote:
British: http://www.oxforddictionaries.com/definition/english/python
American: http://www.dictionary.com/browse/python?s=t
That does it. If I ever make some sort of open source module for pythun/pythawn
I’ll be sure to call it either tuhmayto/tomawto
Hi Josh,
good question.
On 04.04.2016 18:47, Josh B. wrote:
My package, available at https://github.com/jab/bidict, is currently laid out
like this:
bidict/
├── __init__.py
├── _bidict.py
├── _common.py
├── _frozen.py
├── _loose.py
├── _named.py
├── _ordered.py
├── compat.py
├── util.py
I'd
On 05.04.2016 03:43, Steven D'Aprano wrote:
The purpose of packages isn't enable Java-style "one class per file" coding,
especially since *everything* in the package except the top level "bidict"
module itself is private. bidict.compat and bidict.util aren't flagged as
private, but they should be
On 05.04.2016 19:59, Chris Angelico wrote:
On Wed, Apr 6, 2016 at 3:38 AM, Sven R. Kunze wrote:
Your package is currently under 500 lines. As it stands now, you could
easily flatten it to a single module:
bidict.py
I don't recommend this.
The line is blurry but 500 is definitely too
On 05.04.2016 20:40, Ethan Furman wrote:
(utils.py does export a couple of functions, but they should be in
the main
module, or possibly made into a method of BidirectionalMapping.)
Your package is currently under 500 lines. As it stands now, you could
easily flatten it to a single module:
b
On 06.04.2016 09:28, Michael Selik wrote:
On Wed, Apr 6, 2016, 2:51 AM Steven D'Aprano wrote:
On Wed, 6 Apr 2016 05:56 am, Michael Selik wrote:
[Michael]
When you made that suggestion earlier, I immediately guessed that you
were
using PyCharm. I agree that the decision to split into multip
On 06.04.2016 01:47, Chris Angelico wrote:
Generally, I refactor code not because the files are getting "too
large" (for whatever definition of that term you like), but because
they're stretching the file's concept. Every file should have a
purpose; every piece of code in that file should ideally
hmmm...He made an extremely kind comment a couple of days ago. It called my
attention because is the first one ever (coming from) ... Now I'm thinking he
might have just been sarcastic.
And BTW I myself have given a couple of sour responses every now and then. I
guess we all have our bad days o
On Sunday, April 10, 2016 at 2:01:00 PM UTC-4, Terry Reedy wrote:
> On 4/10/2016 1:05 PM, Ethan Furman wrote:
>
> > If you see offensive posts from him on the Usenet side please do not
> > respond.
>
> Just a reminder for those who, like me, prefer a newsgroup interface for
> python-list: gmane
Mel: Portuguese for honey
Drosis: from Greek hidrōs; to sweat
--
https://mail.python.org/mailman/listinfo/python-list
... so you decided to start the post already hijacked by yourself ...
very clever!!
On Friday, August 5, 2016 at 8:19:53 PM UTC-4, bream...@gmail.com wrote:
> On Friday, August 5, 2016 at 7:15:37 PM UTC+1, DFS wrote:
> > On 8/4/2016 6:41 PM, breamore...@gmail.com wrote:
> > > Fascinating stuff h
On Saturday, November 24, 2018 at 1:44:21 AM UTC-5, Chris Angelico wrote:
> On Sat, Nov 24, 2018 at 5:36 PM wrote:
> >
> > hello all,
> > please hepl me in the above program. python to implement Railway
> > Reservation System using file handling technique.
> >
> > System should perform below ope
On Monday, January 7, 2019 at 9:52:03 AM UTC-5, Dave wrote:
> I need to select a Python GUI. It needs to cover all of the desktops
> (Linux, Windows, Apple) and hopefully mobile (Android and Ios). I'm
> looking at Kivy, but have yet to find an example app. that has a native
> looking GUI (Wind
On Wednesday, January 2, 2019 at 1:05:44 PM UTC-5, Hüseyin Ertuğrul wrote:
> I don't know the software language at all. What do you recommend to beginners
> to learn Python.
> What should be the working systematic? How much time should I spend every day
> or how much time should I spend on a dail
You might want to check this project: https://pybee.org/
I've never used it but it shows promising.
BTW, I'm a diabetic myself and I would be very thankful if you could share your
application.
I'm currently using 2 Android apps:
StickBuddy offers a system to keep track of both where you pinch
Hi there Steve. Did you check BeeWare? (https://pybee.org/)
--
https://mail.python.org/mailman/listinfo/python-list
You will need to have java. BeeWare's VOC tool, a transpiler from python to
java, will do all the work for you so you don't even have know anything
about java, except installing and setting it up for your environment
Dtb/Gby
===
Mario R. Osorio
B.A.S. of Information Technolo
I am not an expert in BeeWare (I've never used it) but I've read a good
portion of their documentation and find it very interesting to say
the least. I am looking forward using it in the very near future.
On Fri, Feb 8, 2019 at 11:06 AM Mario R. Osorio
wrote:
> You will need
On Monday, May 13, 2019 at 8:32:38 AM UTC-4, Tristan Cribaro wrote:
> [image: image.png]so I have a project I have to work on that is due
> tomorrow for a lot of points towards my grade. The issue here is I've been
> trying to download Pillow and simple audio for my project and I keep
> getting the
On Saturday, June 29, 2019 at 8:40:06 AM UTC-4, josé mariano wrote:
> Dear all,
>
> I'm sure that this subject has been addressed many times before on this
> forum, but my poor knowledge of English and of computer jargon and concepts
> results on not being able to find the answer i'm looking for
On Thursday, October 24, 2019 at 4:29:59 PM UTC-4, Chris Angelico wrote:
> On Fri, Oct 25, 2019 at 7:20 AM DL Neil via Python-list
> wrote:
> >
> > Chris Angelico: [PSF's] 2019 Q2 Community Service Award Winner
> > http://pyfound.blogspot.com/2019/10/chris-angelico-2019-q2-community.html
> >
> > .
On Thursday, January 23, 2020 at 3:54:56 AM UTC-5, Z wrote:
> what is PLR?
PLR: Private Label Rights (https://en.wikipedia.org/wiki/Private_label_rights)
--
https://mail.python.org/mailman/listinfo/python-list
:
http://rhonoric.blogspot.com/ <http://rhonoric.blogspot.com/>*
-- Forwarded message -
De: Honori R. Camacho
Date: mié., 1 abr. 2020 a las 13:45
Subject: Problemas para ejecutar Python en windows 7
To:
1.- Necesitamos ayuda. No podemos ejecutar Python 3.5.4 en windows
In an effort to clean up my python logging practices when creating libraries, I
have begun reading into "Advanced Logging" and converting my logging practices
into logging configuration `.ini` files:
[link](https://docs.python.org/3.4/howto/logging.html#configuring-logging)
My question is: When
Sent from my BlackBerry - the most secure mobile device
From: art...@gmail.com
Sent: December 4, 2020 10:40 AM
To: python-list@python.org
Subject: See example
Microsoft Windows [Version 10.0.19042.630]
(c) 2020 Microsoft Corporation. All rights reserved.
I am sure you can
I actually have made a sensible suggestion, or else people will now
explain why this idea isn't good (and I'll learn something). Either way,
I look forward to your comments.
References:
Elementwise/Objectwise Operators
http://www.python.org/peps/pep-0225.html
Adding A New Outer Product
w.python.org/peps/pep-0225.html
Alas, the links to the discussion about this don't work. But it is
possible to use the Google Groups archive of comp.lang.python to read some
of the discussion.
--
Steve R. Hastings"Vita est"
[EMAIL PROTECTED]http://www.blarg.net/~steveha
--
http://mail.python.org/mailman/listinfo/python-list
orted to ASCII for porting code to
platforms that don't allow Unicode Python files? Yes: just replace the
Unicode character with a symbol like __op__, where op is the operator.
Actually, that's a better syntax than the one I proposed, too:
__+__
# __add__ # this one's alread
I’ve seen these messages too on AIX 5.2.
It seems to come from doing an “import” on
piped/fork processes with a python parent. (In particular import errno)
I don’t know the “proper” solution but I
got rid of the messages (similar messages came up when I ran my app) by
hacking P
lumns 20 spaces long, with 12 digits after the decimal and so on and so forth.
What I am really looking for is some general indication of how to do such formatting in Python.
Any help?
Dan
Daniel R Einstein, PhD
Biological Monitoring and Modeling
Pacific Northwest National Laboratory
P.O.
Hello All,
I am very new to Python, trying to install it from source
(ftp://ftp.sunfreeware.com/pub/freeware/SOURCES/python-2.3.3.tar.gz) on
Sun Solaris-9 (SPARC). But getting the below error message during
configure. Also while uncompressing, it is returning the checksum doesnt
match error as wel
I did...
1. wget http://www.python.org/ftp/python/2.4.1/Python-2.4.1.tgz
2. gunzip -c Python-2.4.1.tgz | tar xvf -
the above step errors:
tar: directory checksum error
gunzip: stdout: Broken pipe
3. Later in ./configure step...
This step also fails...(I did run this by ig
n-2.4.1
6. ./configure --prefix=/home//Py (The directory in which you
wanted to install Python libraries and binaries)
7. make
8. make install
Once again Thank you All for educating me.
Madhu
On Thu, 2005-07-14 at 10:56 -0700, [EMAIL PROTECTED] wrote:
>
> Madhu R. Vajrala wrote:
> >
&
array.array('f')
s.read(fileobj, size)
data = "" typecode=N.Int)
fileobj.close()
But the header must confuse things because I do get what I expect.
Any advice?
Best Regards,
Dan
Daniel R Einstein, PhD
Biological Monitoring and Modeling
Pacific Northwest National Laboratory
P.
that
the libpython23.a and libnumeric.a libraries are somehow involved. These may be
the culprits as I need to include particular version in my build. Again, any
light to be shed?
Thanks so much
Dan
Daniel R Einstein, PhD
Biological Monitoring and Modeling
Pacific Northwest National Laborator
Hello,
How do you go about taking a variable which was declared in C and pass
that through to a Python script? I have tried doing this by adding a
simple string which is a PyObject from C into the local dictionary and
retrieving it from script via a locals()["myCvar"] print statement.
This however
u confess a solution once I
figure out what are you talking about :)
I will really appreciate and and all comments, ideas and recommendations … even
epithets!
Thanks a lot in advanced!
Mario R. Osorio
--
https://mail.python.org/mailman/listinfo/python-list
On Sunday, February 2, 2014 4:16:44 PM UTC-5, Charlie Winn wrote:
> Hey Guys i Need Help , When i run this program i get the 'None' Under the
> program, see what i mean by just running it , can someone help me fix this
>
>
>
> def Addition():
>
> print('Addition: What are two your numbers?
Hi everybody,
suppose, I need items sorted by two criteria (say timestamp and
priority). For that purpose, I use two heaps (heapq module):
heapA # items sorted by timestamp
heapB # items sorted by priority
Now my actual problem. When popping an item of heapA (that's the oldest
item), I need
thrown away once they are
too long in the queue.
On Fri, Jan 8, 2016 at 4:22 AM, Sven R. Kunze wrote:
Hi everybody,
suppose, I need items sorted by two criteria (say timestamp and priority).
For that purpose, I use two heaps (heapq module):
heapA # items sorted by timestamp
heapB # items
Hi Saski,
Python's dataset processing machine is *pandas*.
Have a look at this cookbook entry here:
http://nbviewer.ipython.org/github/jvns/pandas-cookbook/blob/v0.1/cookbook/Chapter%204%20-%20Find%20out%20on%20which%20weekday%20people%20bike%20the%20most%20with%20groupby%20and%20aggregate.ipyn
Thanks for your reply.
On 08.01.2016 14:26, Peter Otten wrote:
Sven R. Kunze wrote:
Hi everybody,
suppose, I need items sorted by two criteria (say timestamp and
priority). For that purpose, I use two heaps (heapq module):
heapA # items sorted by timestamp
heapB # items sorted by priority
r email.
I'm using minimum number has highest priority convention.
I like Web technology, so no problem here. :)
On Fri, Jan 8, 2016 at 10:15 PM, Sven R. Kunze wrote:
Thanks for your suggestion.
On 08.01.2016 14:21, srinivas devaki wrote:
You can create a single heap with primary key as
On 09.01.2016 19:32, Paul Rubin wrote:
"Sven R. Kunze" writes:
Basically a task scheduler where tasks can be thrown away once they
are too long in the queue.
I don't think there's a real nice way to do this with heapq. The
computer-sciencey way would involve separate bala
On 12.01.2016 03:48, Cem Karan wrote:
Jumping in late, but...
If you want something that 'just works', you can use HeapDict:
http://stutzbachenterprises.com/
I've used it in the past, and it works quite well. I haven't tested its
asymptotic performance though, so you might want to check int
On 13.01.2016 12:20, Cem Karan wrote:
On Jan 12, 2016, at 11:18 AM, "Sven R. Kunze" wrote:
Thanks for replying here. I've come across these types of
wrappers/re-implementations of heapq as well when researching this issue. :)
Unfortunately, they don't solve the unde
Hi Gert,
just upgrade to 5.03.
Best,
Sven
On 13.01.2016 18:38, Gert Förster wrote:
Ladies, Gentlemen,
using the PyCharm Community Edition 4.5.4, with Python-3-5-1-amd64.exe,
there is constantly a “Repair”-demand. This is “successful” when executed.
Without execution, there results an “Error
Just get better Laura...
--
https://mail.python.org/mailman/listinfo/python-list
I think you'd do better using the pyparsing library
On Friday, January 22, 2016 at 9:02:00 AM UTC-5, inhahe wrote:
> I hope this is an appropriate mailing list for BeautifulSoup questions,
> it's been a long time since I've used python-list and I don't remember if
> third-party modules are on to
Hi,
On 29.01.2016 01:01, Fillmore wrote:
I look and Python and it looks so much more clean
add to that that it is the language of choice of data miners...
add to that that iNotebook looks powerful
All true. :)
Does Python have Regexps?
"import re"
https://docs.python.org/3.5/li
On 29.01.2016 23:49, Ben Finney wrote:
"Sven R. Kunze" writes:
On 29.01.2016 01:01, Fillmore wrote:
How was the Python 2.7 vs Python 3.X solved? which version should I
go for?
Python 3 is the new and better one.
More importantly: Python 2 will never improve; Python 3 is the onl
Hi again,
as the topic of the old thread actually was fully discussed, I dare to
open a new one.
I finally managed to finish my heap implementation. You can find it at
https://pypi.python.org/pypi/xheap + https://github.com/srkunze/xheap.
I described my motivations and design decisions at
Hi again,
as the topic of the old thread actually was fully discussed, I dare to
open a new one.
I finally managed to finish my heap implementation. You can find it at
https://pypi.python.org/pypi/xheap + https://github.com/srkunze/xheap.
I described my motivations and design decisions at
it is
brilliant of you to simply use __setitem__
Thanks. :)
On Sun, Jan 31, 2016 at 4:17 AM, Sven R. Kunze wrote:
Hi again,
as the topic of the old thread actually was fully discussed, I dare to open
a new one.
I finally managed to finish my heap implementation. You can find it at
On 31.01.2016 02:48, Steven D'Aprano wrote:
On Sunday 31 January 2016 09:47, Sven R. Kunze wrote:
@all
What's the best/standardized tool in Python to perform benchmarking?
timeit
Thanks, Steven.
Maybe, I am doing it wrong but I get some weird results:
>>> min(timeit.Ti
On 02.02.2016 01:48, srinivas devaki wrote:
On Feb 1, 2016 10:54 PM, "Sven R. Kunze" <mailto:srku...@mail.de>> wrote:
>
> Maybe I didn't express myself well. Would you prefer the sweeping
approach in terms of efficiency over how I implemented xheap currently?
&g
Hi,
as you might have noticed, I am working on
https://github.com/srkunze/xheap right now.
In order to make it even faster and closer to heapq's baseline
performance, I wonder if there is a possibility of creating fast
wrappers for functions.
Please compare
https://github.com/srkunze/xhe
On 03.02.2016 21:40, Bernardo Sulzbach wrote:
I am not entirely sure about what your question is.
Are you talking about the "heapreplace expected 2 arguments, got 1"
you get if you set replace = heapreplace?
Yes, I think so.
I might ask differently: why do I need to write wrapper method when
On 03.02.2016 22:06, Bernardo Sulzbach wrote:
I may say something wrong, but this is what I see going on:
When you get "replace = heapreplace" you are creating a data attribute
called replace (you will access it by self.replace or
variable.replace) that is an alias for heapreplace.
When you cal
On 03.02.2016 22:14, Bernardo Sulzbach wrote:
Thanks for quoting, for some reason my client always replies to the
person and not the list (on this list only).
I did what I could. I could show you a lambda function there, but it
doesn't solve anything. If there is a way to avoid a wrapper, I don'
On 03.02.2016 22:19, Peter Otten wrote:
You could try putting
self.heappush = functools.partial(heapq.heappush, self)
into the initializer.
Actually a nice idea if there were no overhead of creating methods for
all heap instances separately. I'll keep that in mind. :)
--
https://mail.pytho
701 - 800 of 1188 matches
Mail list logo