[issue22123] Provide a direct function for types.SimpleNamespace()

2014-08-03 Thread Mark Summerfield
Mark Summerfield added the comment: I changed my suggestion but did so on the mailing list instead of here: This (importing & using types.SimpleNamespace()) is too much for children (& beginners). But perhaps what I should be asking for is for a new built-in that does what types.SimpleNamespa

[issue22126] mc68881 fpcr inline asm breaks clang -flto build

2014-08-03 Thread ivank
New submission from ivank: Build cpython master with clang -flto results in: [...] ar rc libpython3.5m.a Modules/_threadmodule.o Modules/signalmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/_weakref.o Modules/_fu

[issue18034] Last two entries in the programming FAQ are out of date (import related)

2014-08-03 Thread Wouter van Heyst
Wouter van Heyst added the comment: The attached patch changes the body of the __import__ faq entry to suggest using `importlib.import_module` instead. -- keywords: +patch nosy: +larstiq Added file: http://bugs.python.org/file36227/faq-import_module.diff ___

[issue18631] mingw: setup msvcrt and _winapi modules

2014-08-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: Roumen, can you please fill out the contributor form? -- nosy: +loewis ___ Python tracker ___ ___ P

[issue14910] argparse: disable abbreviation

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: Oh, completely missed comments there too! I hope I got them all in a good way! -- Added file: http://bugs.python.org/file36228/issue14910_4.diff ___ Python tracker __

[issue14910] argparse: disable abbreviation

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: Sorry for a new patch this close, but just tripple checked the documentation and noticed a word to much. Made it more clear hopefully -- Added file: http://bugs.python.org/file36229/issue14910_5.diff ___ Python trac

[issue22127] performance regression in socket.getsockaddr()

2014-08-03 Thread Charles-François Natali
New submission from Charles-François Natali: I noticed that socket.sendto() got noticably slower since 3.4 (at least), compared to 2.7: 2.7: $ ./python -m timeit -s "import socket; s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM); DATA = b'hello'; TARGET=('127.0.0.1', 4242)" "s.sendto(DAT

[issue22127] performance regression in socket getsockaddrarg()

2014-08-03 Thread Charles-François Natali
Changes by Charles-François Natali : -- title: performance regression in socket.getsockaddr() -> performance regression in socket getsockaddrarg() ___ Python tracker ___ ___

[issue8548] Building on CygWin 1.7: PATH_MAX redefined

2014-08-03 Thread Roumen Petrov
Roumen Petrov added the comment: Hi Mark, #else before is not solution. See unified diff below as post by Scott Rostrup lack definition Some additional information: a) move outside #ifdef HAVE_FCNTL_H : definition PATH_MAX is not related to control functions on open files (fcntl.h) b) HAVE_FC

[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io

2014-08-03 Thread Roumen Petrov
Roumen Petrov added the comment: PATH_MAX in duplicate with issue8548 Instead to modify BASECFLAGS user could configure with CPPFLAGS set if symbolic links are missing . In addition 5.9 package creates links so work around is not required . Please close as invalid. -- ___

[issue21278] Running the test suite with -v makes the test_ctypes and the test_zipimport erroneously reported as failed

2014-08-03 Thread Wouter van Heyst
Wouter van Heyst added the comment: Even running `EXTRATESTOPTS='-x test_gdb -uall -v' make testall` I can not reproduce this. I'll dig some more in the code for anything suspicious. -- nosy: +larstiq ___ Python tracker

[issue11763] assertEqual memory issues with large text inputs

2014-08-03 Thread Ezio Melotti
Ezio Melotti added the comment: The second problem I mentioned in msg134530 got fixed in #18996, making the patches on this issue obsolete. Since the other problem is now tracked in #19217, I'm going to close this. -- stage: patch review -> resolved status: open -> closed _

[issue21448] Email Parser use 100% CPU

2014-08-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching revised patch. I forgot to reapply splitlines. -- Added file: http://bugs.python.org/file36230/fix_email_parse2.diff ___ Python tracker __

[issue21448] Email Parser use 100% CPU

2014-08-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching a more extensive test -- Added file: http://bugs.python.org/file36231/test_parser.diff ___ Python tracker ___ _

[issue21448] Email Parser use 100% CPU

2014-08-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file36232/fix_prepending.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue21448] Email Parser use 100% CPU

