Re: Python 3 is killing Python

2014-06-01 Thread Bob Martin
in 722929 20140601 035727 Steve Hayes hayes...@telkomsa.net wrote: No, it's a bit like flying in a Boeing 747 rather than a Concorde. The latyer may be later and more technically advanced and flew faster, but no one uses or supports it. Actually, the Concorde preceded the 747, and wasn't

Re: Python 3 is killing Python

2014-06-01 Thread Mark Lawrence
On 01/06/2014 07:01, Bob Martin wrote: in 722929 20140601 035727 Steve Hayes hayes...@telkomsa.net wrote: No, it's a bit like flying in a Boeing 747 rather than a Concorde. The latyer may be later and more technically advanced and flew faster, but no one uses or supports it. Actually

Re: IDE for python

2014-06-01 Thread Marko Rauhamaa
Rustom Mody rustompm...@gmail.com: On Friday, May 30, 2014 10:37:00 PM UTC+5:30, Rustom Mody wrote: Think for example of a German wanting to write Gödel According to some conventions (s)he can write Goedel [...] | if there is an german Umlaut in the section title like 'ä' this | becomes

Re: IDE for python

2014-06-01 Thread Chris Angelico
On Sun, Jun 1, 2014 at 5:58 PM, Marko Rauhamaa ma...@pacujo.net wrote: As a Finnish-speaker, I hope that patch doesn't become default behavior. Too many times, we have been victimized by the German conventions. A Finnish-speaker would much rather see Järvenpää = Jarvenpaa Öllölä =

Re: IDE for python

2014-06-01 Thread Rustom Mody
On Sunday, June 1, 2014 2:01:09 PM UTC+5:30, Chris Angelico wrote: On Sun, Jun 1, 2014 at 5:58 PM, Marko Rauhamaa wrote: As a Finnish-speaker, I hope that patch doesn't become default behavior. Too many times, we have been victimized by the German conventions. A Finnish-speaker would much

Re: IDE for python

2014-06-01 Thread Steven D'Aprano
On Sun, 01 Jun 2014 18:31:09 +1000, Chris Angelico wrote: the better solution is to permit the full Unicode alphabet in identifiers... I'm not entirely sure about that. Full Unicode support in identifiers such as URLs doesn't create a brand new vulnerability, but it does increase it from a

Re: IDE for python

2014-06-01 Thread Chris Angelico
On Sun, Jun 1, 2014 at 7:06 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 01 Jun 2014 18:31:09 +1000, Chris Angelico wrote: the better solution is to permit the full Unicode alphabet in identifiers... I'm not entirely sure about that. Full Unicode support in

Re: Suds and Python3

2014-06-01 Thread Burak Arslan
Hello, First, for such questions, there's always s...@python.org On 31/05/14 21:59, Paul McNett wrote: On 5/31/14, 11:36 AM, tokib...@gmail.com wrote: Suds is defacto python SOAP client, but it does not mainte recent few years. Why? The original authors don't seem to care anymore. If you

Re: Python 3 is killing Python

2014-06-01 Thread Steve Hayes
On Sun, 1 Jun 2014 13:35:11 +1000, Chris Angelico ros...@gmail.com wrote: boeing-l...@boeing.org people, any hour of the day or night. All you're doing is picking your technology on the basis of *one* dead-tree book that you happen to have found. Is that really the most important deciding point?

Re: Python 3 is killing Python

2014-06-01 Thread Steve Hayes
On Sun, 01 Jun 2014 07:01:46 BST, Bob Martin bob.mar...@excite.com wrote: in 722929 20140601 035727 Steve Hayes hayes...@telkomsa.net wrote: No, it's a bit like flying in a Boeing 747 rather than a Concorde. The latyer may be later and more technically advanced and flew faster, but no one uses

Re: Python 3 is killing Python

2014-06-01 Thread Mark Lawrence
On 01/06/2014 12:41, Steve Hayes wrote: On Sun, 01 Jun 2014 07:01:46 BST, Bob Martin bob.mar...@excite.com wrote: in 722929 20140601 035727 Steve Hayes hayes...@telkomsa.net wrote: No, it's a bit like flying in a Boeing 747 rather than a Concorde. The latyer may be later and more technically

Drawing Sinus curve in Python

