[ANN] ftputil 3.1 released

2014-06-16 Thread Stefan Schwarzer
ftputil 3.1 is now available from http://ftputil.sschwarzer.net/download . Changes since version 3.0 - - Added support for `followlinks` parameter in `FTPHost.walk`. [1] - Trying to pickle `FTPHost` and `FTPFile` objects now raises explicit `TypeError`s to make clear

Wing IDE 5.0.7 released

2014-06-16 Thread Wingware
Hi, Wingware has released version 5.0.7 of Wing IDE, our cross-platform integrated development environment for the Python programming language. Wing IDE includes a professional quality code editor with vi, emacs, visual studio, and other key bindings, auto-completion, call tips,

Re: Python's numeric tower

2014-06-16 Thread Mark Lawrence
On 16/06/2014 04:38, Dan Sommers wrote: On Sun, 15 Jun 2014 22:17:57 -0400, Roy Smith wrote: I don't believe HandGrenade implements throw(). It does, however, implement lobbeth(). And therein lies the problem with Object Oriented Programming: instances of HandGrenade neither throw nor

line to argv transformation

2014-06-16 Thread Antoon Pardon
I am looking for an interface that takes a string as argument. The string is to be treated as if it is a command line and transformed into an argv list. ls file - ['ls', 'file'] ls *.py - ['ls', 'file1.py', 'file2.py', ...] ls '*.py' - ['ls', '*.py'] Does something like this already exist? I

Re: line to argv transformation

