About publishing a library

2014-10-10 Thread Schnupsel Lee
Hi there I have recently made a program for my class project. The program is able to convert the math equations that user type in directly in the raw_input as a string into math equations and do calculations. I found the program convenient to use so I am wondering if I can make it a

Re: ZMQError: Resource temporarily unavailable

2014-10-10 Thread dieter
karthik.sha...@gmail.com writes: I am using zero-mq for IPC between two machines. My zmq function is given below def recieve_messages(self): string = self.sub_socket.recv(flags=zmq.NOBLOCK) print('flow mod messages recieved {}'.format(string)) When I run

Re: High water Memory fragmentation still a thing?

2014-10-10 Thread dieter
Emile van Sebille em...@fenx.com writes: On 10/8/2014 10:28 AM, bryanjugglercryptograp...@yahoo.com.dmarc.invalid wrote: That doesn't mean to tell a human administrator to regularly restart the server. It's programmatic and it's a reasonably simple and well-established design pattern.

Re: python on Linux

2014-10-10 Thread Irmen de Jong
On 10-10-2014 6:21, Igor Korot wrote: Hi, ALL, When I am on Windows, I can write something like this: sys.path.append('C:\Users\Igor\Documents\MyLib') While this might work on your system, it may not work on others. - you need to escape the backslashes (or just use forward slashes, they

Re: High water Memory fragmentation still a thing?

2014-10-10 Thread Chris Angelico
On Fri, Oct 10, 2014 at 5:09 PM, dieter die...@handshake.de wrote: Python does not use memory compaction but places many objects on the heap and therefore, long running processes usually are subject to memory fragmentation. As a consequence, those processes need to be restarted from time to

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread Steven D'Aprano
mm0fmf wrote: On 09/10/2014 02:29, Steven D'Aprano wrote: Apart from the horrible spelling of colour :-) I've always spelt colour as color when programming and as colour when writing language including documentation about software. colour in a programme doesn't seem right. Normal

Re: python on Linux

2014-10-10 Thread Chris Angelico
On Fri, Oct 10, 2014 at 5:31 PM, Irmen de Jong irmen.nos...@xs4all.nl wrote: On 10-10-2014 6:21, Igor Korot wrote: Hi, ALL, When I am on Windows, I can write something like this: sys.path.append('C:\Users\Igor\Documents\MyLib') While this might work on your system, it may not work on

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread Chris Angelico
On Fri, Oct 10, 2014 at 5:52 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Normal programmers spell words the same in code as they do outside of code, e.g.: age address length There's a difference between identifiers and commands, though. I would expect, for

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread Steven D'Aprano
Terry Reedy wrote: On 10/9/2014 1:43 PM, mm0fmf wrote: On 09/10/2014 02:29, Steven D'Aprano wrote: Apart from the horrible spelling of colour :-) I've always spelt colour as color when programming and as colour when writing language including documentation about software. Like it or not,

Re: Toggle

2014-10-10 Thread Steven D'Aprano
Rustom Mody wrote: On Thursday, October 9, 2014 10:26:41 AM UTC+5:30, Steven D'Aprano wrote: On Wed, 08 Oct 2014 19:34:30 -0700, Rustom Mody wrote: Color.Red print (Color.Red) Color.Red # Not sure what to make of that distinction... That's because the interactive interpreter

Re: Toggle

2014-10-10 Thread Steven D'Aprano
Rustom Mody wrote: In fact this: Color.blue.toggle() Color.red: 0 Color.blue.toggle().toggle() Color.blue: 1 is a nice example of a pattern that is rarely seen: OO syntax, functional (ie non-state-changing) semantics. You don't write much Python code, do you? *wink* It is not rarely

Re: python on Linux

2014-10-10 Thread Irmen de Jong
On 10-10-2014 8:58, Chris Angelico wrote: AIUI you can use os.path.expanduser() on Windows as well, and it'll take care of USERPROFILE. Nice, didn't know that! I've been using the appdirs module (https://pypi.python.org/pypi/appdirs/) as well to avoid constructing paths manually altogether.

Re: trying idle

2014-10-10 Thread Mark H Harris
On 10/9/14 7:47 AM, random...@fastmail.us wrote: I believe control-click, but Macs users could say better. Control-click was the canonical way to do it when right click menus were introduced in Mac OS itself. Some programs (notably Netscape) supported them via click-hold before that. And it's

Re: trying idle

2014-10-10 Thread Mark H Harris
On 10/9/14 7:21 AM, wxjmfa...@gmail.com wrote: My audience consists of people having linux and windows and macbooks. Does Idle run on all these? --- No. Huh? -- https://mail.python.org/mailman/listinfo/python-list

Re: trying idle

2014-10-10 Thread Mark H Harris
On 10/9/14 1:52 AM, Rustom Mody wrote: Been using emacs for over 20 years and teaching python for 10. And getting fed up that my audience looks at me like Rip van Winkle each time I start up emacs... (sigh) So trying out Idle... Good for you! ... and even better for your students.

Re: CLI framework using python

2014-10-10 Thread Rustom Mody
On Thursday, October 9, 2014 9:31:39 PM UTC+5:30, gelonida wrote: For calling commands in a slightly nicer way than os.system / sybprocess.Popen you might look at sh or plumbum https://pypi.python.org/pypi/sh https://pypi.python.org/pypi/plumbum Both of these look quite nice! [Im looking

Results of arpalert to json in python

2014-10-10 Thread raphael houtin
Hello, I'm trying to create a program who'll catch the mac address connections. For this, I take the /var/log/arpalert.log and create a dict. with the results in JSON. I'm a beginner in Python. For now, I have the arpalert log to a file.txt. I take this file and create a dictionary in an other

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread Marko Rauhamaa
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: Python is an international product, not American. And American English is the international software engineering language, minority or not. The rest of us are using it; why should you not follow suit? Marko --

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread Chris Angelico
On Fri, Oct 10, 2014 at 9:08 PM, Marko Rauhamaa ma...@pacujo.net wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: Python is an international product, not American. And American English is the international software engineering language, minority or not. The rest of us are using

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: If Python ever grows a 'color' statement or keyword, then sure. Otherwise, it's just identifiers and data, which are international. Do you mean that the Python syntax should use American spellings, but the Python standard library could use words like colour,

Re: virtualenv question: include just a few site packages

2014-10-10 Thread Jean-Michel Pichavant
- Original Message - From: Gelonida N gelon...@gmail.com To: python-list@python.org Sent: Thursday, 9 October, 2014 5:55:44 PM Subject: Re: virtualenv question: include just a few site packages You could build a virtual machine, installing only your VIP modules, and create virtual

Re: how to add custom importer after the normal imports

2014-10-10 Thread Gelonida N
On 10/09/2014 04:14 PM, Ian Kelly wrote: I have a use case where I would like to add a custom importer *AFTER* all other import methods have failed. On Oct 9, 2014 6:53 AM, Gelonida N gelon...@gmail.com mailto:gelon...@gmail.com wrote: I'm using Puthon 2.7 for the given project and there

Parse bad xml file

2014-10-10 Thread David Jobes
I was given a badly or poor formatted xml file that i need to convert to csv file: ?xml version=1.0? resultset xmlns:dyn=http://exslt.org/dynamic; table name=SIGNATURE column name=ID type=String/column column name=NUM type=Integer /column column

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread Chris Angelico
On Fri, Oct 10, 2014 at 9:51 PM, Marko Rauhamaa ma...@pacujo.net wrote: Chris Angelico ros...@gmail.com: If Python ever grows a 'color' statement or keyword, then sure. Otherwise, it's just identifiers and data, which are international. Do you mean that the Python syntax should use American

Re: Toggle

2014-10-10 Thread Antoon Pardon
Op 09-10-14 om 03:42 schreef Ben Finney: Seymore4Head Seymore4Head@Hotmail.invalid writes: I want to toggle between color=Red and color=Blue It's good to cultivate ongoing familiarity with the standard library URL:https://docs.python.org/3/library/itertools.html#itertools.cycle so that you

Re: CLI framework using python

2014-10-10 Thread Jean-Michel Pichavant
- Original Message - From: vijna...@gmail.com Hi, I need to develop a python CLI framework. [snip] 3. There are other such commands for which i will be using python scripts. I came across pyCLI, but it doesn't have much documentation, so couldn't figure out how to move

Re: CLI framework using python

2014-10-10 Thread Gelonida N
On 10/10/2014 10:43 AM, Rustom Mody wrote: On Thursday, October 9, 2014 9:31:39 PM UTC+5:30, gelonida wrote: For calling commands in a slightly nicer way than os.system / sybprocess.Popen you might look at sh or plumbum https://pypi.python.org/pypi/sh https://pypi.python.org/pypi/plumbum

Re: Parse bad xml file

2014-10-10 Thread Peter Otten
David Jobes wrote: I was given a badly or poor formatted xml file that i need to convert to csv file: There are no badly formatted XML files, only valid and invalid ones. Fortunately following looks like the beginning of a valid one. ?xml version=1.0? resultset

Re: Parse bad xml file

2014-10-10 Thread David Jobes
On Friday, October 10, 2014 8:21:17 AM UTC-4, Peter Otten wrote: David Jobes wrote: I was given a badly or poor formatted xml file that i need to convert to csv file: There are no badly formatted XML files, only valid and invalid ones. Fortunately following looks like the

Re: Toggle

2014-10-10 Thread Rustom Mody
On Friday, October 10, 2014 12:48:20 PM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: On Thursday, October 9, 2014 10:26:41 AM UTC+5:30, Steven D'Aprano wrote: On Wed, 08 Oct 2014 19:34:30 -0700, Rustom Mody wrote: Color.Red print (Color.Red) Color.Red # Not sure what to

Re: Toggle

2014-10-10 Thread Rustom Mody
On Friday, October 10, 2014 7:54:33 PM UTC+5:30, Rustom Mody wrote: More telling comments from Alex (same SO post) 1. Both have mostly useless default implementations 2. if you override __repr__, that's ALSO used for __str__, but not vice versa 3. despite the words on the subject found in

Re: Toggle

2014-10-10 Thread Chris Angelico
On Sat, Oct 11, 2014 at 1:28 AM, Rustom Mody rustompm...@gmail.com wrote: If you dont find all this confusing, I am reminded of Schrödinger (or one of his ilk): If you dont find Quantum physics confusing you've not begun to understand it Ok: Not Schrödinger but John Wheeler:

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread Neil D. Cerutti
On 10/9/2014 3:53 PM, Tim Delaney wrote: That would be a theatre programme vs a computer program. I try to stick with the current spelling style when modifying existing code - esp. for APIs. It's very annoying to have some methods use z and others s in the same package. So since I'm currently

Re: python on Linux

2014-10-10 Thread Peter Pearson
On Fri, 10 Oct 2014 08:31:04 +0200, Irmen de Jong wrote: On 10-10-2014 6:21, Igor Korot wrote: When I am on Windows, I can write something like this: sys.path.append('C:\Users\Igor\Documents\MyLib') While this might work on your system, it may not work on others. - you need to escape the

Re: python on Linux

2014-10-10 Thread Ian Kelly
On Fri, Oct 10, 2014 at 12:31 AM, Irmen de Jong irmen.nos...@xs4all.nl wrote: - you need to escape the backslashes (or just use forward slashes, they work on windows too) Or use a raw string. There is usually no reason to have escape sequences at all in a file system path. --

Re: python on Linux

2014-10-10 Thread Chris Angelico
On Sat, Oct 11, 2014 at 2:44 AM, Peter Pearson pkpearson@nowhere.invalid wrote: On Fri, 10 Oct 2014 08:31:04 +0200, Irmen de Jong wrote: On 10-10-2014 6:21, Igor Korot wrote: When I am on Windows, I can write something like this: sys.path.append('C:\Users\Igor\Documents\MyLib') While this

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread alister
On Thu, 09 Oct 2014 23:48:36 +0300, Marko Rauhamaa wrote: Tim Delaney timothy.c.dela...@gmail.com: It's very annoying to have some methods use z and others s in the same package. -ize is standard everywhere in the English-speaking world. Not in England! Americans insist on analyze,

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread Mark Lawrence
On 09/10/2014 23:53, Terry Reedy wrote: Like it or not, Python uses American English. It is my understanding that this has been agreed to by a Dutch born dictator. The traitor should be shot, selling out his fellow Europeans to the North Americans indeed :) -- My fellow Pythonistas,

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread Mark Lawrence
On 10/10/2014 15:46, Neil D. Cerutti wrote: On 10/9/2014 3:53 PM, Tim Delaney wrote: That would be a theatre programme vs a computer program. I try to stick with the current spelling style when modifying existing code - esp. for APIs. It's very annoying to have some methods use z and others s