2014-06-01 Thread Farzad Torabi
Hi Experts I am trying to draw a sine curve in Python , well first I had a script that i could draw a function curve in this way : xMax = 25.0 points = [] for i in range(100): x = (float(i)/99)*xMax y = math.sqrt(x) points.append([x,y]) s.Spline(points=points) first i have questions

Re: Drawing Sinus curve in Python

2014-06-01 Thread Steven D'Aprano
On Sun, 01 Jun 2014 05:17:07 -0700, Farzad Torabi wrote: Hi Experts I am trying to draw a sine curve in Python , well first I had a script that i could draw a function curve in this way : xMax = 25.0 points = [] for i in range(100): x = (float(i)/99)*xMax y = math.sqrt(x)

Re: Command prompt not shown when running Python script with subprocess on Windows

2014-06-01 Thread Tim Golden
29/05/2014 20:21, ps16thypresenceisfullnessof...@gmail.com wrote: That's interesting, now I learned something else too. As I said before, though, I want users to be able to enter paths in the XML file exactly the way they would be entered in a Windows shortcut. [...] Since in a Windows

Re: Python 3 is killing Python

2014-06-01 Thread alister
On Sun, 01 Jun 2014 13:41:33 +0200, Steve Hayes wrote: On Sun, 01 Jun 2014 07:01:46 BST, Bob Martin bob.mar...@excite.com wrote: in 722929 20140601 035727 Steve Hayes hayes...@telkomsa.net wrote: No, it's a bit like flying in a Boeing 747 rather than a Concorde. The latyer may be later

Is MVC Design Pattern good enough?

2014-06-01 Thread Ernest Bonat, Ph.D.
Hi All, I had developed many database business applications using MVC design pattern with different programming languages like PHP, Java EE, VB.NET, C#, VB 6.0, VBA, etc. All of them defined the Model layer as the data management of the application domain and business logic implementation. I

Re: IDE for python

2014-06-01 Thread wxjmfauth
Le dimanche 1 juin 2014 03:48:07 UTC+2, Rustom Mody a écrit : On Friday, May 30, 2014 10:37:00 PM UTC+5:30, Rustom Mody wrote: You are talking about the infrastructure needed for writing unicode apps. The language need not have non-ASCII lexemes for that I am talking about

Re: IDE for python

2014-06-01 Thread wxjmfauth
Le mercredi 28 mai 2014 14:55:35 UTC+2, Chris Angelico a écrit : On Wed, May 28, 2014 at 9:46 PM, Greg Schroeder gmschroe...@gmail.com wrote: Please suggest, if we have any free ide for python development. Anything that writes text is fine. I recommend the standard text editor

Re: IDE for python

2014-06-01 Thread wxjmfauth
Le vendredi 30 mai 2014 19:30:27 UTC+2, Rustom Mody a écrit : On Friday, May 30, 2014 10:47:33 PM UTC+5:30, wxjm...@gmail.com wrote: = Ok, thanks for the answer. xetex does not quite work whereas pdflatex works smoothly ? Problem is a combination of

Re: Yet another simple headscratcher

2014-06-01 Thread wxjmfauth
# from my lib def NewMat(nr, nc, val=0.0): ... val = float(val) ... return [[val] * nc for i in range(nr)] ... import vmio6 aa = NewMat(2, 3) vmio6.pr(aa) ( 0.0e+000 0.0e+000 0.0e+000 ) ( 0.0e+000 0.0e+000 0.0e+000 ) aa[0][0] = 3.1416

Re: IDE for python

2014-06-01 Thread wxjmfauth
Le vendredi 30 mai 2014 18:15:09 UTC+2, Rustom Mody a écrit : On Friday, May 30, 2014 8:36:54 PM UTC+5:30, wxjm...@gmail.com wrote: Out of curiosity. Are you the Rusi Mody attempting to dive in Xe(La)TeX? Yeah :-) As my blog posts labelled unicode will indicate I am a

Re: Python 3 is killing Python

2014-06-01 Thread wxjmfauth
Le samedi 31 mai 2014 14:30:11 UTC+2, Steven D'Aprano a écrit : On Sat, 31 May 2014 12:07:59 +0200, Steve Hayes wrote: I'll leave Python 3.2 on my computer, but 2.7.5 will be the one I'm installing now. Even if I could *find* a book that deals with Python 3.x, couldn't afford to

