Re: Odd version scheme

2015-02-12 Thread Ian Kelly
On Thu, Feb 12, 2015 at 11:58 AM, MRAB pyt...@mrabarnett.plus.com wrote: On 2015-02-12 17:35, Ian Kelly wrote: On Thu, Feb 12, 2015 at 10:19 AM, Skip Montanaro skip.montan...@gmail.com wrote: I believe this sort of lexicographical comparison wart is one of the reasons the Python-dev gang

Re: Python discussed in Nature

2015-02-12 Thread Chris Angelico
On Fri, Feb 13, 2015 at 5:29 AM, John Ladasky john_lada...@sbcglobal.net wrote: It works fine, at least on my Ubuntu Linux system (and what scientist doesn't use Linux?). I also have special mathematical symbols, superscripted numbers, etc. in my program comments. It's easier to read 2x³ +

Re: Async/Concurrent HTTP Requests

2015-02-12 Thread Paul Rubin
Marko Rauhamaa ma...@pacujo.net writes: I have successfully done event-driven I/O using select.epoll() and socket.socket(). Sure, but then you end up writing a lot of low-level machinery that packages like twisted take care of for you. -- https://mail.python.org/mailman/listinfo/python-list

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: bench_scandir.py: dummy benchmark to compare listdir+stat vs scandir+is_dir. os.scandir() is always slower than os.listdir() on tmpfs and ext4 partitions of a local hard driver. I will try with NFS. Results with scandir-5.patch on Fedora 21 (Linux). ---

Re: Python discussed in Nature

2015-02-12 Thread John Ladasky
On Thursday, February 12, 2015 at 3:08:10 AM UTC-8, Fabien wrote: ... what a coincidence then that a huge majority of scientists (including me) dont care AT ALL about unicode. But since scientists are not paid to rewrite old code, the scientific world is still stuck to python 2. I'm a

[issue23146] Incosistency in pathlib between / and \

2015-02-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, this is a bug indeed. A patch would be welcome ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23146 ___

[issue20503] super behaviour and abstract base classes (either implementation or documentation/error message is wrong)

2015-02-12 Thread eryksun
eryksun added the comment: Given super(cls, obj), cls needs to be somewhere in type(obj).__mro__. Thus the implementation checks PyType_IsSubtype instead of the more generic PyObject_IsSubclass. In this case int's MRO is unrelated to numbers.Number: print(*int.__mro__, sep='\n')

Re: Async/Concurrent HTTP Requests

2015-02-12 Thread Paul Rubin
Ari King ari.brandeis.k...@gmail.com writes: I'd like to query two (or more) RESTful APIs concurrently. What is the pythonic way of doing so? Is it better to use built in functions or are third-party packages? Thanks. The two basic approaches are event-based asynchronous i/o (there are various

[issue9698] When reusing an handler, urllib(2)'s digest authentication fails after multiple regative replies

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: +demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9698 ___ ___

[issue23455] file iterator deemed broken; can resume after StopIteration

2015-02-12 Thread Andrew Dalke
New submission from Andrew Dalke: The file iterator is deemed broken. As I don't think it should be made non-broken, I suggest the documentation should be changed to point out when file iteration is broken. I also think the term 'broken' is a label with needlessly harsh connotations and

Re: Odd version scheme

2015-02-12 Thread Mark Lawrence
On 12/02/2015 19:16, Ian Kelly wrote: On Thu, Feb 12, 2015 at 11:58 AM, MRAB pyt...@mrabarnett.plus.com wrote: On 2015-02-12 17:35, Ian Kelly wrote: On Thu, Feb 12, 2015 at 10:19 AM, Skip Montanaro skip.montan...@gmail.com wrote: I believe this sort of lexicographical comparison wart is one

Re: Python discussed in Nature

2015-02-12 Thread Ethan Furman
On 02/12/2015 12:46 AM, Steven D'Aprano wrote: Nature, one of the world's premier science journals, has published an excellent article about programming in Python: http://www.nature.com/news/programming-pick-up-python-1.16833 That is a very nice article, thanks for sharing! -- ~Ethan~

Re: Async/Concurrent HTTP Requests

2015-02-12 Thread Marko Rauhamaa
Paul Rubin no.email@nospam.invalid: Marko Rauhamaa ma...@pacujo.net writes: I have successfully done event-driven I/O using select.epoll() and socket.socket(). Sure, but then you end up writing a lot of low-level machinery that packages like twisted take care of for you. Certainly. It

fuzzysearch: find not exactly what you're looking for!

2015-02-12 Thread Tal Einat
Hi everyone, I'd like to introduce a Python library I've been working on for a while: fuzzysearch. I would love to get as much feedback as possible: comments, suggestions, bugs and more are all very welcome! fuzzysearch is useful for searching when you'd like to find nearly-exact matches. What

Re: Async/Concurrent HTTP Requests

2015-02-12 Thread Zachary Ware
On Thu, Feb 12, 2015 at 10:37 AM, Ari King ari.brandeis.k...@gmail.com wrote: Hi, I'd like to query two (or more) RESTful APIs concurrently. What is the pythonic way of doing so? Is it better to use built in functions or are third-party packages? Thanks. Have a look at asyncio (new in

Re: Odd version scheme

2015-02-12 Thread MRAB
On 2015-02-12 17:35, Ian Kelly wrote: On Thu, Feb 12, 2015 at 10:19 AM, Skip Montanaro skip.montan...@gmail.com wrote: I believe this sort of lexicographical comparison wart is one of the reasons the Python-dev gang decided that there would be no micro versions 9. There are too many similar

[issue23455] file iterator deemed broken; can resume after StopIteration

2015-02-12 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23455 ___ ___ Python-bugs-list

Re: Async/Concurrent HTTP Requests

2015-02-12 Thread Marko Rauhamaa
Paul Rubin no.email@nospam.invalid: Event-driven i/o in Python 2.x was generally done with callback-based packages like Twisted Matrix (www.twistedmatrix.com). In Python 3 there are some nicer mechanisms (coroutines) so the new asyncio package may be easier to use than Twisted. I haven't

Re: Odd version scheme

2015-02-12 Thread Tim Chase
On 2015-02-12 12:16, Ian Kelly wrote: It still becomes an issue when we get to Python 10. Just call it Python X! :-) Things break down again when we get to Python XIX. 'XVIII' 'XIX' False You know what this sub-thread gives me? The icks. https://www.youtube.com/watch?v=6DzfPcSysAg

