[Python-Dev] Redirection of ar.pycon.org

2014-12-18 Thread Facundo Batista
Hi! Don't remember where to ask for changing the redirection of that domain name. Somebody knows? I need for the redirection to be to pycon.python.org.ar (and we'll take care of proper year-by-year redirection from there). Thanks! -- .Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr:

[Python-Dev] Enum is really serializable using json?

2015-02-21 Thread Facundo Batista
We have this issue closed as resolved: http://bugs.python.org/issue18264 It's called "enum.IntEnum is not compatible with JSON serialisation", and it looks that after a long conversation they added proper support for it in Py3.4. However, this is still failing: Python 3.4.2 (default, Oct 8 2

Re: [Python-Dev] Enum is really serializable using json?

2015-02-21 Thread Facundo Batista
On Sat, Feb 21, 2015 at 3:50 PM, Benjamin Peterson wrote: >> Am I failing to understand the bug tracker saying the patch was >> applied for Py3.4? > > As the issue title suggests, IntEnum but not Enum supports JSON > serialization. Arghhh.. stupid of me. Sorry for the noise, and thanks! -- .

Re: [Python-Dev] str.lstrip bug?

2015-03-10 Thread Facundo Batista
On Tue, Mar 10, 2015 at 2:27 PM, lou xiao wrote: > tiny➜ ~ python > Python 2.7.5+ (default, Feb 27 2014, 19:37:08) > [GCC 4.8.1] on linux2 > Type "help", "copyright", "credits" or "license" for more information. a='device_info' a.lstrip('device') > '_info' a.lstrip('device_') > 'nf

[Python-Dev] Not being able to compile: "make: *** [Programs/_freeze_importlib] Error 1"