2014-08-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file36233/fix_prepending2.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue21448] Email Parser use 100% CPU

2014-08-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file36232/fix_prepending.diff ___ Python tracker ___ ___ Python-bugs-list

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: @Antoine: We have investigated a bit here and it seems that ZFS just keeps a timestamp in seconds in the memory. See function uberblock_update in uberblock.c ( http://people.freebsd.org/~gibbs/zfs_doxygenation/html/d3/d65/uberblock_8c_source.html - Row 57)

[issue21278] Running the test suite with -v makes the test_ctypes and the test_zipimport erroneously reported as failed

2014-08-03 Thread Wouter van Heyst
Wouter van Heyst added the comment: Ezio also couldn't reproduce this, so unless someone else (ddvento?), can reproduce it, I would advocate closing this issue. -- ___ Python tracker __

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: After thinking and looking a bit on it, this patch isn't the best to put into the code what I can see. If any of these things really break, because of something completely different - we won't notice it. A more accurate solution is to maybe look on a differe

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Claudiu Popa
Claudiu Popa added the comment: I agree. The patch was merely a temporary solution to the real problem. -- ___ Python tracker ___ ___

[issue14910] argparse: disable abbreviation

2014-08-03 Thread Eli Bendersky
Eli Bendersky added the comment: No worries, Daniel. You should have received an email when comments were posted to the review, did you? If you you may want to check your settings in the bug tracker. I left a couple of additional comments on the documentation file, but other than that this LG

[issue22126] mc68881 fpcr inline asm breaks clang -flto build

2014-08-03 Thread Stefan Krah
Stefan Krah added the comment: If it works without -flto, isn't that a toolchain rather than a Python issue? -- nosy: +schwab, skrah ___ Python tracker ___ __

[issue21448] Email Parser use 100% CPU

2014-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: fix_email_parse2.diff slightly changes behavior. See my comments on Rietveld. As for fix_prepending2.diff, could you please provide any benchmark results? And there is yet one bug in current code. str.splitlines() splits a string not only breaking it at '\r'

[issue22128] patch: steer people away from codecs.open

2014-08-03 Thread Frank van Dijk
New submission from Frank van Dijk: stackoverflow.com has a zillion answers recommending the use of codecs.open() as a unicode capable drop in replacement for open(). This probably means that there is still a lot of code being written that uses codecs.open(). That's bad thing because of codecs

[issue22128] patch: steer people away from codecs.open

2014-08-03 Thread Frank van Dijk
Changes by Frank van Dijk : Added file: http://bugs.python.org/file36235/codecsopen3.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22129] Please add an equivalent to QString::simplified() to Python strings

2014-08-03 Thread Tobias Leupold
New submission from Tobias Leupold: It would be nice if a function equivalent to Qt's QString::simplified() would be added to Python's strings (cf. http://qt-project.org/doc/qt-4.8/qstring.html#simplified ). I'm not sure if my approach is good or fast, but I added this function to my code lik

[issue22128] patch: steer people away from codecs.open

2014-08-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +doerwalter, haypo, lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue22127] performance regression in socket getsockaddrarg()

2014-08-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: IDNA encoding is quite slow (see 6e1071ed4c66). I'm surprised we accept general hosnames in sendto(), though (rather than plain IP addresses). 25 µs per call is a lot for such a function. -- ___ Python tracker

[issue15428] add "Name Collision" section to argparse docs

2014-08-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- type: -> enhancement versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bu

[issue20135] FAQ need list mutation answers

2014-08-03 Thread Ezio Melotti
Ezio Melotti added the comment: Here is a new patch that includes an additional paragraph about mutation and non-mutation operations. -- Added file: http://bugs.python.org/file36236/issue20135-2.diff ___ Python tracker

[issue22126] mc68881 fpcr inline asm breaks clang -flto build

2014-08-03 Thread Andreas Schwab
Andreas Schwab added the comment: Why does the configure test succeed? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue22092] Executing some tests inside Lib/unittest/test individually throws Error

