Larry Hastings added the comment:
And was the time argument passed in to utimes() set to NULL?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19838
___
Joseph Godbehere added the comment:
Patch to change message.is_attachment from a property to a normal method. I've
updated the doc and all calls to is_attachment.
--
keywords: +patch
nosy: +joegod
Added file: http://bugs.python.org/file36243/attach_not_property.patch
Nick Coghlan added the comment:
This is your call David - I agree consistency is highly desirable, and having a
chance to find and fix this kind of discrepancy is a large part of why we
introduced provisional APIs.
--
assignee: - r.david.murray
nosy: +ncoghlan
stage: - commit review
Drekin added the comment:
I think that boxes are ok, it's just missing font. Without active workaroud
there is just UnicodeEncodeError (with cp852 for me). There is problem with
astral characters – I'm getting each box twice. It is possible that Windows
console doesn't handle astral
New submission from Csaba Makara:
If I use the distutils.dir_util.copy_tree to copy the same directory structure
multiple times to the same place (even from multiple sources) but I remove and
recreate the target_directory before each copy, the following exception accurs:
g:\_Programmingpy
Wei Wu added the comment:
@pitrou, thank you for the review. I have signed the contributor agreement form
after submitting this patch. Please let me know if there is a further step to
help you to verify the signed contributor agreement.
I'm really glad to have the chance to contribute back to
Serhiy Storchaka added the comment:
Unfortunately this will silently break existing code because msg.is_attachment
will be always true. But it is possible to make EmailMessage.is_attachment a
property which returns special callable with the __bool__() method which will
emit deprecation
STINNER Victor added the comment:
Abc is a bytes string in Python 2 and an Unicode string in Python 3.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22127
___
Serhiy Storchaka added the comment:
The alternative is to make EmailMessage.is_multipart a property.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21091
___
Charles-François Natali added the comment:
Note that even the bytes version is still quite slow. UDP is used for
light-weight protocols where you may send thousands or more messages per
second. I'd be curious what the sendto() performance is in raw C.
Ah, I wouldn't rely on the absolyte
Serhiy Storchaka added the comment:
If such changes are acceptable, here is a part of my large patch fo modernizing
stdlib sources.
Some microbenchmarks:
$ ./python -m timeit -s from uuid import NAMESPACE_DNS as u -- u.bytes
$ ./python -m timeit -s from uuid import NAMESPACE_DNS as u --
Daniel Eriksson added the comment:
I'm no expert at all at GDB, but I will give it a go and if this is wrong I can
try a lot more.
Breakpoint 1, posix_utime (self=0xf00918ed8, args=0xf014459f8, kwargs=0x0) at
./Modules/posixmodule.c:4838
4838PyObject *times = NULL;
Current language:
Daniel Eriksson added the comment:
Fixed documentation issues
--
Added file: http://bugs.python.org/file36246/issue14910_6.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14910
___
Serhiy Storchaka added the comment:
Just noticed that this patch also fixes a bug. When os.popen() fails in
_ipconfig_getnode(), pipe is not set, and then NameError is raised in the
finally branch.
--
___
Python tracker rep...@bugs.python.org
Shiz added the comment:
And a last tiny fix: on a lot of systems (except apparently the system I was
using for my main testing), a freshly-built HOSTPYTHON will be confused to look
for libraries, and the invocation will fail because it can't bootstrap itself.
Point it to the current Python
Daniel Lenski added the comment:
Serhiy,
52 usec/loop doesn't seem like much overhead. This is not 52 usec per row
fetched, but just 52 usec per cursor.execute(). An example where 1 row is
fetched for each cursor would show this more clearly.
The advantage of namedtuple is that it's a very
Larry Hastings added the comment:
The no debug info makes me think you're using a release build. Please
recompile making sure that -O0 and -g are both set. By default the
makefile has -O3 and -g, so normally you just change the -O3 to -O0,
then make clean and make.
--
Geert Jansen added the comment:
New patch with a Python-level API (option #3).
This needs some more tests, and docs.
--
Added file: http://bugs.python.org/file36248/ssl-memory-bio-3.patch
___
Python tracker rep...@bugs.python.org
Daniel Eriksson added the comment:
I used configure with --with-pydebug, will look closer on it when I get to
the office
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19838
___
Daniel Eriksson added the comment:
To confirm, my OPT-line is
OPT=-g -O0 -Wall -Wstrict-prototypes
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19838
___
Serhiy Storchaka added the comment:
Yes, above microbenchmarks measure the time of execute() + the time of fetching
one row. Here is more precise microbenchmarks.
$ ./python -m timeit -s import sqlite3; con = sqlite3.connect(':memory:');
con.execute('create table t (a, b)') -s for i in
Joseph Godbehere added the comment:
Very good point, Serhiy.
Here is an alternative patch, which instead changes Message.is_multipart from a
method to a property as per your suggestion. This way incorrect usage should
fail noisily.
This patch is against the relevant docs, tests, is_multipart
Serhiy Storchaka added the comment:
Perhaps it is time to add support of ipaddress objects in socket functions.
Then we could avoid address parsing in tight loop not only for Unicode strings,
but for bytes strings too.
s = socket.socket(...)
addr =
Ronald Oussoren added the comment:
BTW. There is also an argument to be made against my patch and for a
documentation update: it is unclear to me if clang ever creates _Bool false
values where the bit pattern isn't exactly the same as the zero value of an
integer of the same size (for example
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
assignee: ronaldoussoren -
components: -Macintosh
nosy: -ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22131
___
Serhiy Storchaka added the comment:
Here is a patch with more soft transition. Message.is_multipart() still works
but emits deprecation warning.
--
Added file: http://bugs.python.org/file36250/multipart_is_property_2.patch
___
Python tracker
Nick Coghlan added the comment:
Based on the provisional API status, a faster deprecation plan could be to
do Serhiy's patch in a 3.4 maintenance release and the hard break in 3.5
--
___
Python tracker rep...@bugs.python.org
Christian Henz added the comment:
I think the cElementTree portion of the applied changes is incorrect.
`close_source` is never actually set to `True`.
http://hg.python.org/cpython/file/50722d2f08c7/Modules/_elementtree.c#l2926
--
nosy: +Christian.Henz
Antoine Pitrou added the comment:
Yes, I think it's clear it's not going anywhere. In a way the standard list is
good enough for those uses, except when your lists start growing really big (I
don't know where the threshold is, but tens of thousands I'd say). Perhaps
someone should make a blog
Antoine Pitrou added the comment:
Perhaps it is time to add support of ipaddress objects in socket functions.
What I was thinking too :-)
However, beware the parsing cost of ipaddress objects themselves.
One common pattern when doing UDP networking is the following:
def
Zachary Ware added the comment:
Yep, Windows is happy with the latest patch.
Since this is such an enormous patch, I'm assuming it's only going into 3.5 and
have changed the version field accordingly.
--
versions: +Python 3.5 -Python 3.4
___
Python
Changes by Brian Curtin br...@python.org:
--
nosy: -brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7334
___
___
Python-bugs-list
Changes by Antoine Pitrou pit...@free.fr:
--
stage: - patch review
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22131
___
Charles-François Natali added the comment:
Parsing a bytes object i.e. b'127.0.0.1' is done by inet_pton(), so
it's probably cheap (compared to a syscall).
If we had getaddrinfo() and gethostbyname() return bytes instead of
strings, it would be a huge gain.
--
Ezio Melotti added the comment:
OK, I'll close the issue then.
Alessandro, thanks anyway for the patch!
--
resolution: - out of date
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
Ezio Melotti added the comment:
Examples updated, thanks for the report!
--
resolution: - fixed
stage: - resolved
status: open - closed
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18588
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: needs patch - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20402
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: test needed - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21987
___
___
Roundup Robot added the comment:
New changeset c39457a07caa by Ezio Melotti in branch '3.4':
#18588: update the timeit examples to be consistent.
http://hg.python.org/cpython/rev/c39457a07caa
New changeset 45b208ae9eab by Ezio Melotti in branch 'default':
#18588: merge with 3.4.
Antoine Pitrou added the comment:
I think we should hurry on to be in time for 3.5.
Your patch looks ok to me. Just update the version number in the docs ;)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5411
Antoine Pitrou added the comment:
I think the API choice looks reasonable, thank you (haven't looked at the patch
in detail). A question though: does it support server-side SNI? AFAIR
server-side SNI requires you to be able to change a SSL object's context.
--
Antoine Pitrou added the comment:
Am adding the asyncio maintainers as well as Ben Darnell (Tornado) to the nosy
list, for feedback.
--
nosy: +Ben.Darnell, gvanrossum, yselivanov
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Indeed, I find the description rather vague and potentially misleading.
Connection establishment would usually refer to the TCP connection, but an
EOFError is actually a high-level, logical error (it has nothing to do with
networking per se: it's probably
Martin v. Löwis added the comment:
Charles-François: you get the idna overhead in 2.7, too, by specifying
u'127.0.0.1' as the address.
The idna overhead could be bypassed fairly easily in C by:
1. checking that the string is an ASCII string (this is possible in constant
time, in 3.x)
2.
Roundup Robot added the comment:
New changeset 9ec2b429a607 by Ezio Melotti in branch '3.4':
#20977: fix undefined name in the email module. Patch by Rose Ames.
http://hg.python.org/cpython/rev/9ec2b429a607
New changeset 944fc499ccd3 by Ezio Melotti in branch 'default':
#20977: merge with 3.4.
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
nosy: +ezio.melotti
resolution: - fixed
stage: needs patch - resolved
status: open - closed
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
New submission from Saimadhav Heblikar:
I found this bug on gnome where IDLE's activity bar entry is named Toplevel
instead of IDLE. After digging through the X11 and gnome docs, the WM_CLASS
was wrongly being set as Toplevel. This patch has been verified using xprop,
that the correct
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:
Added file: http://bugs.python.org/file36252/after-before.png
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22133
___
Ezio Melotti added the comment:
Éric, can this be closed then?
--
nosy: +ezio.melotti
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue103
___
Martin v. Löwis added the comment:
The attached patch makes the difference between Unicode and bytes strings for
host names negligible, plus it slightly speeds up the bytes case as well.
--
keywords: +patch
Added file: http://bugs.python.org/file36253/skip_idna.diff
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
resolution: - works for me
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21278
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
versions: -Python 2.7, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1371826
___
Steve Dower added the comment:
That installer doesn't even try and set PATHEXT, and the 3.4 installer appears
to set it correctly (for .PY, but not .PYW).
Are you sure it was an installer from python.org that overwrote your setting?
--
___
Python
Geert Jansen added the comment:
A question though: does it support server-side SNI? AFAIR server-side SNI
requires you to be able to change a SSL object's context.
Yes, it does. See the following comment in _servername_callback():
/* Pass a PySSLSocket instance when using memory BIOs, but
Steve Dower added the comment:
I don't think this is an appropriate fix, since in most cases there is no need
to prevent other Python threads running while inside RegSetValue. There are
also other ways that a context switch may occur during the enumeration which
will put the program in
Antoine Pitrou added the comment:
Le 04/08/2014 11:21, Geert Jansen a écrit :
I realize the above is an abstraction violation between the C and
Python level. Now that we have an SSLObject Python level API, I could
update the code to store a weakref to the SSLObject in the _SSLSocket
(just like
Charles-François Natali added the comment:
Charles-François: you get the idna overhead in 2.7, too, by specifying
u'127.0.0.1' as the address.
I don't see it in a profile output, and the timing doesn't change
whether I pass '127.0.0.1' or b'127.0.0.1' in 2.7.
--
Antoine Pitrou added the comment:
This patch should definitely go in.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21121
___
___
Martin v. Löwis added the comment:
Please understand that Victor and I were asking you to pass a *unicode* object,
with a *u* prefix. For me, the time more-than-doubles, on OSX, with the system
python.
mvl:~ loewis$ /usr/bin/python -m timeit -s import socket; s =
Antoine Pitrou added the comment:
Ah, yes, indeed, the agreement seems to have been validated in the meantime
(you can see it by the asterisk near your name in the comments here). Thank you!
--
___
Python tracker rep...@bugs.python.org
Charles-François Natali added the comment:
Please understand that Victor and I were asking you to pass a *unicode*
object, with a *u* prefix. For me, the time more-than-doubles, on OSX, with
the system python.
Sorry, I misread 'b'.
it's a day without...
--
Serhiy Storchaka added the comment:
2. directly passing the ASCII string to setipaddr (leaving any error
detection to this routine)
This will change the type of exception. If this is acceptable and modulo
Antoine's and my nitpicks on Rietveld, the patch LGTM.
But it is too complicated.
Roundup Robot added the comment:
New changeset 9bca86812857 by Zachary Ware in branch '3.4':
Issue #22104: Don't hold a reference to the loaded TestSuite in runtest_inner
http://hg.python.org/cpython/rev/9bca86812857
New changeset 7bc53cf8b2df by Zachary Ware in branch 'default':
Closes #22104:
Zachary Ware added the comment:
Either patch makes MSVC happy; Meador's gets points from me for simplicity.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22125
___
Alex Gaynor added the comment:
Latest patch does as Donald suggests and rolls back the WantWrite changes,
fixing poplib.
--
Added file: http://bugs.python.org/file36255/ssl-backport.diff
___
Python tracker rep...@bugs.python.org
Larry Hastings added the comment:
Yeah, I've been meaning to mark all the Derby patches as 3.5. We're not adding
new Clinic conversions to 3.4.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20170
Roundup Robot added the comment:
New changeset 815f1a69283e by Ezio Melotti in branch '3.4':
#18034: update FAQ to suggest importlib.import_module instead of __import__.
Patch by Wouter van Heyst.
http://hg.python.org/cpython/rev/815f1a69283e
New changeset f78ef3819d67 by Ezio Melotti in
Ezio Melotti added the comment:
Fixed, thanks for the patch!
The other FAQ got fixed in #17177/3d3b9d456eb8.
--
assignee: docs@python - ezio.melotti
resolution: - fixed
stage: needs patch - resolved
status: open - closed
versions: +Python 2.7
___
New submission from Larry:
Certain values close to the rounding boundary are rounded down instead of up;
and this is done somewhat inconsistently.
#Example (python v2.7.8, and previous)
#almost an odd-even pattern, but not quite
for x in [1.045, 1.145, 1.245, 1.345, 1.445, 1.545, 1.645,
Éric Araujo added the comment:
In my previous message I meant that I agreed with the original request, i.e.
add --build-base to install. I will probably never have the time to write a
patch.
--
dependencies: -write a configure command
status: pending - open
Éric Araujo added the comment:
Thanks for the report. Did you find this issue with a setup.py file or with
direct usage of dir_utils.copy_tree? These distutils modules are not meant for
general use, so bugs that don’t occur during regular use of setup.py files will
probably not get fixed.
Larry Hastings added the comment:
Yup, you've got a debug build there. I'm baffled by that gdb no debug info
line then.
At line 4801 could you also
print *utime
print tv
--
___
Python tracker rep...@bugs.python.org
Daniel Eriksson added the comment:
Larry: Result of that:
(gdb) print *utime
Structure has no component named operator*.
(gdb) print tv
No symbol tv in current context.
You can also catch me on IRC with the same nickname as here
--
___
Python
Zachary Ware added the comment:
Here's an updated patch. It includes the patch from #20586 for proper
signature/docstring output in _winapi.
--
versions: +Python 3.5 -Python 3.4
Added file: http://bugs.python.org/file36256/issue20172.v7.diff
___
ingrid added the comment:
Here is a patch that will print a warning if there is an invalid config when
starting idle. Example:
Warning (from warnings module):
File /Users/ingrid/.idlerc/config-extensions.cfg, line 1
enable=1
MissingSectionHeaderError: File contains no section headers.
Changes by Larry Hastings la...@hastings.org:
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20171
___
___
Larry Hastings added the comment:
All the Derby patches should only go into trunk at this point.
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20174
___
Larry Hastings added the comment:
All the Derby patches should only go into trunk at this point.
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20175
___
Larry Hastings added the comment:
All the Derby patches should only go into trunk at this point.
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20179
___
Larry Hastings added the comment:
All the Derby patches should only go into trunk at this point.
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20177
___
Larry Hastings added the comment:
All the Derby patches should only go into trunk at this point.
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20173
___
Larry Hastings added the comment:
All the Derby patches should only go into trunk at this point.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20171
___
Larry Hastings added the comment:
All the Derby patches should only go into trunk at this point.
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20182
___
Larry Hastings added the comment:
All the Derby patches should only go into trunk at this point.
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20183
___
Larry Hastings added the comment:
All the Derby patches should only go into trunk at this point.
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20178
___
Larry Hastings added the comment:
All the Derby patches should only go into trunk at this point.
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20180
___
Larry Hastings added the comment:
All the Derby patches should only go into trunk at this point.
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20185
___
Larry Hastings added the comment:
All the Derby patches should only go into trunk at this point.
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20184
___
Larry Hastings added the comment:
All the Derby patches should only go into trunk at this point.
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20186
___
Larry Hastings added the comment:
All the Derby patches should only go into trunk at this point.
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20181
___
Changes by Roumen Petrov bugtr...@roumenpetrov.info:
--
nosy: +rpetrov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15018
___
___
Raymond Hettinger added the comment:
Perhaps someone should make a blog post comparing
theoretical and actual performance of various data
types (hint hint ;-)).
Great idea.
Thanks Antoine.
--
resolution: - rejected
stage: - resolved
status: open - closed
Xavier de Gaye added the comment:
After refleak_3.patch, test_pdb_next_command_in_generator_for_loop is the only
remaining test that sets a breakpoint without reinitializing the breakpoints
numbering first.
As a result, this test may also fail in the future when tests are reordered by
the
Larry Hastings added the comment:
I talked to puppet on IRC for a while and we figured out the following about
his OS:
* He has utime() and utimes(), but no utimensat().
* utimes() can write with *microsecond* resolution.
* stat() reads the time with *nanosecond* resolution. (He has
Serhiy Storchaka added the comment:
Éric?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5411
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Xavier de Gaye:
Pdb sets a handler for the SIGINT signal (which is sent when the user presses
Ctrl-C on the console) when you give a continue command.
'continue' is not the only pdb command that may be interrupted, all the
commands that resume the execution of the program
Changes by Xavier de Gaye xdeg...@gmail.com:
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22135
___
___
Python-bugs-list
Ned Deily added the comment:
What you are seeing is due to the limitations of binary floating-point
arithmetic. The issue is described in more detail in the Python tutorial:
https://docs.python.org/2/tutorial/floatingpoint.html#tut-fp-issues
--
nosy: +ned.deily
resolution: - not a
Zachary Ware added the comment:
You're right, of course; I don't know how I got a non-screwball result in prior
testing. Here's an updated patch.
I have not come up with any better alternative.
--
stage: - patch review
Added file: http://bugs.python.org/file36259/issue20323.v2.diff
Daniel Eriksson added the comment:
Updated patch
--
Added file: http://bugs.python.org/file36260/issue14910_7.diff.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14910
___
1 - 100 of 150 matches
Mail list logo