Python and sqlite versions

2014-10-10 Thread Simmo
First off, this is my first attempt to post via Thunderbird newsgroup, so apologies (and please let me know) if it doesn't arrive in good shape. I'm just starting to get to grips with using a database (sqlite) and I've run into some confusion as to how Python 'ties in' to sqlite. First step

Make a colour blink

2014-10-10 Thread cruzud
Hello. I'm trying to make a colour blink when an event occurs. But the program is displaying only the last colour: self.bttn.bind('ButtonRelease-Return',blink) def blink(self, event=None): lbl['background'] = 'red' sleep(0.5) lbl.['background'] = 'SystemButtonFace' Can you help? --

Re: Python and sqlite versions

2014-10-10 Thread Zachary Ware
Hi Steve, On Fri, Oct 10, 2014 at 1:13 PM, Simmo st...@bellissimmo.com wrote: First off, this is my first attempt to post via Thunderbird newsgroup, so apologies (and please let me know) if it doesn't arrive in good shape. Looks fine to me :) I'm just starting to get to grips with using a

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread Marko Rauhamaa
alister alister.nospam.w...@ntlworld.com: On Thu, 09 Oct 2014 23:48:36 +0300, Marko Rauhamaa wrote: -ize is standard everywhere in the English-speaking world. Not in England! URL: http://www.oxforddictionaries.com/definition/english/realize Both -ize and -ise are valid in England. why

