hotel management system

2014-10-28 Thread ngangsia akumbo
Please can someone look at my code and may be advice and may be help me with some correction. I have been learning python for some time now. This is my first project i wish to write. A hotel management system. http://pastebin.com/LMHmuTiC Thnaks --

Re: hotel management system

2014-10-28 Thread Chris Angelico
On Tue, Oct 28, 2014 at 5:42 PM, ngangsia akumbo ngang...@gmail.com wrote: Please can someone look at my code and may be advice and may be help me with some correction. I have been learning python for some time now. This is my first project i wish to write. A hotel management system.

Re: Callback functions arguments

2014-10-28 Thread ast
Peter Otten __pete...@web.de a écrit dans le message de news:mailman.15231.1414399974.18130.python-l...@python.org... Tanks for you answer Python doesn't know it has to pass an argument, it just does it. Change the callback to def maj(): print(no args) and you'll get an error. If I

Re: Callback functions arguments

2014-10-28 Thread Chris Angelico
On Tue, Oct 28, 2014 at 6:35 PM, ast nom...@invalid.com wrote: OK, but i still find very strange the choice of Python's designers to make the Scale behaves like that. That's nothing to do with Python's design. That's all about Tkinter, which presumably is imitating Tk. Python allows the

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-10-28 Thread Ned Deily
In article CAHu5PrY-T=DT3wOg-Y+Va9WgwBV3w9d7M-tu=_n-cngwssz...@mail.gmail.com, Cyd Haselton chasel...@gmail.com wrote: [...] I'm building python on an Android device in the KBOX environment...which simulates a Unix type filesystem. Python isn't installed; I'm building from sources (2.7.8)

www.python.org

2014-10-28 Thread Eileen | Cellsix Pty Ltd
Hi, I recently browsed through your business website and wanted to highlight some key points for consideration. I am sure it will complement your-SEO work to help your website attract only quality visitors and make it scale high on the search .engine results page (SERP) gradually.

Re: Status of side-effecting functions in python

2014-10-28 Thread Marko Rauhamaa
Nobody nobody@nowhere.invalid: Asynchronous I/O in the sense of select(), poll(), O_NONBLOCK etc is meant for situations where delays could be indefinite, e.g. network connections or terminals. For short delays (i.e. disc access), there's not much point having a mechanism so that you can

Re: Status of side-effecting functions in python

2014-10-28 Thread Marko Rauhamaa
Marko Rauhamaa ma...@pacujo.net: Python's sockets and pipes don't have write methods. Actually, that's mistaken as well. The sys.std* handles and pipes returned by subprocess are accessed using file.write() and thus may return partial writes. That brings up another point: Python3's

Regex substitution trouble

2014-10-28 Thread massi_srb
Hi everyone, I'm not really sure if this is the right place to ask about regular expressions, but since I'm usin python I thought I could give a try :-) Here is the problem, I'm trying to write a regex in order to substitute all the occurences in the form $somechars with another string. This is

C++ extension and shared library with distutils

2014-10-28 Thread Wintersberger, Eugen
Hi folks I have a little problem with a Python extension and could not find a good solution in the documentation. So hopefully someone here has a clever idea. Here is the problem: I have two extensions written in C++ (bindings to existing C++ code). Lets call this two extensions C and B which

Re: Callback functions arguments

2014-10-28 Thread ast
Chris Angelico ros...@gmail.com a écrit dans le message de news:mailman.15254.1414482690.18130.python-l...@python.org... On Tue, Oct 28, 2014 at 6:35 PM, ast nom...@invalid.com wrote: That's clear to me now. Spinbox and Scale widgets behave differently, that's all. Command on Scale widget:

Re: Regex substitution trouble

2014-10-28 Thread Chris Angelico
On Tue, Oct 28, 2014 at 10:02 PM, massi_...@msn.com wrote: I'm not really sure if this is the right place to ask about regular expressions, but since I'm usin python I thought I could give a try :-) Yeah, that sort of thing is perfectly welcome here. Same with questions about networking in