Re: Python 3 is killing Python

2014-06-01 Thread wxjmfauth
Le mercredi 28 mai 2014 22:24:15 UTC+2, Mark Lawrence a écrit : On 28/05/2014 20:58, Larry Martell wrote: On Wed, May 28, 2014 at 2:49 PM, Paul Rubin no.email@nospam.invalid mailto:no.email@nospam.invalid wrote: Larry Martell larry.mart...@gmail.com

Re: IDE for python

2014-06-01 Thread wxjmfauth
Le vendredi 30 mai 2014 16:04:18 UTC+2, Rustom Mody a écrit : On Friday, May 30, 2014 7:24:10 PM UTC+5:30, Marko Rauhamaa wrote: Rustom Mody wrote: 3. Search unopened files (grep) for a string or re. How do you do this with emacs? I find a menagerie of greppish

Re: IDE for python

2014-06-01 Thread wxjmfauth
Le vendredi 30 mai 2014 18:38:04 UTC+2, Mark Lawrence a écrit : On 30/05/2014 17:15, Rustom Mody wrote: On Friday, May 30, 2014 8:36:54 PM UTC+5:30, wxjm...@gmail.com wrote: It is now about time that we stop taking ASCII seriously!! This can't happen in the Python world

[OT] Re: Is MVC Design Pattern good enough?

2014-06-01 Thread Dan Sommers
On Sun, 01 Jun 2014 10:37:24 -0700, Ernest Bonat, Ph.D. wrote: ... MVC design pattern ... defined the Model layer as the data management of the application domain and business logic implementation ... Can we implement the application business logic in another layer? Yes or no? Why? Explain?

Segmentation fault (core dumped) while using Cplex Python API

2014-06-01 Thread varun7rs
Hello Everyone, I am trying to solve a mixed-integer problem using Cplex Python API and I get this error Segmentation fault (core dumped). i am not able to figure out the reason for this. Traceback srva@hades:~$ python RW10.py --output test --logPath log --xml topology.xml Start Time:

Re: Segmentation fault (core dumped) while using Cplex Python API

2014-06-01 Thread Gary Herron
On 06/01/2014 12:28 PM, varun...@gmail.com wrote: Hello Everyone, I am trying to solve a mixed-integer problem using Cplex Python API and I get this error Segmentation fault (core dumped). i am not able to figure out the reason for this. Traceback srva@hades:~$ python RW10.py --output test

Re: Multi-line commands with 'python -c'

2014-06-01 Thread Duncan Booth
Peter Otten __pete...@web.de wrote: Duncan Booth wrote: Chris Angelico ros...@gmail.com wrote: On Sat, May 31, 2014 at 7:42 AM, Devin Jeanpierre jeanpierr...@gmail.com wrote: In unix shells you can literally use a new line. Or is that only bash? You can in bash, I know, but it's

Re: Segmentation fault (core dumped) while using Cplex Python API

2014-06-01 Thread Akira Li
varun...@gmail.com writes: Hello Everyone, I am trying to solve a mixed-integer problem using Cplex Python API and I get this error Segmentation fault (core dumped). i am not able to figure out the reason for this. Traceback srva@hades:~$ python RW10.py --output test --logPath log --xml

ImportError: No module named _gdb

2014-06-01 Thread Marcelo Sardelich
So I'm trying to implement pretty printing information using gdb-python27 on Windows7 Hopefully, someone experienced the same issue. GDB is working fine, but when I run gdb-python27 I got the following error (related to a python import): C:\MinGW\bingdb-python27.exe Traceback (most recent

Re: Python 3.2 has some deadly infection

2014-06-01 Thread Tim Delaney
On 1 June 2014 12:26, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: with cross-platform behavior preferred over system-dependent one -- It's not clear how cross-platform behaviour has anything to do with the Internet age. Python has preferred cross-platform behaviour forever,

[RELEASE] Python 2.7.7

2014-06-01 Thread Benjamin Peterson
I'm happy to announce the immediate availability of Python 2.7.7. Python 2.7.7 is a regularly scheduled bugfix release for the Python 2.7 series. This release includes months of accumulated bugfixes. All the changes in Python 2.7.7 are described in detail in the Misc/NEWS file of the source

