On 1/31/2012 8:04 AM, Dennis Lee Bieber wrote:
({muse: who do we have to kill
to persuade OS designers to incorporate something like the Amiga ARexx
rexxport systemG}).
QNX, which is a real-time microkernel which looks like POSIX to
applications. actually got interprocess communication
On 02/03/2012 06:04 AM, Steven D'Aprano wrote:
Ultimately, there is no right answer, because the multitude of
requirements are contradictory. No matter what Python did, somebody would
complain.
Which makes me wonder why it was introduced at all, or at least so fast
If you see the difference in
On Fri, 03 Feb 2012 00:14:33 -0800, John Nagle wrote:
I won't even get into the appalling mess around the Global Interpreter
Lock.
You know full well that IronPython and Jython don't have a GIL. If the
GIL was as harmful as you repeatedly tell us, why haven't you, and
everyone else, migrated
On 03 Feb 2012 05:04:39 GMT
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
On Fri, 03 Feb 2012 14:08:06 +1100, John O'Hagan wrote:
I think we're 12 years late on this one. It's PEP 203 from 2000 and
the key phrase was:
The in-place function should always return a new
On 3.2.2012 02:19, Ian Kelly wrote:
Then how are you going to maintain the code? Maintain the compiled
code or the source?
As with all compiled software, you maintain the input, not the output.
I don't think that's what was the question. CoffeeScript is a hopeless
hack in the hopeless
Mm I don't think it's what the OP is asking (unless I misunderstood...).
I think he wants to compile some syntax TO Python.
But I don't really see why you would something like this (if not for fun).
Maybe because you think that Python syntax could be improved upon --
for instance, Python
Steven D'Aprano wrote:
Perhaps lists shouldn't define += at all, but then people will
complain that mylist += another_list is slow. Telling them to use
mylist.extend instead just makes them cranky. After all, mylist +
another_list works, so why shouldn't += work?
It would work, it
Yes, exactly like range
http://coverage.livinglogic.de/Demo/classes/Range.py.html
see handleargs function. Well that's short, but that's still too much code
for what I want to do ;-)
On Thu, Feb 2, 2012 at 7:43 PM, Terry Reedy tjre...@udel.edu wrote:
On 2/2/2012 8:09 PM, Emmanuel Mayssat
2012/2/3 Dennis Lee Bieber wlfr...@ix.netcom.com:
On Thu, 2 Feb 2012 18:19:22 -0700, Ian Kelly ian.g.ke...@gmail.com
hah!
I spent nearly 20 years having to maintain the /output/ of such a
translator.
Yes I think that is the point, if the code you maintain and the code
which
I'm getting linker errors when trying to install PyCrypto on Windows:
C:\libraries\MinGW\bin\gcc.exe -mno-cygwin -shared -s
build\temp.win-amd64-2.7\Release\src\winrand.o
build\temp.win-amd64-2.7\Release\src\winrandom.def -LC:\Python27\libs
-LC:\Python27\PCbuild\amd64 -lws2_32 -ladvapi32
would u like to help me by answering some vbasic questions about python?
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Feb 3, 2012 at 12:06 PM, Debashish Saha silid...@gmail.com wrote:
would u like to help me by answering some vbasic questions about python?
You might prefer to ask such questions on the tutor mailing list instead:
http://mail.python.org/mailman/listinfo/tutor
Cheers,
Chris
--
On 02/03/2012 09:14 PM, Chris Rebert wrote:
On Fri, Feb 3, 2012 at 12:06 PM, Debashish Sahasilid...@gmail.com wrote:
would u like to help me by answering some vbasic questions about python?
You might prefer to ask such questions on the tutor mailing list instead:
It's a rare occurrence, but sometimes my script will terminate and I get
this:
Traceback (most recent call last):
File C:\path\to\script\script.py, line 992, in module
That's it. And the line number is always the last line of the file
(which in my case is a blank line). I have not seen this on
Hi everyone,
I`m totaly new in python and trying to figure out - how to write a list to
a file with a newline at the end of each object.
I tried alot of combinations :) like:
users = ['toli','didi']
fob=open('c:/Python27/Toli/username','w')
fob.writelines(users) + '%s\N'
fob.close()
or
Hi,
You have to iterate.
Either with
for u in users:
fob.write( u + '\n' )
or with a lambda function.
always a good call: http://python.org/
greets,
M.
On 02/03/2012 09:27 PM, Anatoli Hristov wrote:
Hi everyone,
I`m totaly new in python and trying to figure out - how to write a
list
Anatoli Hristov toli...@gmail.com wrote:
Hi everyone,
I`m totaly new in python and trying to figure out - how to write a list to a
file with a newline at the end of each object.
I tried alot of combinations :) like:
users = ['toli','didi']
fob=open('c:/Python27/Toli/username','w')
On 02/03/2012 03:27 PM, Anatoli Hristov wrote:
Hi everyone,
I`m totaly new in python and trying to figure out - how to write a list to
a file with a newline at the end of each object.
I tried alot of combinations :) like:
users = ['toli','didi']
fob=open('c:/Python27/Toli/username','w')
Thanks guys that was fast:
I used
for line in users:
fob.write(line + \n)
fob.close()
and that works
Excuse me for the stupid questions, but since one week I read alot of
python and I`m confused :p
the only program language I knew in the time was Pascal, but i forgot all
of it
cheers
Paul Rubin no.email@nospam.invalid wrote:
Both cdecimal and libmpdec have an extremely conservative release policy.
When new features are added, the complete test suite is run both with and
without Valgrind on many different platforms. With the added tests against
decNumber, this takes
在 2012年1月14日星期六UTC+8上午6时48分29秒,Evan Driscoll写道:
On 01/13/2012 03:20 PM, Neil Cerutti wrote:
They perform the same action, but their semantics are different.
operator+ will always return a new object, thanks to its
signature, and operator+= shall never do so. That's the main
difference I
On Fri, 03 Feb 2012 14:14:57 -0600, Andrew Berg wrote:
It's a rare occurrence, but sometimes my script will terminate and I get
this:
Traceback (most recent call last):
File C:\path\to\script\script.py, line 992, in module
That's it. And the line number is always the last line of the
John Nagle na...@animats.com writes:
QNX's message passing looks more like a subroutine call than an
I/O operation,
How do they enforce process isolation, or do they decide they don't need to?
--
http://mail.python.org/mailman/listinfo/python-list
In Python textbooks that I have read, it is usually not mentioned that
we can very easily program Common LISP-style closures with Python. It
is done as follows:
-
# Make a Common LISP-like closure with Python.
#
# Antti J Ylikoski 02-03-2012.
def f1():
Check your code in that module for open parenthesis something like below..
Most likely your code is looking for the closing parenthesis.
Start at the bottom and move up.
pink = str(self.RecordKey[2] --missing )
jimonlinux
On Fri, 03 Feb 2012 14:14:57 -0600, Andrew Berg wrote:
It's
On Fri, Feb 3, 2012 at 4:27 PM, Antti J Ylikoski antti.yliko...@tkk.fi wrote:
In Python textbooks that I have read, it is usually not mentioned that
we can very easily program Common LISP-style closures with Python. It
is done as follows:
-
# Make a
On Fri, 03 Feb 2012 19:15:30 -0500, inq1ltd wrote:
Check your code in that module for open parenthesis something like
below.. Most likely your code is looking for the closing parenthesis.
Start at the bottom and move up.
pink = str(self.RecordKey[2] --missing )
If that were the case,
On Sat, Feb 4, 2012 at 7:14 AM, Andrew Berg bahamutzero8...@gmail.com wrote:
It's a rare occurrence, but sometimes my script will terminate and I get
this:
Traceback (most recent call last):
File C:\path\to\script\script.py, line 992, in module
Do you call on potentially-buggy external
Petri Lehtinen pe...@digip.org added the comment:
It seems to me that the fix still needs to be backported to 3.2 and 2.7.
--
nosy: +petri.lehtinen
status: pending - open
versions: +Python 2.7, Python 3.3
___
Python tracker rep...@bugs.python.org
Petri Lehtinen pe...@digip.org added the comment:
Is it possible to compile pysqlite so that it links with both, or so that the
linking type can be changed at run time?
I'm -1 on adding a compile-time option to switch the storage backend to Python
itself, but a runtime flag or a separate
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9750
___
___
Python-bugs-list
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13299
___
___
Python-bugs-list
Stefan Krah stefan-use...@bytereef.org added the comment:
Antoine Pitrou rep...@bugs.python.org wrote:
I'm sure some admins will prefer using their system's packages (I think
buildbot is packaged for Debian/Ubuntu, I see it in Mageia's packages,
not sure about Fedora).
Yes, certainly. I had
STINNER Victor victor.stin...@haypocalc.com added the comment:
Patch version 10:
- deprecate os.stat_float_times()
- fix docstring of os.*stat() functions
- add a reference to the PEP
- add a comment to indicate that _PyTime_gettimeofday() ignores
integer overflow
--
Added file:
Giampaolo Rodola' g.rod...@gmail.com added the comment:
why is a not connected connection writable?
A non connected socket must be writable in order to connect.
if we call dispatcher.connect() immediately after .connect(),
socket error 10057 may be raised,
Not sure what you mean here.
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +mhammond
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13892
___
___
Python-bugs-list mailing
Éric Araujo mer...@netwok.org added the comment:
I like the result, thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13763
___
___
Éric Araujo mer...@netwok.org added the comment:
I don’t understand why this new function would be useful. Time-related modules
in Python are already complicated.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13850
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
resolution: - invalid
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13851
___
R. David Murray rdmur...@bitdance.com added the comment:
If you are trying to time something (an interval), having the time go backward
can really screw up your data. And that *will* happen on a system that is
running NTP (or even just resets its time). monotonic clocks were introduced
at
Éric Araujo mer...@netwok.org added the comment:
I have the same one on Debian testing:
==
FAIL: test_apropos_with_bad_package (test.test_pydoc.PydocImportTest)
Éric Araujo mer...@netwok.org added the comment:
It was me who ported that doc change from 3.2, but distutils in 2.7 does not
provide that feature. Thanks for catching it, I’ll revert the commit when I
get the chance.
--
nosy: +eric.araujo
___
Changes by Éric Araujo mer...@netwok.org:
--
assignee: docs@python - eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13865
___
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13866
___
___
Python-bugs-list
Samuel Iseli samuel.is...@gmail.com added the comment:
I would definitely classify this as a bug in Python 2.7 as it breaks
backwards-compatibility for embedding environments that default to 64bit FPU
precision (e.g. Delphi).
Additionally the bug is very hard to detect and leads to wrong
Éric Araujo mer...@netwok.org added the comment:
+1 to expanding the introduction. Do you have a phrasing suggestion?
MOTW links are a more global issue that was discussion on python-dev (I
forget the outcome,
but I think it was no).
IIRC it was on python-ideas, and (among other criticisms
Changes by Éric Araujo mer...@netwok.org:
--
resolution: works for me -
stage: - needs patch
title: cmd: no user documentation - Improve description of cmd module
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13875
Éric Araujo mer...@netwok.org added the comment:
It would be best if the 3.x docs did not use a print statement wink. The
code block should also be preceded by ::.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Agreed, this looks like a doc glitch.
--
assignee: - docs@python
components: +Documentation -Library (Lib)
nosy: +docs@python, eric.araujo, ezio.melotti
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
stage: - patch review
versions: +Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13833
___
Éric Araujo mer...@netwok.org added the comment:
As the bug/feature judgment is not easy to make, I think python-dev should be
asked.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1625
Éric Araujo mer...@netwok.org added the comment:
Thanks, now I see the usefulness.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13846
___
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13799
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
FTR I’ve fixed this and now need to find a place with SSH access so I can push.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13770
___
Éric Araujo mer...@netwok.org added the comment:
FYI I have committed the patch to my repo and will push as soon as I can.
--
assignee: tarek - eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2945
Éric Araujo mer...@netwok.org added the comment:
Please always use explicit roles in reST, i.e. :meth:`flush` instead of `flush`
(use ``flush`` when you don’t want a ton of identical links).
In the test, using assertEqual instead of assertTrue will certainly give more
useful output in case of
Éric Araujo mer...@netwok.org added the comment:
Additionally, there is no way to prevent FileType from clobbering an existing
file
when used with write mode.
I think this deserves its own feature request: now that Python 3.3 has an
“exclusive create” mode, argparse.FileType could gain
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13826
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +haypo, lemburg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13830
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
s/sure was/sure way/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13824
___
___
Éric Araujo mer...@netwok.org added the comment:
Hi,
wsgi_intercept has overridden http.client.HTTPSConnection with a class that
subclasses
HTTPSConnection and overrides a few methonds.
Do you mean that the module is monkey-patched?
Fix the issue in http/client.py:1074 by replacing
Éric Araujo mer...@netwok.org added the comment:
Should I also rewrap modified lines that were already much too long?
Please don’t, it would make the diff harder to read.
I also noticed fixed an unrelated typo in Lib/sqlite3/test/hooks.py...
Can you open a bug report for that?
I think the
Éric Araujo mer...@netwok.org added the comment:
As said on python-checkins/-dev, this bug fix should be reverted in 3.1 (in
security mode).
--
nosy: +eric.araujo
versions: -Python 2.6, Python 3.1, Python 3.4
___
Python tracker
Samuel Iseli samuel.is...@gmail.com added the comment:
There's an excess space after a line continuation backslash in my last patch,
so it doesn't compile (pyport.h, line 567).
Here's an additional patch that removes the space.
Didn't find out how to combine the 2 revisions in one patch-file...
New submission from zxw eeyore@gmail.com:
When I run the following line while the 32 bit version of python is installed
it returns false, however with the 64 bit version it correctly returns true.
os.path.exists('C:\\Windows\\System32\\msg.exe')
I'm using Python 2.7.2 with Windows 7
New submission from Sébastien Barthélémy barthel...@crans.org:
If some test module (say, testmath) fails to import some other module, unittest
reports a very misleading message:
AttributeError: 'module' object has no attribute 'testmath'
Would it be possible improve the message or, better,
Martin v. Löwis mar...@v.loewis.de added the comment:
The patch fails to apply in configure.in. Can you please regenerate it?
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13777
Tim Golden m...@timgolden.me.uk added the comment:
This is the Windows x64 file system redirector at work. I can't get
through to msdn at the moment to get a link, but Google for those
terms.
--
nosy: +tim.golden
___
Python tracker
Walter Dörwald wal...@livinglogic.de added the comment:
See this ancient posting about this problem:
http://mail.python.org/pipermail/python-dev/2002-August/027661.html
(see point 4.). So I guess somebody did finally complain! ;)
The error attributes are documented in PEP 293. The
Martin v. Löwis mar...@v.loewis.de added the comment:
Also: Can you propose test cases for this socket family?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13777
___
David Layton dmlay...@gmail.com added the comment:
Eric,
checked that the file exists
But then you’d run into race conditions. The only sure was to say if a
file can be opened is to open it.
I think you misunderstand me. I am NOT suggesting that you open and
close the file. I am saying
New submission from Ramchandra Apte maniandra...@gmail.com:
No completion appears when I import hashlib in IDLE and type in hashlib. and
press Tab to complete.
With any other module it works.
--
components: IDLE, Library (Lib)
messages: 152531
nosy: ramchandra.apte
priority: normal
Stefan Krah stefan-use...@bytereef.org added the comment:
Eric Araujo rep...@bugs.python.org wrote:
docutils is the first package that???s found in my user site-packages;
can you tell if your Crypto package is in that same location?
The package is here:
Éric Araujo mer...@netwok.org added the comment:
Adding Ned, who refactored these tests, to nosy.
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13861
___
John Dennis jden...@redhat.com added the comment:
The changesets are not in the release27-maint branch. sdist still does not
generate a correct archive for release, this is a very serious regression.
--
resolution: fixed -
status: closed - open
___
Éric Araujo mer...@netwok.org added the comment:
The changesets are not in the release27-maint branch.
Where did you look? This looks like a Subversion branch name, but now we’re
using Mercurial. If you look a few messages up, you’ll see that a changeset
was committed to the 2.7 branch and
Stephen Thorne step...@thorne.id.au added the comment:
Yep - 2.7.2 was released 11th June 2011, the fix was committed Aug 1st 2011. So
it won't be in the current 2.7 release.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Obviously I can’t fix past releases. Sometimes the time machine is not
available :)
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Michael Goderbauer cont...@m-goderbauer.de added the comment:
Here is the regenerated patch.
To write a test case I would need a PF_SYSTEM socket to connect to. As far as I
know Mac OS X doesn't provide a demo socket for this.
--
Added file:
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset aa3680d2c24d by Martin v. Löwis in branch 'default':
Issue #13777: Add PF_SYSTEM sockets on OS X.
http://hg.python.org/cpython/rev/aa3680d2c24d
--
nosy: +python-dev
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Thanks for the patch. Committed with an additional fix in refcounting.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13777
Mark Dickinson dicki...@gmail.com added the comment:
General shape of the patch looks good.
I'd suggest using a mask of _MCW_PC | _MCW_RC instead of just _MCW_PC, so that
the rounding mode is also set correctly. Probably rarely an issue in practice,
but it's the same thing that we're doing
Changes by Antoine Pitrou pit...@free.fr:
--
components: +Windows
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13889
___
zxw eeyore@gmail.com added the comment:
Ok, thanks, that fixed it. I'll probably post some example code for anyone else
who stumbles across this with the same problem, don't have the time right now
however.
--
status: open - closed
___
Python
Changes by Brian Curtin br...@python.org:
--
resolution: - invalid
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13931
___
Changes by Nick Wilson n...@njwilson.net:
--
nosy: +njwilson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13463
___
___
Python-bugs-list mailing
Ethan Furman et...@stoneleaf.us added the comment:
Because Ellipsis is now the default value for __cause__,
'raise ... from Ellipsis' is treated the same as 'raise ...'
Not exactly true -- if ... is a new exception then they are the same; if ... is
a caught exception that is being reraised,
Eric Snow ericsnowcurren...@gmail.com added the comment:
No problem, Stefan. :) The main motivation was to capture the discussion at
the time so that something actually came of it.
Adding info to the devguide, essentially the catalog/how-to of core dev
activities, was meant to simply
Tim Willis schadenfreude...@gmail.com added the comment:
The documentation appears to be up to date in the current 2.7 repository, so
this can probably be marked as closed/fixed.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 813a34170ac5 by Vinay Sajip in branch '3.1':
Revert fix for #13807 mistakenly applied in this branch.
http://hg.python.org/cpython/rev/813a34170ac5
--
___
Python tracker
Gregory P. Smith g...@krypto.org added the comment:
while the initial patch below was against 3.1 I'm only intending to commit this
to 3.2, 3.3 and 2.7.
Feature backports on lib2to3 are allowed per
http://mail.python.org/pipermail/python-dev/2011-December/115089.html.
--
nosy:
Changes by Gregory P. Smith g...@krypto.org:
Added file: http://bugs.python.org/file24411/a6cd0518495e.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13930
___
New submission from poq p...@gmx.com:
The test CheckCollationIsUsed in Lib/sqlite3/test/hooks.py never runs because
it checks the wrong version tuple. Patch attached.
--
components: Tests
files: sqlite3-test-hooks.patch
keywords: patch
messages: 152548
nosy: poq
priority: normal
poq p...@gmx.com added the comment:
Can you open a bug report for that?
Opened #13934.
I think the doc could link to the sqlite.org doc about URIs.
I considered this, but the rest of the sqlite3 module documentation doesn't
link to the sqlite.org doc pages either. There is only a link to
New submission from Oskar Wycislak canto...@gmail.com:
On line 199 in tarfile.py comparison should be done without chr() because s[0]
is an integer.
Also on line 208 there should be no ord() for the same reason.
I think this is fixed in Python 3.3
I'm sorry for not providing a patch but it's
Nadeem Vawda nadeem.va...@gmail.com added the comment:
In fact, you can create those files from python, files that python can not
unpack later.
Really? How so? BZ2File only started accepting the a mode in 3.3
(thanks to Nir's patch for this issue, actually).
If the refusal of backporting
poq p...@gmx.com added the comment:
I've attached a patch for the _array_type change.
The long double fix is probably dependent on PEP3118 (#3132).
--
keywords: +patch
Added file: http://bugs.python.org/file24413/ctypes-leak.patch
___
Python tracker
poq p...@gmx.com added the comment:
This can be closed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12993
___
___
Python-bugs-list mailing
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12142
___
___
Python-bugs-list
1 - 100 of 166 matches
Mail list logo