Re: Python Fabric on Windows :

2014-10-28 Thread Robin Becker
On 27/10/2014 04:49, Ganesh Pal wrote: Hi Team , Iam new to Fabric and Iam using the fab command-line tool to run a set of task on Linux clients. I just started coding and Iam pretty new to fabric, Iam hoping I will be able to launch my fabric scripts from both Windows and Linux Machine

Re: memory, PE files, etc...

2014-10-28 Thread gandalf23
On Tuesday, October 28, 2014 3:37:19 AM UTC+1, Rustom Mody wrote: On Tuesday, October 28, 2014 12:41:40 AM UTC+5:30, kiuh...@yahoo.it wrote: On Monday, October 27, 2014 6:24:19 PM UTC+1, Tim Golden wrote: psutil is definitely your friend: https://github.com/giampaolo/psutil

Re: Regex substitution trouble

2014-10-28 Thread massi_srb
Hi Chris, thanks for the reply. I tried to use look ahead assertions, in particular I modified the regex this way: newstring = re.sub(ur(?u)(\$\[\s\w(?=\\)\]+\), subst, oldstring) but it does not work. I'm absolutely not a regex guru so I'm surely missing something. The strings I'm dealing

Re: Regex substitution trouble

2014-10-28 Thread Chris Angelico
(Please quote enough of the previous text to provide context, and write your replies underneath the quoted text - don't assume that everyone's read the previous posts. Thanks!) On Tue, Oct 28, 2014 at 11:28 PM, massi_...@msn.com wrote: Hi Chris, thanks for the reply. I tried to use look ahead

Re: Regex substitution trouble

2014-10-28 Thread TP
On Tue, Oct 28, 2014 at 4:02 AM, massi_...@msn.com wrote: Hi everyone, I'm not really sure if this is the right place to ask about regular expressions, but since I'm usin python I thought I could give a try :-) Here is the problem, I'm trying to write a regex in order to substitute all the

bulk sms with python

2014-10-28 Thread ngangsia akumbo
I need to build a bulk SMS system for a particular group of users. i WAS THINKING OF USING RAPIDSMS, AND KANNEL. Is there not a way to use just python from scratch to build a bulk sms system or if there are other simpler means please indicate to me. Thanks Ngangsi Richard skyoe:

Re: bulk sms with python

2014-10-28 Thread Bob Hartwig
Sounds like you want to use Twisted or something to implement the SMPP protocol. That's not trivial, but probably not too difficult; if you don't need message delivery confirmation, it should be stateless. Bob On Tue, Oct 28, 2014 at 8:01 AM, ngangsia akumbo ngang...@gmail.com wrote: I

Re: Anyone know the solution

2014-10-28 Thread Mario R. Osorio
On Tuesday, October 28, 2014 12:25:13 AM UTC-4, Terry Reedy wrote: On 10/27/2014 11:10 AM, emmanuel...@gmail.com wrote: THIS IS THE LIST OF BOY NAMES Jacob ... Writing hundreds of unnecessary lines at minimum inconsiderate. Please don't do it. -- Terry Jan Reedy The python

Re: OS X Menubar in Tkinter

2014-10-28 Thread Simon Kennedy
On Thursday, 23 October 2014 20:02:43 UTC+1, Chris Angelico wrote: I don't think it's possible to auto-solve the Google Groups formatting issues at the mailing list level, as the fundamental problem is that information isn't being transmitted. (Forcing everything to be wrapped and forcing

Re: OS X Menubar in Tkinter

2014-10-28 Thread Rustom Mody
On Tuesday, October 28, 2014 9:18:09 PM UTC+5:30, Simon Kennedy wrote: On Thursday, 23 October 2014 20:02:43 UTC+1, Chris Angelico wrote: I don't think it's possible to auto-solve the Google Groups formatting issues at the mailing list level, as the fundamental problem is that information

Re: OS X Menubar in Tkinter