Re: Python and sqlite versions

2014-10-10 Thread Simmo
On 10/10/2014 20:02, Zachary Ware wrote: Hi Steve, On Fri, Oct 10, 2014 at 1:13 PM, Simmo st...@bellissimmo.com wrote: First off, this is my first attempt to post via Thunderbird newsgroup, so apologies (and please let me know) if it doesn't arrive in good shape. Looks fine to me :) Thank

Re: Make a colour blink

2014-10-10 Thread MRAB
On 2014-10-10 19:51, cru...@gmail.com wrote: Hello. I'm trying to make a colour blink when an event occurs. But the program is displaying only the last colour: self.bttn.bind('ButtonRelease-Return',blink) def blink(self, event=None): lbl['background'] = 'red' sleep(0.5)

Re: Make a colour blink

2014-10-10 Thread Mark Lawrence
On 10/10/2014 19:51, cru...@gmail.com wrote: Hello. I'm trying to make a colour blink when an event occurs. But the program is displaying only the last colour: self.bttn.bind('ButtonRelease-Return',blink) def blink(self, event=None): lbl['background'] = 'red' sleep(0.5)

Re: Python and sqlite versions

2014-10-10 Thread Zachary Ware
On Fri, Oct 10, 2014 at 2:18 PM, Simmo square.st...@gmail.com wrote: For the record, I'm on Windows 7 In that case (if I'm remembering correctly, I'm not on Windows at the moment), you could probably back up C:\Python33\DLLs\sqlite3.dll somewhere (just in case) and copy the sqlite3.dll you got

