[Python-Dev] Re: Sad news from Zurich

2021-12-10 Thread Hasan Diwan
My condolences to all who knew Fredrik. -- H
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/3SWFS77UCVDKMJOBCDGDTVTRDM3VFMV2/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Having Sorted Containers in stdlib?

2021-11-09 Thread Hasan Diwan
A quick Google for "treap python github" yielded
https://github.com/TheAlgorithms/Python/blob/master/data_structures/binary_tree/treap.py
.

On Tue, 9 Nov 2021 at 21:49, Dan Stromberg  wrote:

>
> On Tue, Nov 9, 2021 at 9:00 PM Steven D'Aprano 
> wrote:
>
>> Sorting dicts has been discussed on the Python-Ideas mailing list, it is
>> too hard and expensive to justify for the limited use-cases for it. If
>> you want to sort a dict, you are best to sort the dict's keys, then
>> create a new dict. Or possibly use a dedicated Sorted Mapping type like
>> a red-black tree or similar.
>>
>
> There are several implementations of key-order sorted dicts available in
> Python, and more than a few of them are well tested.  I am the maintainer
> of one of them: https://pypi.org/project/treap/ which I ported from
> Java.  I also did a performance comparison among several of them a few
> years back.
>
> Red-black trees are popular, perhaps especially among Java developers, but
> I've never understood why.  They aren't the fastest.  Among traditional
> tree-based key-sorted dicts, treaps are frequently fastest.
>
> However, SortedDict is not uncommonly faster than treaps - I believe this
> is because SortedDict is very good at maximizing locality of reference.
> Traditional trees are almost always going to do an entire cache line hit
> for every node in large trees, even if those nodes are "next to each other"
> when sorted/traversed.  SortedDicts put keys that are nearly equal, in
> nearly the same part of memory - so multiple values can be retrieved with a
> single cache line hit.
>
> Sorting a dict's keys inside a loop tends to give O(n^2) algorithms, and
> sometimes even O(n^2 * logn).  This is not good.  A traditional tree should
> give O(nlogn) algorithms under similar circumstances, and although my gut
> is telling me SortedDict is similar the presentation linked below suggests
> a different (though still better than sorting in a loop) runtime for
> SortedDict.
>
> It's true that key-sorted dicts are not all that common.  Their most
> common use is probably for implementing finite caches - evictions can
> benefit from ordered keys.  However, we already have functools.lru_cache.
>
> Here's my most recent performance comparison:
> https://stromberg.dnsalias.org/~strombrg/sorted-dictionary-comparison/Datastructure%20comparison.pdf
>
> Here's a PyCon 2016 presentation about SortedContainers, that includes
> SortedDict:
> https://www.youtube.com/watch?v=7z2Ki44Vs4E
>
> I think it would make sense to include at least one key-sorted dict in
> CPython, and feel that SortedDict would not be a bad way to go.  Neither
> would treap.
>
>
> ___
> Python-Dev mailing list -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-dev@python.org/message/VNK4VPGA4LJH7RMR4LCCACEG2WNDBBFO/
> Code of Conduct: http://python.org/psf/codeofconduct/
>


-- 
OpenPGP: https://hasan.d8u.us/openpgp.asc
If you wish to request my time, please do so using
*bit.ly/hd1AppointmentRequest
*.
Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest
*.

Sent
from my mobile device
Envoye de mon portable
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/LQHSFACZUBNKIO33TJSVRMI7QBGUDS5D/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Having Sorted Containers in stdlib?

2021-11-09 Thread Hasan Diwan
On Tue, 9 Nov 2021, 17:05 Bob Fang,  wrote:

> But that’s in insertion order, not in key order right? I think we need
> data structure that are key-ordered.
>
According to the tests, it seems to be key-ordered. It also appears that
the ordering cannot be changed (yet?). -- H
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/KP2NMUHVOIGA5ZTZM7DXRCJZAN4C6EFS/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Having Sorted Containers in stdlib?

2021-11-09 Thread Hasan Diwan
On Tue, 9 Nov 2021 at 16:01, Bob Fang  wrote:

> This is a modest proposal to consider having sorted containers (
> http://www.grantjenks.com/docs/sortedcontainers/
> )
> in standard library. I know that usually adding stuff to standard library
> requires some strong arguments, so I will try my best to give my reasons
> here:
>

As of 3.7. dicts are sorted[1], but I'm unsure if the order can be
overridden. Indeed:

>>> Boys = {'Tim': 18,'Charlie':12,'Robert':25}

Girls = {'Tiffany':22}


>>> print(cmp(Girls, Boys))

Traceback (most recent call last):

  File "", line 1, in 

NameError: name 'cmp' is not defined

>>> Girls.__gt__(Boys)

NotImplemented


-- H
-- 
OpenPGP: https://hasan.d8u.us/openpgp.asc

If you wish to request my time, please do so using
*bit.ly/hd1AppointmentRequest
*
.
Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest
*
.

Sent
from my mobile device
Envoye de mon portable
1. https://softwaremaniacs.org/blog/2020/02/05/dicts-ordered/

___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/RNXTH3JRUZ5WH33AKHVOSZF34FGNMS6S/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: bz2.BZ2File doesn't support name?

2021-04-27 Thread Hasan Diwan
[response inline]

On Tue, 27 Apr 2021 at 04:55, Senthil Kumaran  wrote:

> why did you have a self.filename and (getter?) as name. You could set the
> attribute as name.
>

I wasn't aware that this was an option. -- H

-- 
OpenPGP: https://hasan.d8u.us/openpgp.asc
If you wish to request my time, please do so using
*bit.ly/hd1AppointmentRequest
*.
Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest
*.

Sent
from my mobile device
Envoye de mon portable
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/IHIRFXDMJ25IEOX74L5A5KSGAO4GWMQG/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: bz2.BZ2File doesn't support name?

2021-04-27 Thread Hasan Diwan
I just added the .name property to bz2.Bzip2File and added a test to verify
it. -- H

On Mon, 26 Apr 2021 at 21:40, Senthil Kumaran  wrote:

> There is an open bug report https://bugs.python.org/issue24258
>
> I guess it was overlooked. It could be a good task for someone
> interested.
> Please add me as a reviewer if you submit a patch, I can help review and
> move it forward.
>
> On Mon, Apr 26, 2021 at 9:22 PM  wrote:
>
>> I was surprised recently to discover that BZ2File (at least in 3.7)
>> doesn't have a name attribute.  Is there some fundamental reason name
>> couldn't be supported, or is it just a bug that it wasn't implemented?
>> ___
>> Python-Dev mailing list -- python-dev@python.org
>> To unsubscribe send an email to python-dev-le...@python.org
>> https://mail.python.org/mailman3/lists/python-dev.python.org/
>> Message archived at
>> https://mail.python.org/archives/list/python-dev@python.org/message/N3Q7AN5ISRGKS76GT4YSJX2SV6BNQIWM/
>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
> ___
> Python-Dev mailing list -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-dev@python.org/message/NCGH6EYRIDFANEAWDQ3KVE6LFXNS4ROV/
> Code of Conduct: http://python.org/psf/codeofconduct/
>


-- 
OpenPGP: https://hasan.d8u.us/openpgp.asc
If you wish to request my time, please do so using
*bit.ly/hd1AppointmentRequest
*.
Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest
*.

Sent
from my mobile device
Envoye de mon portable
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/B3CCQRW7UKPK3GD7A6ZSRYNRV3CVXG6V/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Merge Request Review Reminder

2021-03-19 Thread Hasan Diwan
For the side question,  you can always use rebase instead of merge. Let me
know if you need further particulars? -- H

On Fri, 19 Mar 2021 at 09:31, Faisal Mahmood 
wrote:

> Hello,
>
> Following my previous e-mail last month, thank you for responding.  I
> almost immediately got two reviewers who posted helpful comments on my PR
> which I believe have all been resolved now.
>
> Today, I got a notification to say my branch is stale again so wanted to
> understand what the next steps are.
>
> Is there anything else I can do to get my PR merged? This is my first time
> submitting a PR to Cpython so not sure of the workflow, or if I have missed
> something so would appreciate your guidance.
>
> SIDE QUESTION: Also, when I originally submitted this PR, I used a
> different Git config and user called "KillerKode" - however I was asked to
> change this, which is totally understandable so I changed everything to my
> name, however the commit history of that PR now contains some commits from
> my old Git config (as KillerKode) and some with my new Git config (as
> Faisal Mahmood).  I am wondering, when this gets merged, how can I make
> sure that the commits are squashed and any history of my previous git
> config (i.e. KillerKode) do not show?
>
> Kind regards,
>
> Faisal.
>
> On Mon, 15 Feb 2021 at 14:20, Faisal Mahmood 
> wrote:
>
>> Hello,
>>
>> I hope you are all well, I currently have an issue / merge request that
>> has become stale and as per the guidelines I am sending this e-mail to
>> request someone to review it for me please.
>>
>> Issue Number: 42861 (https://bugs.python.org/issue42861)
>> Pull Request: 24180 (https://github.com/python/cpython/pull/24180)
>>
>> This is my first contribution to CPython and I am very keen to get this
>> added as I think it is an almost essential enhancement missing from the
>> ipaddress module.  I would greatly appreciate if someone can take a look
>> and give me feedback, I am more than happy to help explain things, as I
>> appreciate this is not the most straightforward thing to do.
>>
>> Effectively, this method allows you to get the next closest network of
>> any prefix size, it works by effectively adding 1 to the host portion of
>> the network.  There is actually a very nice guide someone made on
>> stackexchange explaining how to do this calculation manually, I simply
>> followed this logic and have tested it as much as possible and it seems to
>> work great.  See here:
>> https://networkengineering.stackexchange.com/questions/7106/how-do-you-calculate-the-prefix-network-subnet-and-host-numbers/53994#53994
>>
>> Please let me know if there is anything else I can do to help get this
>> merged.
>>
>> Kind regards,
>>
>> Faisal.
>>
> ___
> Python-Dev mailing list -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-dev@python.org/message/DUL55S2S5C5AJO33LAPSL7MAOI5Y76WV/
> Code of Conduct: http://python.org/psf/codeofconduct/
>


-- 
OpenPGP: https://hasan.d8u.us/openpgp.asc
If you wish to request my time, please do so using
*bit.ly/hd1AppointmentRequest
*.
Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest
*.

Sent
from my mobile device
Envoye de mon portable
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/GNU2ZYFMDAMJURLZ7ECH5T5ZI7BG5V5R/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Resignation from Stefan Krah

2020-10-07 Thread Hasan Diwan
Sorry to see you go, Stefan. You will be missed. -- H

On Wed, 7 Oct 2020 at 14:50, Antoine Pitrou  wrote:

>
> Hello,
>
> Apparently, Stefan Krah (core developer and author of the C _decimal
> module) was silently banned or moderated from posting to python.org
> mailing-lists.  He asked me to forward the following message:
>
>
>
> ==
> Hello,
>
> Today I have left the Python organization.  It wasn't an easy decision,
> after all there are so many amazing people here.
>
> My vision of how development should be handled differs from many people
> who are currently active.  Other projects are more aligned with my
> preferences, so I prefer to focus my energies elsewhere.
>
> Having a shared understanding of what constitutes politeness is
> important and eliminates all sources of friction that sometimes result
> in losing one's patience.
>
> All the best,
>
> Stefan Krah
>
> 
>
>
> Best regards
>
> Antoine.
> ___
> Python-Dev mailing list -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-dev@python.org/message/ZIAN7ERZNF4ZE2B2SLYNRPVNERNACG5A/
> Code of Conduct: http://python.org/psf/codeofconduct/
>


-- 
OpenPGP:
https://sks-keyservers.net/pks/lookup?op=get=0xFEBAD7FFD041BBA1
If you wish to request my time, please do so using
*bit.ly/hd1AppointmentRequest
*.
Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest
*.

Sent
from my mobile device
Envoye de mon portable
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/6XYZV2MYBUFR5CQG6VQQTMLRUIF6E32N/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Thank you Larry Hastings!

2020-10-05 Thread Hasan Diwan
Thanks, Mr Hastings! -- H
-- 
OpenPGP:
https://sks-keyservers.net/pks/lookup?op=get=0xFEBAD7FFD041BBA1
If you wish to request my time, please do so using
*bit.ly/hd1AppointmentRequest
*.
Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest
*.

Sent
from my mobile device
Envoye de mon portable
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/7FLWTS362WJK66UPTT2242PSOF2PADRG/
Code of Conduct: http://python.org/psf/codeofconduct/


Re: [Python-Dev] [RELEASE] Python 2.7.16

2019-03-04 Thread Hasan Diwan
On Mon, 4 Mar 2019 at 16:33, Terry Reedy  wrote:

> On 3/3/2019 10:30 PM, Benjamin Peterson wrote:
>
> > I'm pleased to announce the immediate availability of Python 2.7.16 for
> download at https://www.python.org/downloads/release/python-2716/.
>

Congrats team! -- H
-- 
OpenPGP:
https://sks-keyservers.net/pks/lookup?op=get=0xFEBAD7FFD041BBA1
If you wish to request my time, please do so using
*bit.ly/hd1AppointmentRequest
*.
Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest
*.

Sent
from my mobile device
Envoye de mon portable
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [RELEASE] Python 2.7.15

2018-04-30 Thread Hasan Diwan
Congrats to all involved! -- H

On 30 April 2018 at 21:09, Benjamin Peterson  wrote:

> Greetings,
> I'm pleased to announce the immediate availability of Python 2.7.15, the
> latest bug fix release in the senescent Python 2.7 series.
>
> Source and binary downloads may be found on python.org:
>
>  https://www.python.org/downloads/release/python-2715/
>
> Bugs should be reported to https://bugs.python.org/
>
> The source tarball contains a complete changelog in the Misc/NEWS file.
> The only change since the release candidate is a fix for undefined C
> behavior that newer compilers (including GCC 8) have started to exploit.
>
> Users of the macOS binaries should note that all python.org macOS
> installers now ship with a builtin copy of OpenSSL. Additionally, there is
> a new additional installer variant for macOS 10.9+ that includes a built-in
> version of Tcl/Tk 8.6. See the installer README for more information.
>
> Happy May,
> Benjamin
> 2.7 release manager
> ___
> Python-Dev mailing list
> Python-Dev@python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/
> hasan.diwan%40gmail.com
>



-- 
OpenPGP:
https://sks-keyservers.net/pks/lookup?op=get=0xFEBAD7FFD041BBA1
If you wish to request my time, please do so using
http://bit.ly/hd1ScheduleRequest.
Si vous voudrais faire connnaisance, allez a
http://bit.ly/hd1ScheduleRequest.

Sent
from my mobile device
Envoye de mon portable
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Sets, Dictionaries

2018-03-28 Thread Hasan Diwan
Hi, Julia,

On 28 March 2018 at 21:14, Julia Kim  wrote:
>
> My suggestion is to change the syntax for creating an empty set and an
> empty dictionary as following.
>

You should craft your suggestion as a PEP and send it to the python-ideas
mailing list. Good luck! -- H

-- 
OpenPGP:
https://sks-keyservers.net/pks/lookup?op=get=0xFEBAD7FFD041BBA1
If you wish to request my time, please do so using
http://bit.ly/hd1ScheduleRequest.
Si vous voudrais faire connnaisance, allez a
http://bit.ly/hd1ScheduleRequest.

Sent
from my mobile device
Envoye de mon portable
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] iso8601 parsing

2017-10-23 Thread Hasan Diwan
If one simply replaces the 'T' with a space and trims it after the '.',
IIRC, it parses fine.
-- H

On Oct 23, 2017 15:16, "Mike Miller" <python-...@mgmiller.net> wrote:

> Hi,
>
> Could anyone put this five year-old bug about parsing iso8601 format
> date-times on the front burner?
>
> http://bugs.python.org/issue15873
>
> In the comments there's a lot of hand-wringing about different variations
> that bogged it down, but right now I only need it to handle the output of
> datetime.isoformat():
>
> >>> dt.isoformat()
> '2017-10-20T08:20:08.986166+00:00'
>
> Perhaps if we could get that minimum first step in, it could be iterated
> on and made more lenient in the future.
>
> Thank you,
> -Mike
> ___
> Python-Dev mailing list
> Python-Dev@python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/hasan.
> diwan%40gmail.com
>
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] New OpenSSL - has anyone ever looked at (in)compatibility with LibreSSL