2014-10-28 Thread Chris Angelico
On Wed, Oct 29, 2014 at 2:47 AM, Simon Kennedy sffjun...@gmail.com wrote: On Thursday, 23 October 2014 20:02:43 UTC+1, Chris Angelico wrote: I don't think it's possible to auto-solve the Google Groups formatting issues at the mailing list level, as the fundamental problem is that information

Re: Anyone know the solution

2014-10-28 Thread ngangsia akumbo
This is a sample code on how to read data from a file files1 {} result = open(file1.txt) for line in result: file1 = linesplit() files1.append(file1) result.close() file1.sort() file1.reverse() print('THE FILE INFO') print(file1(0) print(file1(1) --

Re: Regex substitution trouble

2014-10-28 Thread Tim
On Tuesday, October 28, 2014 7:03:00 AM UTC-4, mass...@msn.com wrote: Hi everyone, I'm not really sure if this is the right place to ask about regular expressions, but since I'm usin python I thought I could give a try :-) Here is the problem, I'm trying to write a regex in order to

Re: Regex substitution trouble

2014-10-28 Thread MRAB
On 2014-10-28 12:28, massi_...@msn.com wrote: Hi Chris, thanks for the reply. I tried to use look ahead assertions, in particular I modified the regex this way: newstring = re.sub(ur(?u)(\$\[\s\w(?=\\)\]+\), subst, oldstring) but it does not work. I'm absolutely not a regex guru so I'm surely

[ANN] dbf v0.96 is released

2014-10-28 Thread Ethan Furman
and finally supports Python 3! :) Versions supported are 2.5 - 2.7, and 3.2+ = dbf === dbf (also known as python dbase) is a module for reading/writing dBase III, FP, VFP, and Clipper .dbf database files. It's an ancient format that still finds lots

Re: [ANN] dbf v0.96 is released

2014-10-28 Thread Tim Chase
On 2014-10-28 12:53, Ethan Furman wrote: dbf (also known as python dbase) is a module for reading/writing dBase III, FP, VFP, and Clipper .dbf database files. It's an ancient format that still finds lots of use Just a little note to give thanks for all the work you put into such an

Re: [ANN] dbf v0.96 is released

2014-10-28 Thread Ethan Furman
On 10/28/2014 01:08 PM, Tim Chase wrote: Just a little note to give thanks for all the work you put into such an unglamorous-yet-backside-saving project. It *is* appreciated by those of us who have had to disinter data from old client .dbf files. Thank you! :) -- ~Ethan~ --

Re: [ANN] dbf v0.96 is released

2014-10-28 Thread Cousin Stanley
dbf === dbf (also known as python dbase) is a module for reading/writing dBase III, FP, VFP, and Clipper .dbf database files. Available via PyPI at ? https://pypi.python.org/pypi/dbf/0.96.001 -- Stanley C. Kitching Human Being Phoenix, Arizona --

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-10-28 Thread Cyd Haselton
On Tue, Oct 28, 2014 at 3:11 AM, Ned Deily n...@acm.org wrote: In article CAHu5PrY-T=DT3wOg-Y+Va9WgwBV3w9d7M-tu=_n-cngwssz...@mail.gmail.com, Cyd Haselton chasel...@gmail.com wrote: [...] I'm building python on an Android device in the KBOX environment...which simulates a Unix type

Re: [ANN] dbf v0.96 is released

2014-10-28 Thread Ethan Furman
On 10/28/2014 01:34 PM, Cousin Stanley wrote: dbf === dbf (also known as python dbase) is a module for reading/writing dBase III, FP, VFP, and Clipper .dbf database files. Available via PyPI at ? https://pypi.python.org/pypi/dbf/0.96.001 Ah, yes, that's the place!

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

2014-10-28 Thread Ned Deily
In article cahu5pra68edgkvfyhtq+srmb6syew9a1sabb5cemluzqbs5...@mail.gmail.com, Cyd Haselton chasel...@gmail.com wrote: On Tue, Oct 28, 2014 at 3:11 AM, Ned Deily n...@acm.org wrote: In article CAHu5PrY-T=DT3wOg-Y+Va9WgwBV3w9d7M-tu=_n-cngwssz...@mail.gmail.com, Cyd Haselton

