Announcement - Learning NumPy Array

2014-06-30 Thread Priyanka Budkuley
Hi, I am pleased to inform you about the Publication of Learning NumPy Array http://bit.ly/UyKBJ1 by Ivan Idris. This book is a step-by-step guide which gives a comprehensive overview of Nympy. Now that the book is published, I am looking for people who can review our new title on their

Translation of Python!

2014-06-30 Thread Doriven Basha
Hello everybody! I want to translate python into albanian language because it's very flexible and similar to english words used in programming.Can anybody help me to start translation of the python the programm used or anything else to get started with programming translation???I can do it by

Re: Translation of Python!

2014-06-30 Thread INADA Naoki
Do you mean translating official document? We are translating docs into Japanese using Transifex. https://www.transifex.com/projects/p/python-33-ja/ But I hope PSF have official project on Transifex. On Mon, Jun 30, 2014 at 4:24 PM, Doriven Basha dori...@live.com wrote: Hello everybody! I

[Q] override __init__() method of classes implemented in C

2014-06-30 Thread Makoto Kuwata
Is it impossible to override __init__() method of classes implemented in C (such as datetime.datetime) ? example.py: from datetime import datetime class Foo(datetime): def __init__(self): pass obj = Foo() Result (Python 2.7.7 and 3.4.1): Traceback (most recent call last):

Re: [Q] override __init__() method of classes implemented in C

2014-06-30 Thread Chris Angelico
On Mon, Jun 30, 2014 at 5:45 PM, Makoto Kuwata k...@kuwata-lab.com wrote: Result (Python 2.7.7 and 3.4.1): Traceback (most recent call last): File hoge.py, line 7, in module obj = Foo() TypeError: Required argument 'year' (pos 1) not found It seems to be failed to override

Re: [Q] override __init__() method of classes implemented in C

2014-06-30 Thread Makoto Kuwata
On Mon, Jun 30, 2014 at 4:52 PM, Chris Angelico ros...@gmail.com wrote: Actually, __init__ isn't the problem here, __new__ is. class Foo(datetime): def __new__(self): return super().__new__(self,2014,1,1) Foo() Foo(2014, 1, 1, 0, 0) Maybe that helps, maybe it doesn't, but

Python While loop Takes too much time.

2014-06-30 Thread Jaydeep Patil
I have did excel automation using python. In my code I am creating python dictionaries for different three columns data at a time.There are are many rows above 4000. Lets have look in below function. Why it is taking too much time? Code: def transientTestDict(self,ws,startrow,startcol):

Re: Python While loop Takes too much time.

2014-06-30 Thread Peter Otten
Jaydeep Patil wrote: I have did excel automation using python. In my code I am creating python dictionaries for different three columns data at a time.There are are many rows above 4000. Lets have look in below function. Why it is taking too much time? Code: def

Re: [OT] What can Nuitka do?

2014-06-30 Thread Michael Torrie
On 06/28/2014 09:16 AM, Chris Angelico wrote: I remember approx. 10 years ago a neighboring dept. at my work effectively killed our 10 MB/s Ethernet segment with such traffic (due to a misconfigured switch/router?). Running an ethernet analyzer showed a single X11 host-server session occupied

Re: [OT] What can Nuitka do?

2014-06-30 Thread Chris Angelico
On Mon, Jun 30, 2014 at 11:10 PM, Michael Torrie torr...@gmail.com wrote: Only the most primitive X11 apps are at all fast over network forwarding. If the app uses any modern toolkit, then it's basically just sending a bunch of bitmaps over the wire (changes), which would be fine, but X11

Creating a dict-like class that counts successful and failed key matches

2014-06-30 Thread python
As a diagnostic tool, I would like to create a dict-like class that counts successful and failed key matches by key. By failed I mean in the sense that a default value was returned vs. an exception raised. By count, I mean by tracking counts for individual keys vs. just total success/failure

Re: Creating a dict-like class that counts successful and failed key matches

2014-06-30 Thread python
After some additional research, it looks like I may have even more options to consider including using a UserDict mixin. I think I've identified another magic method to subclass ... __missing__. - Original message - From: [1]pyt...@bdurham.com To: [2]python-list@python.org

Re: Creating a dict-like class that counts successful and failed key matches

