New submission from Rene Dudfield ill...@users.sourceforge.net:
We need to specify files to upload to pypi. Otherwise we have to use the web
interface.
'Regarding the setup.py upload command, this isn't very helpful because it
will not upload a package that was already built - for example, a
Charles-François Natali neolo...@free.fr added the comment:
It looks like Python cannot do much to workaround OpenBSD issues. IMO the
best fix is just to skip these tests on OpenBSD, until OpenBSD handles
correctly signals in programs linked to pthread. The same fix can be used
for
Nam Nguyen bits...@gmail.com added the comment:
In uint32_converter, I'm not sure the if statement comparing val and UINT32_MAX
makes sense. val was defined to be unsigned long, which is 32bit on 32-bit
compiler.
--
nosy: +Nam.Nguyen
___
Python
Nadeem Vawda nadeem.va...@gmail.com added the comment:
In uint32_converter, I'm not sure the if statement comparing val and
UINT32_MAX makes sense. val was defined to be unsigned long, which is
32bit on 32-bit compiler.
Yes, on a 32-bit system, this comparison will always be false. However,
Stefan Krah stefan-use...@bytereef.org added the comment:
I still need to understand the full impact of the PEP, but it seems
very sound. I've left two small comments on Rietveld, and there's
an additional question:
Should the input of OSError be checked?
OSError(not an errno, Bad file
Mark Dickinson dicki...@gmail.com added the comment:
is it really worth adding?
Probably not. For improvements along these lines, I'd rather see random.choice
support sets:
random.choice({1, 2})
Traceback (most recent call last):
File stdin, line 1, in module
File
John Feuerstein j...@feurix.com added the comment:
r.pop(random.randrange(0, len(r)))
So seq[random.randrange(0, len(seq))] suddenly makes random.choice(seq)
obsolete? There is no functional reasoning here, it's convenience for a common
operation.
Not all the sequences have a .pop()
New submission from Pavel Boldin boldin.pa...@gmail.com:
ctypes seems to work incorrectly with _swappedbytes_ specified.
I.e. it misses some values from buffer:
class X(ctypes.Structure):
_swappedbytes_ = 1
_pack_ = 1
_fields_ = [
('a', ctypes.c_ubyte, 4),
('b',
Ezio Melotti ezio.melo...@gmail.com added the comment:
Not all the sequences have a .pop() method.
Not all sequences support indexing or item assignment either:
All the sequences support indexing and len(), but not assignment (e.g. tuples
and strings are sequences, but they are immutable).
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12942
___
___
Python-bugs-list mailing
Jesús Cea Avión j...@jcea.es added the comment:
I am seen the same problem in 2.7 buildbots. Eric, could you apply this patch
to 2.7 branch too?.
Thanks!.
--
nosy: +jcea
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
New submission from Stefan Behnel sco...@users.sourceforge.net:
As is obvious from the code, PyModule_GetDict() can fail if being passed a
non-module object, and when the (unlikely) dict creation at the end fails. The
documentation of the C-API function should be fixed to reflect that, i.e. it
John Feuerstein j...@feurix.com added the comment:
The test doesn't have to check that seq.pop() is working fine (there are
other tests for that) but that it's actually called and that it pops the
right element from the input sequence (and not e.g. from a copy of the
sequence that might
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12915
___
___
Python-bugs-list
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset a74483c12740 by Jesus Cea in branch '2.7':
Issue #12333: fix test_distutils failures under Solaris and derivatives. Patch
by Antoine Pitrou
http://hg.python.org/cpython/rev/a74483c12740
--
Changes by Éric Araujo mer...@netwok.org:
--
assignee: docs@python - eric.araujo
nosy: +eric.araujo
versions: -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12896
___
Charles-François Natali neolo...@free.fr added the comment:
You don't have a core dump, do you?
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12936
___
Éric Araujo mer...@netwok.org added the comment:
I got your message but you committed before I could do it :) Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12333
___
Éric Araujo mer...@netwok.org added the comment:
I think we have to go without a unit test.
May I ask why? I don’t know tarfile well, but I know that a lot can be done
with unittest.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Thomas: I assume you have “hg add”-ed the file; you may need to use git-style
diffs to have new files included in diffs:
http://hgtip.com/tips/beginner/2009-10-22-always-use-git-diffs/
--
nosy: +eric.araujo
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 4c759be5 by Éric Araujo in branch '3.2':
Fix current name of the Python 3 binary on Unix (#12896).
http://hg.python.org/cpython/rev/4c759be5
--
nosy: +python-dev
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12896
Éric Araujo mer...@netwok.org added the comment:
inspect.getsource called with a class defined in the same file fails
with TypeError: module '__main__' (built-in) is a built-in class
The error message makes me think that getsource(__main__) was used, not
getsource(SomeClass). Can you check
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file23098/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12893
___
Éric Araujo mer...@netwok.org added the comment:
By testing, I mean running ./python -m test test_shutil
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1492704
___
New submission from Éric Araujo mer...@netwok.org:
The docs for the doctest module contains examples that use doctest flags to
control behavior, but the HTML version does not contain the flags, making the
examples useless.
I don’t know if this is a bug with the HTML builder or something we
Éric Araujo mer...@netwok.org added the comment:
The revision you linked to seems to say that Georg was the one who added this
code.
--
nosy: +georg.brandl
versions: +Python 3.3 -Python 3.1
___
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/issue12947
___
___
Éric Araujo mer...@netwok.org added the comment:
Ezio prompted me to give precise examples, and I can’t find any in the docs
online. Maybe it was only a local build with certain options that caused this
problem, I’ll reopen if I find out.
--
resolution: - invalid
stage: -
Éric Araujo mer...@netwok.org added the comment:
After thinking about this, I think it may be easier for everyone if I just did
the change. It’s just a list of boring grep-sed combos to run, and it’s easier
if a core dev just does it instead of reviewing a long patch. Sorry if you
invested
Georg Brandl ge...@python.org added the comment:
The revision you linked to seems to say that Georg was the one who
added this code.
Can you elaborate? Line 355 in trunk was last edited by edloper.
--
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
Hehe... Sphinx makes a point of *removing* doctest flags, to enable doctesting
of code snippets without distracting the reader with the test-internal flags.
I think it's because you used a newer version locally.
--
Gennadiy Zlobin gennad.zlo...@gmail.com added the comment:
Yes, I got Windows 7, downloaded VS 2008 express, compiled, ran
python python_d.exe -m test test_shutil
and tests failed. I found out that os.rename does not raise OSError, according
to my previous comment...
--
Éric Araujo mer...@netwok.org added the comment:
I misread the Subversion viewer, it was actually PJE in r45248 (if I read
correctly this time :)
--
nosy: +pje
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6703
New submission from Jesús Cea Avión j...@jcea.es:
Some failures in the multiprocessing testsuite can leave processes around,
hanging the buildbots (until the timeout).
I take care of this myself.
--
assignee: jcea
messages: 143783
nosy: jcea
priority: normal
severity: normal
status:
New submission from Stefan Behnel sco...@users.sourceforge.net:
In Py3, PyCode_New() takes a new argument kwonlyargcount. The signature
change is not currently in the Py3 C-API documentation.
http://docs.python.org/dev/c-api/code.html
PyCodeObject *
PyCode_New(int argcount, int
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ebeb58f3de39 by Jesus Cea in branch '3.2':
Close issue #12948: multiprocessing test failures can hang the buildbots
http://hg.python.org/cpython/rev/ebeb58f3de39
New changeset 1e189d55721c by Jesus Cea in branch
Changes by Jesús Cea Avión j...@jcea.es:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12948
___
Terry J. Reedy tjre...@udel.edu added the comment:
The immediate issue is improvement of the entries for help and help():
In builtin functions section:
Expand Invoke the built-in help system. to
Invoke the built-in help system, which uses *pydoc*.
where *pydoc* is linked to the pydoc section.
New submission from Jesús Cea Avión j...@jcea.es:
Buildbots running OpenIndiana 147 show failures in multiprocessing
test_fd_transfer:
==
ERROR: test_fd_transfer (test.test_multiprocessing.WithProcessesTestConnection)
Jesús Cea Avión j...@jcea.es added the comment:
Example:
http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.2/builds/568/steps/test/logs/stdio
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12950
Terry J. Reedy tjre...@udel.edu added the comment:
If you write 'How to debug Python code' rather than just How to use pdb, I
would start with the use of print statements and binary search. Have short
sections on using trace and profile. Very useful would be a list of error
messages and
Popa Claudiu pcmantic...@gmail.com added the comment:
Yes. On Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit
(Intel)] on win32, the result for the following lines:
import inspect
class A:
pass
inspect.getsource(A)
is:
Traceback (most recent call last):
File
Stefan Krah stefan-use...@bytereef.org added the comment:
No such luck. Somehow gdb doesn't dump the core file:
[ 25/359] test_urllib2_localnet
Fatal Python error: Segmentation fault
Current thread 0x400225f0:
File /home/user/cpython-e91ad9669c08/Lib/socket.py, line 389 in
Terry J. Reedy tjre...@udel.edu added the comment:
Can we close this as out-of-date, since 2/3rds of what you asked seems to be
done already, and the last 1/3 should (in my opinion) absolutely not be?
--
___
Python tracker rep...@bugs.python.org
New submission from शंतनू shanta...@gmail.com:
URL: http://docs.python.org/library/stdtypes.html
Following example is given.
lists = [[]] * 3
lists
[[], [], []]
lists[0].append(3)
lists
[[3], [3], [3]]
Behavior is as follows.
a = [[]] * 3
a
[[], [], []]
a[0] = 1
a
[1, [], []]
Tim Chase python.l...@tim.thechases.com added the comment:
I see the status changed to needs-patch. what do I patch against?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12940
___
Terry J. Reedy tjre...@udel.edu added the comment:
It is already available:
import pydoc
pydoc.cram('This sentence is too long to fit the space I have made
available', 28)
'This sentenc...ade available'
def cram(text, maxlen):
Omit part of a string if needed to make it fit in a maximum
Terry J. Reedy tjre...@udel.edu added the comment:
To be a little clearer, this is about dotted import names, not regular dotted
names.
pydoc.locate(path, forceload=0):
Locate an object by name or dotted path, importing as necessary
pydoc.resolve(thing, forceload=0):
Given an object or a
Terry J. Reedy tjre...@udel.edu added the comment:
3.2. Any patch should trivially port to 3.3 and 2.7
--
nosy: +terry.reedy
versions: +Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12940
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - rejected
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12941
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12942
___
___
Python-bugs-list
Jesús Cea Avión j...@jcea.es added the comment:
I have compiled ncurses myself, supporting wide characters. I get this warnings
in the buildbots:
/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Modules/_cursesmodule.c:920:
warning: implicit declaration of function 'wget_wch'
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12567
___
___
Python-bugs-list mailing list
Phillip J. Eby p...@telecommunity.com added the comment:
No, I only consolidated the two copies of the code to a single function, in
order to more easily add the PEP 302 support. The feature was already there.
--
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 9f4d72da69a8 by Jesus Cea in branch '2.7':
Fix issue #12948: multiprocessing test failures can hang the buildbots
http://hg.python.org/cpython/rev/9f4d72da69a8
New changeset 559ea53e25df by Jesus Cea in branch
Larry Hastings la...@hastings.org added the comment:
I think a pair of integers is a poor API. It ties the value of the fractional
part to nanoseconds. What happens when a future filesystem implements
picosecond resolution? And then later goes to femtoseconds? Or some platform
chooses
Alexander Belopolsky alexander.belopol...@gmail.com added the comment:
On Fri, Sep 9, 2011 at 4:50 PM, Larry Hastings rep...@bugs.python.org wrote:
..
I think a pair of integers is a poor API. It ties the value of the
fractional part to nanoseconds. What happens
when a future filesystem
Alexander Belopolsky alexander.belopol...@gmail.com added the comment:
On Fri, Sep 9, 2011 at 5:22 PM, Alexander Belopolsky
rep...@bugs.python.org wrote:
..
If history repeats, struct stat will grow new st_xtimesuperspec
fields, st_xtimespec will become a macro expanding to
Lars Gustäbel l...@gustaebel.de added the comment:
It's the low-level operating system aspects of tarfile that are very difficult
to test, e.g. filesystem and operating system dependent features such as
symbolic links, hard links, file permissions, ownership. It is not even
possible to
Larry Hastings la...@hastings.org added the comment:
To support higher resolution
will need to supply 3 fields in st_xtimesuperspec: tv_sec and tv_nsec
packed in st_xtimespec (say tv_timespec) and new tv_psec field.
st_xtime will now be st_xtimesuperspec.tv_timespec.tv_sec and
New submission from Jesús Cea Avión j...@jcea.es:
Solaris/Illumos (OpenIndiana) have several more Scheduling Policies, specially
if the program is running under a Solaris Zone.
OpenIndiana buildbots are running under Zones, and the test is failing because
current (under Zones) scheduling
Martin v. Löwis mar...@v.loewis.de added the comment:
This predates both the inclusion of Decimal in Python (2.4) and
nanosecond resolution in the utime API (2008). I could find no
discussion of the change, so I don't know what other representations
were considered. It's hard to say what
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset e1644c8edc3e by Jesus Cea in branch 'default':
Close issue 12952: Solaris/Illumos (OpenIndiana) Scheduling policies
http://hg.python.org/cpython/rev/e1644c8edc3e
--
nosy: +python-dev
resolution: - fixed
Jesús Cea Avión j...@jcea.es added the comment:
Under Solaris 10 Update 9, FSS (Fair Share Scheduling) is usually used in the
Zones, but it is not defined in sched.h, so the test will fail.
--
___
Python tracker rep...@bugs.python.org
Jesús Cea Avión j...@jcea.es added the comment:
This fix is incorrect. It is ignoring a common case (a process running under a
Solaris Zone) completelly.
Since the intention of the test is to check the access to the scheduling
information of a different process, I change it to access the
Larry Hastings la...@hastings.org added the comment:
I've drawn an ASCII table summarizing the proposals so far. If I've made any
factual errors I trust you'll let me know.
=type means os.stat().st_mtime is changed to that type.
+type means os.stat() grows a new field using that type,
and
Larry Hastings la...@hastings.org added the comment:
s/pair-of-floats/pair-of-ints/
Also, to be clear: yocto is the smallest defined SI prefix. And what I meant
when I referred to 10**-3 was, float128 could handle 10**-24 but not 10**-27.
According to my back-of-the-envelope calculations,
New submission from Hagen Fürstenau ha...@zhuliguan.net:
I noticed that some function calls don't get reported by profile/cProfile. For
example, 'len' works fine, but calls to 'range' or functions in 'itertools'
don't show up. Is this a known limitation?
I remember that there was a bug in
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset dba886806eb3 by Jesus Cea in branch 'default':
Better fix for #12763: test_posix failure on OpenIndiana
http://hg.python.org/cpython/rev/dba886806eb3
--
___
Python
New submission from paul j3 ajipa...@gmail.com:
The Windows programming guidelines for the multiprocessing module documentation
should include a warning that any logging initialization should be protected by
the 'if __name__' block. Otherwise you will get duplicate logging entries for
the
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 9ef10328180b by Jesus Cea in branch 'default':
Yet another fix for #12763: test_posix failure on OpenIndiana
http://hg.python.org/cpython/rev/9ef10328180b
--
___
Python
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12941
___
___
Tim Chase python.l...@tim.thechases.com added the comment:
Patch attached.
--
keywords: +patch
versions: -Python 2.7, Python 3.2
Added file: http://bugs.python.org/file23123/issue12940.diff
___
Python tracker rep...@bugs.python.org
Meador Inge mead...@gmail.com added the comment:
I can reproduce this on Fedora 15 with the Python tip revision. I am
investigating the behavior now.
--
nosy: +meadori
stage: - needs patch
type: - behavior
versions: +Python 3.2, Python 3.3
___
Alexander Belopolsky alexander.belopol...@gmail.com added the comment:
On Fri, Sep 9, 2011 at 5:42 PM, Larry Hastings rep...@bugs.python.org wrote:
..
How is this superior to using either Decimal or float128?
It is explicit about the units of time used. If we use named tuples
and retain C API
Alexander Belopolsky alexander.belopol...@gmail.com added the comment:
On Fri, Sep 9, 2011 at 6:18 PM, Larry Hastings rep...@bugs.python.org wrote:
..
I've drawn an ASCII table summarizing the proposals so far.
You did not mention closely matches C API as an upside.
--
Jesús Cea Avión j...@jcea.es added the comment:
I am seeing this failure from time to time in OpenIndiana buildbots. For
instance
http://www.python.org/dev/buildbot/all/builders/AMD64%20OpenIndiana%203.x/builds/1751/steps/test/logs/stdio
Seems a clear race condition.
--
nosy: +jcea
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12914
___
John O'Connor tehj...@gmail.com added the comment:
Moved {l,r,}strip to stringlib as well as the bloom filters from unicodeobject.
I think it cleans things up nicely. Now there is one implementation for all 3
types. This patch also improves performance for bytearray and slightly for
bytes. I
Changes by John O'Connor tehj...@gmail.com:
Removed file: http://bugs.python.org/file22982/strip_perf.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12807
___
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
A few thoughts:
* no one has ever made a request for this
* different people may want to do it in different ways
(the formulas are hard-wired).
* the '...' connector is hardwired
(perhaps ' ... ' would look less odd).
* we
Jesús Cea Avión j...@jcea.es added the comment:
This failure happens only in 32 bits, not in 64 bits. I suspect a alignment
issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12950
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 1fde7cf94c76 by Jesus Cea in branch 'default':
Close #12950: multiprocessing test_fd_transfer fails under OpenIndiana
http://hg.python.org/cpython/rev/1fde7cf94c76
--
nosy: +python-dev
resolution: - fixed
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset cd15473a9de2 by Jesus Cea in branch '2.7':
Close #12950: multiprocessing test_fd_transfer fails under OpenIndiana
http://hg.python.org/cpython/rev/cd15473a9de2
--
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 0f50b8379614 by Jesus Cea in branch '3.2':
Close #12950: multiprocessing test_fd_transfer fails under OpenIndiana
http://hg.python.org/cpython/rev/0f50b8379614
New changeset e37488e78cfa by Jesus Cea in branch
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6560
___
___
Python-bugs-list mailing list
Ezio Melotti ezio.melo...@gmail.com added the comment:
I don't see where is the bug. If you do
lists = [[]] * 3
lists
[[], [], []]
you are creating a list that contains 3 references to the same list, as you can
see here:
lists[0] is lists[1] is lists[2]
True
[id(l) for l in lists]
Ezio Melotti ezio.melo...@gmail.com added the comment:
Warning: gathering the results for the topic 'modules' can take
considerable time and have side effects as it imports *every* module
available to get at its doc string.
http://docs.python.org/documenting/style.html#affirmative-tone
Ezio Melotti ezio.melo...@gmail.com added the comment:
FWIW I almost always use print for debugging, and find the use of a real
debugger overkill in Python in most of the cases. People coming from other
languages often feel the need of using a debugger because that's what works
best with the
90 matches
Mail list logo