Python 3.4.2 + PyQt4 + PyCharm 3.4.1

2014-10-28 Thread Juan Christian
Python 3.4.2 Windows x64 PyQt4 4.11.2 Py3.4 Qt4.8.6 (x64) PyCharm 3.4.1 Pro Edition So, PyCharm works 100% with everything here but PyQt. I have this folder structure: Disk C: PyQt4 Lib/site-packages/PyQt4/(tons of files here) Python34 (normal/default installation) --- I tried copying

% symbol in python

2014-10-28 Thread satishmlmlml
trthkeytdinput type=text name=key value=%(key)s rowhtml = 'trth%stdinput type=text name=%s value%%(%s)s\n what does % mean in first line of code and what does %%(%s)s mean in second line of code kindly explain -- https://mail.python.org/mailman/listinfo/python-list

Re: % symbol in python

2014-10-28 Thread Mark Lawrence
On 28/10/2014 21:41, satishmlm...@gmail.com wrote: trthkeytdinput type=text name=key value=%(key)s rowhtml = 'trth%stdinput type=text name=%s value%%(%s)s\n what does % mean in first line of code and what does %%(%s)s mean in second line of code kindly explain Please refer to

checking whether a string is text or binary

2014-10-28 Thread Rick Dooling
I'm an English major who hacks scripts together to do things as needed. I used this code from the Python Cookbook for years. https://www.safaribooksonline.com/library/view/python-cookbook-2nd/0596007973/ch01s12.html Especially when I need to convert old WPD files to markdown, some of which

Re: checking whether a string is text or binary

2014-10-28 Thread Dan Stromberg
On Tue, Oct 28, 2014 at 3:21 PM, Rick Dooling rpdool...@gmail.com wrote: I tried to convert the code using 2to3 and it broke. The error I get when using Python 3 is on this line: _null_trans = string.maketrans(, ) and the error reads AttributeError: 'module' object has no attribute

Re: checking whether a string is text or binary

2014-10-28 Thread richarddooling
On Tuesday, October 28, 2014 5:30:31 PM UTC-5, Dan Stromberg wrote: On Tue, Oct 28, 2014 at 3:21 PM, Rick Dooling wrote: I tried to convert the code using 2to3 and it broke. The error I get when using Python 3 is on this line: _null_trans = string.maketrans(, ) and the error reads

Re: Anyone know the solution

2014-10-28 Thread Cameron Simpson
On 28Oct2014 09:07, ngangsia akumbo ngang...@gmail.com wrote: This is a sample code on how to read data from a file files1 {} result = open(file1.txt) for line in result: file1 = linesplit() files1.append(file1) result.close() file1.sort() file1.reverse() print('THE FILE INFO')

Re: Anyone know the solution

2014-10-28 Thread Anton
On Monday, October 27, 2014 5:33:17 PM UTC-7, alex23 wrote: On 28/10/2014 1:10 AM, e...@gmail.com wrote: Write a program that reads the contents of the two files into two separate lists. The user should be able to enter a boy's name, a girl's name or both, and the

Re: www.python.org

2014-10-28 Thread Cameron Simpson
Hi Pythonistas, On behalf of all Australians, I would like to apologise for this ill advised SEO spam. Embarrassed, Cameron Simpson c...@zip.com.au On 28Oct2014 08:48, Eileen | Cellsix Pty Ltd eileenjthomps...@gmail.com wrote: Hi, I recently browsed through your business website and wanted

Re:% symbol in python

2014-10-28 Thread Dave Angel
satishmlm...@gmail.com Wrote in message: trthkeytdinput type=text name=key value=%(key)s rowhtml = 'trth%stdinput type=text name=%s value%%(%s)s\n what does % mean in first line of code and what does %%(%s)s mean in second line of code kindly explain Please post Python code, and we can