2016-03-08 Thread Hasan Diwan
On 8 March 2016 at 00:49, Michael Felt  wrote:

> As a relative newcomer I may have missed a long previous discussion re:
> linking with OpenSSL and/or LibreSSL.
> In an ideal world this would be rtl linking, i.e., underlying complexities
> of *SSL libraries are hidden from applications.
>
> In short, when I saw this http://bugs.python.org/issue26465 Title:
> Upgrade OpenSSL shipped with python installers, it reminded me I need to
> start looking at LibreSSL again - and that, if not already done - might be
> something "secure" for python as well.
>

According to the libressl website, one of the projects primary goals is to
remain "backwards-compatible with OpenSSL", which is to say, to either have
code work without changes or to fail gracefully when it uses the deprecated
bits. It does seem it ships with OpenBSD. There is an issue open on bugs to
address whatever incompatibilities remain between LibreSSL and OpenSSL[1].
Perhaps you might want to take a look at that? -- H
1. https://bugs.python.org/issue23177

>
> Michael
> ___
> Python-Dev mailing list
> Python-Dev@python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/hasan.diwan%40gmail.com
>



-- 
OpenPGP: http://hasan.d8u.us/gpg.asc
Sent from my mobile device
Envoyé de mon portable
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] OpenBSD buildbot has many failures