[issue21717] Exclusive mode for ZipFile and TarFile

2015-02-12 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: Added file: http://bugs.python.org/file38115/issue21717_tarfile_v5.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21717 ___

Re: Python discussed in Nature

2015-02-12 Thread Fabien
On 12.02.2015 10:31, wxjmfa...@gmail.com wrote: [some OT stuffs about unicode] ... what a coincidence then that a huge majority of scientists (including me) dont care AT ALL about unicode. But since scientists are not paid to rewrite old code, the scientific world is still stuck to python 2.

[issue23450] Possible loss of data warnings building 3.5 Visual Studio Windows 8.1 64 bit

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: The 64-bit support of Windows is still incomplete :-/ We tried to fix most of them, but there are still remaining issues. The main issue is #9566. I opened for example the issue #18295: Possible integer overflow in PyCode_New(). --

[issue20521] [PATCH] Cleanup for dis module documentation

2015-02-12 Thread Mark Lawrence
Mark Lawrence added the comment: Could someone review the patch please, it doesn't appear to contain anything that's contentious. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue20947] -Wstrict-overflow findings

2015-02-12 Thread Mark Lawrence
Mark Lawrence added the comment: @Serhiy/Victor I believe that you're both interested in this type of problem. -- nosy: +BreamoreBoy, haypo, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20947

Python discussed in Nature

2015-02-12 Thread Steven D'Aprano
Nature, one of the world's premier science journals, has published an excellent article about programming in Python: http://www.nature.com/news/programming-pick-up-python-1.16833 -- Steve -- https://mail.python.org/mailman/listinfo/python-list