2014-08-03 Thread Ezio Melotti
Ezio Melotti added the comment: I left a comment on rietveld. Michael, do you think changing the imports is OK, or will this cause you some troubles with the external unittest package you maintain? -- assignee: -> michael.foord stage: -> patch review type: -> behavior _

[issue22129] Please add an equivalent to QString::simplified() to Python strings

2014-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is too specialized function to be included in the stdlib ar added as a method to base class. There are simpler and faster implementations of this function: def simplify(s): return ' '.join(s.strip().split()) or def simplify(s):

[issue22123] Provide a direct function for types.SimpleNamespace()

2014-08-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm not in favor of changing object() but exposing types.SimpleNamespace as built-in namespace() doesn't seem like such a bad idea, especially given Tim's penultimate Zen aphorism. -- ___ Python tracker

[issue22116] Weak reference support for C function objects

2014-08-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Wouldn't it be enough to test that one of the builtin functions is now weak > referencible? It's better to check that the weakref gets cleared when the object dies, and for that you need an object you can dispose of. --

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: #15745 is probably related to this issue -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: So me and @larstiq have been sitting with this during the sprint here and we have figured out some things but haven't had the time to put together a patch. If you put two p.touch() before starting the testing, it will not fail on BSD. What we have found out s

[issue22092] Executing some tests inside Lib/unittest/test individually throws Error

2014-08-03 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch based on Ezio's review. Thanks! -- Added file: http://bugs.python.org/file36237/fix_test_inside_unittest_v2.patch ___ Python tracker ___

[issue18766] IDLE: Autocomplete in editor doesn't work for un-imported modules

2014-08-03 Thread Mark Lawrence
Mark Lawrence added the comment: The patch is simple but I don't know enough about IDLE to comment technically, what do you think Terry? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker

[issue20135] FAQ need list mutation answers

2014-08-03 Thread Francis MB
Francis MB added the comment: A) On the example: +Also note that some operations (e.g. ``y.append(10)``/``y += [10]`` or +``y.sort()``) mutate are you saying: 1) "y.append(10)" divided by "y += [10]" or 2) "y.append(10)" and "y += [10]" I don't want to split hairs but reading it fast confused

[issue13822] is(upper/lower/title) are not exactly correct

2014-08-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18769] argparse remove subparser

2014-08-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Paul it's a simple enough patch, what do you think? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ _

[issue21448] Email Parser use 100% CPU

2014-08-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: > As for fix_prepending2.diff, could you please provide > any benchmark results> No. Inserting at the beginning of a list is always O(n) and inserting at the beginning of a deque is always O(1). -- ___ Python tr

[issue22130] Logging fileConfig behavior does not match documentation

2014-08-03 Thread Brendan Meeder
New submission from Brendan Meeder: The 2.7.8 documentation for fileConfig says that for disable_existing_loggers: "If specified as False, loggers which exist when this call is made are left alone." This is actually not the case- they are enabled after the call to fileConfig. In particular, t

[issue21448] Email Parser use 100% CPU

2014-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, but if n is limited, O(n) becomes O(1). In our case n is the number of fed but not read lines. I suppose the worst case is a number of empty lines, in this case n=8192. I tried following microbenchmark and did not noticed significant difference. $ ./py

[issue13540] Document the Action API in argparse

2014-08-03 Thread Jason R. Coombs
Jason R. Coombs added the comment: @paul.j3, It wasn't from a different project, it's just that the bug tracker when it does a diff always uses the tip of each branch instead of the most recent common ancestor, so it effectively calculated the the diff of the changes plus the inverse of every