2014-06-30 Thread Chris Angelico
On Mon, Jun 30, 2014 at 11:43 PM, pyt...@bdurham.com wrote: As a diagnostic tool, I would like to create a dict-like class that counts successful and failed key matches by key. By failed I mean in the sense that a default value was returned vs. an exception raised. By count, I mean by

Re: Creating a dict-like class that counts successful and failed key matches

2014-06-30 Thread python
Hi Chris, Sounds like you want to subclass dict, then. Something like this: Nice!!! I need to study your solution, but at first blush it looks exactly like what I wanted to implement. Thank you! Malcolm -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating a dict-like class that counts successful and failed key matches

2014-06-30 Thread Ethan Furman
On 06/30/2014 07:44 AM, pyt...@bdurham.com wrote: Nice!!! I need to study your solution, but at first blush it looks exactly like what I wanted to implement. Keep in mind that dict /will not/ call your overridden methods, so if, for example, you provide your own __getitem__ you will also

Re: Creating a dict-like class that counts successful and failed key matches

2014-06-30 Thread python
Ethan, Keep in mind that dict /will not/ call your overridden methods, so if, for example, you provide your own __getitem__ you will also need to provide your own copies of any dict method that calls __getitem__. I'm not sure I understand. Are you saying that Chris's __getitem__ will not be

Re: Creating a dict-like class that counts successful and failed key matches

2014-06-30 Thread Ethan Furman
On 06/30/2014 09:47 AM, pyt...@bdurham.com wrote: Keep in mind that dict /will not/ call your overridden methods, so if, for example, you provide your own __getitem__ you will also need to provide your own copies of any dict method that calls __getitem__. I'm not sure I understand. Are you

Re: Python While loop Takes too much time.

2014-06-30 Thread marco . nawijn
On Monday, June 30, 2014 1:32:23 PM UTC+2, Jaydeep Patil wrote: I have did excel automation using python. In my code I am creating python dictionaries for different three columns data at a time.There are are many rows above 4000. Lets have look in below function. Why it is taking too much

Re: Translation of Python!

2014-06-30 Thread Doriven Basha
I want to translate it into my language like the chinese python https://code.google.com/p/zhpy/w/list?q=label:Chinese can you help me? -- https://mail.python.org/mailman/listinfo/python-list

Re: Translation of Python!

2014-06-30 Thread Doriven Basha
On Monday, June 30, 2014 8:37:43 PM UTC+2, Doriven Basha wrote: I want to translate it into my language like the chinese python https://code.google.com/p/zhpy/w/list?q=label:Chinese can you help me? -- https://mail.python.org/mailman/listinfo/python-list

unorderable error: less ok, equal ok, less-or-equal gives unorderable error!

2014-06-30 Thread RainyDay
Hi, in python 3.4.1, I get this surpising behaviour: l=Loc(0,0) l2=Loc(1,1) ll2 False ll2 True l=l2 Traceback (most recent call last): File stdin, line 1, in module TypeError: unorderable types: Loc() = Loc() l==l2 False ll2 or l==l2 True Loc implements both __lt__ and __eq__, which

Re: Writing Multiple files at a times

2014-06-30 Thread subhabangalore
On Sunday, June 29, 2014 4:19:27 PM UTC+5:30, subhaba...@gmail.com wrote: Dear Group, I am trying to crawl multiple URLs. As they are coming I want to write them as string, as they are coming, preferably in a queue. If any one of the esteemed members of the group may kindly help.

Re: unorderable error: less ok, equal ok, less-or-equal gives unorderable error!

2014-06-30 Thread Peter Otten
RainyDay wrote: Hi, in python 3.4.1, I get this surpising behaviour: l=Loc(0,0) l2=Loc(1,1) ll2 False ll2 True l=l2 Traceback (most recent call last): File stdin, line 1, in module TypeError: unorderable types: Loc() = Loc() l==l2 False ll2 or l==l2 True Loc implements both

Re: Creating a dict-like class that counts successful and failed key matches

2014-06-30 Thread python
Ethan, Is this specific to the native Dict class (because its implemented in C vs. Python?) or is this behavior more general. I /think/ it's only dict, but I haven't played with subclassing lists, tuples, etc. It's not a C vs Python issue, but a 'implemented with __private methods'

Writing files at run time