CrocToy inquiry

2015-02-12 Thread Andrew Kostadis
Hello, I am working on CrocToy project, which is a big robotic toy with artificial intellect, a mix of an animal and a 3-4 years old kid. After the research on possible main functionality, I decide to use Python as a programming platform. I am looking for help in developing the entire architecture

Re: Python discussed in Nature

2015-02-12 Thread Marko Rauhamaa
Fabien fabien.mauss...@gmail.com: ... what a coincidence then that a huge majority of scientists (including me) dont care AT ALL about unicode. You shouldn't, any more than you care about ASCII or 2's-complement encoding. Things should just work. But since scientists are not paid to rewrite

Re: Python discussed in Nature

2015-02-12 Thread Fabien
On 12.02.2015 12:25, Marko Rauhamaa wrote: Fabienfabien.mauss...@gmail.com: ... what a coincidence then that a huge majority of scientists (including me) dont care AT ALL about unicode. You shouldn't, any more than you care about ASCII or 2's-complement encoding. Things should just work.

[issue23314] Disabling CRT asserts in debug build

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: When we completely switch Windows builds over to VC14, we're going to encounter some new assert dialogs from the CRT. (...) A number of tests attempt operations on bad file descriptors, which will assert and terminate in MSVCRT (I have a fix for the

[issue23453] Opening a stream with tarfile.open() triggers a TypeError: can't concat bytes to str error

2015-02-12 Thread Carl Chenet
New submission from Carl Chenet: I'm trying to use a tar stream to a Python tarfile object but each time I do have a TypeError: can't concat bytes to str error Here is my test: -8- #!/usr/bin/python3.4 import tarfile import sys tarobj = tarfile.open(mode='r|', fileobj=sys.stdin)

[issue23446] Use PyMem_New instead of PyMem_Malloc

2015-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In _testbuffer.c: ndim = 64, so the changes aren't really necessary. Indeed, I'll remove these changes. The reason is of course that even an array with only 2 elements per dimension gets quite large with ndim=64. :) But an array can be with 1 element per

[issue20486] msilib: can't close opened database

2015-02-12 Thread Mark Lawrence
Mark Lawrence added the comment: Sorry folks I can't try this myself as I'm not running 2.7 and I don't know how to create the test.msi file. -- nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware ___ Python tracker rep...@bugs.python.org

[issue23453] Opening a stream with tarfile.open() triggers a TypeError: can't concat bytes to str error

2015-02-12 Thread Martin Panter
Martin Panter added the comment: Using fileobj=sys.stdin.buffer instead should do the trick. The “tarfile” module would expect a binary stream, not a text stream. Given the documentation currently says, “Use this variant in combination with e.g. sys.stdin, . . .”, I presume that is why you

[issue23450] Possible loss of data warnings building 3.5 Visual Studio Windows 8.1 64 bit

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: signal_cast_socket_t.patch: Fix warning in signal.set_wakeup_fd(). I introduced recently the warning when I added support for sockets in this function on Windows. -- Added file: http://bugs.python.org/file38109/signal_cast_socket_t.patch

[issue20699] Behavior of ZipFile with file-like object and BufferedWriter.

2015-02-12 Thread Martin Panter
Martin Panter added the comment: Posting patch v2: * Changed readinto() argument descriptions to “a pre-allocated, writable bytes-like buffer”, for both RawIOBase and BufferedIOBase * Integrated the single-use test_memoryio.BytesIOMixin test class, which tricked me when I did the first patch

[issue20391] windows python launcher should support explicit 64-bit version

2015-02-12 Thread Mark Lawrence
Mark Lawrence added the comment: Having read https://docs.python.org/3/using/windows.html#customizing-default-python-versions I'm not convinced that this is needed, as the first sentence of the fifth paragraph states On 64-bit Windows with both 32-bit and 64-bit implementations of the same

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: scandir-3.patch: New implementation based on scandir-2.patch on Ben's github repository. Main changes with scandir-2.patch: * new DirEntry.inode() method * os.scandir() doesn't support bytes on Windows anymore: it's deprecated since python 3.3 and using