Re: trying idle

2014-10-10 Thread random832
On Fri, Oct 10, 2014, at 03:53, Mark H Harris wrote: The apple mouse has only one click in the hardware... but, through the software (settings) the apple hardware 'know' which side of the mouse you are pushing over. It only has one physical switch (I'm not sure the latest ones have any at

[ANN] Atomos 0.1.0 - Atomic primitives for Python

2014-10-10 Thread Max Countryman
Hi, I would like to announce the initial release of Atomos, a library that provides atomic primitives a la java.util.concurrent.atomic as well as a Python implementation of Clojure’s atoms. Atomos targets applications which benefit from threads and wish to eliminate race conditions between

Re: Make a colour blink

2014-10-10 Thread Ulisses
Telling us what platform you're on, your OS, Python version and the actual GUI helps in cases like this. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence Hello again. I forgot to tell you: I'm in

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread alister
On Fri, 10 Oct 2014 22:01:58 +0300, Marko Rauhamaa wrote: alister alister.nospam.w...@ntlworld.com: On Thu, 09 Oct 2014 23:48:36 +0300, Marko Rauhamaa wrote: -ize is standard everywhere in the English-speaking world. Not in England! URL:

Re: Python and sqlite versions

2014-10-10 Thread Simmo
On 10/10/2014 20:31, Zachary Ware wrote: On Fri, Oct 10, 2014 at 2:18 PM, Simmo square.st...@gmail.com wrote: For the record, I'm on Windows 7 In that case (if I'm remembering correctly, I'm not on Windows at the moment), you could probably back up C:\Python33\DLLs\sqlite3.dll somewhere (just

Re: Python and sqlite versions

2014-10-10 Thread Zachary Ware
On Fri, Oct 10, 2014 at 3:39 PM, Simmo st...@bellissimmo.com wrote: On 10/10/2014 20:31, Zachary Ware wrote: On Fri, Oct 10, 2014 at 2:18 PM, Simmo square.st...@gmail.com wrote: For the record, I'm on Windows 7 In that case (if I'm remembering correctly, I'm not on Windows at the moment),

Flask and Django

2014-10-10 Thread Juan Christian
So, I'm already familiar with Flask and I fell comfortable using it, but I see that no one uses it in real business, everywhere I look regarding jobs and web dev, people always talk about Django, no one mentions Flask, no one uses Flask. I'm coding a personal tool using Flask but I feel the need

Re: Python and sqlite versions

2014-10-10 Thread Chris Angelico
On Sat, Oct 11, 2014 at 7:39 AM, Simmo st...@bellissimmo.com wrote: On 10/10/2014 20:31, Zachary Ware wrote: In that case (if I'm remembering correctly, I'm not on Windows at the moment), you could probably back up C:\Python33\DLLs\sqlite3.dll somewhere (just in case) and copy the sqlite3.dll

Error with saving animation

2014-10-10 Thread Partha Pratim Ghosh
Dear All, I am having a problem with saving the output of an animation as a file. I provide here two listing, first the small program which otherwise works well, except while executing the last few lines to save the output produces error which I also provide: 1. the program test.py : from

[issue20167] Exception on IDLE closing

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I forget how to get the third, micro number. tkinter.Tcl().call('info', 'patchlevel') -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20167 ___

[issue20167] Exception on IDLE closing

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On 3.5 the issue is gone, but on 3.4 and 2.7 following traceback are generated: $ ./python -m idlelib.idle Lib/decimal.py Traceback (most recent call last): File /home/serhiy/py/cpython-3.4/Lib/runpy.py, line 170, in _run_module_as_main __main__,

[issue22580] PyUnicode_Tailmatch documentation does not match signature

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks rather as a bug in C code. There is no need to return Py_ssize_t instead of int. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22580

[issue20167] Exception on IDLE closing

2014-10-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: The above appears to be a system-specific open issue, not a close issue. So it must be a different issue. On my Win7 F:\Python\dev\4\py34\PCbuildpython_d -m idlelib ../Lib/decimal.py close after open with freshly built 3.4.2+ F:\Python\dev\4\py34\PCbuild

[issue20167] Exception on IDLE closing

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In any case, the traceback makes no sense. Before self.color_breakpoint_text() in __init__ are 3 self.text.bind statements. So self.text = None seems implausible. The code runs up to self.text.update() in restore_file_breaks() and runs further only after

[issue20167] Exception on IDLE closing

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Changing update() to update_idletasks() fixes the issue. But we should investigate why all works on 3.5 and is there downside of this change. -- ___ Python tracker rep...@bugs.python.org

[issue22493] Deprecate the use of flags not at the start of regular expression

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: That sounds a bit random. It wouldn't totally address the discrepancy with regex, would it? No, it will not totally address the discrepancy with regex, but at least it will allow as to change the behavior of flags in subpatterns. And we always can

[issue22580] PyUnicode_Tailmatch documentation does not match signature

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: It looks rather as a bug in C code. There is no need to return Py_ssize_t instead of int. Oh yes, you're right. A Py_ssize_t to return -1, 0 or 1 is overkill :-) But PyUnicode_Tailmatch() is now part of the stable ABI, the inefficient return type is not a

[issue22594] Add a link to the regex module in re documentation

2014-10-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The regex module is purposed as a replacement of standard re module. Of course we fix re bugs, but for now regex is more bugfree. Even after fixing all open re bugs, regex will remain more featured. It would be good to add a link to regex in re

[issue1519638] Unmatched Group issue - workaround

2014-10-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1519638 ___ ___

[issue22584] Get rid of SRE character tables

2014-10-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22584 ___ ___

[issue22595] F5 shortcut key not working in IDLE for OSX

2014-10-10 Thread Mc128k
New submission from Mc128k: Hi I am using the latest version of python and IDLE, and when I edit a file and I press the key F5 it runs fine in the other window, while if I do it inside the IDLE command line it just prints the character  (which cannot be seen in the browser here). Using the

[issue22595] F5 shortcut key not working in IDLE for OSX

2014-10-10 Thread Mc128k
Mc128k added the comment: I'm sorry, the menu confused me. the command line has no such menu, it was showing the editor menu with the IDLE window on top. False alarm. -- resolution: - not a bug status: open - closed ___ Python tracker

[issue19380] Optimize parsing of regular expressions

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1adeac2a8714 by Serhiy Storchaka in branch 'default': Issue #19380: Optimized parsing of regular expressions. https://hg.python.org/cpython/rev/1adeac2a8714 -- nosy: +python-dev ___ Python tracker

[issue22584] Get rid of SRE character tables

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 07b7b587837f by Serhiy Storchaka in branch 'default': Issue #22584: Got rid of character tables in _sre.c and use standard macros https://hg.python.org/cpython/rev/07b7b587837f -- nosy: +python-dev ___

[issue1519638] Unmatched Group issue - workaround

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset bd2f1ea04025 by Serhiy Storchaka in branch 'default': Issue 1519638: Now unmatched groups are replaced with empty strings in re.sub() https://hg.python.org/cpython/rev/bd2f1ea04025 -- nosy: +python-dev

[issue22588] memory corrupted in test_capi refleaks test

2014-10-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: That was really fast Victor! I confirm that the '-R 23:23' refleak test does not crash any more here after changeset 5d87a6b38422. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22588

[issue22588] memory corrupted in test_capi refleaks test

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: That was really fast Victor! I modified test_capi to only run one testcase, and I modified the testcase which caused the issue to run a subset of tests. By dichotomy, I found that only one function caused the fatal error. Does anyone know how to automatize

[issue1519638] Unmatched Group issue - workaround

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Antoine. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1519638

[issue19380] Optimize parsing of regular expressions

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your reviews Yury, Josh, and Antoine. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19380

[issue22584] Get rid of SRE character tables

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Antoine. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22584

[issue22578] Add additional attributes to re.error

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Synchronized with the tip after issue19380 changes. -- Added file: http://bugs.python.org/file36860/re_error_attrs4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22578

[issue1703178] link_objects in setup.cfg crashes build

2014-10-10 Thread Valerie Lambert
Valerie Lambert added the comment: Here is a simple one-line-fix patch with a test. Except for the libraries option, other options separate using ':'. The documentation didn't seem to say much, so I wasn't sure if link_objects should be consistent with that or if it should follow libraries's

[issue22591] Drop support of MS-DOS

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: I hope that MS_WINDOWS is also defined when Python is compiled by the Borland C compiler or OpenWatcom. IMO if it's not the case, it's a bug and it should be fixed. It means that my patch drop_msdos_support.patch only drops support for the DJGPP compiler in

[issue22591] Drop support of MS-DOS

2014-10-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22591 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22591] Drop support of MS-DOS

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset a1605d2508af by Victor Stinner in branch 'default': Issue #22591: Drop support of MS-DOS https://hg.python.org/cpython/rev/a1605d2508af -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue22591] Drop support of MS-DOS (DJGPP compiler)