2015-03-31 Thread Hasan Diwan
I, too, would be interested in having tests pass on OpenBSD (and NetBSD)
and am willing to do whatever I have to to make it be so. -- H

On 31 March 2015 at 21:52, Davin Potts pyt...@discontinuity.net wrote:

 Hi Victor —

 I am personally interested in seeing all tests pass on OpenBSD and am
 willing to put forth effort to help that be so.  I would be happy to be
 added to any issues that get opened against OpenBSD.  That said, I have
 concerns about the nature of when and how these failures came about —
 specifically I worry that other devs have committed the changes which
 prompted these failures yet they did not pay attention nor take
 responsibility when it happened.  Having monitored certain buildbots for a
 while to see how the community behaves and devs fail to react when a
 failure is triggered by a commit, I think we should do much better in
 taking individual responsibility for prompting these failures.


 Davin


  On Mar 28, 2015, at 04:53, Victor Stinner victor.stin...@gmail.com
 wrote:
 
  Hi,
 
  The OpenBSD buildbot always fail with the same failures since many
  months (ex: test_socket). Is someone interested to fix them? If no,
  would it be possible to turn it off to get a better view of
  regressions? Currently, they are too many red buildbots to quickly see
  regressions introduced by recent commits.
 
  http://buildbot.python.org/all/builders/x86%20OpenBSD%205.5%203.x
 
  Victor
  ___
  Python-Dev mailing list
  Python-Dev@python.org
  https://mail.python.org/mailman/listinfo/python-dev
  Unsubscribe:
 https://mail.python.org/mailman/options/python-dev/python%2Bpython_dev%40discontinuity.net

 ___
 Python-Dev mailing list
 Python-Dev@python.org
 https://mail.python.org/mailman/listinfo/python-dev
 Unsubscribe:
 https://mail.python.org/mailman/options/python-dev/hasan.diwan%40gmail.com




-- 
OpenPGP: https://hasan.d8u.us/gpg.key
Sent from my mobile device
Envoyé de mon portable
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Critical bash vulnerability CVE-2014-6271 may affect Python on *n*x and OSX

2014-09-26 Thread Hasan Diwan
Matěj,

On 26 September 2014 00:28, Matěj Cepl mc...@cepl.eu wrote:

 Where does your faith that other /bin/sh implementations (dash,
 busybox, etc.) are less buggy comes from?