Re: Python 3.2 has some deadly infection

2014-06-01 Thread Steven D'Aprano
On Mon, 02 Jun 2014 08:54:33 +1000, Tim Delaney wrote: On 1 June 2014 12:26, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: with cross-platform behavior preferred over system-dependent one -- It's not clear how cross-platform behaviour has anything to do with the Internet

Re: Python 3.2 has some deadly infection

2014-06-01 Thread Tim Delaney
On 2 June 2014 11:14, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 02 Jun 2014 08:54:33 +1000, Tim Delaney wrote: I'm currently working on a product that interacts with lots of other products. These other products can be using any encoding - but most of the functions

Re: Python 3.2 has some deadly infection

2014-06-01 Thread Rustom Mody
On Monday, June 2, 2014 7:53:05 AM UTC+5:30, Tim Delaney wrote: On 2 June 2014 11:14, Steven D'Aprano steve+comp@pearwood.info wrote:  Latin-1 is one of those legacy encodings which needs to die, not to be entrenched as the default. My terminal uses UTF-8 by default (as it should), and if

Connect to VectorWise database usin Python

2014-06-01 Thread sukesh.bheemineni
Hi, Using python(2.7.2) I am not able to connect to Vector Wise database. Can you suggest me how I can connect to it. If you don't mind step by step :(. Regards, Sukesh. -- https://mail.python.org/mailman/listinfo/python-list

parsley parsing question

2014-06-01 Thread Eric S. Johansson
how do you parse multi line text with parsley? here is a work in progress and I'm trying to figure out why I need to split the text and process per line vrs all at one go. thanks for any help. --- eric Here's the whole body of code --- import parsley # # grammar to

[issue21476] Inconsitent behaviour between BytesParser.parse and Parser.parse

2014-06-01 Thread Vajrasky Kok
Vajrasky Kok added the comment: Ok, here is the updated patch based on R. David Murray's help. Thanks! -- Added file: http://bugs.python.org/file35424/bytes_parser_dont_close_file_v4.patch ___ Python tracker rep...@bugs.python.org

[issue21623] build ssl failed use vs2010 express

2014-06-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +steve.dower, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21623 ___ ___ Python-bugs-list

[issue18132] buttons in turtledemo disappear on small screens

2014-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe I have read more than one warning to not mix grid and pack in the same master, as your patch does. For example: http://effbot.org/tkinterbook/grid.htm, An option would be to grid everything. I believe grid would also fix issue #21597, so I may try

[issue21618] POpen does not close fds when fds have been inherited from a process with a higher resource limit

2014-06-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Here's a patch with a unittest that reproduces the problem with fixes to stop using any end_fds. The max fd is only ever used in the absolute fallback situation where no way to get a list of open fd's is available. In that case it is obtained from

[issue21592] Make statistics.median run in linear time

2014-06-01 Thread Stefan Behnel
Stefan Behnel added the comment: I tried the same with a Cython compiled version of select.py in the latest CPython 3.5 build. It pretty clearly shows that select2 is pretty much always faster than sorting, by a factor of 2-5x or so. I'll also attach the annotated source file that Cython

[issue21592] Make statistics.median run in linear time

2014-06-01 Thread Stefan Behnel
Changes by Stefan Behnel sco...@users.sourceforge.net: Added file: http://bugs.python.org/file35427/select.html ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21592 ___

[issue21592] Make statistics.median run in linear time

2014-06-01 Thread Stefan Behnel
Stefan Behnel added the comment: Here's also the pathological average of three calls case. As Steven suggests, it shows that select() suffers quite heavily (algorithmically), but select2() also suffers enough to jump up to about 2/3 of the runtime of sorting (so it's still 1/3 faster even

[issue21605] Add tests for Tkinter images

2014-06-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset fcbb15edb73a by Serhiy Storchaka in branch '2.7': Issue #21605: Added tests for Tkinter images. http://hg.python.org/cpython/rev/fcbb15edb73a New changeset 6c8b2ab55976 by Serhiy Storchaka in branch '3.4': Issue #21605: Added tests for Tkinter

[issue21605] Add tests for Tkinter images

2014-06-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21605 ___

[issue21459] DragonFlyBSD support

