n should simply be removed.
Also the date is not informative at all.
Agreed, I've now removed them.
Georg
Is it worth removing this as well, it's a couple of lines down
"See also PEP 392 - Python 3.2 Release Schedule" ?
--
Cheers.
Mark Lawrence.
___
fix the docs, but in doing so we'd effectively be
blessing this form of exec as an official part of the language. Do
people think it's acceptable to add this to the docs, or are there
good reasons for the 'exec tuple' form of the exec statement to remain
an und
the tracker.
Sounds good to me. I'll add a note to the issue about tests.
Mark
___
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
t; ...
> )
>
> ...easier to read than:
>
> a_dict = {
> 'x':1,
> 'y':2,
> 'z':3,
> ...
> }
Hey, it makes me a little sad that dict breaks convention by allowing
the use of unquoted char
can't see such a recommendation.
>
> Whitespace in Expressions and Statements > Other Recommendations
>
> 3rd bullet:
>
> —
> Don't use spaces around the = sign when used to indicate a keyword argument
> or a default parameter value.
>
> Yes:
>
> def
On Wed, Nov 14, 2012 at 11:00 AM, Brian Curtin wrote:
> On Wed, Nov 14, 2012 at 10:12 AM, Mark Adam wrote:
>> On Wed, Nov 14, 2012 at 3:12 AM, Chris Withers
>> wrote:
>>> Hi All,
>>>
>>> A colleague pointed me at Doug's excellent article here:
&
w
Now that's a good solution and probably solves the OP speed problem.
mark
___
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
On Wed, Nov 14, 2012 at 12:12 PM, Xavier Morel wrote:
> On 2012-11-14, at 18:10 , Mark Adam wrote:
>>
>> Try the canonical {'x':1}. Only dict allows the special
>> initialization above. Other collections require an iterable.
>
> Other collections don'
On Wed, Nov 14, 2012 at 1:37 PM, Xavier Morel wrote:
> On 2012-11-14, at 19:54 , Mark Adam wrote:
>>
>> Merging of two dicts is done with dict.update.
>
> No, dict.update merges one dict (or two) into a third one.
No. I think you need to read the docs.
>> How do you
On Wed, Nov 14, 2012 at 5:40 PM, Chris Angelico wrote:
> On Thu, Nov 15, 2012 at 10:36 AM, Steven D'Aprano wrote:
>> On 15/11/12 05:54, Mark Adam wrote:
>> Notice that I'm not merging one dict into another, but merging two dicts
>> into a third.
>
> Side p
rror?
Easy: dict should have a (user substitutable) collision function that
is called in these cases. This would allow significant functionality
with practically no cost. In addition, it could be implemented in
such a way as to offer significant speedups (when using dict.updat
ed negative line deltas and the transformed while
loop: https://bitbucket.org/markshannon/cpython-lnotab-signed
I'm currently working on the block unwinding.
So,
Good idea? Bad idea?
Should I write a PEP or is the bug tracker sufficient?
Cheers,
Mark.
__
a sparse table of indices.
What minimum size and resizing factor do you propose for the entries array?
Cheers,
Mark.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http
On 10/12/12 23:39, Raymond Hettinger wrote:
On Dec 10, 2012, at 4:06 AM, Mark Shannon mailto:m...@hotpy.org>> wrote:
Instead, the 24-byte entries should be stored in a
dense table referenced by a sparse table of indices.
What minimum size and resizing factor do you propose for the e
On 11/12/12 03:45, Raymond Hettinger wrote:
On Dec 10, 2012, at 7:04 PM, Mark Shannon mailto:m...@hotpy.org>> wrote:
Another approach is to pre-allocate the two-thirds maximum
(This is simple and fast but gives the smallest space savings.)
What do you mean by maximum?
A dict with an
Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> class A(object): pass
...
>>> a = A()
>>> import sys
>>> sys.getsizeof(a)
56
--
Mark
__
On 21/12/12 07:05, csebasha wrote:
Hello Mark,
Did you raise bug for this?
No need now. The hash randomization, which was added a while ago,
will render the tests obsolete.
Cheers,
Mark.
___
Python-Dev mailing list
Python-Dev@python.org
http
well documented on
the pypy blog.
They are called shared keys in CPython 3.3 :)
Cheers,
fijal
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/optio
he visual module.
Again this is because of the faction that was created by in 200?,
regarding the Vpython community vs. the python-dev. Really, this
should be mended.
Anyway, I hope that any of this made sense.
Thanks for your help!
Mark
___
Python
grams will work without change, at the very small
> cost of a few marginal cases requiring minor tweaking. I should alter the
> documentation to make this important property of the new version more
> salient.
I need to analyze this more carefully before commenting further
mark
hanks to the Python development community!
Yes, it is/was relatively seemless *syntactically*, but it hasn't been
seemless *semanticly*. from __future__ still does something very odd
as far as the program language definition -- it modifies the way the
interpreter interprets a sy
ere's a need for it,
add a way to say "this adaptor can be used as part of a
transitive chain"
Mark Russell
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http
database).
My vote is for %N producing a microseconds field.
Mark Russell
___
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
ad, file.readlines)): ...
For commonly used subsets of course you'd do something like:
IInputStream = interface(file.read, file.readlines)
def foo(f: IInputStream): ...
I can't see that interface() would need much magic - I would guess you
could imp
he general reasons why Python is seen as important
is interesting...
Mark
___
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
NoteErrors()
for item in items:
if too_big(item):
err("Too big")
if too_small(item):
err("Too small")
if err.had_error:
print "Some items were out of range"
Any chance of := (and rem
guage I would probably also make it an error to use = to
do rebinding (i.e. insist on = for new bindings, and := for
rebindings). But that's obviously not reasonable for python.
Mark Russell
___
Python-Dev mailing list
Python-Dev@python.org
htt
h status code of 1
wscript.Quit 1
-- eof
Running "cscript.exe check_soundcard.vbs" and checking the return code
should work. cscript.exe comes with all modern Windows variants, and
although there may be ways to install Windows without it, I think we can
safely assume it exists for th
tively and potentially guard against the buildbot using
too many resources. Sadly though, my buildbot patch has been languishing in
their collector without comment, so my motivation is fairly low.
Cheers,
Mark
___
Python-Dev mailing list
Python-Dev@pytho
ere have been over 400 buildbot runs
FWIW, I've seen similar issues caused by the MS 'Index Server'. Disabling
the Index Server service made my problem go away.
Mark
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.
latform" more than it helps "firebox the browser"
etc. This sandboxing would help the browser, which is great!
I'm confident that when the time comes we will get the ear of Brendan Eich
to help steer us forward.
Cheers,
Mark.
___
P
I wrote:
> Bob writes:
Ack - sorry about that - the HTML mail confused me :) It was Brett, of
course.
Mark
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.
ods, so how about the term "bracketing object"?
Mark Russell
___
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
? Multiple chunks? Set the length field to zero and let
software assume we only have one chunk?
Regards,
Mark Rages
[EMAIL PROTECTED]
--
You think that it is a secret, but it never has been one.
- fortune cookie
--- chunk.py2005-07-06 11:39:07.179742573 -0500
+++ chunk.py.orig 2005-07
.org/dev/.
Oh, sorry, the patch was only to illustrate my idea. I'll submit a
proper patch to SF once I hear from Erik.
Regards,
Mark
[EMAIL PROTECTED]
--
You think that it is a secret, but it never has been one.
- fortune cookie
___
Python-Dev m
On Tue, 2005-08-02 at 11:00, Nick Coghlan wrote:
> With this hierarchy, the recommended parent class for application errors
> becomes Error, ...
And presumably Error could also be the recommended exception for
quick'n'dirty script
After nine months of hard work, I am proud to introduce my baby to the
world: an experimental Python-to-C++ compiler. It can convert many
Python programs into optimized C++ code, without any user intervention
such as adding type declarations. It uses rather advanced static type
inference techniques
me.
I think that requriing parens helps a lot with the list-of-names problem
- it nicely delimits the conditional expression for human readers:
return (if self.arg is None then default else self.arg)
In particular it breaks up the misleading grouping
istered modules" concept was misguided and AFAIK is not
used by anyone - IMO it should be deprecated (if not just removed!).
Further, I believe the documentation in the file for PYTHONPATH is, as said
in those docs, out of date, but that the com
tory containing the script we're
> _running_ shows up first in sys.path there, while the _current_
> directory shows up third.
That's strange - I don't see the current directory at all in any version. I
get something very close to you when I have PYTHONPATH=. - although it then
tu
ifferent thing - you are asking to *implement* it.)
> I could write a prototype event loop for Python
> to demonstrate how this would work.
I think that would be the best way forward - this may all simply be one big
misunderstanding . The next step after that would be to find even one
p
flags sounds
reasonable, and also believe that at face value the zipimport semantics
appear sane, I'm not sure we should use a weakness in a Python tool to
justify a change to Python itself.
Mark
___
Python-Dev mailing list
Python-Dev@python.org
ferences in the documentation, but that is a secondary issue.
Cheers,
Mark
___
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
sounds reasonable]
Another way forward may be to issue a warning whenever '.errno' or '[0]' is
referenced from WindowsError, noting that the semantics are soon to change,
and to use the new attribute if they really do want a win32 error code. I'm
not sure how practical that is
te_send()
+# only initiate a send if not running in a threaded
environment, since
+# initiate_send() is not threadsafe.
+if not self.running_in_thread: self.initiate_send()
def push_with_producer (self, producer):
self.producer_fifo.push (producer)
---E
hat.push()
from other threads, why would it be a bad thing to have? It seems to
make the code less cryptic (i.e. I don't need to override base classes
in order to include code which processes a nonempty Queue object -- I
simply make a call to the push() function of my instance of asyn
On 10 Feb 2006, at 12:45, Nick Coghlan wrote:An alternative would be to call it "__discrete__", as that is the key characteristic of an indexing type - it consists of a sequence of discrete values that can be isomorphically mapped to the integers. Another alternative: __as_ordinal__. Wikipedia d
Here's something that might be wrong in Python (tried on v2.7):
>>> class int(str): pass
>>> int(3)
'3'
Mark
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsu
In case the example given at the start of the thread wasn't
interesting enough, it also works in the other direction:
>>> class str(int): pass
>>> str('2')
2 #<- an integer!!!
Mark
___
Python-Dev mail
On Tue, Feb 9, 2016 at 8:20 AM, Victor Stinner wrote:
> Le 8 févr. 2016 9:34 PM, "Guido van Rossum" a écrit :
>> If you want to do linter integration that should probably be
>> integrated with the user's editor, like it is in PyCharm, and IIUC
>> people can do this in e.g. Emacs, Sublime or Vim a
On Tue, Feb 9, 2016 at 8:41 AM, Alexander Walters
wrote:
>
>
> On 2/8/2016 16:37, John Mark Vandenberg wrote:
>>
>> fwiw, pyflakes doesnt detect this. I've created a bug for that
>> https://bugs.launchpad.net/pyflakes/+bug/1543246
>
>
> Flake8 does, so it
On Tue, Feb 9, 2016 at 8:51 AM, Victor Stinner wrote:
> 2016-02-08 22:28 GMT+01:00 Alexander Walters :
>> What incantation do you need to do to make that behavior apparent?
>
> I didn't know. I just checked. It's assert used with a non-empty tuple:
>
assert ("tuple",)
> :1: SyntaxWarning: ass
On Tue, Feb 9, 2016 at 7:34 AM, Guido van Rossum wrote:
> On Mon, Feb 8, 2016 at 11:51 AM, Victor Stinner
> wrote:
>> Le 8 févr. 2016 8:14 PM, "Guido van Rossum" a écrit :
>>> Hum. I'm not excited by this idea. It is not bad syntax.
>>
>> Do you see an use case for "constant statements" other th
Does anyone know who controls this mirror, which is attracting pull requests?
https://github.com/python-git/python/pulls
Can it be pulled down to avoid confusion, since it is using Python's logo?
https://github.com/python-git
--
John Vandenberg
___
P
first email to python-dev :-)
Mark
___
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
have similar
problems, in which case please say so. The rest of the community might
not understand, I certainly will.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Python-Dev ma
On 06/05/2016 00:06, Barry Warsaw wrote:
On May 05, 2016, at 11:58 PM, Mark Lawrence via Python-Dev wrote:
On 05/05/2016 23:22, Stefan Krah wrote
Fredrik Lundh is also affected (and might not have received any mail,
same as me):
https://pypi.python.org/pypi/PIL
Maybe, but then there
but I don't think he will be around for the
sprints as he has to catch a flight out for PyCon Taiwan.
Steve writes such an excellent blog that when and if he has time I'm
certain that he'll put something together. With people such as him
following on from Martin Loewis, T
is there a case
for deprecating it?
* There are 46 outstanding issues on the bug tracker. Is the above the
reason for this, I don't know?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
__
o play detective I'd suggest
https://mail.python.org/pipermail/python-3000/2007-July/008975.html
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Python-Dev mailing list
Pytho
nistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/option
it could be used to implement a DoS attack).
Surely patches related to any bugs, not just security related ones, will
be accepted until EOL in 2020?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
On 02/11/2016 12:09, Terry Reedy wrote:
On 11/2/2016 3:54 AM, Mark Lawrence via Python-Dev wrote:
On 02/11/2016 06:23, Stephen J. Turnbull wrote:
That is correct. This is clearly a feature, and 2.7 currently is
accepting only security-related patches (broadly construed -- a
sufficiently
, on pypi rather than have them tied into the Python release
cycle. If YMMV so be it.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Python-Dev mailing list
Python-Dev@
ellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org
what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
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
here https://docs.python.org/3/library/urllib.request.html.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.o
be swamped.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
ht
On 05/07/2017 20:05, Mark Dickinson wrote:
Oh, and you'd have to rewrite the power algorithm, which currently
depends on the size of a limb in bytes being a multiple of 5. :-)
What is a limb, as my search foo has let me down?
--
My fellow Pythonistas, ask not what our language can d
e not discussed on the bpo issue.
The bulk of the work on argparse in recent years has been done by
paul.j3. I have no idea whether or not he is classed as a core developer.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Law
1301 - 1370 of 1370 matches
Mail list logo