[issue13540] Document the Action API in argparse

2014-08-03 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file36001/9ac347a7f375.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue16428] turtle with compound shape doesn't get clicks

2014-08-03 Thread Jessica McKellar
Changes by Jessica McKellar : -- keywords: +needs review stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue18624] Add alias for iso-8859-8-i which is the same as iso-8859-8

2014-08-03 Thread Jessica McKellar
Changes by Jessica McKellar : -- keywords: +needs review stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue13540] Document the Action API in argparse

2014-08-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 956c6d33a57d by Jason R. Coombs in branch '2.7': Issue #13540: Expanded argparse documents to clarify the action API http://hg.python.org/cpython/rev/956c6d33a57d New changeset 008a5473f300 by Jason R. Coombs in branch '2.7': Issue #13540: Removed r

[issue13540] Document the Action API in argparse

2014-08-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset e2c9e0a3ef02 by Jason R. Coombs in branch '3.2': Issue #13540: Expanded argparse documents to clarify the action API http://hg.python.org/cpython/rev/e2c9e0a3ef02 New changeset c10a6ca9cb32 by Jason R. Coombs in branch '3.2': Issue #13540: Removed r

[issue13540] Document the Action API in argparse

2014-08-03 Thread Jason R. Coombs
Jason R. Coombs added the comment: Commits applied to Python 2.7 and 3.2-3.5. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue14910] argparse: disable abbreviation

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: Eli, will look into those tomorrow morning, so a final patch will come during tomorrow. Checked my spam folder - and there they where, fixed the settings now so I get it faster. -- ___ Python tracker

[issue17603] AC_LIBOBJ replacement of fileblocks

2014-08-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17769] python-config --ldflags gives broken output when statically linking Python with --as-needed

2014-08-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Max sorry about the delay in giving you a response. Can somebody please pick this up, I can't find on the experts list who to put on the nosy list for build issues. -- nosy: +BreamoreBoy ___ Python tracker

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Larry Hastings
Larry Hastings added the comment: os.stat can return something more precise than nanosecond resolution? -- ___ Python tracker ___ ___

[issue22128] patch: steer people away from codecs.open

2014-08-03 Thread STINNER Victor
STINNER Victor added the comment: See also my PEP 400: http://legacy.python.org/dev/peps/pep-0400/ -- ___ Python tracker ___ ___ Pytho

[issue22127] performance regression in socket getsockaddrarg()

2014-08-03 Thread STINNER Victor
STINNER Victor added the comment: For Python, the encoder is only used when you pass a Unicode string. -- ___ Python tracker ___ ___ P

[issue17774] unable to disable -r in run_tests.py

2014-08-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15992] Strict aliasing violations in Objects/unicodeobject.c

2014-08-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue16429] Emit SyntaxWarning for code that risks UnboundLocalError

2014-08-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- type: -> enhancement versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mail

[issue22128] patch: steer people away from codecs.open

2014-08-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Pointing people to io.open() as alternative to codecs.open() is a good idea, but that doesn't make codecs.open() less useful. The reason why codecs.open() uses binary mode is to avoid issues with automatic newline conversion getting in the way of the file'

[issue15018] Incomplete Python LDFLAGS and CPPFLAGS used for extension modules on posix

2014-08-03 Thread Mark Lawrence
Mark Lawrence added the comment: Who is best placed to comment on build issues? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 2.6, Python 3.1, Python 3.2 ___ Python tracker ___

[issue22092] Executing some tests inside Lib/unittest/test individually throws Error

2014-08-03 Thread Michael Foord
Michael Foord added the comment: Patch looks fine, easy enough to change for unittest2 (if I ever have the time for a new release!) -- ___ Python tracker ___ ___

[issue18841] math.isfinite fails with Decimal sNAN