[issue20523] global .pdbrc on windows 7 not reachable out of the box

2015-02-12 Thread Mark Lawrence
Mark Lawrence added the comment: We have a patch to review or we need a doc patch, unless someone has a different idea to the approaches suggested by the originator. I prefer the idea of changing the code, manually changing environment variables just seems wrong to me, but I won't lose any

[issue23442] http.client.REQUEST_HEADER_FIELDS_TOO_LARGE renamed in 3.5

2015-02-12 Thread Berker Peksag
Berker Peksag added the comment: I found another regression: In Python 3.4, 416 is REQUESTED_RANGE_NOT_SATISFIABLE, but REQUEST_RANGE_NOT_SATISFIABLE in 3.5. -- nosy: +berker.peksag stage: - patch review ___ Python tracker rep...@bugs.python.org

Re: Floating point g format not stripping trailing zeros

2015-02-12 Thread Hrvoje Nikšić
from decimal import Decimal as D x = D(1)/D(999) '{:.15g}'.format(x) '0.00100100100100100' [...] I'd say it's a bug. P is 15, you've got 17 digits after the decimal place and two of those are insignificant trailing zeros. Actually it's the float version that doesn't match the

[issue23450] Possible loss of data warnings building 3.5 Visual Studio Windows 8.1 64 bit

2015-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please ignore changes to Objects/codeobject.c, Objects/funcobject.c and Python/ceval.c. The patch in issue18295 is more advanced. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23450

[issue23146] Incosistency in pathlib between / and \

2015-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. It also fixes tests which didn't test altsep. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file38117/pathlib_parse_parts_altsep.patch ___ Python tracker

[issue23442] http.client.REQUEST_HEADER_FIELDS_TOO_LARGE renamed in 3.5

2015-02-12 Thread Martin Panter
Martin Panter added the comment: Thanks. Confirming the patch fixes the problem for me, so should be comitted. I wonder if a test case would be good too though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23442

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: Similar benchmark result on my laptop which has a SSD (ext4 filesystem tool, but I guess that the directory is small and fits into the memory). Note: I'm not sure that the between ...x and ...x faster are revelant, I'm not sure that my computation is correct.

[issue23442] http.client.REQUEST_HEADER_FIELDS_TOO_LARGE renamed in 3.5

2015-02-12 Thread Demian Brecht
Demian Brecht added the comment: Thanks for the test Berker, I'll put a patch together with the changes later this afternoon. On 2015-02-12 2:27 PM, Berker Peksag wrote: Berker Peksag added the comment: Here is a test case.

Re: fuzzysearch: find not exactly what you're looking for!

2015-02-12 Thread Emile van Sebille
On 2/12/2015 11:51 AM, Tal Einat wrote: Hi everyone, I'd like to introduce a Python library I've been working on for a while: fuzzysearch. I would love to get as much feedback as possible: comments, suggestions, bugs and more are all very welcome! I adapt difflib's SequenceMatcher for my

[issue23442] http.client.REQUEST_HEADER_FIELDS_TOO_LARGE renamed in 3.5

2015-02-12 Thread Berker Peksag
Berker Peksag added the comment: Here is a test case. == FAIL: test_client_constants (test.test_httplib.OfflineTest) (constant='REQUESTED_RANGE_NOT_SATISFIABLE')

[issue23439] Fixed http.client.__all__ and added a test