2014-06-01 Thread Thomas Klausner
Thomas Klausner added the comment: Actually, there are even less changes needed nowadays. Please apply this really small patch. -- Added file: http://bugs.python.org/file35428/dragonfly.diff ___ Python tracker rep...@bugs.python.org

[issue21459] DragonFlyBSD support

2014-06-01 Thread Thomas Klausner
Changes by Thomas Klausner t...@giga.or.at: Removed file: http://bugs.python.org/file35195/dragonfly.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21459 ___

[issue21592] Make statistics.median run in linear time

2014-06-01 Thread Stefan Behnel
Stefan Behnel added the comment: Updating the type declaration file to remove the dependency on the list builtin and allow arbitrary containers. The test code has this dependency (calls a.sort()), but the current statistics module in the stdlib does not (calls sorted()). Timings do not

[issue21592] Make statistics.median run in linear time

2014-06-01 Thread Stefan Behnel
Changes by Stefan Behnel sco...@users.sourceforge.net: Added file: http://bugs.python.org/file35430/select.html ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21592 ___

[issue21625] help()'s more-mode is frustrating

2014-06-01 Thread Ned Batchelder
New submission from Ned Batchelder: From the #python IRC channel: ``` [07:55:29] tonysar hello.new to programming and python, i use mac terminal but problem i have is , when i use help function of python to look up something , i lose my prompt and i have no idea how to go back , what i

[issue21592] Make statistics.median run in linear time