2015-04-16 Thread Facundo Batista
Hello! It's been a while since I compiled python and run the test suite. Now that I'm starting to work in a patch, wanted to do that as a sanity check, and even "./configure" finishing ok, "make" fails :/ (I'm on Ubuntu Trusty, all packages updated, all dependencies theorically installed). Full

Re: [Python-Dev] Not being able to compile: "make: *** [Programs/_freeze_importlib] Error 1"

2015-04-16 Thread Facundo Batista
On Thu, Apr 16, 2015 at 6:34 PM, R. David Murray wrote: > Most likely you just need to run 'make touch' so that it doesn't try > to rebuild stuff it doesn't need to (because we check in those > particular build artifacts, like the frozen importlib). "make touch" didn't fix it, but when doing tha

[Python-Dev] How to behave regarding commiting

2015-04-16 Thread Facundo Batista
Hola! I'm asking this because quite some time passed since I was active in the development of our beloved language. I'm trying to not break any new rule not known by me. I opened a bug recently [0], somebody else proposed a patch that I like. However, that patch has no test. I will do a test for

[Python-Dev] Committing into which branches?

2015-04-22 Thread Facundo Batista
Hola! I just commited a simple improvement to HTTPError repr, and checking in the source code page [0], I see that my commit has a small "default" besides it; and other commits don't have that, but have 2.7, or 3.4, etc... So, question: Did I commit in the correct branch? Should I have done anyth

Re: [Python-Dev] Committing into which branches?

2015-04-22 Thread Facundo Batista
On Wed, Apr 22, 2015 at 6:46 PM, Brett Cannon wrote: > The default branch is going to become 3.5, so you're fine. Thanks!! -- .Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ Twitter: @facundobatista ___ Python-D

Re: [Python-Dev] Process to remove a Python feature

2018-05-03 Thread Facundo Batista
2018-05-02 14:24 GMT-03:00 Brett Cannon : >> Maybe we should create a tool to list features scheduled for removal, >> and open a discussion to check each removal? > > I don't know if a tool is necessary. We could have a meta issue or text file > somewhere to track what's to be removed in a certain

[Python-Dev] PEP 257 and __init__

2015-12-29 Thread Facundo Batista
Hola! (I was doubting in sending this mail to this list or to the normal one, but as it affects a "style recommendation" we propose for the whole community, I finally sent it here) I was reading PEP 257 and it says that all public methods from a class (including __init__) should have a docstring.

Re: [Python-Dev] PEP 257 and __init__

2015-12-29 Thread Facundo Batista
On Tue, Dec 29, 2015 at 4:38 PM, Andrew Barnert wrote: > Isn't the same thing true for every special method? There are lots of classes > where __add___ just says "a.__add__(b) = a + b" or (better following the PEP) > "Return self + value." But, in the rare case where the semantics of "a + b" >

Re: [Python-Dev] PEP 257 and __init__

2016-01-04 Thread Facundo Batista
On Mon, Jan 4, 2016 at 4:49 AM, Nick Coghlan wrote: > When some of the default settings for the pep8 utility became a > problem, I was able to talk to the developers and persuade them to > tune their defaults to be more in line with the actual PEP text, and > keep their extensions to optional set

[Python-Dev] Web redirect to PyAr

2016-03-06 Thread Facundo Batista
Hello! Sending mail here because I really don't know where this is handled :) At some point in the past we had a redirect from python.org/ar (note the slash, not a point) to a PyAr site. Now it's not working, it 404s. It should be redirected to python.org.ar (note the point). Thanks! -- .

Re: [Python-Dev] Web redirect to PyAr

2016-03-07 Thread Facundo Batista
On Mon, Mar 7, 2016 at 4:08 PM, Berker Peksağ wrote: >> At some point in the past we had a redirect from python.org/ar (note >> the slash, not a point) to a PyAr site. >> >> Now it's not working, it 404s. >> >> It should be redirected to python.org.ar (note the point). > > Can you try again? It s

[Python-Dev] Counting references to Py_None

2016-03-20 Thread Facundo Batista
Hello! I'm seeing that our code increases the reference counting to Py_None, and I find this a little strange: isn't Py_None eternal and will never die? What's the point of counting its references? Thanks! -- .Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar

Re: [Python-Dev] Problemas con modulos

2016-04-29 Thread Facundo Batista
Just to mention that I already answered this (in Spanish, in private), redirecting to proper lists. Regards, 2016-04-29 5:04 GMT-03:00 Felipe Ruiz via Python-Dev : > Hola, > > Estoy intentando conectarme a twitter para recibir tweets, sin embargo > algunos códigos que he bajado de internet, me

Re: [Python-Dev] Problemas con modulos

2016-04-29 Thread Facundo Batista
2016-04-29 13:52 GMT-03:00 Guido van Rossum : > Thank you Facundo, and thanks for following up here! (I wonder if it > wouldn't have been just as efficient if you had just BCC'ed the list to your > original response? Or perhaps with a brief English note at the top?) Probably yes, I didn't want t

Re: [Python-Dev] Why does PEP 7/8 explicitly suggest 2 spaces after a period?

2016-05-20 Thread Facundo Batista
On Fri, May 20, 2016 at 1:27 PM, Brett Cannon wrote: > Is there a specific reason for calling out two spaces in comments after a > period(I realize it's probably for consistency, but I sure don't ever think > about this when I write comment)? Otherwise who actually still writes using > two spaces

Re: [Python-Dev] The pysandbox project is broken

2013-11-13 Thread Facundo Batista
On Wed, Nov 13, 2013 at 4:37 AM, Maciej Fijalkowski wrote: >> Do you think it would be productive to create an independent Python >> compiler, designed with sandboxing in mind from the beginning? > > PyPy sandbox does work FYI > > It might not do exactly what you want, but it both provides a full

Re: [Python-Dev] Add transform() and untranform() methods

2013-11-15 Thread Facundo Batista
On Thu, Nov 14, 2013 at 7:32 PM, Victor Stinner wrote: > I would prefer to split the registry of codecs to have 3 registries: > > - "encoding" (a better name can found): encode str=>bytes, decode bytes=>str > - bytes: encode bytes=>bytes, decode bytes=>bytes > - str: encode str=>str, decode str=

[Python-Dev] Servicing pypi.python.org

2018-10-17 Thread Facundo Batista
Hola! tl;dr: can we have a (semi)permanent redirect from pypi.python.org to pypi.org? I own/maintain a project called `fades`, which is an automatic virtualenv creator/manager [0]. While it relies on `pip` itself for the heavy work on the virtualenv itself, `fades` checks if all required depende

Re: [Python-Dev] Servicing pypi.python.org

2018-10-20 Thread Facundo Batista
El jue., 18 de oct. de 2018 a la(s) 00:07, Donald Stufft (don...@stufft.io) escribió: > tl;dr: can we have a (semi)permanent redirect from pypi.python.org to > pypi.org? > > > > This already exists: Indeed, it works! I was in a place with a very crappy internet, but I never suspected the issue I

[Python-Dev] About "python-porting" mail list

2018-12-23 Thread Facundo Batista
Hello! This list (which I co-admin, with Georg) is getting less and less traffic as months pass by. See: https://mail.python.org/pipermail/python-porting/ The interwebs has been collecting ton of resources about porting py2 to 3 during these years. Any not-yet-answered question surely can be d

Re: [Python-Dev] About "python-porting" mail list

2018-12-24 Thread Facundo Batista
El dom., 23 de dic. de 2018 a la(s) 14:20, Barry Warsaw (ba...@python.org) escribió: > > Can we kill this list? > > Is it a maintenance burden? If not, then maybe we should wait until 2.7 is > EOL’d? There might be an uptick in traffic as reality sets in for more > people. > It's a good idea

[Python-Dev] Re: What to do about invalid escape sequences

2019-08-05 Thread Facundo Batista
El lun., 5 de ago. de 2019 a la(s) 01:25, escribió: > > We should revisit what we want to do (if anything) about invalid escape > sequences. > > For Python 3.8, the DeprecationWarning was converted to a SyntaxWarning which > is visible by default. The intention is to make it a SyntaxError in Py

[Python-Dev] Making submodules available when importing top one

2013-10-16 Thread Facundo Batista
(all this using Python 3.4.0a3+) In the stdlib, I see that (as an example): >>> import os >>> os.path.abspath >>> os.path However, for other (newer) modules: >>> import urllib >>> urllib.requests.urlopen Traceback (most recent call last): File "", line 1, in AttributeError: 'module' objec

Re: [Python-Dev] Translated Python documentation

2017-02-22 Thread Facundo Batista
On Wed, Feb 22, 2017 at 9:10 AM, Victor Stinner wrote: > There are a least 3 groups of people who are translating the Python > documentation in their mother language (french, japanese, spanish). We translated (and even printed/published) the Tutorial (we're currently maintaining the Py2 and Py3

Re: [Python-Dev] Translated Python documentation

2017-02-22 Thread Facundo Batista
On Wed, Feb 22, 2017 at 3:04 PM, Serhiy Storchaka wrote: > My largest apprehension is that the documentation can be outdated and > quickly become degraded if main contributors left it. This is why we focus in the Tutorial only, but also: a) The tutorial is mostly the "entry point" to Python's d

Re: [Python-Dev] Impact of Namedtuple on startup time

2017-07-17 Thread Facundo Batista
On Mon, Jul 17, 2017 at 9:43 AM, Antoine Pitrou wrote: > As for 2), startup time is actually a very important consideration > nowadays, both for small scripts *and* for interactive use with the > now very wide-spread use of Jupyter Notebooks. A 1 ms. cost when > importing a single module can tra