The fact that they are simpler, in terms of lines of code. It's no
guarantee, but the less a given piece of code does, the less bugs it will
have. -- H
-- 
OpenPGP: https://hasan.d8u.us/gpg.key
Sent from my mobile device
Envoyé de mon portable
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Bluetooth 4.0 support in socket module

2014-07-14 Thread Hasan Diwan
Would http://lmbtfy.com/?q=contribute+to+python# be more or less
acceptable? -- H


On 14 July 2014 09:09, Skip Montanaro s...@pobox.com wrote:

 On Mon, Jul 14, 2014 at 10:53 AM, Brian Curtin br...@python.org wrote:
   Is there some online documentation with guidelines on how to
 contribute?
 
  http://lmgtfy.com/?q=contribute+to+python
 
 
  This response is unacceptable.

 Tim and I already discussed this offline. I admitted to being in a bit
 of a snarky mood today, and he seems to have accepted my post in good
 natured fashion. I should have at least added a smiley to my post. I
 will refrain from attempts at unadorned levity in the future.

 As penance, Tim or Brian, if you are are in or near Chicago, look me
 up. I'd be happy to buy y'all a beer.

 Skip
 ___
 Python-Dev mailing list
 Python-Dev@python.org
 https://mail.python.org/mailman/listinfo/python-dev
 Unsubscribe:
 https://mail.python.org/mailman/options/python-dev/hasan.diwan%40gmail.com




-- 
Sent from my mobile device
Envoyé de mon portable
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Bluetooth 4.0 support in socket module

2014-07-14 Thread Hasan Diwan
Tim,
Are  you aware of https://code.google.com/p/pybluez/ ? -- H


On 14 July 2014 13:42, Terry Reedy tjre...@udel.edu wrote:

 On 7/14/2014 9:57 AM, Tim Tisdall wrote:

 2 questions not answered yet.


  Also, is there a method to test changes against all the different *nix
 variations?


 We have a set of buildbots.
 https://www.python.org/dev/buildbot/


  Is Bluez the standard across the different *nix variations?


 No idea.

 --
 Terry Jan Reedy


 ___
 Python-Dev mailing list
 Python-Dev@python.org
 https://mail.python.org/mailman/listinfo/python-dev
 Unsubscribe: https://mail.python.org/mailman/options/python-dev/
 hasan.diwan%40gmail.com




-- 
Sent from my mobile device
Envoyé de mon portable
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Documentation Oversight

2014-06-10 Thread Hasan Diwan
From the csv module pydoc:
The optional dialect parameter is discussed below

The discussion is actually above the method. Present in 2.7.6. -- H

-- 
Sent from my mobile device
Envoyé de mon portable
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Logging Module format

2013-10-20 Thread Hasan Diwan
I've been using the logging module recently and noticed the default format
doesn't timestamp log entries. I've not figured out how to change the
format after initialization. This is python 2.7, on Mac OS X. Help, anyone?
-- H

-- 
Sent from my mobile device
Envoyé de mon portable
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] FWD: FTP URLs for Python source

2009-05-23 Thread Hasan Diwan
 Aahz wrote:
 Yes, this is ancient, I've been putting off dealing with it because I
 couldn't figure out who should handle it.  At this point, I think that if
 anyone does it should be the release team, therefore I'm forwarding to
 python-dev.  Feel free to tell me I made the wrong choice.  ;-)

Regarding OpenBSD, what's the problem with just using the port -- the
2.6 version seems to work fine.
-- 
Sent from my mobile device
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Proposal: add odict to collections

2008-06-14 Thread Hasan Diwan
2008/6/14 Talin [EMAIL PROTECTED]:
 There's been a lot of controversy/confusion about ordered dicts. One of the
 sources of confusion is that people mean different things when they use the
 term ordered dict: In some cases, the term is used to mean a dictionary
 that remembers the order of insertions, and in other cases it is used to
 mean a sorted dict, i.e. an associative data structure in which the entries
 are kept sorted. (And I'm not sure that those are the only two
 possibilities.)

Have the comparison function passed in as a parameter then, if it's
None, then have it maintain the order of insertion? Something like:
def __init__(self, cmpfunc = None):
   self.dict = dict()

def __getattr__(self, key):
   try: return self.key