2014-10-10 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed title: Drop support of MS-DOS - Drop support of MS-DOS (DJGPP compiler) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22591

[issue22596] support.transient_internet() doesn't catch connection refused errors

2014-10-10 Thread Berker Peksag
New submission from Berker Peksag: This issue is similar to issue 22289. == ERROR: test_ftp (test.test_urllib2net.OtherNetworkTests) (url='ftp://ftp.debian.org/debian/README')

[issue22597] printf-style formatting allows mixing keyed and keyless specifiers

2014-10-10 Thread Jakub Wilk
New submission from Jakub Wilk: '%(eggs)s %s' % {'eggs': 'ham'} Traceback (most recent call last): File stdin, line 1, in module TypeError: not enough arguments for format string '%s %(eggs)s' % {'eggs': 'ham'} {'eggs': 'ham'} ham I would expect a raised exception also in the latter case.

[issue22598] IMAP4 UTF-7 support

2014-10-10 Thread Jesús Cea Avión
New submission from Jesús Cea Avión: Looks like there is consensus to add mUTF-7 or imap4 UTF-7 to the codec module for Python 3.5. Details in https://mail.python.org/pipermail/python- dev/2014-October/136601.html -- assignee: jcea messages: 228979 nosy: jcea priority: normal

[issue5305] imaplib should support international mailbox names