2014-08-03 Thread Mark Lawrence
Mark Lawrence added the comment: Steven, can you propose a patch for this? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-bug

[issue18766] IDLE: Autocomplete in editor doesn't work for un-imported modules

2014-08-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: A least a manual (human) test is needed: a description of steps that do not work now and do work with a patch. Currently, get_entity() is only called in one place in fetch_completions; it is not used anywhere else in idlelib. (Call_tips defines another get_ent

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Francis MB
Francis MB added the comment: > What we have found out so far is that during file creation the > resolution of the timestamp is higher then at the touch attempt > when a file exists. Could it help to create 2 files (file 1, wait a bit, file 2) and then do the checks only with file 1? -

[issue22127] performance regression in socket getsockaddrarg()

2014-08-03 Thread Charles-François Natali
Charles-François Natali added the comment: > For Python, the encoder is only used when you pass a Unicode string. Hm... I'm passing ('127.0.0.1', 4242)as destination, and you can see in the above profile that the idna encode function is called. This doesn't occur with 2.7. -- _

[issue22127] performance regression in socket getsockaddrarg()

2014-08-03 Thread Charles-François Natali
Charles-François Natali added the comment: OK, I think I see what you mean: $ ./python -m timeit -s "import socket; s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)" "s.sendto(b'hello', ('127.0.0.1', 4242))"1 loops, best of 3: 44.7 usec per loop $ ./python -m timeit -s "import socket; s

[issue21448] Email Parser use 100% CPU

2014-08-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: A deque is typically the right data structure when you need to append, pop, and extend on both the left and right side. It is designed specifically for that task. Also, it nicely cleans-up the code by removing the backwards line list and the list reversal

[issue1234674] filecmp.cmp's "shallow" option

2014-08-03 Thread Steven Barker
Steven Barker added the comment: I've worked on this filecmp issue some more, and I have some new patches. First up is a patch that only modifies the tests. It has one test that fails without the behavior patch. The test patch also modifies some other tests so that they will work after the beh

[issue1234674] filecmp.cmp's "shallow" option

2014-08-03 Thread Steven Barker
Changes by Steven Barker : Added file: http://bugs.python.org/file36239/filecmp_behavior_and_doc_fix.diff ___ Python tracker ___ ___ Python-

[issue14910] argparse: disable abbreviation

2014-08-03 Thread Berker Peksag
Changes by Berker Peksag : -- components: +Library (Lib) -None stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue22123] Provide a direct function for types.SimpleNamespace()

2014-08-03 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-08-03 Thread Larry Hastings
Larry Hastings added the comment: Diff tweaked to undo the ill-concieved Py_RETURN_NONE change. Thanks, Zachary! Does it now compile and pass tests on Windows? -- Added file: http://bugs.python.org/file36240/larry.clinicize.posixmodule.7.diff ___ P

[issue1186900] nntplib shouldn't raise generic EOFError

2014-08-03 Thread Martin Panter
Martin Panter added the comment: I could be wrong, but isn’t this error raised when expecting a response from any command, not just during “connection establishment”? Perhaps change the docstring to say something like “Connection closed unexpectedly” instead. -- nosy: +vadmium ___

[issue22131] uuid.bytes optimization

2014-08-03 Thread Kevin London
New submission from Kevin London: Generating the byte representation of a UUID object can be a little faster by using binascii's unhexlify on the hex value of the UUID object. In my testing, I saw about a 5.5x speed increase with the attached changes. Here are a set of benchmarks that I ran,

[issue22131] uuid.bytes optimization

2014-08-03 Thread Alex Gaynor
Alex Gaynor added the comment: `self.int.to_bytes(16, byteorder='big')` looks to be even faster (about 3x on my machine) -- nosy: +alex ___ Python tracker ___ __

[issue22131] uuid.bytes optimization

2014-08-03 Thread Alex Gaynor
Changes by Alex Gaynor : -- versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue22131] uuid.bytes optimization