Re: Anyone know the solution

2014-10-28 Thread alex23
On 29/10/2014 11:28 AM, Anton wrote: Can you elaborate why it is an NP-complete problem or maybe a link to description of problem you are referring to? While not the exact problem, it's tangentially related to: http://kenlevine.blogspot.com.au/2011/03/reducing-humor-to-equation.html --

Re: Anyone know the solution

2014-10-28 Thread Dave Angel
Cameron Simpson c...@zip.com.au Wrote in message: On 28Oct2014 09:07, ngangsia akumbo ngang...@gmail.com wrote: This is a sample code on how to read data from a file files1 {} result = open(file1.txt) for line in result: file1 = linesplit() files1.append(file1) result.close() file1.sort()

Re: Regex substitution trouble

2014-10-28 Thread Cameron Simpson
On 28Oct2014 04:02, massi_...@msn.com massi_...@msn.com wrote: I'm not really sure if this is the right place to ask about regular expressions, but since I'm usin python I thought I could give a try :-) Here is the problem, I'm trying to write a regex in order to substitute all the occurences

Re: A bug?

2014-10-28 Thread Denis McMahon
On Tue, 28 Oct 2014 01:29:28 +, Joshua Landau wrote: On 28 October 2014 00:36, Denis McMahon denismfmcma...@gmail.com wrote: d = [[list(range(1,13))[i*3+j] for j in range(3)] for i in range(4)] A quick note. Ranges (even 2.7's xrange) are all indexable. The cast to a list isn't

Re: memory, PE files, etc...

2014-10-28 Thread Denis McMahon
On Mon, 27 Oct 2014 10:16:43 -0700, kiuhnm03 wrote: I'd like to write one or more scripts that analyze processes in memory on Windows 7. I used to do these things in C++ by using native Win32 API calls. How should I proceed in python? Any pointers? This seems to be a very common request.

Re: memory, PE files, etc...

2014-10-28 Thread Chris Angelico
On Wed, Oct 29, 2014 at 1:18 PM, Denis McMahon denismfmcma...@gmail.com wrote: On Mon, 27 Oct 2014 10:16:43 -0700, kiuhnm03 wrote: I'd like to write one or more scripts that analyze processes in memory on Windows 7. I used to do these things in C++ by using native Win32 API calls. How should

What for -- for? (was A bug?)

2014-10-28 Thread Rustom Mody
On Wednesday, October 29, 2014 7:47:47 AM UTC+5:30, Denis McMahon wrote: On Tue, 28 Oct 2014 01:29:28 +, Joshua Landau wrote: On 28 October 2014 00:36, Denis McMahon wrote: d = [[list(range(1,13))[i*3+j] for j in range(3)] for i in range(4)] A quick note. Ranges (even 2.7's

Re: % symbol in python

2014-10-28 Thread satishmlmlml
import cgi, shelve, sys, os shelvename = 'class-shelve' fieldnames = ('name', 'age', 'job', 'pay') form = cgi.FieldStorage() print('Content-type: text/html') sys.path.insert(0, os.getcwd()) replyhtml = html titlePeople Input Form/title body form method=POST action=peoplecgi.py table

Re: % symbol in python

2014-10-28 Thread Chris Angelico
On Wed, Oct 29, 2014 at 2:51 PM, satishmlm...@gmail.com wrote: def fetchRecord(db, form): try: key = form['key'].value When you paste Python code into an email, it's absolutely crucial that you maintain formatting. The indentation is significant. Can you paste it again, please? ChrisA --

Re: What for -- for? (was A bug?)

2014-10-28 Thread Zachary Ware
On Tue, Oct 28, 2014 at 10:22 PM, Rustom Mody rustompm...@gmail.com wrote: How to see that list and range are both sequences? Or more generally how to to introspectively discover (ie not by reading docs!!) the abstract base classes -- eg sequence, iterable etc -- for an arbitrary object? #

Re: What for -- for? (was A bug?)

2014-10-28 Thread Zachary Ware
On Tue, Oct 28, 2014 at 11:16 PM, Zachary Ware zachary.ware+pyl...@gmail.com wrote: def get_abc_map(cls): return {n: issubclass(cls, getattr(abc, n)) for n in dir(abc) if n[0].isupper()} Of course, Gmail decided to wrap my long line for me. In case it's not obvious, that should be a single

Re: What for -- for? (was A bug?)

2014-10-28 Thread Rustom Mody
On Wednesday, October 29, 2014 9:53:46 AM UTC+5:30, Zachary Ware wrote: On Tue, Oct 28, 2014 at 11:16 PM, Zachary Ware wrote: def get_abc_map(cls): return {n: issubclass(cls, getattr(abc, n)) for n in dir(abc) if n[0].isupper()} Of course, Gmail decided to wrap my long line for me.

Re: % symbol in python

2014-10-28 Thread satishmlmlml
import cgi, shelve, sys, os shelvename = 'class-shelve' fieldnames = ('name', 'age', 'job', 'pay') form = cgi.FieldStorage() print('Content-type: text/html') sys.path.insert(0, os.getcwd()) replyhtml = html titlePeople Input Form/title body form method=POST action=peoplecgi.py table

Re: What for -- for? (was A bug?)

2014-10-28 Thread Zachary Ware
On Tue, Oct 28, 2014 at 11:40 PM, Rustom Mody rustompm...@gmail.com wrote: On Wednesday, October 29, 2014 9:53:46 AM UTC+5:30, Zachary Ware wrote: On Tue, Oct 28, 2014 at 11:16 PM, Zachary Ware wrote: def get_abc_map(cls): return {n: issubclass(cls, getattr(abc, n)) for n in dir(abc) if

.write() behavior

2014-10-28 Thread Alan Bawden
Marko Rauhamaa ma...@pacujo.net writes: Marko Rauhamaa ma...@pacujo.net: Actually, that's mistaken as well. The sys.std* handles and pipes returned by subprocess are accessed using file.write() and thus may return partial writes. I find this very surprising. In Python 2, where file.write()

Re: Anyone know the solution

2014-10-28 Thread Gregory Ewing
On Monday, October 27, 2014 5:33:17 PM UTC-7, alex23 wrote: It is NP-complete, meaning that there is no easy solution. The correct answer is Not possible. No, that's not the correct answer. Being NP-complete doesn't mean something is impossible, or even hard to do. All it means is that

Re: What for -- for? (was A bug?)

2014-10-28 Thread Rustom Mody
On Wednesday, October 29, 2014 10:29:48 AM UTC+5:30, Zachary Ware wrote: On Tue, Oct 28, 2014 at 11:40 PM, Rustom Mody wrote: On Wednesday, October 29, 2014 9:53:46 AM UTC+5:30, Zachary Ware wrote: On Tue, Oct 28, 2014 at 11:16 PM, Zachary Ware wrote: def get_abc_map(cls): return

Re: What for -- for? (was A bug?)

2014-10-28 Thread Ben Finney
Zachary Ware zachary.ware+pyl...@gmail.com writes: Of course, Gmail decided to wrap my long line for me. In case it's not obvious, that should be a single line. Right, GMail is a poor choice for composing messages. You might get better results installing a proper mail client, and communicating

Re: % symbol in python

2014-10-28 Thread alex23
On 29/10/2014 2:41 PM, satishmlm...@gmail.com wrote: kindly let me know what is $ROWS$ along with % symbol's meaning It's a token, a static value added to the template to indicate where additional data will be added. So $ROW$ in this section: table trthkeytdinput type=text name=key

Re: What for -- for? (was A bug?)

2014-10-28 Thread Zachary Ware
On Wed, Oct 29, 2014 at 12:15 AM, Rustom Mody rustompm...@gmail.com wrote: Maybe nicer to filter out the false's with a filter-false thus?? def ff(d): return [n for n in d if d[n]] Sure. Or, combining things: try: from collections import abc except ImportError: import collections as

Re: What for -- for? (was A bug?)

2014-10-28 Thread Zachary Ware
On Wed, Oct 29, 2014 at 12:27 AM, Ben Finney ben+pyt...@benfinney.id.au wrote: Zachary Ware zachary.ware+pyl...@gmail.com writes: Of course, Gmail decided to wrap my long line for me. In case it's not obvious, that should be a single line. Right, GMail is a poor choice for composing

Re: % symbol in python

2014-10-28 Thread satishmlmlml
kindly let me know what does %%(%s)% mean -- https://mail.python.org/mailman/listinfo/python-list

[issue21877] External.bat and pcbuild of tkinter do not match.

2014-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am quite aware that the two searches are different. tcl8xyz.dll and tkxyz.dll must be copied from ../tcltk/bin to pcbuild while init.tcl must be left in ../tcltk/lib/tcl8.x, where x is, now, '5' or '6'. Since compiling tcl/tk clears tcltk/, it is

[issue21877] External.bat and pcbuild of tkinter do not match.

2014-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since the two .dlls must now be copied manually (still undocumented?) for tkinter to work, I fail to see the problem with having the copying done automatically in external.bat right after the compile that creates them. --

[issue17896] Move Windows external libs from src\..\ to src\externals

2014-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I could not find an issue specifically for the tcltk problem. I just explained the problem as I know it in msg230120 of #17896. Some sort of fix is required before we can merge multiple tcltk directories in isolated build directories of the sort you

[issue17846] Building Python on Windows - Supplementary info

2014-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Because the name 'tcltk' is unversioned and contents rebuilt for each compile, isolated build directories of the sort diagrammed in msg214138 are required if one want to build and run both 2.7, which requires tcl8.5, and 3.4+, which require tcl8.6. Since

[issue22749] remove obsolete remark in time.clock() docs

2014-10-28 Thread Akira Li
New submission from Akira Li: time.clock() documentation [1] says: this is the function to use for benchmarking Python or timing algorithms. and Deprecated since version 3.3: The behaviour of this function depends on the platform: use perf_counter() or process_time() instead, depending

[issue22748] Porting Extension Modules to Python 3 documentation mention about PyString_* functions in Python 3

2014-10-28 Thread Georg Brandl
Georg Brandl added the comment: Correct, there are no PyString_ functions in 3.x. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22748 ___

[issue22749] remove obsolete remark in time.clock() docs

2014-10-28 Thread Georg Brandl
Georg Brandl added the comment: LGTM. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22749 ___ ___ Python-bugs-list mailing

[issue22725] improve documentation for enumerate() (built-in function)

2014-10-28 Thread Georg Brandl
Georg Brandl added the comment: rdm: your suggestion sounds good. Note that the argument name is iterable in Py3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22725 ___

[issue22736] tutorial links at top, book recommendations at bottom of module documentation

2014-10-28 Thread Georg Brandl
Georg Brandl added the comment: I agree, the see also box is better off near the bottom, probably before the examples. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22736

[issue22177] Incorrect version reported after downgrade

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: Can this be closed then? -- resolution: - wont fix status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22177 ___

[issue22173] Update lib2to3.tests and test_lib2to3 to use test discovery

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM -- nosy: +ezio.melotti stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22173 ___

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: What about open(..., encoding='latin-1', errors='xmlcharrefreplace') -- nosy: +amaury.forgeotdarc stage: resolved - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22746

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +rbcollins stage: - patch review versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22153 ___

[issue22217] Reprs for zipfile classes

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM -- nosy: +ezio.melotti stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22217 ___

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-28 Thread Wolfgang Rohdewald
Wolfgang Rohdewald added the comment: What about open(..., encoding='latin-1', errors='xmlcharrefreplace') That works fine. I tested with a chinese character 与 But I do not think the application should work around something that cgitb is supposed to handle. More so since the documentation

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-28 Thread Wolfgang Rohdewald
Wolfgang Rohdewald added the comment: correction: A bug for everyone using non-ascii characters. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22746 ___

[issue22233] http.client splits headers on none-\r\n characters

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22233 ___

[issue21877] External.bat and pcbuild of tkinter do not match.

2014-10-28 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21877 ___ ___

[issue22750] xmlapp.py display bug when validate XML by DTD

2014-10-28 Thread Ferdinand
New submission from Ferdinand: Code is working, but the TEXT variable is not showing the correct line of the XML file but the the line after correct one : Exemple : [u6v7mr@vl-a-txx-05 Python]$ ./validateXML.py DTD/herve.xml DTD/Tomcat.dtd ERROR: 'I' is not an allowed value for the 'value'

[issue22751] Fix test___all__ warning about modified environment

2014-10-28 Thread Michael Cetrulo
New submission from Michael Cetrulo: The following warning is being generated when running test case: Warning -- locale was modified by test___all__ According to the comment there, importing the rlcompleter module changes (or used to change) the locale so after the import it was being set

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Martin Panter
Martin Panter added the comment: The patch seems reasonable to me -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22153 ___ ___ Python-bugs-list

[issue22232] str.splitlines splitting on non-\r\n characters

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: Looks like str.splitlines is using STRINGLIB_ISLINEBREAK which in turn uses Py_UNICODE_ISLINEBREAK, so the behavior should be correct. If splitting on \n, \r, and \r\n only is common enough with might add a bool arg to splitlines to restrict the splitting on

[issue22196] namedtuple documentation could/should mention the new Enum type

2014-10-28 Thread Karmen Dykstra
Karmen Dykstra added the comment: Updated documentation with Enum example. -- keywords: +patch nosy: +ezio.melotti, kdykstra Added file: http://bugs.python.org/file37051/mywork.patch ___ Python tracker rep...@bugs.python.org

[issue22237] sorted() docs should state that the sort is stable

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset d44f7d229e00 by Ezio Melotti in branch '2.7': #22237: document that sorted() is guaranteed to be stable. Initial patch by Martin Panter. https://hg.python.org/cpython/rev/d44f7d229e00 New changeset 5dd4906daa62 by Ezio Melotti in branch '3.4':

[issue22237] sorted() docs should state that the sort is stable

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: rhettinger - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

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

2014-10-28 Thread anupama srinivas murthy
anupama srinivas murthy added the comment: I have modified the patch and listed the points I know. Could you review it? -- versions: -Python 3.4, Python 3.5 Added file: http://bugs.python.org/file37052/regex-link.patch ___ Python tracker

[issue22232] str.splitlines splitting on non-\r\n characters

2014-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: With Terry's explanation linebreak looks better to me. Yet one alternative is ascii=False (or unicode=True?). And may be worth to add this parameter to strip/rstrip/lstrip/split too. On other hand regular expressions can be used in such special cases.

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +ezio.melotti, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22746 ___

[issue22232] str.splitlines splitting on non-\r\n characters

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: There are some ascii line breaks other than \n, \r, \r\n. unicode=True might be better, but might be confused with unicode strings. Maybe unicode_linebreaks or unicode_newlines? -- ___ Python tracker

[issue22237] sorted() docs should state that the sort is stable

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset af8f678a4a75 by Ezio Melotti in branch '2.7': #22237: fix patch attribution. https://hg.python.org/cpython/rev/af8f678a4a75 New changeset 2f697bcc8f86 by Ezio Melotti in branch '3.4': #22237: fix patch attribution.

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: IMO hiding the existence of `runTest` would be best. It doesn't seem to make anything more flexible, and it complicates the documentation. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue22177] Incorrect version reported after downgrade

2014-10-28 Thread Zachary Ware
Zachary Ware added the comment: I'd say so. -- stage: - resolved status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22177 ___

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: You need to use codecs.open instead of open No, why? in python3 open() supports the errors handler. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22746

[issue22242] Doc fix in the Import section in language reference.

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +brett.cannon stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22242 ___

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-28 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- components: +Unicode nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22746 ___

  1   2   >