2014-06-30 Thread subhabangalore
Dear Group, In my previous post[https://groups.google.com/forum/#!topic/comp.lang.python/ZYjsskV5MgE;] I was trying to discuss some issue on file writing. I got an associated issue. I am trying to crawl a link, through urllib and trying to store its results in different files. As discussed

Re: Translation of Python!

2014-06-30 Thread Michael Torrie
On 06/30/2014 12:37 PM, Doriven Basha wrote: I want to translate it into my language like the chinese python https://code.google.com/p/zhpy/w/list?q=label:Chinese can you help me? I don't understand chinese, so I am not sure what this web page is about. Do you want to translate Python's

Re: unorderable error: less ok, equal ok, less-or-equal gives unorderable error!

2014-06-30 Thread RainyDay
On Monday, June 30, 2014 3:34:25 PM UTC-4, Peter Otten wrote: RainyDay wrote: Hi, in python 3.4.1, I get this surpising behaviour: l=Loc(0,0) l2=Loc(1,1) ll2 False ll2 True l=l2 Traceback (most recent call last): File stdin, line 1, in module

Re: unorderable error: less ok, equal ok, less-or-equal gives unorderable error!

2014-06-30 Thread Ethan Furman
On 06/30/2014 12:34 PM, Peter Otten wrote: RainyDay wrote: def __eq__(self, other): return self._loc == getattr(other, _loc, None) Note that None is not a good default when _loc is expected to be a tuple: In this case None is not being returned, but will be comparid with

Re: Creating a dict-like class that counts successful and failed key matches

2014-06-30 Thread Chris Angelico
On Tue, Jul 1, 2014 at 2:47 AM, pyt...@bdurham.com wrote: I'm not sure I understand. Are you saying that Chris's __getitem__ will not be called by other dict methods that would normally call this magic method and instead call the parent's __getitem__ directly (via super() or something

Re: Writing Multiple files at a times

2014-06-30 Thread Denis McMahon
On Mon, 30 Jun 2014 12:23:08 -0700, subhabangalore wrote: Thank you for your kind suggestion. But I am not being able to sort out, fp = open( scraped/body{:05d}.htm.format( n ), w ) please suggest. look up the python manual for string.format() and open() functions. The line indicated opens

Validating Data Extracted from Files

2014-06-30 Thread Ari King
Hi, I'm sourcing data from multiple excel files (workbooks) each with multiple worksheets. Prior to persisting the aggregated data, I want to validate it. I was thinking of creating classes to hold the data and validate type and content via methods. I'd appreciate feedback on this approach,

Re: Python While loop Takes too much time.

2014-06-30 Thread Gregory Ewing
marco.naw...@colosso.nl wrote: In the past I even dumped an EXCEL sheet as a CSV file That's probably the only way you'll speed things up significantly. In my experience, accessing Excel via COM is abysmally slow no matter how you go about it. -- Greg --

Re:Writing files at run time

2014-06-30 Thread Dave Angel
subhabangal...@gmail.com Wrote in message: Dear Group, In my previous post[https://groups.google.com/forum/#!topic/comp.lang.python/ZYjsskV5MgE;] I was trying to discuss some issue on file writing. I got an associated issue. I am trying to crawl a link, through urllib and trying to

Re: Translation of Python!

2014-06-30 Thread Steven D'Aprano
On Mon, 30 Jun 2014 14:24:46 -0600, Michael Torrie wrote: On 06/30/2014 12:37 PM, Doriven Basha wrote: I want to translate it into my language like the chinese python https://code.google.com/p/zhpy/w/list?q=label:Chinese can you help me? I don't understand chinese, so I am not sure what

Re: [OT] What can Nuitka do?

2014-06-30 Thread Michael Torrie
On 06/30/2014 07:36 AM, Chris Angelico wrote: Hmm. I'm not sure that it's necessarily that bad; I've done 3G-based X11 forwarding fairly successfully on occasion. Yes, it's potentially quite slow, but it certainly works - I've used SciTE, for instance, and I've used some GTK2 apps without

Re: [OT] What can Nuitka do?

2014-06-30 Thread Michael Torrie
I highly recommend the talk by Daniel Stone who used to be a core X.org developer. He explains it quite well how X is used currently, and why it has problems and why they are considered so hard to fix that Wayland (and Mir) was created. https://www.youtube.com/watch?v=RIctzAQOe44 One

[issue20577] IDLE: Remove FormatParagraph's width setting from config dialog

2014-06-30 Thread Tal Einat
Tal Einat added the comment: I've been waiting to commit this for some time. I'd really like to do this myself, if you don't mind. I'm just waiting for my SSH key to be added, which is taking a long time since apparently all three people who could do so are traveling and unable to help.

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-06-30 Thread Claudiu Popa
Claudiu Popa added the comment: Well, for instance, my use cases with InteractiveInterpreter are for debugging or creating custom interpreters for various apps and in those cases the patch helps, by giving better debugging clues through the exception cause. I agree that this was overlooked

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-06-30 Thread Claudiu Popa
Claudiu Popa added the comment: Also, solving this issue seems to be, partially, a prerequisite for issue14805. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17442 ___

[issue10342] trace module cannot produce coverage reports for zipped modules

2014-06-30 Thread Claudiu Popa
Claudiu Popa added the comment: Hi, I left a couple of comments on Rietveld. -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10342 ___

[issue21811] Anticipate fixes to 3.x and 2.7 for OS X 10.10 Yosemite support

2014-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 53112afddae6 by Ned Deily in branch '2.7': Issue #21811: Add Misc/NEWS entry. http://hg.python.org/cpython/rev/53112afddae6 New changeset ec27c85d3001 by Ned Deily in branch '3.4': Issue #21811: Add Misc/NEWS entry.

[issue8902] add datetime.time.now() for consistency

2014-06-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: For the reasons listed by others, marking this as closed/rejected. -- nosy: +rhettinger resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8902

[issue21881] python cannot parse tcl value

2014-06-30 Thread Ned Deily
Ned Deily added the comment: What version of Tcl are you using and on what platform? -- nosy: +ned.deily, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21881 ___

[issue8902] add datetime.time.now() for consistency

2014-06-30 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: needs patch - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8902 ___ ___

[issue15347] IDLE - does not close if the debugger was active

2014-06-30 Thread Mark Lawrence
Mark Lawrence added the comment: A pythonw.exe process is left running if I try this with 3.4.1 on Windows 7. -- nosy: +BreamoreBoy, terry.reedy versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue11762] Ast doc: warning and version number

2014-06-30 Thread Berker Peksag
Berker Peksag added the comment: 1. Add a warning similar to the one for the dis module. The current documentation says: The abstract syntax itself might change with each Python release; [...] https://docs.python.org/3.4/library/ast.html 2. Add a full entry for __version__. Currently

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2014-06-30 Thread Mark Lawrence
Mark Lawrence added the comment: Does this need following up, can it be closed as won't fix as it only affects 2.7, or what? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10417

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2014-06-30 Thread STINNER Victor
STINNER Victor added the comment: Does this need following up, can it be closed as won't fix as it only affects 2.7, or what? IMO we should fix this issue. I proposed a fix in msg121294. -- ___ Python tracker rep...@bugs.python.org

[issue21884] turtle regression of issue #21823: uncaught exception on AMD64 Snow Leop 3.x buildbot

2014-06-30 Thread STINNER Victor
New submission from STINNER Victor: Since the changeset 1ae2382417dcc7202c708cac46ae8a61412ca787 from the issue #21823, Tcl/Tk crashs beacuse of an uncaught exception on the buildbot AMD64 Snow Leop 3.x on tk.call('update') called by tkinter.Misc().update(). First failure on the buildbot 3.4:

[issue21884] turtle regression of issue #21823: uncaught exception on AMD64 Snow Leop 3.x buildbot

2014-06-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21884 ___ ___

[issue21732] SubprocessTestsMixin.test_subprocess_terminate() hangs on AMD64 Snow Leop 3.x buildbot

2014-06-30 Thread STINNER Victor
STINNER Victor added the comment: I cannot check if the error occurred recently because of another issue: #21884. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21732 ___

[issue21645] test_read_all_from_pipe_reader() of test_asyncio hangs on FreeBSD 9

2014-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 69d474dab479 by Victor Stinner in branch 'default': Issue #21645: asyncio: add a watchdog in test_read_all_from_pipe_reader() for http://hg.python.org/cpython/rev/69d474dab479 -- nosy: +python-dev ___

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset defd09a5339a by Victor Stinner in branch '3.4': asyncio: sync with Tulip http://hg.python.org/cpython/rev/defd09a5339a New changeset 8dc8c93e74c9 by Victor Stinner in branch 'default': asyncio: sync with Tulip

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-06-30 Thread STINNER Victor
STINNER Victor added the comment: Hum, dont_log_pending.patch is not correct for wait(): wait() returns (done, pending), where pending is a set of pending tasks. So it's still possible that pending tasks are destroyed while they are not a still pending, after the end of wait(). The log should

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 13e78b9cf290 by Victor Stinner in branch '3.4': Issue #21163: BaseEventLoop.run_until_complete() and test_utils.run_briefly() http://hg.python.org/cpython/rev/13e78b9cf290 New changeset 2d0fa8f383c8 by Victor Stinner in branch 'default': (Merge

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2014-06-30 Thread Ian Cordasco
Changes by Ian Cordasco graffatcolmin...@gmail.com: -- nosy: +icordasc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17849 ___ ___

[issue19475] Add microsecond flag to datetime isoformat()

2014-06-30 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Here is some prior art: GNU date utility has an --iso-8601[=timespec] option defined as ‘-I[timespec]’ ‘--iso-8601[=timespec]’ Display the date using the ISO 8601 format, ‘%Y-%m-%d’. The argument timespec specifies the number of additional terms of the

[issue21882] turtledemo modules imported by test___all__ cause side effects or failures

2014-06-30 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +jesstess ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21882 ___ ___ Python-bugs-list

[issue19475] Add microsecond flag to datetime isoformat()

2014-06-30 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Based on GNU date prior art, we can introduce timespec='auto' keyword argument with the following values: 'auto' - (default) same as current behavior 'hours' - %H 'minutes' - %H:%M 'seconds' - %H:%M:%S 'us' - %H:%M:%S.%f --

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2014-06-30 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17849 ___

[issue21885] shutil.copytree hangs (on copying root directory of a lxc container) (should succeed or raise exception nested)

2014-06-30 Thread Karl Richter
New submission from Karl Richter: reproduction (on Ubuntu 14.04 amd64 with lxc 1.0.4) (with python 2.7.6 and 3.4.0) # as root/with privileges lxc-create -n ubuntu-trusty-amd64 -t ubuntu -- --arch amd64 --release trusty lxc-stop -n ubuntu-trusty-amd64 # assert container isn't

[issue21886] asyncio: Future.set_result() called on cancelled Future raises asyncio.futures.InvalidStateError

2014-06-30 Thread STINNER Victor
New submission from STINNER Victor: Ok, I found a way to reproduce the error InvalidStateError in asyncio. I'm not sure that it's the same the error in #21447. Output of attached bug.py in debug mode: --- Exception in callback Future.set_result(None) handle: TimerHandle when=79580.878306285

[issue21447] Intermittent asyncio.open_connection / futures.InvalidStateError

2014-06-30 Thread STINNER Victor
STINNER Victor added the comment: This issue contains two sub-issues: - race condition in_write_to_self() = already fixed - race condition with scheduled call to future.set_result(), InvalidStateError = I just opened the issue #21886 to discuss it @Ryder: If you are able to reproduce the

[issue21886] asyncio: Future.set_result() called on cancelled Future raises asyncio.futures.InvalidStateError

2014-06-30 Thread Ryder Lewis
Changes by Ryder Lewis rle...@softgatesystems.com: -- nosy: +ryder.lewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21886 ___ ___

[issue9248] multiprocessing.pool: Proposal: waitforslot

2014-06-30 Thread Ask Solem
Ask Solem added the comment: This patch is quite dated now and I have fixed many bugs since. The feature is available in billiard and is working well but The code has diverged quite a lot from python trunk. I will be updating billiard to reflect the changes for Python 3.4 soon (billiard is

[issue6721] Locks in the standard library should be sanitized on fork

2014-06-30 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- title: Locks in python standard library should be sanitized on fork - Locks in the standard library should be sanitized on fork versions: +Python 3.5 -Python 3.3 ___ Python tracker

[issue6721] Locks in the standard library should be sanitized on fork

2014-06-30 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6721 ___ ___ Python-bugs-list

[issue21887] Python3 can't detect Tcl

2014-06-30 Thread Joe Borg
New submission from Joe Borg: Trying to configure 3.4.1 on Cent OS 6.4. I have built Tcl and Tk, using the prefix /scratch/root. I can confirm the builds with: $ find /scratch/root/ -name tcl.h /scratch/root/include/tcl.h $ find /scratch/root/ -name tk.h /scratch/root/include/tk.h But,

[issue21884] turtle regression of issue #21823: uncaught exception on AMD64 Snow Leop 3.x buildbot

2014-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Brett, the question is about import.) The problem is the mode call in clock.py, which I will move today as part of 21882. I am sorely puzzled that the patch in #21823 could have changed the effect of mode(). There are only two changes, only one of which

[issue21887] Python3 can't detect Tcl/Tk 8.6.1

2014-06-30 Thread Joe Borg
Changes by Joe Borg cyborg101...@gmail.com: -- title: Python3 can't detect Tcl - Python3 can't detect Tcl/Tk 8.6.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21887 ___

[issue21882] turtledemo modules imported by test___all__ cause side effects or failures

2014-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am working on the turtle demos now. Victor gave more info in #21884. I was partly wrong in my comments. turtledemo uses reload to re-initialize demos when one switches between them. I am tempted to remove this as part of discouraging side-effects on import.

[issue14117] Turtledemo: exception and minor glitches.

2014-06-30 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- dependencies: +turtledemo modules imported by test___all__ cause side effects or failures ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14117

[issue21876] os.rename(src, dst) does nothing when src and dst files are hard-linked

2014-06-30 Thread Aaron Swan
Aaron Swan added the comment: At any rate, it is a bit of a nuisance that files remain present when the intent was to move them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21876 ___

[issue14261] Cleanup in smtpd module

2014-06-30 Thread Michele Orrù
Michele Orrù added the comment: On Sun, Jun 29, 2014 at 03:15:44PM +, Mark Lawrence wrote: Mark Lawrence added the comment: @Michele as 8739 has been implemented would you like to put up a patch for this? No, but setting keyword easy could help for future contributions. --

[issue21888] plistlib.FMT_BINARY behavior doesn't send required dict parameter

2014-06-30 Thread Nathan Henrie
New submission from Nathan Henrie: When using the new plistlib.load and the FMT_BINARY option, line 997: p = _FORMATS[fmt]['parser'](use_builtin_types=use_builtin_types) doesn't send the dict_type to _BinaryPlistParser.__init__ (line 601), which has dict_type as a required positional

[issue14322] More test coverage for hmac

2014-06-30 Thread Mark Lawrence
Mark Lawrence added the comment: If there isn't a signed contributor agreement I'll put up a new version of the patch. In msg156758 Antoine said 'don't use except: self.fail(), just let the exception pass through'. There are several of these in the existing code. Should they all be removed

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2014-06-30 Thread Mark Lawrence
Mark Lawrence added the comment: @Rodrigue did you ever make any progress with this? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9517 ___

[issue13231] sys.settrace - document 'some other code blocks' for 'call' event type

2014-06-30 Thread Mark Lawrence
Mark Lawrence added the comment: I find this request excessive. The first sentence for sys.settrace states Set the system’s trace function, which allows you to implement a Python source code debugger in Python. I suspect that anyone wanting to write a debugger would know the Python and its

[issue21881] python cannot parse tcl value

2014-06-30 Thread Andreas Schwab
Andreas Schwab added the comment: You will see this on any architecture where the canonical NaN has all bits set (or a subset of them). This include mips and m68k. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21881

[issue21887] Python3 can't detect Tcl/Tk 8.6.1

2014-06-30 Thread Ned Deily
Ned Deily added the comment: for the --with-tcltk-includes and -libs options, you need to pass the same cc options that would go on CFLAGS and LDFLAGS. ./configure --help [...] --with-tcltk-includes='-I...' override search for Tcl and Tk include files

[issue13743] xml.dom.minidom.Document class is not documented

2014-06-30 Thread Mark Lawrence
Mark Lawrence added the comment: This https://docs.python.org/3/library/xml.dom.minidom.html#module-xml.dom.minidom currently states under section 20.7.1 The definition of the DOM API for Python is given as part of the xml.dom module documentation. This section lists the differences between

[issue21884] turtle regression of issue #21823: uncaught exception on AMD64 Snow Leop 3.x buildbot

2014-06-30 Thread Ned Deily
Ned Deily added the comment: This is an instance of the problems identified in Issue21882, namely that test___all__ is importing turtledemo modules and some of them have bad side effects. In this case, it's turtledemo.clock which is calling mode() which now unconditionally attempts to create

[issue21881] python cannot parse tcl value

2014-06-30 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: -ned.deily stage: - needs patch versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21881 ___

[issue21885] shutil.copytree hangs (on copying root directory of a lxc container) (should succeed or raise exception nested)

2014-06-30 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +hynek, tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21885 ___ ___ Python-bugs-list mailing

[issue21888] plistlib.FMT_BINARY behavior doesn't send required dict parameter

2014-06-30 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. Can you supply a test case and/or a fix patch? Ideally, the test case would be a patch to Lib/test/test_plistlib.py. If you're interested, there's more info here: https://docs.python.org/devguide/ -- nosy: +ned.deily,

[issue21882] turtledemo modules imported by test___all__ cause side effects or failures

2014-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset c173a34f20c0 by Terry Jan Reedy in branch '2.7': Issue #21882: In turtle demos, remove module scope gui and sys calls by http://hg.python.org/cpython/rev/c173a34f20c0 New changeset fcfa9c5a00fd by Terry Jan Reedy in branch '3.4': Issue #21882: In

[issue1647489] zero-length match confuses re.finditer()

2014-06-30 Thread Mark Lawrence
Mark Lawrence added the comment: How does the Regexp 2.7 engine in issue 2636 from msg73742 deal with this situation? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1647489

[issue14117] Turtledemo: exception and minor glitches.

2014-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: 21884 removed or moved global system-changing or gui calls to main. Wrapping two_canvases code (except for window preserving mainloop) to a new main fixed its problems. Should remove reload from main driver, and test. --

[issue21882] turtledemo modules imported by test___all__ cause side effects or failures

2014-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2. Done 3. I just removed the setrecursionlimit call, added for 3.0. I moved the colormixer sliders around for longer than anyone is likely to and it ran fine. 4. two-canvases works fine now. The extra window just has to be clicked away. 5. nim had a call to

[issue17126] test_gdb fails

2014-06-30 Thread ddve...@ucar.edu
ddve...@ucar.edu added the comment: I am not sure what you mean by Double Dutch, but let me try to restate the problem. This test fails (even with current python 2.7.7) with the stated version of gdb (given the lack of feedback since I initially opened this ticket, I have not verified that the

[issue15358] Test pkgutil.walk_packages in test_pkgutil instead of test_runpy

2014-06-30 Thread Mark Lawrence
Mark Lawrence added the comment: Has anyone made any progress with this issue or others referenced like #7559 or #14787 ? Regardless I'd like to help out directly if possible as I'm suffering from an acute case of triagitis :-) -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3

[issue7559] TestLoader.loadTestsFromName swallows import errors

2014-06-30 Thread Mark Lawrence
Mark Lawrence added the comment: Note that this issue is referred to from #15358. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559

[issue7559] TestLoader.loadTestsFromName swallows import errors

2014-06-30 Thread Mark Lawrence
Mark Lawrence added the comment: Note that #8297 referenced in msg102236 is closed see changeset d84a69b7ba72. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559 ___

[issue14787] pkgutil.walk_packages returns extra modules

2014-06-30 Thread Mark Lawrence
Mark Lawrence added the comment: Note that this is reference from #15358. -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14787

[issue5619] Pass MS CRT debug flags into subprocesses

2014-06-30 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +steve.dower, tim.golden, zach.ware type: - behavior versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5619

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2014-06-30 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +steve.dower, tim.golden, zach.ware versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9116

[issue21889] https://docs.python.org/2/library/multiprocessing.html#process-and-exceptions doesn't explain exception

2014-06-30 Thread Karl Richter
New submission from Karl Richter: Although the section https://docs.python.org/2/library/multiprocessing.html#process-and-exceptions (of the multiprocessing module documentation) is titled ... and exceptions it doesn't say anything about exceptions. I assume that it behaves like the thread

[issue21882] turtledemo modules imported by test___all__ cause side effects or failures

2014-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: The __all__ test now passes on Snow Leapard. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21882 ___ ___

[issue16763] test_ssl with connect_ex don't handle unreachable server correctly

2014-06-30 Thread Mark Lawrence
Mark Lawrence added the comment: Does the backport mentioned in msg178404 still need doing, can this be closed as out of date or won't fix or what? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16763

[issue21861] io class name are hardcoded in reprs

2014-06-30 Thread Claudiu Popa
Claudiu Popa added the comment: The same should be done for _pyio? -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21861 ___

  1   2   >