2014-08-03 Thread Alex Gaynor
Alex Gaynor added the comment: What I said only applies to the Python3 version of this patch. Thanks for submitting this. -- ___ Python tracker ___ _

[issue22127] performance regression in socket getsockaddrarg()

2014-08-03 Thread Antoine Pitrou
Antoine Pitrou 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. -- ___

[issue22116] Weak reference support for C function objects

2014-08-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue22116] Weak reference support for C function objects

2014-08-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: @kilowu, your patch looks good to me. As a necessary step to include your contribution, could you please sign the contributor's agreement? See https://www.python.org/psf/contrib/contrib-form/ Thank you very much! -- __

[issue22131] uuid.bytes optimization

2014-08-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: I also like the way the patch cleans-up the code. -- nosy: +rhettinger ___ Python tracker ___ ___

[issue11445] python.exe on OS X shared-llbrary build erroneously linked to MacPorts python library

2014-08-03 Thread koobs
Changes by koobs : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue20402] List comprehensions should be noted in for loop documentation

2014-08-03 Thread Rob Lanphier
Rob Lanphier added the comment: > Moving it earlier in the tutorial is likely to do more harm than help. > In teaching Python, you need some gap between learning for-loops and > learning list comprehensions (the former is a prerequisite for the > latter). The problem here is that many people ge

[issue22105] Idle: Hang during File "Save As"

2014-08-03 Thread Joe Gaspard
Joe Gaspard added the comment: Thanks Terry. As best I can recall was trying to save a ".py" while IDLE and the "'.py" file were both open, but definitely not a 'Library' file. I did try to save the IDLE window display once, and it may have been this time. My programs have been much smaller

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: @Larry The issue is the following: In the test after the first p.touch (Pdb) old_mtime 1407128672.4133856 (Pdb) old_mtime_ns 1407128672413385711 After second p.touch (Pdb) st.st_mtime_ns 14071286890 (Pdb) st.st_mtime 1407128689.0 So the issue is that

[issue22105] Idle: Hang during File "Save As"

2014-08-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The latest version is best. We are gradually fixing crashes, closes, hangs, and other bugs. When you replay by email, please delete the quoted message, as it is redundant with the message already displayed and just noise. I am closing this issue for now becau

[issue20402] List comprehensions should be noted in for loop documentation

2014-08-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, I'm going to close this one because I believe it would make the documentation worse. I don't believe that making a forward reference from section 4.2 to section 5.6 helps anyone. -- resolution: -> rejected status: open -> closed __

[issue22097] Linked list API for ordereddict

2014-08-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Antoine, can I close this one? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Larry Hastings
Larry Hastings added the comment: So why can't you use the "ns" parameter for os.utime()? -- ___ Python tracker ___ ___ Python-bugs-li

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: @Larry - the problem arrives after the second touch, which does os.utime(FILE, None) if the file exists. The os.utime that is in the test-code doesn't really break anything, what breaks the test is the second touch. -- __

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Larry Hastings
Larry Hastings added the comment: A cursory read of the source code suggests everybody is doing the right thing. Can you run this with a debug build of CPython, put a breakpoint in posix_utime, and check that when it's called for the second p.touch that it's correctly calling the underlying f

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: @Larry - we did that yesterday and on the FreeBSD-machine the regular utimes was used and not utimensat. utimensat is not available on FreeBSD 10 so it fall backs to regular utimes to be used in os.utime. But when a file is created it is the file system that s

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Larry Hastings
Larry Hastings added the comment: And was the "time" argument passed in to utimes() set to NULL? -- ___ Python tracker ___ ___ Python-

[issue21091] EmailMessage.is_attachment should be a method

2014-08-03 Thread Joseph Godbehere
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 __

[issue21091] EmailMessage.is_attachment should be a method

2014-08-03 Thread Nick Coghlan
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 revie

[issue1602] windows console doesn't print or input Unicode

2014-08-03 Thread Drekin
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 characters

  1   2   >