2014-06-01 Thread Julian Taylor
Julian Taylor added the comment: in the case of the median you can archive similar performance to a multiselect by simply calling min([len(data) // 2 + 1]) for the second order statistic which you need for the averaging of even number of elements. maybe an interesting datapoint would be to

[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-06-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file35402/tkinter_bytes.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21580 ___

[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-06-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file35431/tkinter_bytes.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21580 ___

[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Unfortunately we can't use this straightforward and universal solution in Python 2. Here is a patch which adds special workarounds to fix this issue in 2.7. -- Added file: http://bugs.python.org/file35432/tkinter_bytes-2.7.patch

[issue21459] DragonFlyBSD support

2014-06-01 Thread Thomas Klausner
Thomas Klausner added the comment: Semaphore handling needs another change. if sem_open etc. are not provided by the operating system, do not export them (Modules/_multiprocessing/multiprocessing.c). Updated diff attached. That part of the diff might affect more operating systems. --

[issue21459] DragonFlyBSD support

2014-06-01 Thread Thomas Klausner
Changes by Thomas Klausner t...@giga.or.at: Removed file: http://bugs.python.org/file35428/dragonfly.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21459 ___

[issue21552] String length overflow in Tkinter

2014-06-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21552 ___

[issue21626] Add options width and compact to pickle cli

2014-06-01 Thread B. Clausius
New submission from B. Clausius: The attached patch add this options to python3 -m pickle cli: -w WIDTH, --width WIDTH maximum number of characters per line -c, --compact display as many items as will fit on each output line The options are forwarded as kwargs

[issue21626] Add options width and compact to pickle cli

2014-06-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21626 ___

[issue18504] IDLE:Improvements- Improving Mock_Text

2014-06-01 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: This patch tries to enable mock_Tk.Text._decode to handle the following patterns insert linestart insert lineend insert wordstart insert wordend insert +x chars insert -x chars These additions are required for testing AutoExpand and are written keeping the

[issue21623] build ssl failed use vs2010 express

2014-06-01 Thread Mo Jia
Mo Jia added the comment: Another error is . cd D:\Hg\Python\Python\PCbuild\ D:\Hg\Python\Python\PCbuild\python_d.exe build_ssl.py Release Win32 -a Found a working perl at 'C:\Perl\bin\perl.exe' Traceback (most recent call last): File build_ssl.py, line 253, in module main()

[issue18292] IDLE Improvements: Unit test for AutoExpand.py

2014-06-01 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Attached patch adds unittest for idlelib`s AutoExpand. Depends on issue18504 for Text's mocking abilities. -- keywords: +patch nosy: +jesstess, sahutd Added file: http://bugs.python.org/file35436/test-autoexpand.diff

[issue21401] python2 -3 does not warn about str/unicode to bytes conversions and comparisons

2014-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that even if we accept this change (I am unsure in this), a warning should be raised only when bytes and unicode objects are equal. When they are not equal, a warning should not be raised, because this matches Python 3 behavior. --

[issue1669539] Improve Windows os.path.join (ntpath.join) smart joining

2014-06-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1669539 ___ ___

[issue21231] Issue a python 3 warning when old style classes are defined.

2014-06-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21231 ___ ___

[issue18492] Allow all resources if not running under regrtest.py

2014-06-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18492 ___ ___

[issue19656] Add Py3k warning for non-ascii bytes literals

2014-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Benjamin, what you think about this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19656 ___ ___

[issue20361] -W command line options and PYTHONWARNINGS environmental variable should not override -b / -bb command line options

2014-06-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20361 ___ ___

[issue20168] Derby: Convert the _tkinter module to use Argument Clinic

2014-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Synchronized with tip. -- Added file: http://bugs.python.org/file35437/tkinter_clinic_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20168 ___

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2014-06-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file35438/sre_clinic_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20148 ___

[issue14019] Unify tests for str.format and string.Formatter

2014-06-01 Thread moijes12
moijes12 added the comment: Note that this issue wasn't about the formatter module - it relates to the str.format() method and the string.Formatter *class*. I would tend to agree with Nick and Eric. From what I see in the patch, the tests are for formatter module and not the

[issue21618] POpen does not close fds when fds have been inherited from a process with a higher resource limit

2014-06-01 Thread Steven Stewart-Gallus
Steven Stewart-Gallus added the comment: Thank you for the very quick patch Gregory P. Smith. It's fair enough if you don't bother to fix the EINTR issue. One small note: +Confirm that issue21618 is fixed (mail fail under valgrind). That's a typo right? Shouldn't it be may instead

[issue21627] Concurrently closing files and iterating over the open files directory is not well specified

2014-06-01 Thread Steven Stewart-Gallus
New submission from Steven Stewart-Gallus: Hello, I noticed some possible bad behaviour while working on Python issue 21618 (see http://bugs.python.org/issue21618). Python has the following code in _posixsubmodules.c for closing extra files before spawning a process: static void

[issue21628] 2to3 does not fix zip in some cases

2014-06-01 Thread RobertG
New submission from RobertG: Consider this program def foo(a,b): return min(zip(a,b)[2]) print foo(range(5), (0,9,-9)) With the default options, 2to3 rewrites this as def foo(a,b): return min(zip(a,b)[2]) print(foo(list(range(5)), (0,9,-9))) For some reason, 2to3 fails to

[issue21629] clinic.py --converters fails

2014-06-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python Tools/clinic/clinic.py --converters Legacy converters: Traceback (most recent call last): File Tools/clinic/clinic.py, line 4199, in module sys.exit(main(sys.argv[1:])) File Tools/clinic/clinic.py, line 4131, in main print('' + '

[issue21630] List Dict bug?

2014-06-01 Thread Robert w
New submission from Robert w: outer for loop loops n 1 times, when it should loop one time. Variations are possible tht the bug doesn't occur. -- components: Interpreter Core files: bug.py messages: 219513 nosy: Robert.w priority: normal severity: normal status: open title: List Dict

[issue21630] List Dict bug?

2014-06-01 Thread Robert w
Changes by Robert w robert...@googlemail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21630 ___ ___

[issue21631] List/Dict Combination Bug

2014-06-01 Thread Robert w
New submission from Robert w: outer for loop loops more than one time, which should be impossible. -- components: Interpreter Core files: bug.py messages: 219514 nosy: Robert.w priority: normal severity: normal status: open title: List/Dict Combination Bug type: behavior versions:

[issue21631] List/Dict Combination Bug

2014-06-01 Thread SilentGhost
SilentGhost added the comment: Robert, could you please post a reduced code that generates the bug. Preferably, a interpreter output. Including information about your python version, OS, etc. For example: Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type help,

[issue21625] help()'s more-mode is frustrating

2014-06-01 Thread eryksun
eryksun added the comment: Why does help() enter a more-mode for even short help? `more` exits if there's less than a page of a text. The default for `less` is to quit when q is entered. You may be interested in the option -e (quit-at-eof). Why doesn't ENTER get you out of it? ENTER

[issue21628] 2to3 does not fix zip in some cases

2014-06-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21628 ___ ___

[issue21630] List Dict bug?

2014-06-01 Thread R. David Murray
R. David Murray added the comment: If I put a 'print(one iteration) at the top of the loop, that string is printed exactly once. I presume you realized that and that is why you closed this? -- nosy: +r.david.murray resolution: - not a bug ___

[issue21631] List/Dict Combination Bug

2014-06-01 Thread R. David Murray
R. David Murray added the comment: Oh, this is the same code as in issue 21630 that you closed. Since the loop is only executed once (as confirmed by adding a print), I suspect you have a bug in your expectations of the output :) -- nosy: +r.david.murray

[issue19656] Add Py3k warning for non-ascii bytes literals

2014-06-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6bd21268876e by Serhiy Storchaka in branch '2.7': Issue #19656: Running Python with the -3 option now also warns about http://hg.python.org/cpython/rev/6bd21268876e -- nosy: +python-dev ___ Python

[issue19656] Add Py3k warning for non-ascii bytes literals

2014-06-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19656

[issue21625] help()'s more-mode is frustrating

2014-06-01 Thread Ned Batchelder
Ned Batchelder added the comment: Thanks, this is a very complete explanation of the machinery behind the scenes. I think we would do beginners a service if we made the behavior a bit less obscure. Are there ways that we could (for example) have the prompt say END (q to quit) instead of

[issue21632] Idle: sychronize text files across versions as appropriate.

2014-06-01 Thread Terry J. Reedy
New submission from Terry J. Reedy: Spinoff of #7136: In pushing the patch for that issue, I discovered that formatting changes for help.txt (and maybe /Doc/library/idle.rst) had been applied unevenly. See msg192141, which suggests this issue. 3.3 versus 3.4 differences are moot, so this now

[issue20886] Disabling logging to ~/.python_history is not simple enough

2014-06-01 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20886 ___ ___ Python-bugs-list mailing list

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2014-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Zach, do you have any further thoughts in light of patches pushed since? What do you think is the exact remaining issue? -- assignee: terry.reedy - ___ Python tracker rep...@bugs.python.org

[issue21468] NNTPLib connections become corrupt after long periods of activity

2014-06-01 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21468 ___ ___ Python-bugs-list mailing list

[issue21618] POpen does not close fds when fds have been inherited from a process with a higher resource limit

2014-06-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5453b9c59cd7 by Gregory P. Smith in branch '3.4': Don't restrict ourselves to a max fd when closing fds before exec() http://hg.python.org/cpython/rev/5453b9c59cd7 New changeset 012329c8c4ec by Gregory P. Smith in branch 'default': Don't restrict

[issue21573] Clean up turtle.py code formatting

2014-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would like to provide a final review before of any proposed changes. Also, along the way, I would happy to provide suggestions for more substantive changes (instead of shallow PEP 8 or PyLint changes). The primary defect in the modules is that the code

[issue21618] POpen does not close fds when fds have been inherited from a process with a higher resource limit

2014-06-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Backported to subprocess32 in https://code.google.com/p/python-subprocess32/source/detail?r=1c27bfe7e98f78e6aaa746b5c0a4d902a956e2a5 -- resolution: - fixed stage: patch review - commit review status: open - closed versions: +Python 3.5

[issue20640] Idle: test configHelpSourceEdit

2014-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please redo 3.3 patch for current 3.4 (after htest change). -- title: Adds idle test for configHelpSourceEdit - Idle: test configHelpSourceEdit versions: +Python 3.5 -Python 3.3 ___ Python tracker

[issue18410] Idle: test SearchDialog.py

2014-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: #18592 has a patch for SearchDialogBase. -- title: IDLE Improvements: Unit test for SearchDialog.py - Idle: test SearchDialog.py versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue20567] test_idle causes test_ttk_guionly 'can't invoke event command: application has been destroyed' messages from Tk

2014-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Probably still need to add note to idle_test/README.txt. -- stage: commit review - needs patch versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20567

[issue20800] Cannot run gui tests twice.

2014-06-01 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20800 ___ ___

[issue20800] Cannot run gui tests twice.

2014-06-01 Thread Ned Deily
Ned Deily added the comment: For what it's worth, I don't see the problem on OS X (haven't tried it recently on a Linux system), so it might be a Windows only issue. It's become clearer that some test combinations can only be safely run with the regrtest -j option to run them as separate

  1   2   >