I'm happy to announce that Pyro 3.14 has been released (nickname pi).
Pyro stands for PYthon Remote Objects. It is an advanced and powerful
Distributed Object
Technology system written entirely in Python, that is designed to be very easy
to use.
This release contains an important bug fix for a
PySide 1.0.3 - comigo: Python for Qt released!
===
The PySide team is proud to announce another minor release of PySide project.
Major changes
==
* PySide official supported on MeeGo 1.2 DE (continuous update);
* Several bug fixes
On behalf of the Python development team and the Python community, I'm
happy to announce the release of Python 2.5.6. There were no changes
since the release candidate.
This is a source-only release that only includes security fixes. The
last full bug-fix release of Python 2.5 was Python 2.5.4.
MRAB pyt...@mrabarnett.plus.com wrote:
I'd just like to point out that it's a convention, not a rigid rule.
Reminds me of the catch-phrase from the first Pirates of the Caribbean
movie: It's more of a guideline than a rule.
--
Tim Roberts, t...@probo.com
Providenza Boekelheide, Inc.
--
Roy Smith r...@panix.com wrote:
Over the years, my use of comments has evolved. I was taught, You
should comment your code. Eventually, I came to realize that the real
mandate is, You should make it easy to understand your code. Comments
are just one possible tool to help achieve that goal.
On Fri, May 27, 2011 at 12:45 PM, Ned Deily n...@acm.org wrote:
The discussion in http://bugs.python.org/issue4434 might be of some help.
Thanks Ned! That was most helpful. I'm still not sure exactly what I
changed, but between building with --enable-shared and some fiddling
with how I link my
On May 26, 6:39 pm, Ben Finney ben+pyt...@benfinney.id.au wrote:
We also, though, need *real* URLs. Blind URLs through obfuscation
services have their uses, but surely not in a forum like this. The real
URL is URL:http://news.ycombinator.com/item?id=2588262.
Fair enough. I had copied the link
* Steven D'Aprano (27 May 2011 03:07:30 GMT)
Okay, I've stayed silent while people criticize me long enough. What
exactly did I say that was impolite?
Nothing.
John threw down a distinct challenge:
if Python is really so much better than Python [sic]
readability wise, why do I
Raymond Hettinger pyt...@rcn.com writes:
Hope you enjoyed the post.
I certainly did.
But I'm not better enlightened on why ‘super’ is a good thing. The
exquisite care that you describe programmers needing to maintain is IMO
just as much a deterrent as the super-is-harmful essay.
--
\
On Friday, May 27, 2011 10:49:52 AM UTC+2, Ben Finney wrote:
The exquisite care that you describe programmers needing to maintain is IMO
just as much a deterrent as the super-is-harmful essay.
Worth quoting. Also I think this article may encourage naive programmers along
the dark path of
On 2011.05.26 10:02 AM, Thomas Heller wrote:
On Windows, you can use ctypes.FormatError(code) to map error codes
to strings:
import ctypes
ctypes.FormatError(32)
'Der Prozess kann nicht auf die Datei zugreifen, da sie von einem
anderen Prozess verwendet wird.'
For HRESULT codes,
On Fri, 27 May 2011 10:10:55 +0200, Thorsten Kampe wrote:
* Steven D'Aprano (27 May 2011 03:07:30 GMT)
[...]
If I got it wrong about John, oh well, I said it was a guess, and
trying to get inside someone else's head is always a chancy business.
Why were you trying to speculate in response
Carl Banks pavlovevide...@gmail.com wrote:
The end parameter looks pretty useless for
.startswith() and is probably only present for consistency with other
string search methods like .index().
No, the end parameter could be useful if the slice ends up shorter than the
prefix string:
On Fri, 27 May 2011 18:49:52 +1000, Ben Finney wrote:
Raymond Hettinger pyt...@rcn.com writes:
Hope you enjoyed the post.
I certainly did.
But I'm not better enlightened on why ‘super’ is a good thing.
Perhaps Raymond assumed that by now everybody knows that multiple
inheritance in
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
I was thrilled to learn a new trick, popping keyword arguments before
calling super, and wondered why I hadn't thought of that myself. How on
earth did I fail to realise that a kwarg dict was mutable and therefore
you can remove
Terry Reedy wrote:
To me, that says pretty clearly that start and end have to be
'positions', ie, ints or other index types. So I would say that the
error message is a bug. I see so reason why one would want to use None
rather that 0 for start or None rather than nothing for end.
If you're
On Fri, 27 May 2011 00:02:23 -0700
Tim Roberts t...@probo.com wrote:
Ruby has a lot of followers, and I am trying to get excited about it, but
it has succumbed to the same special-characters-as-syntax disease that
killed Perl. Much Ruby code is just unreadable.
What? The recent Perl flame
In article mailman.2145.1306473197.9059.python-l...@python.org,
Chris Angelico ros...@gmail.com wrote:
(Did I *really* write that code? It has my name on it.)
Most version control systems have an annotate command which lets you see
who wrote a given line of code. Some of them are even
In article 948l8nf33...@mid.individual.net,
Gregory Ewing greg.ew...@canterbury.ac.nz wrote:
John Bokma wrote:
A Perl programmer will call this line noise:
double_word_re = re.compile(r\b(?Pword\w+)\s+(?P=word)(?!\w),
re.IGNORECASE)
One of the truly
In article mailman.2144.1306471679.9059.python-l...@python.org,
Stefan Behnel stefan...@behnel.de wrote:
Roy Smith, 27.05.2011 03:13:
Ethan Furman wrote:
-- 'this is a test'.startswith('this')
True
-- 'this is a test'.startswith('this', None, None)
Traceback (most recent call
On 2011-05-27, Ben Finney ben+pyt...@benfinney.id.au wrote:
Richard Parker r.richardpar...@comcast.net writes:
On May 26, 2011, at 4:28 AM, python-list-requ...@python.org wrote:
My experience is that comments in Python are of relatively low
usefulness. (For avoidance of doubt: not *zero*
On 26 Mai, 18:31, Raymond Hettinger pyt...@rcn.com wrote:
I just posted a tutorial and how-to guide for making effective use of
super().
One of the reviewers, David Beazley, said, Wow, that's really
great! I see this becoming the definitive post on the subject
The direct link is:
Steven D'Aprano wrote:
You really do
need to know whether the car you drive uses leaded or unleaded.
Actually, you need to know whether your car can burn 85 gas (at
about 60 cents /gallon cheaper... and, whether 85 gas will have enough
energy to move the car without using 35% more fuel...
sturlamolden wrote:
I really don't like the Python 2 syntax of super, as it violates
the DRY principle: Why do I need to write super(type(self),self)
when super() will do? Assuming that 'self' will always be named
'self' in my code, I tend to patch __builtins__.super like this:
import sys
Paul Rubin wrote:
Haskell probably has the most vibrant development community at
the moment but its learning curve is quite steep, and it has
various shortcomings some of which are being worked on but others
of which may be insurmountable.
Yes. You might want to lurk on:
Colin J. Williams wrote:
It would be safer to stick with Python 2.7 initially and then consider
the transition to 3.2 later.
I must disagree with Colin's statement. If you are a complete beginner
with Python... then there is going to a learning curve for you... and
that curve should be
On Fri, 27 May 2011 10:33:20 -0400, Mel wrote:
sturlamolden wrote:
I really don't like the Python 2 syntax of super, as it violates the
DRY principle: Why do I need to write super(type(self),self) when
super() will do? Assuming that 'self' will always be named 'self' in my
code, I tend to
The fact that even experienced programmers fail to see that
super(type(self),self) in Python 2 is NOT equivalent to super()
in Python 3 is telling something.
--
http://mail.python.org/mailman/listinfo/python-list
sturlamolden sturlamol...@yahoo.no wrote:
On 26 Mai, 18:31, Raymond Hettinger pyt...@rcn.com wrote:
I just posted a tutorial and how-to guide for making effective use of
super().
One of the reviewers, David Beazley, said, Wow, that's really
great! I see this becoming the definitive post
Steven D'Aprano wrote:
Python causes trouble by letting the users get at the internals, but
things like this make it worthwhile.
Only if by worthwhile you mean buggy as hell.
I *don't* believe this... the king of metaphors and bogus analogies
has come up with 'buggy as hell' !!?
On 27 Mai, 16:27, sturlamolden sturlamol...@yahoo.no wrote:
Assuming that 'self' will always be named
'self' in my code, I tend to patch __builtins__.super like this:
import sys
def super():
self = sys._getframe().f_back.f_locals['self']
return __builtins__.super(type(self),self)
On 27 Mai, 17:05, Duncan Booth duncan.bo...@invalid.invalid wrote:
class C(B): pass
C().foo()
... infinite recursion follows ...
That's true :(
--
http://mail.python.org/mailman/listinfo/python-list
On 27 Mai, 17:05, Duncan Booth duncan.bo...@invalid.invalid wrote:
Oops. There's a reason why Python 2 requires you to be explicit about
the class; you simply cannot work it out automatically at run time.
Python 3 fixes this by working it out at compile time, but for Python 2
there is no way
On Fri, 27 May 2011 09:40:53 -0500, harrismh777 wrote:
3.x is completely incompatible with 2.x (some call it a dialect,
but that is a lie).
Completely incompatible? A lie?
import math
import random
my_list = [3, 5, 7, 9]
n = random.choice(my_list)
if n%3:
func = math.sin
else:
func
https://docs.google.com/present/view?id=ah82mvnssv5d_162dbgx78gw ;)
--
http://mail.python.org/mailman/listinfo/python-list
On 27/05/2011 07:34, Tim Roberts wrote:
MRABpyt...@mrabarnett.plus.com wrote:
I'd just like to point out that it's a convention, not a rigid rule.
Reminds me of the catch-phrase from the first Pirates of the Caribbean
movie: It's more of a guideline than a rule.
Much like the Zen of
On Fri, 27 May 2011 08:31:40 -0700, sturlamolden wrote:
On 27 Mai, 17:05, Duncan Booth duncan.bo...@invalid.invalid wrote:
Oops. There's a reason why Python 2 requires you to be explicit about
the class; you simply cannot work it out automatically at run time.
Python 3 fixes this by working
On 27/05/2011 10:27, Nick Coghlan wrote:
On Fri, May 27, 2011 at 6:46 PM, Stephen J. Turnbullstep...@xemacs.org wrote:
What method is invoked to convert the numbers to text? What encoding
is used to convert those numbers to text? How does this operation
avoid also converting the
Sometimes
I'll drop in suggestions to future maintainers like, consider
refactoring with with perform_frobnitz_action()
Usually, I address future-me with comments like that (on the
assumption that there's nobody in the world sadistic enough to want to
maintain my code). But I never name
Thorsten Kampe wrote:
* Steven D'Aprano (27 May 2011 03:07:30 GMT)
Okay, I've stayed silent while people criticize me long enough. What
exactly did I say that was impolite?
Nothing.
John threw down a distinct challenge:
if Python is really so much better than Python [sic]
Ethan Furman wrote:
Any reason this is not a bug?
Looks like someone else beat me to filing:
http://bugs.python.org/issue11828
Looks like they fixed it as well.
~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list
On 27-05-11 15:54, Grant Edwards wrote:
On 2011-05-27, Ben Finneyben+pyt...@benfinney.id.au wrote:
Richard Parkerr.richardpar...@comcast.net writes:
On May 26, 2011, at 4:28 AM, python-list-requ...@python.org wrote:
My experience is that comments in Python are of relatively low
Duncan Booth wrote:
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
I was thrilled to learn a new trick, popping keyword arguments before
calling super, and wondered why I hadn't thought of that myself. How on
earth did I fail to realise that a kwarg dict was mutable and therefore
On 2011-05-27, Miki Tebeka miki.teb...@gmail.com wrote:
https://docs.google.com/present/view?id=ah82mvnssv5d_162dbgx78gw ;)
I just realized that Usenet is sort of like radio.
After hearing/reading somebody for years, I don't seem to have a
detailed image of them in my head, but when I
On 2011-05-27, Irmen de Jong ir...@-nospam-xs4all.nl wrote:
On 27-05-11 15:54, Grant Edwards wrote:
On 2011-05-27, Ben Finneyben+pyt...@benfinney.id.au wrote:
Richard Parkerr.richardpar...@comcast.net writes:
On May 26, 2011, at 4:28 AM, python-list-requ...@python.org wrote:
My experience
On Fri, May 27, 2011 at 4:37 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
On Fri, 27 May 2011 18:49:52 +1000, Ben Finney wrote:
Raymond Hettinger pyt...@rcn.com writes:
Hope you enjoyed the post.
I certainly did.
But I'm not better enlightened on why ‘super’ is
I have to say, I do like Python's lack of keywords for these things
I thought True/False were among the list of keywords in Python 3.x ? Or are
those the only keywords?
Ramit
Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work
Miki Tebeka wrote:
https://docs.google.com/present/view?id=ah82mvnssv5d_162dbgx78gw ;)
+1
That was hilarious.
~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list
We also, though, need *real* URLs. Blind URLs through obfuscation
services have their uses, but surely not in a forum like this. The real
URL is URL:http://news.ycombinator.com/item?id=2588262.
I remember reading a news article where a man was arrested (or was it fired)
for pornography because
- Original Message -
From: Ethan Furman et...@stoneleaf.us
To: python-list@python.org
Sent: Friday, May 27, 2011 11:14 AM
Subject: Re: The worth of comments
Miki Tebeka wrote:
https://docs.google.com/present/view?id=ah82mvnssv5d_162dbgx78gw ;)
+1
That was hilarious.
~Ethan~
--
(Did I *really* write that code? It has my name on it.)
Damn those ninja programmers who stole your name and coded something!
Ramit
Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423
This communication
On Thu, May 26, 2011 at 10:31 AM, Raymond Hettinger pyt...@rcn.com wrote:
I just posted a tutorial and how-to guide for making effective use of
super().
I posted this already on the HackerNews thread but it seems to have
largely gone unnoticed, so I'm reposting it here.
It seems to me that the
On Sat, May 28, 2011 at 4:10 AM, Prasad, Ramit
ramit.pra...@jpmchase.com wrote:
We also, though, need *real* URLs. Blind URLs through obfuscation
services have their uses, but surely not in a forum like this. The real
URL is URL:http://news.ycombinator.com/item?id=2588262.
I remember reading a
On behalf of the Python development team and the Python community, I'm
happy to announce the release of Python 2.5.6. There were no changes
since the release candidate.
This is a source-only release that only includes security fixes. The
last full bug-fix release of Python 2.5 was Python 2.5.4.
Prasad, Ramit wrote:
I have to say, I do like Python's lack of keywords for these things
I thought True/False were among the list of keywords in Python 3.x ? Or are
those the only keywords?
http://docs.python.org/py3k/reference/lexical_analysis.html#keywords
False class finally
On Sat, May 28, 2011 at 4:31 AM, Ian Kelly ian.g.ke...@gmail.com wrote:
It seems to me that the example of combining built-in dictionary
classes is naively optimistic.
So... Can anyone offer a non-trivial example of multiple inheritance
that *doesn't* have pitfalls? From what I've seen, MI
This is exactly what I want to do - I can then pick up various
elements of the list and turn them into floats, ints, etc. I have not
ever used decode, and will look it up in the docs to better understand
it. I can't thank everyone enough for the generous serving of help and
guidance - I certainly
On 05/27/2011 03:47 PM, Roy Smith wrote:
In article948l8nf33...@mid.individual.net,
Gregory Ewinggreg.ew...@canterbury.ac.nz wrote:
John Bokma wrote:
A Perl programmer will call this line noise:
double_word_re = re.compile(r\b(?Pword\w+)\s+(?P=word)(?!\w),
Hi,
type test.py
import sys
sys.tracebacklimit = 0
import doesnotexist
python test.py
ImportError: No module named doesnotexist
python3 test.py
Traceback (most recent call last):
File test.py, line 4, in module
import doesnotexist
ImportError: No module named doesnotexist
The 3.2
Steven D'Aprano wrote:
Would you care to revise your claims?
No.
You have erected a straw-man... once again.
Most 2.x code *will not* run correctly in 3.x/ Most of the best
improvements and enhancements of 3.x will not back-port to below 2.7,
and almost none of them will back-port
On 5/27/2011 11:46 AM, Chris Angelico wrote:
On Sat, May 28, 2011 at 4:31 AM, Ian Kellyian.g.ke...@gmail.com wrote:
It seems to me that the example of combining built-in dictionary
classes is naively optimistic.
So... Can anyone offer a non-trivial example of multiple inheritance
that
Lew Schwartz wrote:
So, if I read between the lines correctly, you recommend Python 3? Does
the windows version install with a development environment?
Dabo, last I checked, uses wxPython, which uses wxWidgets (sp?), which
is not yet ported to Python 3. So if you got that route you'll need
Hi,
I want to execute the following command line stuff from inside python.
$cd directory
$./executable
I tried the following but I get errors
import subprocess
subprocess.check_call('cd dir_name;./executable')
Due to filename path issues, I cannot try this version.
Steven D'Aprano, 27.05.2011 18:06:
On Fri, 27 May 2011 08:31:40 -0700, sturlamolden wrote:
On 27 Mai, 17:05, Duncan Boothduncan.bo...@invalid.invalid wrote:
Oops. There's a reason why Python 2 requires you to be explicit about
the class; you simply cannot work it out automatically at run
I suspect the larger issue is that Multiple Inheritance is complex, but
folks don't appreciate that. Ask anyone about meta-classes and their
eyes bug-out, but MI? Simple! NOT.
On the other hand, perhaps the docs should declare that the built-in
objects are not designed for MI, so that
Each command will be run in a distinct subprocess. A CWD is typically local
to a given subprocess. So after the first command/subprocess exits, your
cd's change is no longer there.
Try doing it in one command, with the two original commands separated by a
semicolon.
On Fri, May 27, 2011 at
On Fri, 2011-05-27 at 14:25 -0700, suresh wrote:
Hi,
I want to execute the following command line stuff from inside python.
$cd directory
$./executable
I tried the following but I get errors
import subprocess
subprocess.check_call('cd dir_name;./executable')
Due to filename path
* suresh (Fri, 27 May 2011 14:25:52 -0700 (PDT))
I want to execute the following command line stuff from inside python.
$cd directory
$./executable
I tried the following but I get errors
import subprocess
subprocess.check_call('cd dir_name;./executable')
Due to filename path issues, I
On Sat, May 28, 2011 at 6:40 AM, harrismh777 harrismh...@charter.net wrote:
Most 2.x code *will not* run correctly in 3.x/ Most of the best
improvements and enhancements of 3.x will not back-port to below 2.7, and
almost none of them will back-port before 2.6 (class decorations, for
On Fri, 2011-05-27 at 15:05 +, Duncan Booth wrote:
sturlamolden sturlamol...@yahoo.no wrote:
I really don't like the Python 2 syntax of super, as it violates
the DRY principle: Why do I need to write super(type(self),self)
when super() will do? Assuming that 'self' will always be named
On 27 Mai, 23:49, Stefan Behnel stefan...@behnel.de wrote:
I think Sturla is referring to the compile time bit. CPython cannot know
that the builtin super() will be called at runtime, even if it sees a
super() function call.
Yes. And opposite: CPython cannot know that builtin super() is not
On 27 Mai, 18:06, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
Why? The fault is not that super is a function, or that you monkey-
patched it, or that you used a private function to do that monkey-
patching. The fault was that you made a common, but silly, mistake when
Chris Angelico wrote:
To say that most 2.x code is
incompatible with 3.x is to deny the 2to3 utility,
Oh, yes absolutely. Please don't misunderstand... anyone... I'm not
saying that code cannot be migrated... migration can usually occur
between incompatible releases and and between
harrismh777 wrote:
Chris Angelico wrote:
To say that most 2.x code is
incompatible with 3.x is to deny the 2to3 utility,
all I'm
saying is that 3.x is not compatible with 2.x code (completely not
compatible)
and you're ignoring
the people who deliberately write code that can
On Fri, May 27, 2011 at 7:40 AM, harrismh777 harrismh...@charter.netwrote:
Colin J. Williams wrote:
It would be safer to stick with Python 2.7 initially and then consider
the transition to 3.2 later.
I must disagree with Colin's statement. If you are a complete beginner with
Python...
On Friday, May 27, 2011 3:19:22 PM UTC-7, Albert Hopkins wrote:
On Fri, 2011-05-27 at 14:25 -0700, suresh wrote:
Hi,
I want to execute the following command line stuff from inside python.
$cd directory
$./executable
I tried the following but I get errors
import subprocess
So I'd like to know: how do these other implementations handle concurrency
matters for their primitive types, and prevent them from getting corrupted
in multithreaded programs (if they do) ? I'm not only thinking about python
types, but also primitive containers and types used in .Net and Java
On 26/05/2011 6:00 PM, Wilbert Berendsen wrote:
Op donderdag 26 mei 2011 schreef Mark:
Wilbert wrote:
can anybody find out why the install script is not run?
Works for me in the pywin32 install script - maybe you should make the
smallest possible example that doesn't work and post the
Am 27.05.2011 17:52 schrieb Steven D'Aprano:
On Fri, 27 May 2011 09:40:53 -0500, harrismh777 wrote:
3.x is completely incompatible with 2.x (some call it a dialect,
but that is a lie).
Completely incompatible? A lie?
Hard word, but it is true. Many things can and will fall on your feet
Am 28.05.2011 01:57 schrieb sturlamolden:
Yes. And opposite: CPython cannot know that builtin super() is not
called,
even if it does not see the name 'super'. I can easily make foo()
alias super().
Another alternative would have been to make use of __xxx magic.
If every class had an
On Friday, May 27, 2011 6:47:21 AM UTC-7, Roy Smith wrote:
In article 948l8n...@mid.individual.net,
Gregory Ewing greg@canterbury.ac.nz wrote:
John Bokma wrote:
A Perl programmer will call this line noise:
double_word_re = re.compile(r\b(?Pword\w+)\s+(?P=word)(?!\w),
On Fri, 27 May 2011 20:02:39 -0500, harrismh777 wrote:
But the true picture is that 3.x is (way better) and completely
incompatible with 2.x. Lying about this isn't helpful to anyone coming
on board with Python. Just tell them the truth...
Take your own advice and stop accusing others of
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The ZIP file format is unable to store dates before 1980. With version 3.2,
your script even raises an exception. Please file this in a different issue.
--
nosy: +amaury.forgeotdarc
___
New submission from Nick Coghlan ncogh...@gmail.com:
A complete build on Ubuntu currently requires fiddling with LDFLAGS before
invoking configure (otherwise the build process fails to find the necessary
pieces to build some modules):
Petri Lehtinen pe...@digip.org added the comment:
tokenize processes a line at a time, and noticing that an ending triple quote
is missing would mean reading the whole file in the worst case. As tokenize
seems to work in a generator-like fashion, it's probably not desired to cache
all the
Changes by Petri Lehtinen pe...@digip.org:
--
versions: +Python 2.7, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12063
___
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
+1 on the doc suggestions
-1 on any hope that casual users will have read or remembered them. ISTM that
a common theme among the post of people getting tripped-up by this is that they
aren't doing more than a quick skim of the
Erik Cederstrand e...@1calendar.dk added the comment:
I respectfully disagree. I take strptime('2002 01 1', '%Y %V %u') as mening
first day of first week in the year 2002
There is only one date that corresponds to the first day of the first week of
2002, i.e. Dec. 31, 2001. If you specify the
Marc-Andre Lemburg m...@egenix.com added the comment:
Roundup Robot wrote:
Roundup Robot devnull@devnull added the comment:
New changeset 3555cf6f9c98 by Victor Stinner in branch 'default':
Issue #8796: codecs.open() calls the builtin open() function instead of using
Charles-François Natali neolo...@free.fr added the comment:
Hello Nicholas,
kqueue is not standardized.
You're probably right, but depending on the version of your manpages, the
definition changes:
Nicholas Marriott nicholas.marri...@gmail.com added the comment:
Hi
The second one is correct - OpenBSD -current has this in event.h:
struct kevent {
u_int ident; /* identifier for this event */
short filter; /* filter for event */
Nicholas Marriott nicholas.marri...@gmail.com added the comment:
Not that I'm unsympathetic but this is really only a concern if you depend on
the internal structure layout and I think if you do that, you need to take
account of differences between platforms. We don't guarantee we aren't going
Thorsten Kampe thors...@thorstenkampe.de added the comment:
LANG=de_De - should've been LANG=de_DE. Sorry for wasting someone's time. I
shouldn't write bug reports in the middle of the night.
Sorry and thanks, Thorsten
--
resolution: - invalid
status: open - closed
Charles-François Natali neolo...@free.fr added the comment:
Concerning the differences between platforms, as noted, FreeBSD, NetBSD and
OS-X are all consistent and I don't think it'll change tomorrow, so for now
it's not a problem. Arbitrarily changing such structures definition - event
STINNER Victor victor.stin...@haypocalc.com added the comment:
The bug is specific to compile(), the import machinery supports Windows
newlines on Linux for example.
marge$ python2.6
Type help, copyright, credits or license for more information.
code=open(win.py, rb).read()
exec
Erik Cederstrand e...@1calendar.dk added the comment:
Reading you comment again, I see the ambiguity now, if %Y is interpreted as
The resulting date MUST be in 2001.
I think the safest way would be to implement %G and fail if %Y is used in
combination with %V. Maybe even fail if %V and %u
Nicholas Marriott nicholas.marri...@gmail.com added the comment:
Well they do it that way is not a justification that necessarily works for
OpenBSD :-).
I'll see if I can come up with a diff to fix this in Python. Not this weekend
though, maybe next week. Unless Remi do you want to have a go?
STINNER Victor victor.stin...@haypocalc.com added the comment:
If there are only two versions of the structure on all operating systems, we
can add a check in configure (e.g. test the size of the ident attribute, =int
or =void*?) to define a macro (e.g. HAVE_OPENBSD_KEVENT_STRUCT). You might
Ezio Melotti ezio.melo...@gmail.com added the comment:
I find this wording a little confusing: For lists, sets, and dicts, methods
that change the contents or order never return the instance. Instead, they
return an item from the instance or, more commonly, None..
I would suggest to drop the
Petri Lehtinen pe...@digip.org added the comment:
Added a patch. It was only a matter of making the size parameter optional.
--
keywords: +patch
nosy: +petri.lehtinen
Added file: http://bugs.python.org/file22142/mmap_read_all.patch
___
Python tracker
1 - 100 of 178 matches
Mail list logo