2015-02-12 Thread Martin Panter
Martin Panter added the comment: I don’t have a strong opinion about changing __all__ in these cases. I only noticed the potential problem when I went to add a new class to the module, and thought this was common practice. If we leave it as it is, it would be good to add comment in the source

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: Benchmark on NFS. Client: my laptop, connected to the LAN by wifi. Server: desktop, connected to the LAN by PLC. For an unknown reason, the creation of files, symlinks and directories is very slow (more than 30 seconds while I reduced the number of files

[issue18295] Possible integer overflow in PyCode_New()

2015-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Many of these overflows can be provoked by specially constructed function, code object or bytecode. Also I think following examples crash or return wrong result on 64 bit platform: def f(*args, **kwargs): return len(args), len(kwargs) f(*([0]*(2**32+1)))

Re: Odd version scheme

2015-02-12 Thread Emile van Sebille
On 2/12/2015 11:16 AM, Ian Kelly wrote: Things break down again when we get to Python XIX. 'XVIII' 'XIX' False Looks to me like you better check if your PEP313 patch is installed properly. :) Emile -- https://mail.python.org/mailman/listinfo/python-list

[issue23456] asyncio: add missing @coroutine decorators

2015-02-12 Thread STINNER Victor
New submission from STINNER Victor: coroutine_decorator.patch adds missing @coroutine decorator to coroutine functions and methods in the asyncio module. I'm not sure that it's ok to add @coroutine to __iter__() methods. At least, test_asyncio pass. -- components: asyncio files:

Re: Floating point g format not stripping trailing zeros

2015-02-12 Thread Ian Kelly
On Thu, Feb 12, 2015 at 1:23 PM, Hrvoje Nikšić hnik...@gmail.com wrote: from decimal import Decimal as D x = D(1)/D(999) '{:.15g}'.format(x) '0.00100100100100100' [...] I'd say it's a bug. P is 15, you've got 17 digits after the decimal place and two of those are insignificant

[issue22147] PosixPath() constructor should not accept strings with embedded NUL bytes

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22147 ___ ___

[issue12455] urllib2 forces title() on header names, breaking some requests

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12455 ___ ___

[issue17908] Unittest runner needs an option to call gc.collect() after each test

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17908 ___ ___

[issue19433] Define PY_UINT64_T on Windows 32bit