[Python-Dev] Packing a long list of numbers into memory

2021-10-10 Thread Facundo Batista
Hello everyone! I need to pack a long list of numbers into shared memory, so I thought about using `struct.pack_into`. Its signature is struct.pack_into(format, buffer, offset, v1, v2, ...) I have a long list of nums (several millions), ended up doing the following: struct.pack_into(f'

[Python-Dev] Re: Packing a long list of numbers into memory

2021-10-10 Thread Facundo Batista
El dom, 10 de oct. de 2021 a la(s) 11:50, Serhiy Storchaka (storch...@gmail.com) escribió: > > 10.10.21 17:19, Facundo Batista пише: > > I have a long list of nums (several millions), ended up doing the following: > > > > struct.pack_into(f'{len(nums)}Q', bu

[Python-Dev] Re: Packing a long list of numbers into memory

2021-10-11 Thread Facundo Batista
El dom, 10 de oct. de 2021 a la(s) 15:20, Gregory P. Smith (g...@krypto.org) escribió: >> Is that because my particular case is very uncommon? Or maybe we *do* >> want this but we don't have it yet? Or do we already have a better way >> of doing this? >> >> Thanks! >> >> [0] https://linkode.org/#9

[Python-Dev] Re: Packing a long list of numbers into memory

2021-10-11 Thread Facundo Batista
El lun, 11 de oct. de 2021 a la(s) 06:50, Simon Cross (hodgestar+python...@gmail.com) escribió: > Multiprocessing sort of added support for this via multiprocessing.Array -- > see > https://stackoverflow.com/questions/9754034/can-i-create-a-shared-multiarray-or-lists-of-lists-object-in-python-fo

[Python-Dev] 3.10 or 4.0?

2019-11-28 Thread Facundo Batista
Hello! Did we take a decision of what comes after 3.9? Do we have a PEP for that decision? (couldn't find it) (not arguing in favor of one or another, just want to know the rationale behind it) Thanks! -- .Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org.ar/ T

[Python-Dev] Re: 3.10 or 4.0?

2019-11-28 Thread Facundo Batista
El jue., 28 de nov. de 2019 a la(s) 12:35, Facundo Batista (facundobati...@gmail.com) escribió: > Did we take a decision of what comes after 3.9? > > Do we have a PEP for that decision? (couldn't find it) Thanks everybody for the responses. So 3.10 it is, not a hard made dec

[Python-Dev] Re: About "python-porting" mail list

2020-01-14 Thread Facundo Batista
El dom., 23 de dic. de 2018 a la(s) 14:20, Barry Warsaw (ba...@python.org) escribió: > > On Dec 23, 2018, at 07:29, Facundo Batista wrote: > > > > This list (which I co-admin, with Georg) is getting less and less > > traffic as months pass by. See: > > > >

[Python-Dev] Re: About "python-porting" mail list

2020-01-20 Thread Facundo Batista
El mar., 14 de ene. de 2020 a la(s) 16:36, Mark Sapiro (m...@msapiro.net) escribió: > > The list has been removed. The archives are still available at > . > Thank you!! -- .Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.p

[Python-Dev] Procedure for trivial PRs

2020-08-13 Thread Facundo Batista
Hello! I just proposed a PR with a small fix to the docs. I'd like to know the procedure to land it. https://github.com/python/cpython/pull/21851 It's super small, so no bug is opened for it, and IMO no mention is needed in the NEWS for the fix. It's waiting for a "core review", which is a go

[Python-Dev] Re: Procedure for trivial PRs

2020-08-13 Thread Facundo Batista
El jue., 13 de ago. de 2020 a la(s) 16:55, Mariatta (maria...@python.org) escribió: > > > On Thu, Aug 13, 2020 at 12:51 PM Facundo Batista > wrote: >> >> It's waiting for a "core review", which is a good thing (and by all >> means welcomed). But as

[Python-Dev] Re: Procedure for trivial PRs

2020-08-13 Thread Facundo Batista
El jue., 13 de ago. de 2020 a la(s) 17:32, Facundo Batista (facundobati...@gmail.com) escribió: > >> > > > > As a core dev you can still merge it yourself without needing to wait for > > review, even when it has the "awaiting core review" label. > > Awe

[Python-Dev] Re: Procedure for trivial PRs

2020-08-13 Thread Facundo Batista
El jue., 13 de ago. de 2020 a la(s) 17:41, Facundo Batista (facundobati...@gmail.com) escribió: > > El jue., 13 de ago. de 2020 a la(s) 17:32, Facundo Batista > (facundobati...@gmail.com) escribió: > > > >> > > > > > > As a core dev you can still mer

[Python-Dev] Re: Procedure for trivial PRs

2020-08-13 Thread Facundo Batista
El jue., 13 de ago. de 2020 a la(s) 18:42, Terry Reedy (tjre...@udel.edu) escribió: > The backport bot occasionally fails, sometimes for external reasons. If > you hit a problem, you can ask me for help as I have probably hit all > the failure modes by now. Thanks! One of the backport failed so

[Python-Dev] PR stuck in Travis

2020-08-21 Thread Facundo Batista
Hello! I want to land this PR: https://github.com/python/cpython/pull/21466 It's doc only, so it only run the docs part in GH actions. All fine, except Travis, which is "required", but didn't finish. I'm not finding a way to restart that job. - from Github: I don't find any restart/resend job

[Python-Dev] Re: PR stuck in Travis

2020-08-22 Thread Facundo Batista
El vie., 21 de ago. de 2020 a la(s) 15:54, Guido van Rossum (gu...@python.org) escribió: > > Does closing and reopening the PR work? > Yeap, it worked, thanks! -- .Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org.ar/ Twitter: @facundobatista _

[Python-Dev] Re: Buildbot migrated to a new server

2020-09-04 Thread Facundo Batista
Thanks Victor and the rest of the Night’s Watch for all the work in our buildbots! El jue., 3 de sep. de 2020 a la(s) 12:08, Victor Stinner (vstin...@python.org) escribió: > > Hi, > > tl; dr Buildbots were unstable for 3 weeks but the issue is mostly resolved. > > > Since last January, the disk of

Re: [Python-Dev] Tracker archeology

2009-02-10 Thread Facundo Batista
2009/2/10 Daniel (ajax) Diniz : > If anyone is interested in being added as nosy for any category of > bugs, let me know and I'll do that as I scan the tracker. Anything related to Decimal, add me. Thanks! -- .Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar

Re: [Python-Dev] Regexp 2.7

2009-03-09 Thread Facundo Batista
2009/3/7 Antoine Pitrou : > Matthew Barnett has been doing a lot of work on the regular expressions engine > (it seems he hasn't finished yet) under http://bugs.python.org/issue2636. > However, the patches are really huge and touch all of the sre internals. I > wonder what the review process can b

[Python-Dev] Avoiding file descriptors leakage in subprocess.Popen()

2009-06-12 Thread Facundo Batista
In a long lived process at work, we started leaking file descriptors. The problem were that subprocess.Popen._execute_child() method creates two files descriptors through a call to os.pipe(), and after some work it closes them. But an os.read() on the descriptor was interrupted (EINTR), so an exce

Re: [Python-Dev] Avoiding file descriptors leakage in subprocess.Popen()

2009-06-13 Thread Facundo Batista
On Fri, Jun 12, 2009 at 9:06 PM, Christian Heimes wrote: > How about a nice 'n shiny context wrapper for the pipe: I'll do this! Thank you for the suggestion! BTW, as this is a good way of avoiding the FD leakage, should this context wrapper for pipe() be in the stdlib? Regards, -- .Facu

Re: [Python-Dev] Avoiding file descriptors leakage in subprocess.Popen()

2009-06-18 Thread Facundo Batista
On Sat, Jun 13, 2009 at 9:40 AM, Facundo Batista wrote: >> How about a nice 'n shiny context wrapper for the pipe: > > I'll do this! > > Thank you for the suggestion! Boo, I can not take this approach, neither the previous one. The reason is very specific for subproc

Re: [Python-Dev] surprised to "++" and "--"

2009-09-25 Thread Facundo Batista
2009/9/23 Wee Binn : > I know that there is no "++" or "--" operator in python, but if "var++" > or something like that in my code(you know, most of C/C++ coders may like > this),there is nothing wrong reported and program goes on just like > expected!! > This is obscure, maybe a bug. You

Re: [Python-Dev] PEP 3003 - Python Language Moratorium

2009-11-03 Thread Facundo Batista
On Tue, Nov 3, 2009 at 2:35 PM, Guido van Rossum wrote: > fierce discussion here on python-dev. It's important to me that if if > this is accepted it is a "rough consensus" decision (working code we +1 to the PEP. -- .Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.pytho

Re: [Python-Dev] bug triage

2010-01-06 Thread Facundo Batista
On Wed, Jan 6, 2010 at 8:19 AM, Chris Withers wrote: > Is there a high volume of incoming bugs to the Python tracker? > If so, I'd like to help with triaging. I think I have all the necessary > access, what I'm missing is the knowledge of how to set myself up to get > notifications of new bugs...

Re: [Python-Dev] Improved Traceback Module

2010-01-28 Thread Facundo Batista
On Thu, Jan 28, 2010 at 10:33 AM, Benjamin Schweizer wrote: > I've updated the traceback.py module; my improved version dumps all > local variabes from the stack trace, which helps in debugging rare > problems. You can find details in my latest blog post here: This is like the django traceback i

Re: [Python-Dev] Decimal <-> float comparisons in py3k.

2010-03-16 Thread Facundo Batista
On Tue, Mar 16, 2010 at 9:41 AM, Mark Dickinson wrote: > On the one hand there's something to be said for maintaining a clean > separation between the float and Decimal types, allowing only explicit > conversions from one to the other;  mixed-type arithmetic between > floats and Decimals was very

Re: [Python-Dev] Mixing float and Decimal -- thread reboot

2010-03-19 Thread Facundo Batista
On Fri, Mar 19, 2010 at 5:50 PM, Guido van Rossum wrote: > As a downside, there is the worry that inadvertent mixing of Decimal > and float can compromise the correctness of programs in a way that is > hard to detect. But the anomalies above indicate that not fixing the Decimal already has somet

Re: [Python-Dev] Incorrect length of collections.Counter objects / Multiplicity function

2010-05-20 Thread Facundo Batista
On Thu, May 20, 2010 at 5:59 PM, Gustavo Narea wrote: > Anyone? The best place to post a bug is the bug tracker [0]: you'll surely receive proper attention there. Regards, [0] http://bugs.python.org/ -- .Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ __

Re: [Python-Dev] Future of 2.x.

2010-06-09 Thread Facundo Batista
On Wed, Jun 9, 2010 at 8:58 AM, Paul Moore wrote: > On that basis I'm +1 on Alexandre's proposal. A 3rd party planning on > working on a 2.8 release (not that I think such a party currently > exists) can step up and extract the relevant tickets for their later > reference if they feel the need. L

[Python-Dev] MemoryError... how much memory?

2010-10-27 Thread Facundo Batista
There are a lot of places where Python or modules do something like: self->buf = (char *)malloc(size); if (!self->buf) { PyErr_SetString(PyExc_MemoryError, "out of memory"); At job, we're having some MemoryErrors, and one thing that we would love to know, if how much memory

Re: [Python-Dev] MemoryError... how much memory?

2010-10-27 Thread Facundo Batista
On Wed, Oct 27, 2010 at 12:05 PM, Benjamin Peterson wrote: > Isn't this usually when you do something like [None]*2**300? In that > case, wouldn't you know how much memory you're requesting? It could happen on any malloc. It depends on how much you have free. Don't think on getting a MemoryErro

Re: [Python-Dev] MemoryError... how much memory?

2010-10-28 Thread Facundo Batista
On Wed, Oct 27, 2010 at 8:27 PM, Nick Coghlan wrote: > If you see MemoryError (5 bytes), the things you go looking for are > very different from those you look for when you see MemoryError(1 > gajillion bytes). (i.e. for the former, you look for a memory or other > resource leak, for the latter,

Re: [Python-Dev] [Preview] Comments and change proposals on documentation

2010-11-26 Thread Facundo Batista
On Wed, Nov 24, 2010 at 5:24 PM, Georg Brandl wrote: > at , you can look at a version of the 3.2 > docs that has the upcoming commenting feature.  JavaScript is mandatory. This is awesome!! Thanks for this work, remember to buy you a beer next PyCon! > Credits g

Re: [Python-Dev] Strategy for converting the decimal module to C

2006-07-26 Thread Facundo Batista
2006/7/26, Raymond Hettinger <[EMAIL PROTECTED]>: > Greg Ewing > > And all of this is getting rather far away from where we > > started, which was simply instrumenting a piece of code > > to count floating point exceptions. > > I'm thinking of adding a note to the Py2.5 docs that the counting feat

Re: [Python-Dev] Nondeterministic long-to-float coercion

2006-10-19 Thread Facundo Batista
2006/10/19, Raymond Hettinger <[EMAIL PROTECTED]>: > My colleague got an odd result today that is reproducible on his build > of Python (RedHat's distribution of Py2.4.2) but not any other builds > ... > >>> set(-194 * (1/100.0) for i in range(1)) > set([-19400.0, -193995904.0, -19

Re: [Python-Dev] Code working in both 2.x and 3.X

2007-01-12 Thread Facundo Batista
Ron Adam wrote: > I thinking that the 3.0.X version be considered a try it out (alpha) release > to > generate plenty of feed back, and the 3.1.X version be the first version > meant > for actual development use. +1 for this approach. I think it's very clear, and everybody will understand it

Re: [Python-Dev] Floor division

2007-01-22 Thread Facundo Batista
Guido van Rossum wrote: > The ints aren't really embedded in Decimal, so we don't have to do > that there (but we could). -0. If we can't achieve it without disturbing the rest of Python, I'll try as much as possible to keep what the Spec proposes. Regards, -- . Facundo . Blog: http://www.t

Re: [Python-Dev] Floor division

2007-01-23 Thread Facundo Batista
Tim Peters wrote: > Which "Spec"? For example, floor division isn't mentioned at all in > IBM's proposed decimal standard, or in PEP 327, or in the Python Oops, you're right. My fault, sorry. > Library Reference section on `decimal`. It's an artifact of trying to > extend Python's integer mod

Re: [Python-Dev] Adding timeout option to httplib...connect()

2007-02-27 Thread Facundo Batista
[EMAIL PROTECTED] wrote: > Guido, I looked at urllib2 and quickly gave up. I have no idea how that > code works (where is a lower level library's connection object instantiated, > for example?). I presume with timeouts in the lower level libraries someone > who knows how urllib2 works will be ab

Re: [Python-Dev] Integer division operator can give float result?

2007-02-28 Thread Facundo Batista
Greg Ewing wrote: > Is this intentional? I would have expected the > // operator to always give an integer result. > > Python 2.3 (#1, Aug 5 2003, 15:52:30) > [GCC 3.1 20020420 (prerelease)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> 7.0 // 2 > 3.0

Re: [Python-Dev] Python-3000 upgrade path

2007-03-05 Thread Facundo Batista
Thomas Wouters wrote: > developers and people who develop their own software. I would like to hear > from people who have concrete doubts about this upgrade path. I don't mean Disclaimer: I'm not involved in Py3k, and not even tried it once. And don't know the details of the tool to "transform" P

[Python-Dev] Adding socket timeout to urllib2

2007-03-05 Thread Facundo Batista
I studied which modifications I need to make into urllib2 to support a socket timeout. - I'll modify urlopen for it to accept a socket_timeout parameter, default to None - Request will also accept a socket_timeout parameter, default to None. It will keep it in a socket_timeout attribute, so it cou

[Python-Dev] About code comments policy (and Handler order in urllib2)

2007-03-05 Thread Facundo Batista
One question and one answer (this is a balanced post, :p). The question is what to do when we found a question in a code. Reading urllib2 I found: # XXX why does self.handlers need to be sorted? I found the answer, so I deleted that line, and added a comment in that place just to clarify. Sh

Re: [Python-Dev] Adding socket timeout to urllib2

2007-03-06 Thread Facundo Batista
Guido van Rossum wrote: >> - I'll modify urlopen for it to accept a socket_timeout parameter, >> default to None > > I'd call it timeout. There can't really be much ambiguity can there? Yes and no. For example, if I do a ``urllib2.urlopen("ftp://ftp.myhome.com.ar/blah.txt";, timeout=10)``, the t

Re: [Python-Dev] Encouraging developers

2007-03-07 Thread Facundo Batista
A.M. Kuchling wrote: > FWIW, I have a related perception that we aren't getting new core > developers. These two problems are probably related: people don't get > patches processed and don't become core developers, and we don't have > enough core developers to process patches in a timely way. And

Re: [Python-Dev] Encouraging developers

2007-03-08 Thread Facundo Batista
Martin v. Löwis wrote: >> - How can I know if a patch is still open? > > Easy: if it's marked as Open. > >> - I found a problem, and know how to fix it, but what else need to do? > > Go to www.python.org, then "CORE DEVELOPMENT", then "Patch submission". > >> - Found a problem in the docs, for thi

[Python-Dev] Adding timeout to socket.py and httplib.py

2007-03-08 Thread Facundo Batista
I studied Skip patch, and I think he is in good direction: add a NetworkConnection object to socket.py, and then use it from the other modules. This NetworkConnection basically does what all the other modules do once and again, so no mistery about it (basically calls getaddrinfo over the receive

[Python-Dev] [ 1673007 ] urllib2 requests history + HEAD support

2007-03-12 Thread Facundo Batista
This patch was posted by "koder_ua". I think that Request must have a "request type" parameters, so people can send "HEAD" requests easily. But it seems to me that keeping a request history in the module is bad, because it can easily grow up to thousands and explode (a.k.a. consume too much memor

Re: [Python-Dev] pypy's interpreter/highlevel backend features

2007-03-15 Thread Facundo Batista
holger krekel wrote: > Hello Python-dev! Hello Holger! > We'd be very happy about feedback and opinions/questions > (preferably until Monday, 19th March) > > > http://codespeak.net/pypy/extradoc/eu-report/D12.1_H-L-Backends_and_Feature_Prototypes-interim-2007-03-12.pdf It seems quite int

Re: [Python-Dev] Status of thread cancellation

2007-03-15 Thread Facundo Batista
Martin v. Löwis wrote: > asynchronous exceptions in a sensible way. I have to research somewhat > more, but I think the standard solution to the problem in operating > system (i.e. disabling interrupts at certain points, explicitly > due to code or implicitly as a result of entering the interrupt

Re: [Python-Dev] Adding timeout to socket.py and httplib.py

2007-03-15 Thread Facundo Batista
Facundo Batista wrote: > I studied Skip patch, and I think he is in good direction: add a > NetworkConnection object to socket.py, and then use it from the other > modules. As of discussion in the patch tracker, this class is now a function in socket.py. This function connect()

Re: [Python-Dev] Adding timeout to socket.py and httplib.py

2007-03-20 Thread Facundo Batista
On March 15, Georg Brandl wrote: > I'll review it tomorrow. Do you have any news about this? Regards, -- . Facundo . Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ ___ Python-Dev mailing list Python-Dev@python.org http:/

Re: [Python-Dev] Adding timeout to socket.py and httplib.py

2007-03-20 Thread Facundo Batista
Alan Kennedy wrote: > I see that your updated socket.connect() method takes a timeout > parameter, which defaults to None if not present, e.g. I did NOT update a connect() method. I created a connect() function, in the module socket.py (there's also a connect() method in the socket object, but I

Re: [Python-Dev] Adding timeout to socket.py and httplib.py

2007-03-20 Thread Facundo Batista
Alan Kennedy wrote: > Sorry, my mistake. No problem. > So, a question I would ask is: Is "connect" the right name for that function? > ... > Perhaps a better name might be "create_connected_client_socket", or > something equally descriptive? Guido proposed "connect_with_timeout". I don't like

Re: [Python-Dev] Adding timeout to socket.py and httplib.py

2007-03-20 Thread Facundo Batista
Alan Kennedy wrote: > [Facundo] >> But, I recognize that maybe it's [connect] not the best name. What about >> "create_connection"? > > I have no strong feelings about it, other than to say it should not be > "connect". How about Ok. "create_connection", then. > Ah, but it's too late by the tim

[Python-Dev] Patchs and bugs resume

2007-03-20 Thread Facundo Batista
People: At the beginning of March, there was a thread in this list about patchs and bugs that teorically weren't checked out. >From that discussion, I asked myself: "How can I know the temporal location of a patch/bug?". Are there a lot of old patchs/bugs? Those that are old, don't have any updat

Re: [Python-Dev] Adding timeout to socket.py and httplib.py

2007-03-20 Thread Facundo Batista
Steven Bethard wrote: > is supposed to be a timeout. The modified version:: > > newsock = socket.create_connection(HOST, PORT, timeout=None) Warning. The correct function signature is create_connection(address[, timeout=None]) where address is a tuple (HOST, PORT). BTW, how can I indic

Re: [Python-Dev] Adding timeout to socket.py and httplib.py

2007-03-20 Thread Facundo Batista
Josiah Carlson wrote: > sentinel = object() > > def connect(HOST, PORT, timeout=sentinel): > ... > if timeout is not sentinel: > sock.settimeout(timeout) > ... > > A keyword argument via **kwargs is also fine. I have no preference. I do. The way you showed here, I'm not restr

Re: [Python-Dev] Adding timeout to socket.py and httplib.py

2007-03-20 Thread Facundo Batista
Josiah Carlson wrote: > restrict what the user could pass as a value to timeout. It requires > that you pass timeout explicitly, but that's a (relatively > inconsequential) API decision. This is exactly the point. It's an API decision, that you must communicate to the user, he/she must read it a

Re: [Python-Dev] Patchs and bugs resume

2007-03-20 Thread Facundo Batista
Brett Cannon wrote: > That's some interesting stuff. Took me a second to realize that the > temporal column's total length is the time range from the opening of > the oldest bug to the latest comment made on any bug and that the blue > bar is where within that time frame the bug was opened and th

Re: [Python-Dev] Adding timeout to socket.py and httplib.py

2007-03-20 Thread Facundo Batista
Alan Kennedy wrote: > So is that address = host, port = 80? > > Or is it address = (host, port), timeout=80? The latter, as is in the rest of Python... See your point, you say it's less error prone to make timeout mandatory. I really don't care, so I'll take your advice... -- . Facundo . Bl

Re: [Python-Dev] Adding timeout to socket.py and httplib.py

2007-03-20 Thread Facundo Batista
Alan Kennedy wrote: > - Explicitly check that the address passed is a tuple of (string, integer) It's more probable that a use pass a list of two values, that a host of two letters as you suggested above... > - To raise an exception explaining the parameter expectation when it is not > met

Re: [Python-Dev] I vote to reject: Adding timeout to socket.py and httplib.py.

2007-03-21 Thread Facundo Batista
Alan Kennedy wrote: > But remember that by adding a new function to the socket module to > support httplib et al, you are also adding a function to the socket > module that will be used directly by end users. > > I vote to reject this patch. Well, you can vote to name it _create_connection(), if

Re: [Python-Dev] I vote to reject: Adding timeout to socket.py and httplib.py.

2007-03-21 Thread Facundo Batista
Alan Kennedy wrote: > So what are we voting on exactly? The patch as it currently is? The > patch has not been updated to reflect recent discussions on the list. > Will the patch be updated before the vote? The voting is on a, b or c. The patch will be updated after I know what python-dev want t

[Python-Dev] Adding timeout to socket.py and httplib.py - Updated

2007-03-21 Thread Facundo Batista
I updated the patch #1676823, reflecting discussion here: - The function name changed, now it's _create_connection(). Its signature also changed: now, timeout is mandatorily named. - HTTPConnection has the posibility to call timeout with a number, and also with None. In both cases, it updates so

Re: [Python-Dev] I vote to reject: Adding timeout to socket.pyand httplib.py.

2007-03-21 Thread Facundo Batista
Guido van Rossum wrote: > (like httplib before the patch), I am personally in favor of going > back to defaulting timeout to None and skipping the settimeout() call > in _create_connection() if timeout is None. IMO the use case where > there is a global timeout set and one library wants to overrid

Re: [Python-Dev] I vote to reject: Adding timeout to socket.pyand httplib.py.

2007-03-21 Thread Facundo Batista
Guido van Rossum wrote: > This is why I proposed to *get rid of* the distinction between > timeout=None and timeout not specified. Let an unspecified timeout > default to None, and if timeout is None, skip the settimeout() call. +1 I'll abuse of your dictatorship, and let's see if we can finall

Re: [Python-Dev] Patchs and bugs resume

2007-03-22 Thread Facundo Batista
Martin v. Löwis wrote: > When you do, make sure you take a look at roundup's search facilities. > Roundup keeps a 'last activity' field, on which you can search and sort, > and a 'creation date' field (likewise). Could you please point me to documentation about the new tracker? I want to study th

Re: [Python-Dev] Adding timeout to socket.py and httplib.py - Updated

2007-03-22 Thread Facundo Batista
Georg Brandl wrote: > There are others who can judge the new API and implementation better than > me, but I can review the formal issues as soon as the API is accepted. The API is accepted now, I proposed it and Guido say ok 24hs ago, ;) I'll update the patch to that API, and let you know throug

[Python-Dev] Final (final?) update to patch about socket timeout...

2007-03-23 Thread Facundo Batista
...in socket.py and httplib.py, with tests and docs. The patch is #1676823. Basically what I did now is: - Just put a timeout default to None. If None, skip settimeout() call. - Copy the exceptions behaviour that we have actually in the higher level libraries, to be sure we aren't breaking an

  1   2   3   4   >