2014-10-10 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: First step is to provide mUTF-7 in Python 3.5. Then we can try to update imaplib. I am specially worried about the points cfraire raises in http://bugs.python.org/issue5305#msg151859. Lets see. -- dependencies: +IMAP4 UTF-7 support

[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 54402b25f0b9 by Victor Stinner in branch '3.4': Issue #22564: ssl doc: fix typos https://hg.python.org/cpython/rev/54402b25f0b9 New changeset 61e52fda1006 by Victor Stinner in branch '3.4': Issue #22564: ssl doc: document read(), write(), pending,

[issue22597] printf-style formatting allows mixing keyed and keyless specifiers

2014-10-10 Thread Eric V. Smith
Eric V. Smith added the comment: This is a duplicate of issue 1467929. -- nosy: +eric.smith resolution: - duplicate stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22597

[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 61fbd3d5c307 by Victor Stinner in branch '3.4': Issue #22564: ssl doc: mention asyncio in the non-blocking section https://hg.python.org/cpython/rev/61fbd3d5c307 New changeset 11ad670ca663 by Victor Stinner in branch 'default': Issue #22564: ssl

[issue1467929] %-formatting and dicts

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

[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: Ok, I think I addressed most of my remarks and I consider the issue as done. For total cleanness maybe the constructor should raise a TypeError if server_hostname is passes as a bytes. Please open a new issue to address this point. -- resolution:

[issue21456] skip 2 tests in test_urllib2net.py if _ssl module not present

2014-10-10 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Remi. -- assignee: - berker.peksag nosy: +berker.peksag resolution: - fixed stage: - resolved status: open - closed type: - behavior versions: +Python 3.4 ___ Python tracker

[issue21456] skip 2 tests in test_urllib2net.py if _ssl module not present

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset ac55331c1df6 by Berker Peksag in branch '3.4': Issue #21456: Skip two tests in test_urllib2net.py if _ssl module not present. https://hg.python.org/cpython/rev/ac55331c1df6 New changeset 470ea66f5bee by Berker Peksag in branch 'default': Issue

[issue22428] asyncio: KeyboardInterrupt inside a coroutine causes AttributeError

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: = IMO it's an issue in the traceback module. It may catch the AttributeError on the call to linecache.getline(). I created the issue #22599 for this bug. -- ___ Python tracker rep...@bugs.python.org

[issue22599] traceback: errors in the linecache module at exit

2014-10-10 Thread STINNER Victor
New submission from STINNER Victor: Attached destructortest.py script comes the issue #22480. It calls traceback.print_exception() at exit. The problem is that the call occurs late during Python finalization. The object was stored in the namespace of the main module. Currently, Python deletes

[issue22480] SystemExit out of run_until_complete causes AttributeError when using python3 -m

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: I created a more specific issue for destructortest.py: issue #22599. It's not directly related to asyncio. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22480

[issue22599] traceback: errors in the linecache module at exit

2014-10-10 Thread STINNER Victor
STINNER Victor added the comment: Errors in the traceback module (caused by linecache) are common when working on the asyncio module in debug mode. The asyncio tries to log exceptions at exit to help the debug to track bugs. It uses the garbage collector and destructors on objects. Example of

[issue22599] traceback: errors in the linecache module at exit

2014-10-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: There is no patch. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22599 ___ ___ Python-bugs-list

[issue22600] In Multiprocessing Queue() doesn't work with list : __.put(list) != __.get()

2014-10-10 Thread CALMET
New submission from CALMET: Hello, I have to find the right order of a list, for example try = [0,1,2,3,4,5,6,7,8,9] try = [0,1,2,3,4,5,6,7,9,8] try = [0,1,2,3,4,5,6,8,7,9] and so on... in this example there are factorial(10) = 3,6 million possible order to test. The results with be all the

  1   2   >