2015-02-12 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19433 ___ ___ Python-bugs-list

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: I enhanced bench_scandir2.py to have one command to create a directory or a different command to run the benchmark. All commands: - create: create the directory for tests (you don't need this command, you can also use an existing directory) - bench: compare

[issue23439] Fixed http.client.__all__ and added a test

2015-02-12 Thread Demian Brecht
Demian Brecht added the comment: If we leave it as it is, it would be good to add comment in the source code explaining this decision. I think that __all__ should be left as-is for the time being. Adding some comments around that decision makes sense to me to avoid any future confusion around

[issue22197] Allow better verbosity / output control in test cases

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22197 ___ ___

[issue14044] IncompleteRead error with urllib2 or urllib.request -- fine with urllib, wget, or curl

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14044 ___ ___

[issue14414] xmlrpclib leaves connection in broken state if server returns error without content-length

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14414 ___ ___

[issue23043] doctest ignores from __future__ import print_function

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23043 ___ ___

[issue23004] mock_open() should allow reading binary data

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23004 ___ ___

[issue17986] Alternative async subprocesses (pep 3145)

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: As Tulip and subprocdev, starting such project outside the Python stdlib may help to get feedback, find and fix bugs faster. What do you think? -- ___ Python tracker rep...@bugs.python.org

[issue23448] urllib2 needs to remove scope from IPv6 address when creating Host header

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23448 ___ ___

[issue23166] urllib2 ignores opener configuration under certain circumstances

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23166 ___ ___

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-12 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Added file: http://bugs.python.org/file38120/bench_scandir2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22524 ___

[issue23442] http.client.REQUEST_HEADER_FIELDS_TOO_LARGE renamed in 3.5

2015-02-12 Thread Demian Brecht
Demian Brecht added the comment: I've attached a patch with fixes for both cases and the tests added by Berker. Thanks guys. -- Added file: http://bugs.python.org/file38122/issue23442_1.patch ___ Python tracker rep...@bugs.python.org

[issue22946] urllib gives incorrect url after open when using HTTPS

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22946 ___ ___

[issue21557] os.popen os.system lack shell-related security warnings

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21557 ___ ___

[issue8843] urllib2 Digest Authorization uri must match request URI

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8843 ___ ___

[issue14301] xmlrpc client transport and threading problem

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14301 ___ ___

Re: Parsing and comparing version strings (was: Odd version scheme)

2015-02-12 Thread Tim Chase
On 2015-02-13 12:20, Ben Finney wrote: Not sure why this is ridiculous. Right, versions are effectively a special type [0], specifically *because* they intentionally don't compare as scalar numbers or strings. It's not “ridiculous” to need custom comparisons when that's the case. Python

Download multiple xls files using Python

2015-02-12 Thread polleysarah7
I was wondering if somebody here could help me out creating a script? I have never done something like this before so I have no idea what I'm doing. But I have been reading about it for a couple days now and I'm still not understanding it so I appreciating all help I can get. I'm even willing

Download multiple xls files using Python

2015-02-12 Thread polleysarah7
I was wondering if somebody here could help me out creating a script? I have never done something like this before so I have no idea what I'm doing. But I have been reading about it for a couple days now and I'm still not understanding it so I appreciating all help I can get. I'm even willing

Re: Download multiple xls files using Python

2015-02-12 Thread Chris Angelico
On Fri, Feb 13, 2015 at 11:07 AM, polleysar...@gmail.com wrote: Here is an example of my problem. I have for the moment a CSV file named Stars saved on my windows desktop containing around 50.000 different links that directly starts downloading a xls file when pressed. Each row contains

[issue17986] Alternative async subprocesses (pep 3145)

2015-02-12 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17986 ___ ___ Python-bugs-list

Parsing and comparing version strings (was: Odd version scheme)

2015-02-12 Thread Ben Finney
Gisle Vanem gva...@yahoo.no writes: That's exactly what they do now in IPython/utils/version.py with the comment: Utilities for version comparison It is a bit ridiculous that we need these. Not sure why this is ridiculous. Right, versions are effectively a special type [0],

[issue23447] Relative imports with __all__ attribute

2015-02-12 Thread Steven Barker
Steven Barker added the comment: This issue is a special case of the problem discussed in issue 992389, that modules within packages are not added to the package dictionary until they are fully loaded, which breaks circular imports in the form from package import module. The consensus on

Re: Download multiple xls files using Python

2015-02-12 Thread Tim Chase
On 2015-02-13 11:19, Chris Angelico wrote: On Fri, Feb 13, 2015 at 11:07 AM, polleysar...@gmail.com wrote: Here is an example of my problem. I have for the moment a CSV file named Stars saved on my windows desktop containing around 50.000 different links that directly starts downloading a

[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2015-02-12 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5053 ___ ___

[issue12849] Cannot override 'connection: close' in urllib2 headers

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12849 ___ ___

[issue19433] Define PY_UINT64_T on Windows 32bit

2015-02-12 Thread Mark Lawrence
Mark Lawrence added the comment: Is there any more work needed on this or can it be closed? Please note the reference to #17884 in msg201654. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19433

[issue9698] When reusing an handler, urllib(2)'s digest authentication fails after multiple regative replies

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: -demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9698 ___ ___

[issue17986] Alternative async subprocesses (pep 3145)

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: Subprocess support of asyncio has nice features and is efficient: - async read from stdout and stderr - async write into stdin - async wait for the process exit - async communicate() - timeout on any async operation - support running multiple child processes in

Re: building c extensions with setuptools that are not tied to python installed on build machine

2015-02-12 Thread Matthew Taylor
Ned, thank you for your insight on this problem. I will take your advice and do some more digging. You've been very helpful. Regards, - Matt Taylor OS Community Flag-Bearer Numenta On Wed, Feb 11, 2015 at 4:23 PM, Ned Deily n...@acm.org wrote: In article

[issue22559] [backport] ssl.MemoryBIO

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: Since this is such a new feature (not even released in 3.x), I don't think we should put it in 2.7.9. While ssl.MemoryBIO would be very useful on Windows for Trollius (to support SSL with the IOCP event loop), I also consider it as a new feature. It's a

[issue23450] Possible loss of data warnings building 3.5 Visual Studio Windows 8.1 64 bit

2015-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which fixes many warnings reported by MS compiler on 64-bit platform [1]. Some of these warnings indicated real bugs. [1] http://buildbot.python.org/all/builders/AMD64%20Windows8%203.x/builds/411/steps/compile/logs/warnings%20(396)

Re: Python discussed in Nature

2015-02-12 Thread Mark Lawrence
On 12/02/2015 08:46, Steven D'Aprano wrote: Nature, one of the world's premier science journals, has published an excellent article about programming in Python: http://www.nature.com/news/programming-pick-up-python-1.16833 Interesting. I'll leave someone more diplomatic than myself to reply

Re: Python discussed in Nature

2015-02-12 Thread Steven D'Aprano
John Ladasky wrote: And I use Unicode in my Python. In implementing some mathematical models which have variables like delta, gamma, and theta, I decided that I didn't like the line lengths I was getting with such variable names. I'm using δ, γ, and θ instead. It works fine, at least on my

Re: Odd version scheme

2015-02-12 Thread Steven D'Aprano
Skip Montanaro wrote: I believe this sort of lexicographical comparison wart is one of the reasons the Python-dev gang decided that there would be no micro versions 9. There are too many similar assumptions about version numbers out in the real world. Which is why there will be no Windows

Re: Python discussed in Nature

2015-02-12 Thread Rustom Mody
On Thursday, February 12, 2015 at 11:59:55 PM UTC+5:30, John Ladasky wrote: On Thursday, February 12, 2015 at 3:08:10 AM UTC-8, Fabien wrote: ... what a coincidence then that a huge majority of scientists (including me) dont care AT ALL about unicode. But since scientists are not paid

Re: Python discussed in Nature

2015-02-12 Thread Steven D'Aprano
Marko Rauhamaa wrote: Chris Angelico ros...@gmail.com: On Fri, Feb 13, 2015 at 1:39 AM, Marko Rauhamaa ma...@pacujo.net wrote: I write both Py2 and Py3 code, but I keep the two worlds hermetically separated from each other. [...] You don't need to be afraid of the gap. No problem.

Re: Bad text appearance in IDLE

2015-02-12 Thread Frank Millman
ast nom...@invalid.com wrote in message news:54dc9bee$0$3046$426a3...@news.free.fr... Hello Here is how text appears in IDLE window http://www.cjoint.com/data/0BmnEIcxVAx.htm Yesterday evening I had not this trouble. It appears this morning. I restarted my computer with no effect. A

Re: Python discussed in Nature

2015-02-12 Thread Terry Reedy
On 2/12/2015 11:07 PM, Rustom Mody wrote: On Thursday, February 12, 2015 at 11:59:55 PM UTC+5:30, John Ladasky wrote: On Thursday, February 12, 2015 at 3:08:10 AM UTC-8, Fabien wrote: ... what a coincidence then that a huge majority of scientists (including me) dont care AT ALL about unicode.

[issue23457] make test failures

2015-02-12 Thread Dwight
New submission from Dwight: Hi, Looking for assistance in figuring out what caused the following test failures and how to fix the problems. Built and run on an IBM pSeries system running AIX 7.1. Appreciate any help I can get. I am not a software developer. I am compiling this because

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-12 Thread Robert Collins
Robert Collins added the comment: @Mahmoud thanks! I had a quick look and the structural approach we've taken is a bit different. What do you think of the current patch here (issue17911-4.patch) ? -- ___ Python tracker rep...@bugs.python.org

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-12 Thread Ben Hoyt
Ben Hoyt added the comment: Hi Victor, I thank you for your efforts here, especially your addition of DirEntry.inode() and your work on the tests. However, I'm a bit frustrated that you just re-implemented the whole thing without discussion: I've been behind scandir and written the first

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-12 Thread Ben Hoyt
Ben Hoyt added the comment: To continue the actual which implementation discussion: as I mentioned last week in http://bugs.python.org/msg235458, I think the benchmarks above show pretty clearly we should use the all-C version. For background: PEP 471 doesn't add any new functionality, and

  1   2   >