Christopher Smith smi...@users.sourceforge.net added the comment:
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
Nice to see a good thing get even better. Thanks for you work.
Chris Smith
--
___
Python
Urjit Bhatia urjits...@gmail.com added the comment:
Using the same code example as above, I added a simple print statement in the
set method being defined in the defproperty and it fired correctly for -
a.childNodes[0].attributes='something'
**My print statement:**in defproperty set for name:
New submission from Stefan Krah stefan-use...@bytereef.org:
A couple of -1.0 error return codes aren't documented, see for
example PyFloat_AsDouble() and PyComplex_AsCComplex().
--
assignee: docs@python
components: Documentation
keywords: easy
messages: 148789
nosy: docs@python,
Mark Dickinson dicki...@gmail.com added the comment:
Well, it's sort of documented implicitly: from
http://docs.python.org/c-api/intro.html#exceptions
In general, when a function encounters an error, it sets an exception,
discards any object references that it owns, and returns an error
New submission from lennartyseboodt lennart.ysebo...@philips.com:
Python does not warn/error when importing a module where the module.py file no
longer exists, but there is still a .pyc file present.
It also does not warn when the imported file.py is a symlink pointing nowhere.
As long as
New submission from Andrey Morozov andrey.moro...@itseez.com:
run_me.py:
import subprocess, sys
e = {'PATH_TO_MY_APPS' : path/to/my/apps}
p = subprocess.Popen(sys.executable + test1.py 123, env=e, shell=True,
stdout=subprocess.PIPE)
print(p.stdout.readlines())
p.wait()
test1.py:
1: import
Andrey Morozov andrey.moro...@itseez.com added the comment:
WIDW ?
--
Added file: http://bugs.python.org/file23839/test1.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13524
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Python doesn't require the .py to run the code if there's a .pyc. This is
expected so there's no need to give a warning.
If the .py is present but it's a symlink pointing nowhere, it might make sense
to give a warning before falling back
Tim Golden m...@timgolden.me.uk added the comment:
The environment passed to a Windows process must contain
certain things. (I don't at this moment remember exactly
what). You can't just pass the one thing you're adding.
Change your e = ... line to something like:
e = os.environ
Andrey Morozov andrey.moro...@itseez.com added the comment:
it fix my problem:
e = os.environ.copy()
e['PATH_TO_MY_APPS'] = path/to/my/apps
p = subprocess.Popen(sys.executable + test1.py 123, env=e, shell=True,
stdout=subprocess.PIPE)
answer: need have copy of environments
--
Stefan Krah stefan-use...@bytereef.org added the comment:
Ultimately, I think it would make sense to remove all __int__
conversions from Objects/longobject.c;
+1
I think this API cleanup is worth some (probably very limited)
breakage in third party modules.
--
New submission from Nicolas Goutte nicolas.gou...@extragroup.de:
Current Behaviour
The tutorial of Python 3.2.x has an example to set an encoding in a source
file: http://docs.python.org/py3k/tutorial/interpreter.html#source-code-encoding
It explains to set the following line at the start of
Changes by Nicolas Goutte nicolas.gou...@extragroup.de:
Added file: http://bugs.python.org/file23841/windows_1252ok.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13525
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
versions: +Python 2.7, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13525
___
Stefan Krah stefan-use...@bytereef.org added the comment:
Good point. - I just had to figure out if the pattern
Py_complex c = PyComplex_AsCComplex(w);
if (c.real == -1.0 PyErr_Occurred()) {
...
will always be reliable in the future. The source of PyComplex_AsCComplex()
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 3eb73f45a614 by Charles-François Natali in branch 'default':
Issue #12612: Add some Valgrind suppressions for 64-bit machines. Patch by Paul
http://hg.python.org/cpython/rev/3eb73f45a614
--
nosy: +python-dev
Charles-François Natali neolo...@free.fr added the comment:
Committed, thanks for the patch!
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12612
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 3b505df38fd8 by Jason R. Coombs in branch '3.2':
Issue #12666: Clarifying changes in map for Python 3
http://hg.python.org/cpython/rev/3b505df38fd8
New changeset 0e2812b16f5f by Jason R. Coombs in branch '3.2':
Changes by Jason R. Coombs jar...@jaraco.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12666
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ee94b89f65ab by Jason R. Coombs in branch '2.7':
Issue #13211: Add .reason attribute to HTTPError to implement parent class
(URLError) interface.
http://hg.python.org/cpython/rev/ee94b89f65ab
New changeset
Changes by Jason R. Coombs jar...@jaraco.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13211
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +Arfrever, belopolsky, draghuram, eric.araujo, gagenellina, georg.brandl,
giampaolo.rodola, ijmorlan, terry.reedy, ysj.ray, zooko
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
ISTM --with-readline=yes should just be --with-readline, and the =no forms
should just be --without-readline. That would be more in line with other
options and less confusing (--without-readline=no ?!).
There is no trunk anymore now that we’ve
Éric Araujo mer...@netwok.org added the comment:
And if this is really two different requests (port readline module to FreeBSD
i.e. change if __APPLE__ to if HAVE_EDITLINE and give more control about
readline vs. editline in the configure script), then two reports should be
opened.
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo, haypo
versions: +Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13500
___
Changes by Éric Araujo mer...@netwok.org:
--
title: configparser - configparser can’t read file objects from urlopen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13518
___
Éric Araujo mer...@netwok.org added the comment:
For ./configure, --includedir and --libdir both cannot handle multiple
packages.
I see “packages” means “directories” here. Is it a standard configure feature
to support multiple --includedir and --libdir? Does it work if you pass
Éric Araujo mer...@netwok.org added the comment:
Thank you sir. I fixed the directive markup in 4f860536efa3, I’m committing
the rest now.
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 9ffb00748a47 by Éric Araujo in branch 'default':
Fix glitches in email.policy docs (#12208)
http://hg.python.org/cpython/rev/9ffb00748a47
--
nosy: +python-dev
___
Python
Paul Price pr...@astro.princeton.edu added the comment:
Welcome. Thank you!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12612
___
___
Antoine Pitrou pit...@free.fr added the comment:
I think it's still a good idea to spell it out explicitly in each function
description. The document pointed by Mark is long enough that it's easy to
overlook or forget that single important statement.
--
nosy: +pitrou
Antoine Pitrou pit...@free.fr added the comment:
For the record, the SSL module has a separate security considerations section:
http://docs.python.org/dev/library/ssl.html#security-considerations
--
___
Python tracker rep...@bugs.python.org
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13521
___
___
Ned Deily n...@acm.org added the comment:
Without having yet done a detailed review of the patch and the configure
options, I don't see a need to open a second issue. The scope of this one is
fine: generalizing the support of libedit to other platforms.
--
Ezio Melotti ezio.melo...@gmail.com added the comment:
Attached a patch to make the CSS used for warnings and notes less evident by
removing the red/gray background color.
--
keywords: +patch
Added file: http://bugs.python.org/file23842/issue13515.diff
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file: http://bugs.python.org/file23843/warnnew.png
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13515
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file: http://bugs.python.org/file23844/warnold.png
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13515
___
Antoine Pitrou pit...@free.fr added the comment:
Attached a patch to make the CSS used for warnings and notes less
evident by removing the red/gray background color.
This really years for an icon, IMO. A bit more indenting would be good,
too, so that it stands out clearly from the rest of the
Jesús Cea Avión j...@jcea.es added the comment:
Atomic and faster... +1.
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13521
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset fb8b6d310fb8 by Meador Inge in branch '2.7':
Issue #13513: IOBase docs incorrectly link to the readline module
http://hg.python.org/cpython/rev/fb8b6d310fb8
New changeset 9792e812198f by Meador Inge in branch '3.2':
Meador Inge mead...@gmail.com added the comment:
Fixed. Thanks for the review y'all.
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13513
New submission from STINNER Victor victor.stin...@haypocalc.com:
Attached patch modifies the following function to emit a DeprecationWarning:
* PyUnicode_GET_SIZE() (and so PyUnicode_GET_DATA_SIZE())
* PyUnicode_AS_UNICODE()
* PyUnicode_AsUnicodeAndSize() (and so PyUnicode_AsUnicode())
*
Antoine Pitrou pit...@free.fr added the comment:
I'm not sure it is customary for C APIs to emit deprecation warnings.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13526
Antoine Pitrou pit...@free.fr added the comment:
Indeed, this is a feature, not a bug. Lone pyc files are used by some people to
provide binary only distributions of Python software (I'm not really saying
it's a good idea, but some people rely on it).
As for symlinks, well... This would
New submission from Antoine Pitrou pit...@free.fr:
The Other Graphical User Interface Packages page (library/othergui.html)
lists Python megawidgets and Tkinter3000 Widget Construction Kit (WCK).
These two projects look pretty much dead to me, so I'm proposing to remove them.
--
Tim Golden m...@timgolden.me.uk added the comment:
Re-opening because there's a real problem here which can crash Python hard.
Simplest reproduction:
import sys
import subprocess
subprocess.Popen (sys.executable, env={})
Affects 2.x and 3.x tip (haven't tried others yet but I don't imagine
Antoine Pitrou pit...@free.fr added the comment:
Re-opening because there's a real problem here which can crash Python
hard.
Works under Linux. Is it Windows-specific?
--
nosy: +pitrou
stage: test needed -
versions: -Python 3.1
___
Python
Tim Golden m...@timgolden.me.uk added the comment:
Yes. I've added the Windows component on the tracker.
(At least I think I have). It's to do with CreateProcess
needing at least certain items in the environment passed.
I'm trying to track down some docs on MSDN which specify
which must be
Roger Serwy roger.se...@gmail.com added the comment:
I have given this issue some further consideration, and realized that my +1
recommendation was not correct.
Starting the interactive python interpreter will automatically include [''] in
sys.path. A fresh restart of IDLE's shell does NOT
Julian Berman julian+python@grayvines.com added the comment:
I know this is a feature, and on occasion as pointed out a useful one. But in
some cases it can be a tad annoying as the OP probably considered it.
I had a recent example where a lingering .pyc made my test suite pass (and me
Eli Bendersky eli...@gmail.com added the comment:
+1
--
keywords: +easy
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13527
___
Antoine Pitrou pit...@free.fr added the comment:
The 3.x buildbots are all broken:
http://www.python.org/dev/buildbot/all/waterfall?category=3.x.stablecategory=3.x.unstable
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
Is the following change in behavior caused by the fix for this issue?
$ python3.2 -c $'class A(IOError):\n def __init__(self, arg): pass\nA(arg=1)'
$ python3.3 -c $'class A(IOError):\n def __init__(self, arg):
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
I suspect that this problem is caused by the fix for issue #12555.
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13211
Nick Coghlan ncogh...@gmail.com added the comment:
In Python 3.2 and later, standalone .pyc files are no longer created as a side
effect of import. Instead, cached files are stored in a __pycache__
subdirectory and ignored completely if the corresponding source file is no
longer present.
Nick Coghlan ncogh...@gmail.com added the comment:
Indeed, this seems to be the most likely culprit for the current buildbot
failures in the new urllib2 tests:
http://www.python.org/dev/buildbot/all/builders/AMD64%20Gentoo%20Wide%203.x/builds/2868/steps/test/logs/stdio
--
resolution:
Ron Adam ron3...@gmail.com added the comment:
Instead of a get_instructions() function, How about using a DisCode class that
defines the API for accessing Opinfo tuples of a disassembled object.
So instead of...
for instr in dis.bytecode_instructions(thing):
process(instr)
You
Jason R. Coombs jar...@jaraco.com added the comment:
Antoine, I think Arfrever is on to something here. It does appear the new test
added to test_urllib2 is failing, but for reasons I don't exactly understand.
I'm initializing the HTTPError instance according to its signature in
urllib.error,
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset a3ddee916808 by Jason R. Coombs in branch 'default':
Pass positional arguments - HTTPError is not accepting keyword arguments.
Reference #13211 and #12555.
http://hg.python.org/cpython/rev/a3ddee916808
--
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset a3ddee916808 by Jason R. Coombs in branch 'default':
Pass positional arguments - HTTPError is not accepting keyword arguments.
Reference #13211 and #12555.
http://hg.python.org/cpython/rev/a3ddee916808
--
Jon Kuhn jonk...@gmail.com added the comment:
This is my first contribution to a real open source project.
Attached is my patch. Suggestions for improvements are welcome.
--
keywords: +patch
nosy: +Jon.Kuhn
Added file: http://bugs.python.org/file23847/issue13464.patch
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file:
http://bugs.python.org/file23569/issue11816_get_opinfo_branch_20111031.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
hgrepos: -17
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
___
Python-bugs-list mailing
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file: http://bugs.python.org/file23773/9512712044a6.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
hgrepos: +93
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
___
Python-bugs-list mailing
Changes by Nick Coghlan ncogh...@gmail.com:
Added file: http://bugs.python.org/file23848/9512712044a6.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Benjamin Peterson benja...@python.org added the comment:
Quoting the PEP While the Py_UNICODE representation and APIs are deprecated
with this PEP, no removal of the respective APIs is scheduled. The APIs should
remain available at least five years after the PEP is accepted
I don't think
Nick Coghlan ncogh...@gmail.com added the comment:
OK, there's something crazy going on with Create Patch failing to pick up the
latest changes. I've removed all the obsolete patches, and am doing another
merge from default to see if I can get it to pick things up correctly.
--
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file: http://bugs.python.org/file23848/9512712044a6.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Nick Coghlan ncogh...@gmail.com added the comment:
Grr, Create Patch insists on trying to produce a patch based on
https://bitbucket.org/ncoghlan/cpython_sandbox/changesets/9512712044a6.
That checkin is from *September* and ignores all my recent changes :P
Relevant meta-tracker issue:
Nick Coghlan ncogh...@gmail.com added the comment:
OK, manual up-to-date patch attached.
--
Added file:
http://bugs.python.org/file23849/issue11816_get_opinfo_branch_20111204.diff
___
Python tracker rep...@bugs.python.org
Nick Coghlan ncogh...@gmail.com added the comment:
@Ron: Now that it has a reasonably clear signature, I could see my way clear to
making the Instruction._disassemble() method public, which makes it easy for
people to compose their own disassembly output.
For all the other display methods, I
72 matches
Mail list logo