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
--
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.
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
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
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)
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.
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
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
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
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
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:
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
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
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
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
(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
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
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:
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
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
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
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
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
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)
--
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
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
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
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
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~
--
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
--
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
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!
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 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
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
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
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
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
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
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')
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
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
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
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
--
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()
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
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
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.
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
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
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
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
--
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?
#
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
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.
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
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
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()
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
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
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
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
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
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
kindly let me know
what does
%%(%s)% mean
--
https://mail.python.org/mailman/listinfo/python-list
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
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.
--
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
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
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
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
___
Georg Brandl added the comment:
LGTM.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22749
___
___
Python-bugs-list mailing
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
___
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
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
___
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
___
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
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
___
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
___
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
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
___
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
___
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21877
___
___
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'
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
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
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
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
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':
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
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
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.
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +ezio.melotti, serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22746
___
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
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.
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
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
___
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
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
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
components: +Unicode
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22746
___
1 - 100 of 171 matches
Mail list logo