route in the core, and I think libs should be consistent
with that choice. Developers will have work a little harder, but there
will be less surprises.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing
:
IPv?AddressWithMask(some_address).network
At first glance, this seems somewhat round-about, however it makes explicit
the potential loss of bits.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing
or silently
get the lower bits masked off?! If not now, in the next version?
Yes.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman
On Thu, 17 Sep 2009 10:41:37 am Andrew McNamara wrote:
In the olden days, the mask was spelled out in octets (eg
255.255.255.0). But we've moved to a more compact and logical
notation where the number of leading significant bits is specified
(eg /24).
I hope you're not suggesting the older
in
confusion and bugs for no advantage.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http
terminology from disperate domains. In my
postings, I have tried to refer to Network (a containter) and Address
(an item).
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev
off to patch the pep and implement some of the non controversial changes.
It might be a good idea to add some use-cases to the PEP.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python
all round.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options
.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
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
)
There is a school of thought that says we only need a single class
that behaves like the current Network entity - end-points are simply
represented by an all-ones mask. This is, I think, where we started. But
this scheme was rejected.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object
is specified (eg /24).
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman
/container
behaviours for a similar reason. If the developer needs these, the
.network attribute is only a lookup away.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
http
be a
member of a network, and having a reference to that network on the address
object is valuable, but the address should not behave like a network.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
- there would really be classes for each
protocol).
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http
(it can't
contain other addresses, although it's .network can).
Sorry if I sound like a cracked record - these are subtle concepts,
and my ability to explain what I mean is less than is needed, but we'll
get there in the end.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object
return Address
or AddressWithMask instances - if the later, the mask should match the
parent network's mask.
I'm not particularly wedded to the name AddressWithMask - maybe it
could be NetworkAddress or MaskedAddress or ?
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object
this a problem for the PEP,
anyone reviewing the module for inclusion in the standard lib needs to
consider them.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
http
On 03/06/2009, at 3:56 AM, Jean-Paul Calderone wrote:
On Tue, 02 Jun 2009 19:34:11 +0200, \Martin v. Löwis\ mar...@v.loewis.de
wrote:
[snip]
You seem comfortable with these quirks, but then you're not planning
to write software with this library. Developers who do intend to
write
On 03/06/2009, at 12:39 PM, Guido van Rossum wrote:
I'm disappointed in the process -- it's as if nobody really reviewed
the API until it was released with rc1, and this despite there being a
significant discussion about its inclusion and alternatives months
ago. (Don't look at me -- I
On 07/04/2009, at 7:27 AM, Guido van Rossum wrote:
On Mon, Apr 6, 2009 at 7:28 AM, Cesare Di Mauro
cesare.dima...@a-tono.com wrote:
The Language Reference says nothing about the effects of code
optimizations.
I think it's a very good thing, because we can do some work here
with constant
So what are the expected efforts for 3.1?
- io-in-C
- import-in-Python
- ... anything else?
A fixed email module.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
/issue416670
Changeset 38430 on the release24-maint branch introduced the changes
that stopped SRE_Pattern.__deepcopy__ being found. r38430 was a patch
forward ported from 2.3, but never ported to the trunk (probably a good
thing, too).
Thoughts?
--
Andrew McNamara, Senior Developer, Object Craft
http
introduced the changes
that stopped SRE_Pattern.__deepcopy__ being found. r38430 was a patch
forward ported from 2.3, but never ported to the trunk (probably a good
thing, too).
Thoughts?
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au
such a dialect in your code, but I don't support
adding it to the standard library - the dialects in the std lib should
be well defined (in some way).
BTW, it's not necessary to create dialect objects: as I've done above,
users can pass keyword parameters to the parser if it's more convenient.
--
Andrew
- for example, using it to maintain Radius user databases for a
(proprietary/commercial) Radius auth daemon. But dropping it from the
core won't stop this.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing
I think that despite the objection that monkeypatching shoudn't be
made too easy, it's worth at looking into a unification of the API,
features, and implementation.
I agree. The other virtue of having it in the standard library is that
it's immediately recognisable for what it is.
--
Andrew
exceptions: exists (posix
system call, expect to find it in os), walk (which is the old deprecated
one? have to check doc).
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
no value to embedding the logic of auto-
detection into the codec. A function somewhere in the xml package is
all that's warranted.
I agree with Fred here - it should be a function in the xml package,
not a codec. -1
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au
I wonder if we should start maintaining a list of Python developers
for hire somewhere on python.org, beyond the existing Jobs page. Is
anyone interested in organizing this?
What about something a little less formal - a mailing list such as
python-jobs?
--
Andrew McNamara, Senior Developer
to 2.3.
Am I correct in using PyGILState_Ensure() and PyGILState_Release()? If
so, how do I support back to Py 2.3? Copy the current fixed
PyGILState_Release() into my code (ick)?
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au
boggles at the economics
or desperation that make this worthwhile.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
talking about have also
got through filling out questionnaires, and whatnot. Certainly the same
technique could be used, but my suspicion is that real people are being
paid a pittance to sit in front of a PC and spam anything that moves.
--
Andrew McNamara, Senior Developer, Object Craft
http
are never seen.
I'm reluctant to mention the name of one particular tool I'm aware
of, but as well as the above, it also has OCR to defeat CAPTCHA, and
automatically creates throw-away e-mail accounts with a range of free
web-mail providers for registration purposes.
--
Andrew McNamara, Senior
, I've taken the liberty of CC'ing this to the python-dev list, so
the motivation for this feature is recorded - it caused me some head
scratching, and I added it.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python
to guessing, and effectively discards information in the transformation
(here be dragons).
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org
don't parse it just like Excel (sigh).
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http
no problem. If you want to make this format the default,
make sure you stick around to answer all the angry e-mail from users.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
/protocols and the associated library functions
are a historical mistake (getprotobynumber() is marginally useful -
but python doesn't expose it!).
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
blah blah' % (foo.label or foo.name)
The if-else-expression alternative works, but isn't quite as readable:
'%s blah blah' % (foo.label ? foo.label : foo.name)
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au
(quotechar,
delimiter, escapechar, etc) can be a multi-byte sequence.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
calls returning
consistent errno's. Which is one thing that makes life so difficult for
posix environments layered on other operating systems.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
a DBF parser in python - reading and writing odd
file formats is bread-and-butter for us contractors... 8-)
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
http
the feature more forgiving on users who accidently set the escape
character - in other words, only special (quoting, escaping, field
delimiter) characters received special treatment. With the benefit of
hindsight, that was an inadequately considered choice.
--
Andrew McNamara, Senior Developer, Object
object being supplied. The lineterminator character would only
be used with this interface, with the current interface falling back to
using only \n. Rather a drastic solution.
Any other ideas?
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au
.
Note that PEP-305 had nothing to say about escaping, nor does the module
reference manual.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman
be TypeError
(like most other argument passing errors). I can't see this being a
problem, but I'm prepared to listen to arguments.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev
Andrew McNamara wrote:
There's a bunch of jobs we (CSV module maintainers) have been putting
off - attached is a list (in no particular order):
* unicode support (this will probably uglify the code considerably).
Martin v. Löwis wrote:
Can you please elaborate on that? What needs to be done
tend to be small enough
to do the decoding in one call in memory.
We are routinely dealing with multi-gigabyte csv files - which is why the
original 2001 vintage csv module was written as a C state machine.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au
of a problem where the source is already unicode
(eg, a list of unicode strings)... hmm.
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman
obvious (dies on a reference to 0x5558) for me.
See bug ID 1088891:
http://sourceforge.net/tracker/index.php?func=detailaid=1088891group_id=5470atid=105470
Can I be the only person who crafts diabolical regexps? Here, have a
lend of my brown paper bag...
--
Andrew McNamara, Senior
50 matches
Mail list logo