New submission from eduardo schettin...@gmail.com:
From the example:
http://docs.python.org/py3k/library/tempfile.html#examples
The error message is weird... but I guess the problem is the default mode 'w+b'.
Python 3.3a0 (default:78a66c98288d, Apr 9 2011, 16:13:31)
[GCC 4.4.5] on linux2
Carl Brewer c...@bl.echidna.id.au added the comment:
I know this is closed etc... but Plone (the CMS I use) is tied to various
versions of Python, in particular 2.6 at this time. Having it not build on
Open[Solaris/Indiana] means I can't install current versions of Plone/Zope on
this
New submission from anatoly techtonik techto...@gmail.com:
The following command is broken on Python 2.5/2.6
python -m unittest test_file
It outputs
--
Ran 0 tests in 0.000s
OK
But in Python 2.7 the same command works
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11819
___
___
Roundup Robot devnull@devnull added the comment:
New changeset 87d89f767b23 by Ross Lagerwall in branch '3.2':
Issue #11818: Fix tempfile examples for Python 3.
http://hg.python.org/cpython/rev/87d89f767b23
--
nosy: +python-dev
___
Python tracker
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Fixed the examples for Python 3.
It writes and reads bytes now. Also fixed the old Python 2 print statement.
--
assignee: docs@python - rosslagerwall
nosy: +rosslagerwall
resolution: - fixed
status: open - closed
versions:
New submission from kent fuzzba...@comcast.net:
attempting to run an os.system command under the idle 3 shell swallows the out
put.
Idle 3 is running on a 32 bit kde mandriva linux.
import os
os.system('ls')
0
os.system('pwd')
0
as you can see it returns a 0 indicating successful
kent fuzzba...@comcast.net added the comment:
running it as a file from idle gives the same result.
import os
print (os.system('pwd'))
0
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11820
Antoine Pitrou pit...@free.fr added the comment:
I know this is closed etc... but Plone (the CMS I use) is tied to
various versions of Python, in particular 2.6 at this time. Having it
not build on Open[Solaris/Indiana] means I can't install current
versions of Plone/Zope on this platform.
Carl Brewer c...@bl.echidna.id.au added the comment:
Plone ships with a universal installer which expects particular versions of
python (and PIL etc etc) which makes it easy to build on, for example, many
Linux distros, but it's just not working on Open[Solaris|Indiana] and also
NetBSD
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11810
___
___
Python-bugs-list mailing
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Isn't this an exact duplicate of issue6514? Or do you suggest something else?
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11819
New submission from david db.pub.m...@gmail.com:
(This is similar to http://bugs.python.org/issue10274)
The smtplib module should provide a means to validate a remote server ssl
certificate(s).
It would be 'nice' if smtplib.SMTP_SSL smtplib.starttls took in arguments to
validate the remote
Changes by Antoine Pitrou pit...@free.fr:
--
title: smptlib should support SSL contexts - smtplib should support SSL
contexts
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8809
___
Antoine Pitrou pit...@free.fr added the comment:
Duplicate of issue11821.
--
nosy: +pitrou
resolution: - duplicate
status: open - closed
superseder: - smtplib should provide a means to validate a remote server ssl
certificate(s)
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Oops, I meant issue8809.
--
superseder: smtplib should provide a means to validate a remote server ssl
certificate(s) - smtplib should support SSL contexts
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6514
___
___
Python-bugs-list
Georg Brandl ge...@python.org added the comment:
Yes, this is a duplicate.
--
nosy: +georg.brandl
resolution: - duplicate
status: open - closed
superseder: - python -m unittest testmodule does not run any tests
___
Python tracker
Roundup Robot devnull@devnull added the comment:
New changeset dda33191f7f5 by Ezio Melotti in branch 'default':
#2650: re.escape() no longer escapes the _.
http://hg.python.org/cpython/rev/dda33191f7f5
--
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2650
___
Changes by david db.pub.m...@gmail.com:
--
nosy: +db
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8809
___
___
Python-bugs-list mailing list
Charles-Francois Natali neolo...@free.fr added the comment:
I think those lockups are due to a race in the Pool shutdown code.
In Lib/multiprocessing/pool.py:
def close(self):
debug('closing pool')
if self._state == RUN:
self._state = CLOSE
Thomas Scrace t...@scrace.org added the comment:
Is anybody working on this issue? If not, I think it looks like it might be a
nice one for me to tackle. I'll go ahead unless there are any objections.
--
nosy: +thomas.scrace
___
Python tracker
Nick Coghlan ncogh...@gmail.com added the comment:
I really like the idea of adding some lower level infrastructure to dis to make
it generator based, making the disassembly more amenable to programmatic
manipulation.
Consider if, for each line disassemble() currently prints, we had an
Nick Coghlan ncogh...@gmail.com added the comment:
Changed issue title to cover ideas like get_opinfo().
--
title: Add functions to return disassembly as string - Refactor the dis module
to provide better building blocks for bytecode analysis
___
Nick Coghlan ncogh...@gmail.com added the comment:
Oops, I forgot to edit my comment to match the OpInfo definition I used in the
proof-of-concept:
OpInfo = collections.namedtuple(OpInfo,
opindex opcode opname oparg details starts_line is_jump_target)
--
Eugene Toder elto...@gmail.com added the comment:
So in the near term, dis-based tests should continue to copy/paste sys.stdout
redirection code?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
R. David Murray rdmur...@bitdance.com added the comment:
Python 2.7 is closed for new features, I afraid. And Berkeley DB is not
included in the Python3 stdlib. It has reverted to being maintained entirely
as a third party package.
--
nosy: +r.david.murray
resolution: - rejected
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Georg? Benjamin? Do you think this fix should be backported?
--
nosy: +benjamin.peterson, georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11802
Nick Coghlan ncogh...@gmail.com added the comment:
If we decide our long term goal is the use of the opcode stream for
programmatic access, then yes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
Filip Gruszczyński grusz...@gmail.com added the comment:
Here is a patch for this. I am not much of technical writer, so please be
patient with me. I tried to provide all the information about parameters, that
can be inferred from the code and experimenting. I have left out one parameter
-
Darren Dale dsdal...@gmail.com added the comment:
So, are there objections to this patch, or can it be merged?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11610
___
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - duplicate
stage: needs patch - committed/rejected
status: open - closed
superseder: - email.header.Header doesn't fold headers correctly
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Is anybody working on this issue? If not, I think it looks like it
might be a nice one for me to tackle. I'll go ahead unless there are
any objections.
Nobody is working on it AFAIK. Feel free to give it a try :)
--
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
On Sat, Apr 09, 2011 at 02:18:01PM +, STINNER Victor wrote:
I noticied a strange behaviour:
Still fun, but this one could even make it except for termios
flags, multibyte and the real problem, signal handling.
Hm.
--
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
I reviewed this.
And moved a _PartialFile-only _read() case to _PartialFile where
it belongs (*this* _ProxyFile will never be extended to stand
alone so i shouldn't have moved that the other direction at all).
--
Added
R. David Murray rdmur...@bitdance.com added the comment:
This was quite the adventure. The more I worked on fixing the tests, the more
if/else cases the existing splitting algorithm grew. When I reached the point
where fixing one test broke two others, I thought maybe it was time to try a
New submission from Raymond Hettinger raymond.hettin...@gmail.com:
Now that list comprehensions mask run their internals in code objects (the same
way that genexps do), it is getting harder to use dis() to see what code is
generated. For example, the pow() call isn't shown in the following
Alex Gaynor alex.gay...@gmail.com added the comment:
FWIW in PyPy we have
https://bitbucket.org/pypy/pypy/src/default/lib_pypy/disassembler.py which we
use for some of our tools.
--
nosy: +alex
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
Note that this fix solves issue 11772, so I've closed that one as a duplicate.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11492
Changes by pyloz merlinschindlb...@googlemail.com:
--
nosy: +smerlin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
___
Python-bugs-list
New submission from Raymond Hettinger raymond.hettin...@gmail.com:
The argument to CALL_FUNCTION is overloaded to show both the number of
positional arguments and keyword arguments (shifted by 8-bits):
dis(foo(10, opt=True))
1 0 LOAD_NAME0 (foo)
3
Changes by Antoine Pitrou pit...@free.fr:
--
keywords: +easy
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11823
___
___
Greg Słodkowicz jerg...@gmail.com added the comment:
Following Nick's advice, I extended runpy.run_module to accept an extra
parameter to be used as replacement __main__ namespace.
Having this, I can make this temporary __main__ accessible in main() in modules
like trace/profile/pdb even if
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11823
___
___
Python-bugs-list
Charles-Francois Natali neolo...@free.fr added the comment:
Attached is a patch fixing this race, and a similar one in Pool's terminate.
--
keywords: +patch
Added file: http://bugs.python.org/file21608/pool_shutdown_race.diff
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Nice! See also issue11814.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8428
___
Roundup Robot devnull@devnull added the comment:
New changeset d5e43afeede6 by Antoine Pitrou in branch '3.2':
Issue #8428: Fix a race condition in multiprocessing.Pool when terminating
http://hg.python.org/cpython/rev/d5e43afeede6
--
nosy: +python-dev
Roundup Robot devnull@devnull added the comment:
New changeset c046b7e1087b by Antoine Pitrou in branch '3.2':
Issue #11814: Fix likely typo in multiprocessing.Pool._terminate().
http://hg.python.org/cpython/rev/c046b7e1087b
New changeset 76a3fc180ce0 by Antoine Pitrou in branch 'default':
Roundup Robot devnull@devnull added the comment:
New changeset dfc61dc14f59 by Antoine Pitrou in branch '2.7':
Issue #8428: Fix a race condition in multiprocessing.Pool when terminating
http://hg.python.org/cpython/rev/dfc61dc14f59
--
___
Python
Antoine Pitrou pit...@free.fr added the comment:
Should be fixed now, thank you Charles-François.
As for the TestCondition failure, there's a separate issue11790 open.
(Victor, please don't file many bugs in a single issue!)
--
resolution: - fixed
stage: - committed/rejected
status:
Antoine Pitrou pit...@free.fr added the comment:
Fixed. The _terminate() issue has been fixed separately in issue8428.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
___
Roundup Robot devnull@devnull added the comment:
New changeset 36648097fcd4 by Raymond Hettinger in branch '3.2':
Cleanup and modernize code prior to working on Issue 11747.
http://hg.python.org/cpython/rev/36648097fcd4
New changeset 58a3bfcc70f7 by Raymond Hettinger in branch 'default':
Roundup Robot devnull@devnull added the comment:
New changeset 28705a7987c5 by Ezio Melotti in branch '2.7':
#4877: Fix a segfault in xml.parsers.expat while attempting to parse a closed
file.
http://hg.python.org/cpython/rev/28705a7987c5
--
nosy: +python-dev
Ezio Melotti ezio.melo...@gmail.com added the comment:
This is now fixed in 2.7, I also removed the unnecessary call to PyErr_Clear in
ba699cf9bdbb (2.7), 6b4467e71872 (3.2), and 2d1d9759d3a4 (3.3).
--
assignee: - ezio.melotti
resolution: - fixed
stage: commit review -
kent fuzzba...@comcast.net added the comment:
When starting idle from a terminal the output from the command is sent to the
terminal. When starting idle from the desktop, the output disappears except
for the exit status. Same behavior with 2.65
--
R. David Murray rdmur...@bitdance.com added the comment:
Nudge: report on the Ubuntu bug tracker that this is still an issue with 3.2:
https://bugs.launchpad.net/bugs/517552
--
nosy: +r.david.murray
versions: +Python 3.2, Python 3.3
___
Python
Changes by Terry J. Reedy tjre...@udel.edu:
--
assignee: jvr -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue985064
___
___
Python-bugs-list
New submission from Andreas Stührk andy-pyt...@hammerhartes.de:
The recent addition of ABI flags broke the freeze tool as it doesn't construct
the paths to required files correctly any longer. The attached patch fixes the
issue for me, but I'm not too sure that I used the right config values.
Reid Kleckner r...@mit.edu added the comment:
Thanks for fixing the negative timeout issue. I assumed incorrectly that a
negative timeout would cause it to check and return immediately if it would
otherwise block.
As for the docs, the 3.2/3.3 issue was fixed in [[72e49cb7fcf5]].
I just
Reid Kleckner r...@mit.edu added the comment:
I think the best behavior would be to go ahead and check one last time before
raising the exception, so _remaining_time should turn a negative value into 0
(assuming that a timeout value of zero does the right thing for our use case).
If people
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue985064
___
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Note that this behavior is documented[0]:
The XML data is parsed using the Expat parser from xml.parsers.expat – see its
documentation for possible exceptions on ill-formed XML. Unknown elements will
simply be ignored by the plist parser.
Ned Deily n...@acm.org added the comment:
I agree. If it were important to make plistlib error handling more useful,
using a different parser would be the way to go, I think. In any case, Apple
has deprecated the use of XML plists and moved to a binary plist format that
plistlib does not
65 matches
Mail list logo