-- 
Cheers,
Hasan Diwan [EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] No releases tonight

2008-03-01 Thread Hasan Diwan
I'll volunteer to do a French translation of the release.
-- 
Cheers,
Hasan Diwan [EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Math.sqrt(-1) -- nan or ValueError?

2007-09-04 Thread Hasan Diwan
I'm trying to fix a failing unit test in revision 57974. The test in
question claims that math.sqrt(-1) should raise ValueError; the code itself
gives nan as a result for that expression. I can modify the test and
therefore have it pass, but I'm not sure if an exception would be more
appropriate. I'd be happy for some direction here. Many thanks!

-- 
Cheers,
Hasan Diwan [EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Math.sqrt(-1) -- nan or ValueError?

2007-09-04 Thread Hasan Diwan
On 04/09/07, Guido van Rossum [EMAIL PROTECTED] wrote:

 Is this on OSX? That test has been failing (because on that platform
 sqrt(-1) returns nan instead of raising ValueError) for years -- but
 the test is only run when run in verbose mode, which mostly hides the
 issue.  Have you read the comment for the test?


Indeed, I am on OSX. Yes, I have read the comment for the test. Would the
following pseudocode be an acceptable fix for the problem:
if sys.platform == 'darwin' and math.sqrt(-1) == nan:
 return
else:
  try:
 x = math.sqrt(-1)
  except ValueError:
 pass
  ...
or should I just not bother?
-- 
Cheers,
Hasan Diwan [EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] test_asyncore fails intermittently on Darwin

2007-07-26 Thread Hasan Diwan
test_asyncore fails intermittently on Darwin in trunk rev 56558; it
seems a matter of executing the test too fast and not waiting for the
TCP_WAIT state to expire. I think somebody encountered this problem
previously with another module (socket_server) and I'm unsure how that
was sorted.
-- 
Cheers,
Hasan Diwan [EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] test_socketserver flakey?

2007-04-03 Thread Hasan Diwan

Guido van Rossum wrote:

 The test_socketserver unittest seems to be failing occasionally for
 me. (Svn HEAD, Ubuntu dapper.)



Specifically, which test is failing?

--
Cheers,
Hasan Diwan [EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Makefile.pre.in Patch

2006-12-03 Thread Hasan Diwan

The attached patch ensures that the $(DESTDIR) exists before
installing the built binaries. It has been tested on Mac OS X. The
patch is attached.
--
Cheers,
Hasan Diwan [EMAIL PROTECTED]


Makefile.patch
Description: Binary data
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Fwd: [ python-Feature Requests-1567948 ] poplib.py list interface

2006-10-04 Thread Hasan Diwan
I've made some changes to poplib.py, submitted them to Sourceforge, and emailed Piers regarding taking over maintenance of the module. I have his support to do so, along with Guido's. However, I would like to ask one of the more senior developers to review the change and commit it. 
Many thanks for your kind assistance! -- Forwarded message --From: SourceForge.net 
[EMAIL PROTECTED]Date: 04-Oct-2006 13:29
Subject: [ python-Feature Requests-1567948 ] poplib.py list interfaceTo: [EMAIL PROTECTED]
Feature Requests item #1567948, was opened at 2006-09-29 11:51
Message generated for change (Comment added) made by hdiwan650You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=355470aid=1567948group_id=5470
Please note that this message will contain a full copy of the comment thread,including the initial issue submission, for this request,not just the latest update.Category: Python LibraryGroup: Python 
2.6Status: OpenResolution: NonePriority: 5Submitted By: Hasan Diwan (hdiwan650)Assigned to: Nobody/Anonymous (nobody)Summary: poplib.py list interfaceInitial Comment:Adds a list-like interface to 
poplib.py, poplib_as_list.--Comment By: Hasan Diwan (hdiwan650)Date: 2006-10-04 13:29Message:Logged In: YESuser_id=1185570
I changed it a little bit, added my name at the top of thefile as the maintainer.--You can respond by visiting:

https://sourceforge.net/tracker/?func=detailatid=355470aid=1567948group_id=5470-- Cheers,Hasan Diwan 
[EMAIL PROTECTED]

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com