Martin v. Löwis mar...@v.loewis.de added the comment:
This switch is intentionally not documented.
--
nosy: +loewis
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7821
Steven D'Aprano steve+pyt...@pearwood.info added the comment:
If the switch is intentionally not documented, perhaps it should be removed
from here:
http://docs.python.org/using/cmdline.html#command-line
where it is listed but not explained anywhere. As it stands now, the
*existence* of the
Stefan Behnel sco...@users.sourceforge.net added the comment:
I'll add a couple of comments about the relevant parts of the code that appears
to trigger the crash.
The code runs through the parse tree and applies transformations to it.
1) For node matching, we use a dispatcher (in Visitor.py)
Dirkjan Ochtman dirk...@ochtman.nl added the comment:
Yeah, I'll get to it. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7733
___
___
Stefan Krah stefan-use...@bytereef.org added the comment:
I wonder if this is technically a bug. The stream is not opened for reading and
yet you do an fread. I quickly glanced through the
C-Standard and I did not find an _explicit_ paragraph that this is
undefined behavior, but personally I'd
Meador Inge mead...@gmail.com added the comment:
Attached an updated patch with:
(1) The two review issues fixed.
(2) Merged the functionality of the initial patch into the existing
fixer in 'Lib/lib2to3/fixes/fix_operator.py' + a little
refactoring.
(3) Added matching test
Meador Inge mead...@gmail.com added the comment:
There is already a fixer for this in 'Lib/lib2to3/fixes/fix_imports.py'. It
was merged to the trunk in r64286.
--
nosy: +minge
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
I have now tried reproducing the problem, and still failed to. I downloaded,
from http://sourceforge.net/projects/mingw-w64/files/, the distribution
mingw-w32-bin_i686-mingw_20100123_sezero.zip.
With this, I get
Stefan Krah stefan-use...@bytereef.org added the comment:
Bug or not, this can be handled since fread sets EBADF on Windows.
--
keywords: +patch
Added file: http://bugs.python.org/file16071/fileread-errno.patch
___
Python tracker
Dan 10equa...@gmail.com added the comment:
Well now I feel really dumb. I was under the impression that pythonw.exe was a
GUI version of python.exe, which I though was console-only since up until now I
had only tried running it from the command prompt. Problem solved, thanks for
your help.
Changes by Georg Brandl ge...@python.org:
--
resolution: - duplicate
status: open - closed
superseder: - pydoc doesn't work from the command line
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7749
Changes by Georg Brandl ge...@python.org:
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7817
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +Merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7328
___
___
Python-bugs-list mailing
Antoine Pitrou pit...@free.fr added the comment:
The patch should come with a test.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5677
___
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +Merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3020
___
___
Python-bugs-list mailing
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +Merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5616
___
___
Python-bugs-list mailing
New submission from Éric Araujo mer...@netwok.org:
Howdy
I think there is a bug with 2to3’s doctest conversion:
$ echo u'éric' test
$ echo u'éric' test
$ 2to3 -d test -f unicode
--- test (original)
+++ test (refactored)
@@ -1,3 +1,3 @@
- u'éric'
+ 'éric'
u'éric'
RefactoringTool: Files
Benjamin Peterson benja...@python.org added the comment:
The output line can be anything, so it's impossible for 2to3 to know that it is
a Python expression that needs to be converted.
--
nosy: +benjamin.peterson
resolution: - wont fix
status: open - closed
Benjamin Peterson benja...@python.org added the comment:
I think the test should be in test_pep263.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7820
___
Éric Araujo mer...@netwok.org added the comment:
to know that it is a Python expression that needs to be converted.
Oh, of course. I have made two assumptions here: output lines are not
always the repr of a Python object, and the repr is not always a valid
Python expression.
I’ll have to
Benjamin Peterson benja...@python.org added the comment:
These patches cause the Windows buildbot to fail.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7671
___
Changes by Brian Curtin cur...@acm.org:
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7671
___
___
Python-bugs-list mailing
Benjamin Peterson benja...@python.org added the comment:
These patches cause the Windows buildbot to fail.
--
priority: - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7671
___
Martin v. Löwis mar...@v.loewis.de added the comment:
I don't think changing anything is necessary here. Having the option listed
gives the curious a chance to discover a piece of Python history :-)
--
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
The method was supposed to be for internal use only
I found this bug by fuzzing.
it may be worthwhile to build-out the test to accept many different possible
inputs (...)
Yeah, but I just want to avoid an assertion error :-)
New submission from Andrew Hays m...@andrewhays.net:
[{}]*3 should produce a list of dictionaries that are 3 length long, which it
does. However, one would expect that if you assign something to the keyword
'abc' in the first dicitonary (e.g., x[0]['abc'] = 'def') that the other
dictionaries
Benjamin Peterson benja...@python.org added the comment:
This is because multiply the list produces a reference to the same object 3
times.
--
nosy: +benjamin.peterson
resolution: - invalid
status: open - closed
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
I think the test should be in test_pep263.
Right! I always hesitate when adding a new test.
--
Added file: http://bugs.python.org/file16072/parser_restore_bom-3.patch
___
Python tracker
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file16068/parser_restore_bom-2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7820
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This very fix was already done in py3k with issue3661.
Unfortunately it was decided at the time that 2.6 is not affected...
Patch is OK, please apply.
--
nosy: +amaury.forgeotdarc
stage: - commit review
Antoine Pitrou pit...@free.fr added the comment:
Your patch lacked a fix for test_largefile (I think it is skipped under
Windows). I added this and committed it in r77890. Will port to py3k.
--
resolution: - accepted
versions: -Python 2.7
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
This very fix was already done in py3k with issue3661.
Oh! My patch is *very* close to this one. I just choosed 10 instead of 2 in the
unit test :-) (and I added a test to check a valid argument, py3k doesn't check
it).
Patch
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
resolution: - fixed
stage: commit review - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7819
___
New submission from Brian Harring ferri...@gmail.com:
Under py3.1, translation of the attached file works fine- under py3.2, goes
boom however.
Nothing custom in use here in terms of 2to3- there is some compatibility code
in use w/in the module but that's not affecting the translator in my
Antoine Pitrou pit...@free.fr added the comment:
Committed in py3k (r77895, r77896) and 3.1 (r77897). Thank you Pascal!
--
resolution: accepted - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker
New submission from STINNER Victor victor.stin...@haypocalc.com:
test_threadsignals leaks references. I'm unable to understand where. Maybe
somewhere around Py_AddPendingCall()?
-
$ ./python Lib/test/regrtest.py -R 3:2: test_threadsignals
test_threadsignals
beginning 5 repetitions
12345
STINNER Victor victor.stin...@haypocalc.com added the comment:
PyThreadState_Prealloc and PyThreadState_Init should (...) be prefixed with
an underscore (...)
done
_PyThreadState_New should be static (...) so something like new_threadstate
done
the last change (Py_InitializeEx() calls
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file15888/thread_prealloc_pystate-3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7544
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
ghaering I will soon push updates to the version in Python core.
What do you mean by soon?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7478
Changes by Florent Xicluna la...@yahoo.fr:
Removed file: http://bugs.python.org/file16047/issue7092_Wd_warnings.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Removed file: http://bugs.python.org/file16050/issue7092_py3k_warnings_args.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Removed file:
http://bugs.python.org/file16051/issue7092_py3k_warnings_noargs.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Added file:
http://bugs.python.org/file16075/issue7092_py3k_warnings_args_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Changes by Florent Xicluna la...@yahoo.fr:
Added file:
http://bugs.python.org/file16076/issue7092_py3k_warnings_noargs_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
New submission from Brian Harring ferri...@gmail.com:
Bit like unittest, right now it's rather hard to extend 2to3 for caching
support (and other outputs) w/out duplicating the main function.
Attached is a patch that allows the refactoring tool class to be passed in- at
the very least, this
Martin v. Löwis mar...@v.loewis.de added the comment:
Thanks for the report. This is now fixed in r77900.
--
nosy: +loewis
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7824
Brian Harring ferri...@gmail.com added the comment:
Attached is a derivative of
http://pkgcore.org/trac/pkgcore/browser/ferringb/snakeoil-dev/snakeoil/caching_2to3.py
As you can see in that function, some nastyness is required right now to slip
it in w/out duplicating code (hence the first
Martin v. Löwis mar...@v.loewis.de added the comment:
Not sure what your use case is, but I always call the refactor method of my
subclassed RefactoringTool, instead of calling main. See
distutils.util.run_2to3 for an example (and
distutils.command.build_py.build_py_2to3 for an application of
Meador Inge mead...@gmail.com added the comment:
Attached a patch that provides a (sha | md5) - hashlib fixer, covering test
cases, and updated documentation.
--
keywords: +patch
nosy: +minge
Added file: http://bugs.python.org/file16079/issue-2454.patch
New submission from Andrew Dalke da...@dalkescientific.com:
In Python 2.6 and Python 2.7a2+, I can't socket.recv_into(a byte array
instance).
I get a TypeError which complains about a pinned buffer. I have only an
inkling of what that means. Since an array.array(b) works there, and since
it
Changes by Brian Harring ferri...@gmail.com:
--
nosy: +ferringb
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1943
___
___
Python-bugs-list
Martin v. Löwis mar...@v.loewis.de added the comment:
This is fixed in Python 3.
I think it is (another) bug that it accepts array objects; it should reject
them with the same error. OTOH, recv_into should use w*.
--
nosy: +loewis
___
Python
Brian Harring ferri...@gmail.com added the comment:
@martin:
Yeah... that's probably the better approach, although seperation of processes
(in terms of setup.py triggering conversion) has some benefits.
The reason I used process seperation and invocation of main was to protect my
distutils
Changes by Brian Curtin cur...@acm.org:
--
components: -2to3 (2.x to 3.0 conversion tool)
stage: - patch review
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2454
___
Changes by Brian Curtin cur...@acm.org:
--
keywords: +needs review
priority: - normal
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7826
___
Changes by Brian Curtin cur...@acm.org:
--
priority: - normal
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7827
___
___
Andrew Hays m...@andrewhays.net added the comment:
Ah, my apolgogies, I didn't realize that. I suppose I didn't look deeply
enough into the situation. I just realized that it worked that way with
dictionaries, but by the same right, x=[[]]*3 would create [[], [], []] and if
I said x[0][0]=1
New submission from nudgenudge py...@sogetthis.com:
The documentation of chr() and ord() fails to mention that on narrow Unicode
builds, chr(n) will return a surrogate pair (hence a 2-character string) for
n=65536 and that ord(s) will accept a 2-character string if it's a surrogate
pair.
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
___
___
Python-bugs-list mailing
Changes by Martin v. Löwis mar...@v.loewis.de:
--
components: +2to3 (2.x to 3.0 conversion tool)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2454
___
Martin v. Löwis mar...@v.loewis.de added the comment:
If you meant to propose a patch that does caching, you should include the
actual caching code in the patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7826
Florent Xicluna la...@yahoo.fr added the comment:
Small note:
- the unit tests could use assertIsInstance(..., str), assertIsInstance(...,
unicode) instead of the custom methods.
- some assertTrue may be replaced by assertEqual
--
___
Python
62 matches
Mail list logo