2014-06-16 Thread Chris Angelico
On Mon, Jun 16, 2014 at 7:56 PM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: I am looking for an interface that takes a string as argument. The string is to be treated as if it is a command line and transformed into an argv list. ls file - ['ls', 'file'] ls *.py - ['ls',

Re: line to argv transformation

2014-06-16 Thread Antoon Pardon
On 16-06-14 12:06, Chris Angelico wrote: def shell_split(cmd): return subprocess.check_output(python -c 'import sys; print(\\0.join(sys.argv[1:]))' +cmd,shell=True)[:-1].split(\0) Nice idea, unfortunatly it doesn't work in python3.3 shell_split(ls *.py) Traceback (most recent call

Re: line to argv transformation

2014-06-16 Thread Chris Angelico
On Mon, Jun 16, 2014 at 8:24 PM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: On 16-06-14 12:06, Chris Angelico wrote: def shell_split(cmd): return subprocess.check_output(python -c 'import sys; print(\\0.join(sys.argv[1:]))' +cmd,shell=True)[:-1].split(\0) Nice idea, unfortunatly

Re: line to argv transformation

2014-06-16 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: def shell_split(cmd): return subprocess.check_output(python -c 'import sys; print(\\0.join(sys.argv[1:]))' +cmd,shell=True)[:-1].split(b\0) You'll get back a list of byte strings, in any case. Feel free to pass them through a decode operation, or to

Re: line to argv transformation

2014-06-16 Thread Peter Otten
Antoon Pardon wrote: I am looking for an interface that takes a string as argument. The string is to be treated as if it is a command line and transformed into an argv list. ls file - ['ls', 'file'] ls *.py - ['ls', 'file1.py', 'file2.py', ...] ls '*.py' - ['ls', '*.py'] Does

Re: line to argv transformation

2014-06-16 Thread Chris Angelico
On Mon, Jun 16, 2014 at 8:51 PM, Tim Chase python.l...@tim.thechases.com wrote: On 2014-06-16 20:41, Chris Angelico wrote: Oops! I made the cardinal error of trying in one and assuming it'd work in both. Just needs a b prefix on the split string: def shell_split(cmd): return

Re: line to argv transformation

2014-06-16 Thread Tim Chase
On 2014-06-16 20:41, Chris Angelico wrote: Oops! I made the cardinal error of trying in one and assuming it'd work in both. Just needs a b prefix on the split string: def shell_split(cmd): return subprocess.check_output(python -c 'import sys; print(\\0.join(sys.argv[1:]))'

Re: line to argv transformation

2014-06-16 Thread Chris Angelico
On Mon, Jun 16, 2014 at 8:59 PM, Marko Rauhamaa ma...@pacujo.net wrote: Chris Angelico ros...@gmail.com: def shell_split(cmd): return subprocess.check_output(python -c 'import sys; print(\\0.join(sys.argv[1:]))' +cmd,shell=True)[:-1].split(b\0) You'll get back a list of byte strings, in

Re: line to argv transformation

2014-06-16 Thread Antoon Pardon
On 16-06-14 13:01, Peter Otten wrote: Antoon Pardon wrote: I am looking for an interface that takes a string as argument. The string is to be treated as if it is a command line and transformed into an argv list. ls file - ['ls', 'file'] ls *.py - ['ls', 'file1.py', 'file2.py', ...] ls

Re: line to argv transformation

2014-06-16 Thread Tim Chase
On 2014-06-16 13:51, Antoon Pardon wrote: shlex.split(ls *.py) ['ls', '*.py'] shlex.split(ls '*.py') ['ls', '*.py'] To accommodate this, I'd probably just clone the shlib.py to my local project under a new name and then tweak the source to emit whether a token was quoted or not,

Re: Python Tutorial

2014-06-16 Thread jonadina
hello... pls how did ur tutorial creation go? Could i get it as i am starting to learn python thanks -- https://mail.python.org/mailman/listinfo/python-list

ANN: Wing IDE 5.0.7 released

2014-06-16 Thread Wingware
Hi, Wingware has released version 5.0.7 of Wing IDE, our cross-platform integrated development environment for the Python programming language. Wing IDE includes a professional quality code editor with vi, emacs, visual studio, and other key bindings, auto-completion, call tips,

Re: Python Tutorial

2014-06-16 Thread Zachary Ware
(Note, for those confused, context: https://mail.python.org/pipermail/python-list/2010-August/584707.html) On Mon, Jun 16, 2014 at 10:06 AM, jonad...@gmail.com wrote: hello... pls how did ur tutorial creation go? Could i get it as i am starting to learn python thanks Hi, Please note that

Re: parsley parsing question, how to make a variable grammar

2014-06-16 Thread Eric S. Johansson
On 6/14/2014 8:10 PM, Michael Torrie wrote: On 06/13/2014 03:05 PM, Eric S. Johansson wrote: I appreciate any insight before I go too far off track. --- eric Perhaps this is off-topic, and doesn't answer your question, but is Parsley a natural language parsing tool? If not, and if it is

module_traverse segfault

2014-06-16 Thread Roland Plüss
I'm still trying to get Python3 embedded working. The main problem I'm hitting now is an unexplainable segfault: Program received signal SIGSEGV, Segmentation fault. 0x7fffc958 in ?? () (gdb) bt #0 0x7fffc958 in ?? () #1 0x7fffdd2f9ed0 in module_traverse () from

Re: module_traverse segfault

2014-06-16 Thread Terry Reedy
On 6/16/2014 1:14 PM, Roland Plüss wrote: I'm still trying to get Python3 embedded working. The main problem I'm hitting now is an unexplainable segfault: /unexplainable/unexplained/ ;-) Program received signal SIGSEGV, Segmentation fault. 0x7fffc958 in ?? () (gdb) bt #0

Re: module_traverse segfault

2014-06-16 Thread Roland Plüss
Program received signal SIGSEGV, Segmentation fault. 0x7fffc958 in ?? () (gdb) bt #0 0x7fffc958 in ?? () #1 0x7fffdd2f9ed0 in module_traverse () from /usr/lib64/libpython3.3.so.1.0 #2 0x7fffdd396cc7 in collect_with_callback () from /usr/lib64/libpython3.3.so.1.0

Re: OT: This Swift thing

2014-06-16 Thread Anssi Saari
Gregory Ewing greg.ew...@canterbury.ac.nz writes: Current draw of CMOS circuitry is pretty much zero when nothing is changing, so if you didn't care how slow it ran, you probably could run a server off a watch battery today. That was before 90 nm when leakage current started dominating over

Re: OT: This Swift thing

2014-06-16 Thread Gregory Ewing
Anssi Saari wrote: That was before 90 nm when leakage current started dominating over switching current. Well, if you don't care about speed, you probably don't need to make it that small. There's plenty of time for signals to propagate, so you can afford to spread the circuitry out more. The

Python Custom Shapes Question

2014-06-16 Thread Elsa Mort
Hi, I am using Python for a programming class at school. However, we are being asked to create a function that enables python to re-size an image that we custom made (in this case a Greek Meander.) I wasn't sure if you knew how to do this. I having trouble. Thank you, Elsa --

Re: OT: This Swift thing

2014-06-16 Thread Chris Angelico
On Tue, Jun 17, 2014 at 8:12 AM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: A few years ago jumbo sized but cheapish CULV laptops suddenly had 10 hours plus battery but did anyone notice or care? I think people do care, it's just that going from something like 6 hours to 10 hours is

Re: Python Custom Shapes Question

2014-06-16 Thread Mark Lawrence
On 16/06/2014 22:50, Elsa Mort wrote: Hi, I am using Python for a programming class at school. However, we are being asked to create a function that enables python to re-size an image that we custom made (in this case a Greek Meander.) I wasn't sure if you knew how to do this. I having

Re: module_traverse segfault

2014-06-16 Thread Terry Reedy
On 6/16/2014 4:16 PM, Roland Plüss wrote: Was the program supposed to be shutting down when this occurred? Or did this happen during 'normal' execution? Shutting down. It happens though also if I trigger an error for example using if( ! PyArg_ParseTuple( args, , x1, y1, x2, y2 ) ){

Python to Golang, sample 2

2014-06-16 Thread bookaa bookaa
This is the 2nd test sample for my 'Python to Go' project refer to https://groups.google.com/d/topic/comp.lang.python/dLAdCOLwbA4/discussion download url: http://pan.baidu.com/s/1i3qVozj This time I choose a 75 Python lines of Tetris game. It use PyGame library. With my 'Python to Go', I

PyGotham CFP open/looking for sponsors

2014-06-16 Thread Sarah Guido
Hello, NYC Python is hosting a conference, PyGotham http://pygotham.org/ The call for proposals is open until the 20th (http://pygotham.org/talks/call-for-proposals), and we're also looking for sponsors (http://pygotham.org/sponsors/prospectus). It's going to be awesome! Cheers, Sarah --

Al madinah international university opening apply for university colleges (September season)

2014-06-16 Thread Marwa Kotb
MR/ MiSS * Al madinah international university which win dependence Malaysian Ministry of Higher Education Malaysia (MOHE) and also winning the adoption of all academic programs and courses, the university that are approved by the Malaysian funds and private academy, which deals with

[issue21686] IDLE - Test hyperparser

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5063df721985 by Terry Jan Reedy in branch '2.7': Issue #21686: idlelib/HyperParser.py - Update docstrings and comments and http://hg.python.org/cpython/rev/5063df721985 New changeset ddf15cf0db72 by Terry Jan Reedy in branch '3.4': Issue #21686:

[issue19362] Documentation for len() fails to mention that it works on sets

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 95d487abbfd8 by Terry Jan Reedy in branch '2.7': Issue #19362: Tweek len() doc and docstring to expand the indicated range of http://hg.python.org/cpython/rev/95d487abbfd8 New changeset 8fcbe41e1242 by Terry Jan Reedy in branch '3.4': Issue #19362:

[issue19362] Documentation for len() fails to mention that it works on sets

2014-06-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - fixed stage: - resolved status: open - closed versions: +Python 2.7, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19362

[issue21559] OverflowError should not happen for integer operations

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9ba324a20bad by Terry Jan Reedy in branch '3.4': Issue #21559: Add alternative (historical) reason for OverflowError. http://hg.python.org/cpython/rev/9ba324a20bad -- nosy: +python-dev ___ Python tracker

[issue21559] OverflowError should not happen for integer operations

2014-06-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21559 ___ ___ Python-bugs-list

[issue21559] OverflowError should not happen for integer operations

2014-06-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - fixed stage: - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21559 ___ ___

[issue19495] Enhancement for timeit: measure time to run blocks of code using 'with'

2014-06-16 Thread Nick Coghlan
Nick Coghlan added the comment: I'm with Guido on this one - I don't believe there's a clean sweet spot to hit. There *might* be a plausible case to be made for tracing functionality in the logging module, but even there the number of options multiplies fast enough that writing your own

[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-06-16 Thread Sebastian Kreft
Sebastian Kreft added the comment: Any ideas how to debug this further? In order to overcome this issue I have an awful workaround that tracks the maximum running time of a successful task, and if any task has been running more than x times that maximum I consider it defunct, and increase the

[issue21776] distutils.upload uses the wrong order of exceptions

2014-06-16 Thread Claudiu Popa
New submission from Claudiu Popa: Hi. Currently, distutils.command.upload has this code: try: result = urlopen(request) status = result.getcode() reason = result.msg except OSError as e: self.announce(str(e), log.ERROR) return except HTTPError as e: status = e.code

[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-06-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: -haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20319 ___ ___ Python-bugs-list

[issue21679] Prevent extraneous fstat during open()

2014-06-16 Thread Bohuslav Slavek Kabrda
Bohuslav Slavek Kabrda added the comment: So, as pointed out by haypo, blksize_t is actually signed long on Linux. This means that my patch (as well as the current code) is not right. Both with and without my patch, io_open function uses int to store blksize_t and it also passes it to one of

[issue21669] Custom error messages when print exec are used as statements

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b8cd2bc2745 by Nick Coghlan in branch '3.4': Issue #21669: Special case print exec syntax errors http://hg.python.org/cpython/rev/2b8cd2bc2745 New changeset 36057f357537 by Nick Coghlan in branch 'default': Merge issue #21669 from 3.4

[issue21669] Custom error messages when print exec are used as statements

2014-06-16 Thread Nick Coghlan
Nick Coghlan added the comment: I went ahead and committed the v2 patch, as I think it's already an improvement over the generic message. Any further significant tweaks to the heuristics or changes to the error messages can be handled in separate issues. -- resolution: - fixed stage:

[issue9693] asynchat push_callable() patch

2014-06-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Yeah, I don't think this is worth it anymore. Closing as won't fix. -- assignee: - giampaolo.rodola resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org

[issue19628] maxlevels -1 on compileall for unlimited recursion

2014-06-16 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19628 ___ ___

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-16 Thread Michael Foord
Michael Foord added the comment: I haven't reviewed the patch in detail, but I've had a scan through and it looks *great*. A quick and dirty check that it's correct is to compare the number of tests run before and after the patch - and if the numbers differ verifying that it's for good

[issue21777] Separate out documentation of binary sequence methods

2014-06-16 Thread Nick Coghlan
New submission from Nick Coghlan: There are currently no dedicated docs for the bytes and bytearray methods - the relevant section just refers back to the str methods. This isn't sufficient, since the str methods cover of lot of stuff related to Unicode that isn't relevant to the binary

[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-06-16 Thread Glenn Langford
Glenn Langford added the comment: Any ideas how to debug this further? Wherever the cause of the problem might live, and to either work around it or gain additional information, here is one idea to consider. Do you need to submit your Futures just two at a time, and tightly loop every 15s?

[issue21759] URL Typo in Documentation FAQ

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset f254ceec0d45 by Jesus Cea in branch '2.7': Closes #21759: URL Typo in Documentation FAQ http://hg.python.org/cpython/rev/f254ceec0d45 -- nosy: +python-dev resolution: - fixed stage: needs patch - resolved status: open - closed

[issue21759] URL Typo in Documentation FAQ

2014-06-16 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Thanks! -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21759 ___ ___ Python-bugs-list mailing

[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-06-16 Thread Sebastian Kreft
Sebastian Kreft added the comment: I'm running actually millions of tasks, so sending them all at once will consume much more resources than needed. The issue happens no only with 2 tasks in parallel but with higher numbers as well. Also your proposed solution, has the problem that when you

[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-06-16 Thread Glenn Langford
Glenn Langford added the comment: Under the hood, the behaviour of as_completed is quite different. So there is no guarantee it would behave the same. In any event, with millions of tasks you might consider Celery (I haven't used it myself): http://www.celeryproject.org --

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-06-16 Thread R. David Murray
R. David Murray added the comment: Since there is no guarantee anyone is going to tackle the job of reviewing all the changes for whatsnew entries, I prefer that we get in the habit of creating the entries as we go along. As for the versionchanged...if you can find where include is

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2014-06-16 Thread R. David Murray
R. David Murray added the comment: Yes, I think that is appropriate. Note that you also get RFC822 parsing for datetime via email.util.parsedate_to_datetime. (I'm not sure why the OP thought that using the email utilities to parse email-standard dates was not [a] very good way.) --

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2014-06-16 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - duplicate stage: test needed - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5207 ___

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21741 ___ ___

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-16 Thread R. David Murray
R. David Murray added the comment: +1 from me (after verification), which should probably go without saying since I'm the one that started this ball rolling by making regrtest work with unittest discovery :) I think the potential disruption to existing patches and any forward porting issues

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa85e8d729ae by Victor Stinner in branch 'default': Issue #21205: Add a new ``__qualname__`` attribute to generator, the qualified http://hg.python.org/cpython/rev/aa85e8d729ae -- nosy: +python-dev ___

[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-16 Thread Armin Rigo
New submission from Armin Rigo: Following the documentation at https://docs.python.org/3/c-api/buffer.html, if we write a custom object in C with a getbufferproc that simply returns PyBuffer_FillInfo(...), then it works fine up to Python 3.2 but segfaults in Python 3.3 depending on what we do

[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-16 Thread Armin Rigo
Changes by Armin Rigo ar...@users.sourceforge.net: Added file: http://bugs.python.org/file35655/xymodule.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21778 ___

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: Ok, this issue is now fixed in Python 3.5. For Python 2.7 and 3.4, it may be possible to change how the generator name is set (from the function, not from the code object). It might break the backward compatibility, even if I don't think that anyone rely on

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 901a8265511a by Victor Stinner in branch 'default': Issue #21205: Fix unit tests http://hg.python.org/cpython/rev/901a8265511a -- ___ Python tracker rep...@bugs.python.org

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 16/06/2014 10:20, STINNER Victor a écrit : What do you think for Python 2.7 and 3.4: would you be ok to change also the generator name? I can write a patch which adds a new gi_name but the name would not be modifiable to limit the incompatible changes. I

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou wrote: I don't think it is worthwhile. Ok, let's keep the issue closed then ;-) Thanks for the review Antoine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21205

[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-16 Thread Stefan Krah
Stefan Krah added the comment: The flags from mb_getbuf() have to be passed to PyBuffer_FillInfo(): return PyBuffer_FillInfo(view, (PyObject *)self, internal, 5, /*readonly=*/0, flags); The flags contain the actual request that the

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Some abstract test classes now are included in testing: Lib/test/test_calendar.py: MonthCalendarTestCase Lib/test/test_csv.py: TestCsvBase Lib/test/test_funcattrs.py: FuncAttrsTest Lib/test/test_sys_setprofile.py: TestCaseBase Lib/test/test_telnetlib.py:

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 28b3b8b22654 by Victor Stinner in branch 'default': Issue #21205: Complete the versionchanged note in inspect documentation http://hg.python.org/cpython/rev/28b3b8b22654 -- ___ Python tracker

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-16 Thread Michael Foord
Michael Foord added the comment: Those should be turned into mixins, or someone could implement issue 14534. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21741 ___

[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-16 Thread Armin Rigo
Armin Rigo added the comment: Ah! Thanks. I systematically missed the flags arguments passed in the getbufferproc function. (I thought I had to tell PyBuffer_FillInfo() what kind of format we actually provide, but it seems that the interface is the other way around. I don't see how I would

[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-16 Thread Armin Rigo
Changes by Armin Rigo ar...@users.sourceforge.net: -- resolution: - not a bug ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21778 ___ ___

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2014-06-16 Thread Iakov Davydov
Iakov Davydov added the comment: ISO 8601 is meant as the standard way to provide an unambiguous and well-defined method of representing dates and times. And the fact that it is widely used in e-mails doesn't make it e-mail specific. Incorporating function parsedate_to_datetime to email.util

[issue21779] est_multiprocessing_spawn fails when ran with -Werror

2014-06-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python -Werror -m test.regrtest -v -m test_sys_exit test_multiprocessing_spawn == CPython 3.5.0a0 (default:149cc6364180+, Jun 12 2014, 15:45:54) [GCC 4.6.3] == Linux-3.8.0-36-generic-i686-with-debian-wheezy-sid little-endian == hash algorithm:

[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2014-06-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: est_multiprocessing_spawn fails when ran with -Werror - test_multiprocessing_spawn fails when ran with -Werror ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21779

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: zlibmodule_ssize_t_clean.patch: Patch to make the zlib module ssize_t clean. The patch just defines PY_SSIZE_T_CLEAN, no # format is used. ./python -m test -v test_zlib test pass on my 64-bit Linux. -- keywords: +patch nosy: +haypo Added file:

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: I just created the issue #21780 to make the unicodedata module 64-bit safe. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8677 ___

[issue21780] make unicodedata module 64-bit safe

2014-06-16 Thread STINNER Victor
New submission from STINNER Victor: Follow-up of issue #8677: patch to make the unicodedata module 64-bit safe. -- files: unicodedata_64bit.patch keywords: patch messages: 220734 nosy: haypo priority: normal severity: normal status: open title: make unicodedata module 64-bit safe

[issue21781] make _ssl module 64-bit clean

2014-06-16 Thread STINNER Victor
New submission from STINNER Victor: Follow-up of issue #8677: patch to make the _ssl module 64-bit clean. -- files: ssl_64bit.patch keywords: patch messages: 220736 nosy: haypo priority: normal severity: normal status: open title: make _ssl module 64-bit clean versions: Python 3.5 Added

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: I created the issue #21781 to make the _ssl module 64-bit clean. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8677 ___

[issue21772] platform.uname() not EINTR safe

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: Here is a different but similar patch for _syscmd_uname(): - use os.fsdecode() to use the locale encoding instead of latin-1 - use subprocess.DEVNULL to redirect errors to /dev/null - use with proc: to ensure that the subprocesss is cleaned in case of error

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2014-06-16 Thread R. David Murray
R. David Murray added the comment: Supporting ISO 8601 is quite different from supporting RFC2822 dates, as far as I can see, and the latter clearly belongs in the email library (especially considering that RFC2822 parsing must follow Postel's Law and accept dirty data). If you want to

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2014-06-16 Thread Iakov Davydov
Iakov Davydov added the comment: I took a closer look for #15873. Apperently it solves the issue. Thanks, David. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5207 ___

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2014-06-16 Thread Iakov Davydov
Changes by Iakov Davydov da...@myths.ru: -- nosy: +davydov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15873 ___ ___ Python-bugs-list mailing

[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-16 Thread Stefan Krah
Stefan Krah added the comment: Yes, PyBuffer_FillInfo() is a bit confusing: The canonical usage *looks* as if flags were somehow used in the Py_buffer struct to mark a buffer as having certain capabilities: Modules/_io/bufferedio.c: - if (PyBuffer_FillInfo(buf,

[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-16 Thread Stefan Krah
Stefan Krah added the comment: I think it's worth adding a note to the docs about passing the flags unmodified inside a getbufferproc. -- assignee: - docs@python components: +Documentation nosy: +docs@python resolution: not a bug - stage: - needs patch versions: +Python 3.4, Python

[issue12623] universal newlines subprocess support broken with select- and poll-based communicate()

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have an update on this please, I'm assuming that the priority should now be marked as normal? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker

[issue20085] Python2.7, wxPython and IDLE 2.7

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: Presumably set to languishing by mistake so please close. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20085 ___

[issue21773] Fix a NameError in test_enum

2014-06-16 Thread Ethan Furman
Ethan Furman added the comment: Right, I had copied that code from test_pydoc which is where 'print_diffs' is defined. A comment there says to use the now-included functionality in unittest, and some digging in the docs revealed that assertEqual uses diffs by default. -- assignee: -

[issue21782] hashable documentation error: shouldn't mention id

2014-06-16 Thread Giacomo Alzetta
New submission from Giacomo Alzetta: The documentation for hashable in the glossary (https://docs.python.org/3.4/reference/datamodel.html#object.__hash__) is incorrect: they all compare unequal (except with themselves), **and their hash value is their id().** It is *not* true that their

[issue7687] Bluetooth support untested

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: I'm assuming that this still needs some TLC. -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7687

[issue9456] Apparent memory leak in PC/bdist_wininst/install.c

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: There is a simple patch to free memory which at a quick glance appears okay. I've not tried to apply it as the line numbers tie up with those in the existing code. -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.1

[issue21782] hashable documentation error: shouldn't mention id

2014-06-16 Thread R. David Murray
R. David Murray added the comment: The statement is poorly worded. The id() is the *input* to the hash function used to compute the default __hash__. This is a CPython implementation detail, though, so perhaps all mention of it should indeed be dropped. -- nosy: +r.david.murray

[issue21782] hashable documentation error: shouldn't mention id

2014-06-16 Thread Giacomo Alzetta
Giacomo Alzetta added the comment: their hash value is their id() seems quite clearly stating that: class A: pass ... a = A() hash(a) == id(a) should be true, but: hash(a) == id(a) False (both in python2 and in python3) The python 2 documentation for the __hash__ special method *does*

[issue20085] Python2.7, wxPython and IDLE 2.7

2014-06-16 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- status: languishing - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20085 ___ ___

[issue15786] IDLE code completion window can hang or misbehave with mouse

2014-06-16 Thread Ned Deily
Ned Deily added the comment: Investigating a user report of IDLE freezing on OS X when mouse clicking on the code completion menu led me to this issue. The behavior I see varies depending on the Tk variant in use. The basic test case is: 1. launch IDLE with an IDLE shell window open 2. open

[issue21679] Prevent extraneous fstat during open()

2014-06-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think it's ok to keep the block size an int for now. It would be surprising for a block size to be more than 2 GB, IMO. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21679

[issue21782] hashable documentation error: shouldn't mention id

2014-06-16 Thread R. David Murray
R. David Murray added the comment: Yes, I should have been clearer. By poorly worded I meant id is involved, but the sentence does not correctly describe *how* id is involved. That is, the sentence is wrong as written. The implementation is the same in both Python2 and Python3, though the

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-06-16 Thread Benjamin Kircher
Changes by Benjamin Kircher benjamin.kirc...@gmail.com: -- nosy: +bkircher ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___

[issue21783] smtpd.py does not allow multiple helo/ehlo commands

2014-06-16 Thread Milan Oberkirch
New submission from Milan Oberkirch: Sending HELO or EHLO more then once causes smtpd.SMTPChannel to respond with b'503 Duplicate HELO/EHLO\r\n' (see Lib/test/test_smtpd.py:124 for an example). My interpretation of RFC 821, section 4.1.1.5 is that multiple HELO commands are fine outside a

[issue21686] IDLE - Test hyperparser

2014-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Coverage is now '99%'. Unless I see problems that are more than trivial, I am going to polish the patch and commit. I believe partial coverage of for context in editwin.num_context_lines: is because the iterable is never empty. But it never will be in

[issue7982] extend captured_output to simulate different stdout.encoding

2014-06-16 Thread Mark Lawrence
Mark Lawrence added the comment: Seems like a good idea but it'll go nowhere without a patch, anybody up for it? -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org

  1   2   >