About WSME
--
WSME (Web Service Made Easy) is a very easy way to implement webservices
in your python web application (or standalone).
Main Changes
* wsattr now takes a 'default' parameter that will be returned
instead of 'Unset' if no value has been set.
* Bug fixes
On 29/03/2012 04:58, Ross Ridge wrote:
Chris Angelicoros...@gmail.com wrote:
Actually, he is justified. It's one thing to work in C or assembly and
write code that depends on certain bit-pattern representations of data
(although even that causes trouble - assuming that
On Thu, 29 Mar 2012 12:55:13 +1100, Ben Finney wrote:
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes:
(By the way, I have to question the design of an exception with error
codes. That seems pretty poor design to me. Normally the exception
*type* acts as equivalent to an error
On Wed, 28 Mar 2012 23:58:53 -0400, Ross Ridge wrote:
How does that in anyway justify Evan Driscoll maliciously lying about
code he's never seen?
You are perfectly justified to complain about Evan making sweeping
generalisations about your code when he has not seen it; you are NOT
justified
Ben Finney wrote:
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes:
(By the way, I have to question the design of an exception with error
codes. That seems pretty poor design to me. Normally the exception *type*
acts as equivalent to an error code.)
Have a look at Python's
Am 28.03.2012 20:07, schrieb Steven D'Aprano:
First off, that is not Python code. catch Exception gives a syntax
error.
Old C++ habits... :|
Secondly, that is not the right way to do this unit test. You are testing
two distinct things, so you should write it as two separate tests:
Ulrich Eckhardt wrote:
True. Normally. I'd adapting to a legacy system though, similar to
OSError, and that system simply emits error codes which the easiest way
to handle is by wrapping them.
If you have
err = some_func()
if err:
raise MyException(err)
the effort to convert it to
exc
Am 28.03.2012 20:26, schrieb Terry Reedy:
On 3/28/2012 8:28 AM, Ulrich Eckhardt wrote:
with self.assertRaises(MyException(SOME_FOO_ERROR)):
foo()
I presume that if this worked the way you want, all attributes would
have to match. The message part of builtin exceptions is allowed to
Am 28.03.2012 20:26, schrieb Terry Reedy:
On 3/28/2012 8:28 AM, Ulrich Eckhardt wrote:
[...]
# call testee and verify results
try:
...call function here...
except exception_type as e:
if not exception is None:
self.assertEqual(e, exception)
Did you use tabs? They do not get preserved
thanks,
--
http://mail.python.org/mailman/listinfo/python-list
JFI
Reported as
http://bugs.python.org/issue14437
http://bugs.python.org/issue14438
--
Regars,
Alex
--
http://mail.python.org/mailman/listinfo/python-list
On 28.03.2012 18:42, David Robinow wrote:
On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchkol...@ank-sia.com wrote:
I've tried to build Python 2.7.3rc2 on cygwin and got the following errors:
$ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/
./configure
I haven't tried
In article 0ved49-hie@satorlaser.homedns.org,
Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote:
I didn't consciously use tabs, actually I would rather avoid them. That
said, my posting looks correctly indented in my sent folder and also
in the copy received from my newsserver. What
On Wed, Mar 28, 2012 at 9:33 PM, Chris Angelico ros...@gmail.com wrote:
On Thu, Mar 29, 2012 at 11:59 AM, Rodrick Brown rodrick.br...@gmail.com
wrote:
The best skill any developer can have is the ability to pickup languages
very quickly and know what tools work well for which task.
In article mailman.896.1332440814.3037.python-l...@python.org,
Nathan Rice nathan.alexander.r...@gmail.com wrote:
http://www.joelonsoftware.com/articles/fog18.html
I read that article a long time ago, it was bullshit then, it is
bullshit now. The only thing he gets right is that the
On Fri, Mar 30, 2012 at 12:44 AM, Nathan Rice
nathan.alexander.r...@gmail.com wrote:
We would be better off if all the time that was spent on learning
syntax, memorizing library organization and becoming proficient with
new tools was spent learning the mathematics, logic and engineering
On 2012-03-28 23:37, Terry Reedy wrote:
2. Decode as if the text were latin-1 and ignore the non-ascii 'latin-1'
chars. When done, encode back to 'latin-1' and the non-ascii chars will
be as they originally were.
... actually, in the beginning of my quest, I ran into an decoding
exception
On 3/29/2012 3:28 AM, Ulrich Eckhardt wrote:
Equality comparison is by id. So this code will not do what you want.
Exception('foo') == Exception('foo')
False
Yikes! That was unexpected and completely changes my idea. Any clue
whether this is intentional? Is identity the fallback when no
On 03/29/2012 03:18 AM, Ulrich Eckhardt wrote:
Am 28.03.2012 20:26, schrieb Terry Reedy:
On 3/28/2012 8:28 AM, Ulrich Eckhardt wrote:
[...]
# call testee and verify results
try:
...call function here...
except exception_type as e:
if not exception is None:
self.assertEqual(e, exception)
Did
On 3/29/2012 3:18 AM, Ulrich Eckhardt wrote:
Am 28.03.2012 20:26, schrieb Terry Reedy:
On 3/28/2012 8:28 AM, Ulrich Eckhardt wrote:
[...]
# call testee and verify results
try:
...call function here...
except exception_type as e:
if not exception is None:
self.assertEqual(e, exception)
Did
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
Your reaction is to make an equally unjustified estimate of Evan's
mindset, namely that he is not just wrong about you, but *deliberately
and maliciously* lying about you in the full knowledge that he is wrong.
No, Evan in his own
Steven D'Aprano wrote:
On Wed, 28 Mar 2012 14:28:08 +0200, Ulrich Eckhardt wrote:
Hi!
I'm currently writing some tests for the error handling of some code. In
this scenario, I must make sure that both the correct exception is
raised and that the contained error code is correct:
try:
On Wed, 28 Mar 2012 11:31:21 +0200, Jabba Laci wrote:
Is the following function correct? Is the input file closed in order?
def read_data_file(self):
with open(self.data_file) as f:
return json.loads(f.read())
Yes.
The whole point of being able to use a file as a context
On 01/-10/-28163 01:59 PM, Ross Ridge wrote:
Evan Driscolldrisc...@cs.wisc.edu wrote:
People like you -- who write to assumptions which are not even remotely
guaranteed by the spec -- are part of the reason software sucks.
...
This email is a bit harsher than it deserves -- but I feel not by
On Thu, Mar 29, 2012 at 10:03 AM, Chris Angelico ros...@gmail.com wrote:
You can't merge all of them without making a language that's
suboptimal at most of those tasks - probably, one that's woeful at all
of them. I mention SQL because, even if you were to unify all
programming languages,
On 3/29/2012 11:30 AM, Ross Ridge wrote:
No, Evan in his own words admitted that his post was ment to be harsh,
I agree that he should have restrained and censored his writing.
Just because I refuse to drink the
it's impossible to represent strings as a series of bytes kool-aid
I do not
From: Anatoli Hristov [mailto:toli...@gmail.com]
Sent: Wednesday, March 28, 2012 5:36 PM
To: Prasad, Ramit
Cc: python-list@python.org
Subject: Re: RE: Advise of programming one of my first programs
Um, at least by my understanding, the use of Pickle is also dangerous if
you
are not
Technically, ASCII goes up to 256 but they are not A-z letters.
Technically, ASCII is 7-bit, so it goes up to 127.
No, ASCII only defines 0-127. Values =128 are not ASCII.
From https://en.wikipedia.org/wiki/ASCII:
ASCII includes definitions for 128 characters: 33 are non-printing
On Thu, Mar 29, 2012 at 10:03 AM, Chris Angelico ros...@gmail.com wrote:
On Fri, Mar 30, 2012 at 12:44 AM, Nathan Rice
nathan.alexander.r...@gmail.com wrote:
We would be better off if all the time that was spent on learning
syntax, memorizing library organization and becoming proficient with
Ross Ridge wrote:
Just because I refuse to drink the
it's impossible to represent strings as a series of bytes kool-aid
Terry Reedy tjre...@udel.edu wrote:
I do not believe *anyone* has made that claim. Is this meant to be a
wild exaggeration? As wild as Evan's?
Sorry, it would've been more
On Thu, Mar 29, 2012 at 6:55 AM, Alexey Luchko l...@ank-sia.com wrote:
On 28.03.2012 18:42, David Robinow wrote:
On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchkol...@ank-sia.com wrote:
I've tried to build Python 2.7.3rc2 on cygwin and got the following
errors:
$
On 03/29/12 12:48, Nathan Rice wrote:
Of course, this describes Lisp to some degree, so I still need to
provide some answers. What is wrong with Lisp? I would say that the
base syntax being horrible is probably the biggest issue.
Do you mean something like:
((so (describes Lisp (to degree
Agreed with your entire first chunk 100%. Woohoo! High five. :)
On Thu, Mar 29, 2012 at 1:48 PM, Nathan Rice
nathan.alexander.r...@gmail.com wrote:
transformations on lists of data are natural in Lisp, but graph
transformations are not, making some things awkward.
Eh, earlier you make some
On Thu, Mar 29, 2012 at 2:53 PM, Devin Jeanpierre
jeanpierr...@gmail.com wrote:
Agreed with your entire first chunk 100%. Woohoo! High five. :)
Damn, then I'm not trolling hard enough ಠ_ಠ
On Thu, Mar 29, 2012 at 1:48 PM, Nathan Rice
nathan.alexander.r...@gmail.com wrote:
transformations on
On Fri, Mar 30, 2012 at 3:42 AM, Devin Jeanpierre
jeanpierr...@gmail.com wrote:
On Thu, Mar 29, 2012 at 10:03 AM, Chris Angelico ros...@gmail.com wrote:
You can't merge all of them without making a language that's
suboptimal at most of those tasks - probably, one that's woeful at all
of them.
On Fri, Mar 30, 2012 at 5:00 AM, Ross Ridge rri...@csclub.uwaterloo.ca wrote:
Sorry, it would've been more accurate to label the flavour of kool-aid
Chris Angelico was trying to push as it's impossible ... without
encoding:
What is a string? It's not a series of bytes. You can't
On Thu, Mar 29, 2012 at 9:44 AM, Albert van der Horst
alb...@spenarnc.xs4all.nl wrote:
In article mailman.896.1332440814.3037.python-l...@python.org,
Nathan Rice nathan.alexander.r...@gmail.com wrote:
http://www.joelonsoftware.com/articles/fog18.html
I read that article a long time
From the Zen of Python, Simple is better than complex. It is a good
programming
mentality.
Complex is better than complicated. :p
Absolutely! Too bad your version would be considered the more “complicated”
version ;)
With the main navigation menu I will only have the option to select a
You can't merge all of them without making a language that's
suboptimal at most of those tasks - probably, one that's woeful at all
of them. I mention SQL because, even if you were to unify all
programming languages, you'd still need other non-application
languages to get the job done.
On Thu, Mar 29, 2012 at 4:33 PM, Chris Angelico ros...@gmail.com wrote:
Of course it's POSSIBLE. You can write everything in Ook if you want
to. But any attempt to merge all programming languages into one will
either:
In that particular quote, I was saying that the reason that you
claimed we
On Thu, Mar 29, 2012 at 3:50 PM, Nathan Rice
nathan.alexander.r...@gmail.com wrote:
Well, a lisp-like language. I would also argue that if you are using
macros to do anything, the thing you are trying to do should classify
as not natural in lisp :)
You would run into disagreement. Some people
On Thu, 29 Mar 2012 17:36:34 +, Prasad, Ramit wrote:
Technically, ASCII goes up to 256 but they are not A-z letters.
Technically, ASCII is 7-bit, so it goes up to 127.
No, ASCII only defines 0-127. Values =128 are not ASCII.
From https://en.wikipedia.org/wiki/ASCII:
ASCII
On Thu, 29 Mar 2012 11:30:19 -0400, Ross Ridge wrote:
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
Your reaction is to make an equally unjustified estimate of Evan's
mindset, namely that he is not just wrong about you, but *deliberately
and maliciously* lying about you in the
On Thu, 29 Mar 2012 14:37:09 -0400, Nathan Rice wrote:
On Thu, Mar 29, 2012 at 9:44 AM, Albert van der Horst
alb...@spenarnc.xs4all.nl wrote:
In article mailman.896.1332440814.3037.python-l...@python.org, Nathan
Rice nathan.alexander.r...@gmail.com wrote:
On Thu, Mar 29, 2012 at 7:37 PM, Devin Jeanpierre
jeanpierr...@gmail.com wrote:
On Thu, Mar 29, 2012 at 3:50 PM, Nathan Rice
nathan.alexander.r...@gmail.com wrote:
Well, a lisp-like language. I would also argue that if you are using
macros to do anything, the thing you are trying to do should
On Thu, 29 Mar 2012 13:48:40 -0400, Nathan Rice wrote:
Here's a thought experiment. Imagine that you have a project tree on
your file system which includes files written in many different
programming languages. Imagine that the files can be assumed to be
contiguous for our purposes, so you
He did no such thing. I challenge you to find me one place where Joel has
*ever* claimed that the very notion of abstraction is meaningless or
without use.
When great thinkers think about problems, they start to see patterns.
They look at the problem of people sending each other word-processor
On Thu, 29 Mar 2012 09:08:30 +0200, Ulrich Eckhardt wrote:
Am 28.03.2012 20:07, schrieb Steven D'Aprano:
Secondly, that is not the right way to do this unit test. You are
testing two distinct things, so you should write it as two separate
tests:
[..code..]
If foo does *not* raise an
On Thu, 29 Mar 2012 08:35:16 -0700, Ethan Furman wrote:
Steven D'Aprano wrote:
On Wed, 28 Mar 2012 14:28:08 +0200, Ulrich Eckhardt wrote:
Hi!
I'm currently writing some tests for the error handling of some code.
In this scenario, I must make sure that both the correct exception is
raised
On Thu, 29 Mar 2012 22:26:38 -0400, Nathan Rice wrote:
He did no such thing. I challenge you to find me one place where Joel
has *ever* claimed that the very notion of abstraction is meaningless
or without use.
[snip quote]
To me, this directly indicates he views higher order abstractions
He did no such thing. I challenge you to find me one place where Joel
has *ever* claimed that the very notion of abstraction is meaningless
or without use.
[snip quote]
To me, this directly indicates he views higher order abstractions
skeptically,
Yes he does, and so we all should, but
Here's a thought experiment. Imagine that you have a project tree on
your file system which includes files written in many different
programming languages. Imagine that the files can be assumed to be
contiguous for our purposes, so you could view all the files in the
project as one long
poq p...@gmx.com added the comment:
It is exposed as types.DictProxyType in Python 2...
--
nosy: +poq
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14386
___
Alexis Daboville alexis.dabovi...@gmail.com added the comment:
And ctlD isn't how you shut down the interpreter on Windows, is it?
No ctrlZ + enter is the equivalent (ctrlD does nothing under Windows,
except printing ^D).
And in a cmd window it just print another prompt (that's strange that
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
sys.stdin and others are created with closefd=False, so close() has no
effect. Try os.close(0) instead...
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
It sounds like we just need to fix the TestCase inheritance, like we did in
test_queue.
We should also look more carefully at the threading setup/cleanup. At some
point I think we changed the best-practice idiom to be independent of
New submission from Kristján Valur Jónsson krist...@ccpgames.com:
floatobject.c has its own block allocator. This appears to be ancient, from
before the time when obmalloc.c was invented.
This patch removes this allocator and puts an upper limit on the freelist of
floats. The purpose of this
R. David Murray rdmur...@bitdance.com added the comment:
OK, let's reopen this for someone to investigate that Windows crash.
--
resolution: invalid -
stage: committed/rejected - needs patch
status: closed - open
title: Python 3 interpreter crash with memoryview and os.fdopen - Python
Changes by R. David Murray rdmur...@bitdance.com:
--
title: Python 3 interpreter crash on windows when stdin closed - Python 3
interpreter crash on windows when stdin closed in Python shell
___
Python tracker rep...@bugs.python.org
Michael Foord mich...@voidspace.org.uk added the comment:
One way to exclude base classes from being loaded as tests is to have the base
class *not* inherit from TestCase (just from object) - and use it as a mixin
class for the actual TestCases.
This isn't particularly elegant (but works
New submission from Zbigniew Kacprzak zbik...@gmail.com:
I decided to use SocketHandler in multi-processes application.
Log server, sending data, logging simple strings - works fine.
The problem is with own classes (or external libraries).
Looks like SocketHandler creates pickles that cannot be
R. David Murray rdmur...@bitdance.com added the comment:
It should be easy enough to patch this to use
http://docs.python.org/major.minor/tutorial
I think that is probably a good idea, but the doc folks should sign off on it.
--
keywords: +easy
nosy: +r.david.murray
title: Tutorial
R. David Murray rdmur...@bitdance.com added the comment:
Thanks for the patch.
However, the RFC is one thing, but what happens in the real world? Cookies are
very messy in the real world, and we cannot just assume that the RFC version
works.
--
nosy: +r.david.murray
Matt Joiner anacro...@gmail.com added the comment:
I'm working on a patch using TestCase a la test_queue. Perhaps we should create
an issue for a base class test case decorator or something to that effect?
--
___
Python tracker
Alexis Daboville alexis.dabovi...@gmail.com added the comment:
@Amaury: ok thanks, I never heard of this argument before.
I tried to reproduce the crash in the Python shell embedded in IDLE and there's
no crash (same version 3.2.2, Windows 7): http://i.imgur.com/ayT96.png
--
New submission from Alexey Luchko l...@ank-sia.com:
$ make
...
gcc -shared -Wl,--enable-auto-image-base
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/bufferedio.o
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/bytesio.o
Alexey Luchko l...@ank-sia.com added the comment:
The error got building Python 2.7.2 2.7.3rc2
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14437
___
New submission from Alexey Luchko l...@ank-sia.com:
$ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/ ./configure
$ make
...
building '_curses' extension
gcc -fno-strict-aliasing -I/usr/include/ncursesw/ -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I. -IInclude
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 04c19ac9734a by R David Murray in branch '3.2':
#14416: add missing LOG_SYSLOG facility to syslog docs.
http://hg.python.org/cpython/rev/04c19ac9734a
New changeset c40e5120a9b1 by R David Murray in branch '2.7':
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 91bafdf7d7a4 by R David Murray in branch 'default':
Merge #14416: add missing LOG_SYSLOG facility to syslog docs.
http://hg.python.org/cpython/rev/91bafdf7d7a4
--
___
Alexey Luchko l...@ank-sia.com added the comment:
Checked solution by David Robinow
http://mail.python.org/pipermail/python-list/2012-March/1290038.html
It works. Diff follows:
--- Modules/_io/_iomodule.h.orig2012-03-16 03:26:36.0 +0200
+++ Modules/_io/_iomodule.h
STINNER Victor victor.stin...@gmail.com added the comment:
It is exposed as types.DictProxyType in Python 2...
Yes, but the purpose of the issue is to enable its constructor. You cannot
instanciate a DictProxy in Python 2:
import types
types.DictProxyType
type 'dictproxy'
Michael Foord mich...@voidspace.org.uk added the comment:
Yes, feel free to create an issue for that. If you provide a patch for it (with
tests) I'll review it.
The decorator itself can be applied to both TestCase and FunctionTestCase in
unittest as well. One implementation would be to apply
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset dc8e61044055 by R David Murray in branch 'default':
#14416: conditionally add LOG_AUTHPRIV facility and LOG_ODELAY to syslog.
http://hg.python.org/cpython/rev/dc8e61044055
--
R. David Murray rdmur...@bitdance.com added the comment:
Thanks, Federico, and welcome to the ACKS file.
It looks like you are planning to contribute more, so if you haven't already
done so could you please submit a contributor agreement?
http://www.python.org/psf/contrib/contrib-form/
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14386
___
New submission from STINNER Victor victor.stin...@gmail.com:
python -m module calls the C RunModule() function. If this function fails,
the traceback is not displayed and so it is difficult to understand why the
problem is.
I propose to display the traceback when this function fails, as it is
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The proposed patch is correct; no extension module should use PyAPI_ for its
own symbols.
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14436
___
___
STINNER Victor victor.stin...@gmail.com added the comment:
Patch version 4, it is ready for a review. Summary of the patch:
- expose the internal dict_proxy() type (used for __dict__ of user classes) as
types.MappingViewType (it was exposed a types.DictProxyType in Python 2)
-
R. David Murray rdmur...@bitdance.com added the comment:
Not particularly elegant? Why not? I find marking tests that should be
executed by having them (and only them) inherit from TestCase to fit my sense
of what is Pythonic, while having a hidden please-ignore-me attribute doesn't.
Michael Foord mich...@voidspace.org.uk added the comment:
Because you then have classes that inherit from object calling methods that
clearly don't exist (until you subclass them *and* TestCase). It looks weird
and also means the classes can't be tested in isolation.
With a class decorator
R. David Murray rdmur...@bitdance.com added the comment:
Hmm. OK, I guess we can just disagree on what looks straightforward, and since
you are the maintainer of unittest you win :) But unless somebody pronounces,
I'll probably keep using the mixin pattern for my own modules.
--
R. David Murray rdmur...@bitdance.com added the comment:
I guess I'm not really done talking about this, though my bow to you as
maintainer still stands.
The mixin tests *can't* be run in isolation, that's the whole point. Otherwise
you could just let unittest run them, and wouldn't need to
Andrew Svetlov andrew.svet...@gmail.com added the comment:
I agree with Roger's patch.
But I'm pretty sure Ankit had another problem just because IDLE shell works for
everyone without that patch.
--
___
Python tracker rep...@bugs.python.org
Michael Foord mich...@voidspace.org.uk added the comment:
It still looks weird to see code calling methods that obviously don't exist,
and with no indication *at the call site* where they come from. Making it
clearer with naming would help: TestThingMixin or similar.
There are classes like
New submission from Andrew Svetlov andrew.svet...@gmail.com:
Now if IDLE was ran from console and then terminated by Ctrl-\ or kill signal
— background process keep living forever.
That process have to stop itself if there are no frontend IDLE.
--
assignee: asvetlov
messages: 157043
Michael Foord mich...@voidspace.org.uk added the comment:
Besides which, the mixin pattern won't *stop* working if we provide this extra
functionality - it would just be an alternative for those (like myself) who
think it impedes code readability. :-)
At this point we're off topic for the
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
components: +IDLE
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14440
___
___
R. David Murray rdmur...@bitdance.com added the comment:
The convention in the stdlib is to name the mixin classes TestXXXBase.
Granted, a lot of those inherit from TestCase. I have no objection to calling
them Mixin instead, I'm just pointing out that there is an existing convention.
(As
Joseph Chadwick josephholyhe...@gmail.com added the comment:
The attached replaces the text for the documentation in 2.4.1 between the
lexical definitions table and the escape sequence table. The only change is the
following addition to the paragraph on string and byte literals prefixed by 'r'
Joseph Chadwick josephholyhe...@gmail.com added the comment:
I uploaded before making the final save, so the first document is incomplete.
(that's embarrassing)
--
Added file: http://bugs.python.org/file25065/stringByteLiteralBR.docx
___
Python
New submission from Walter Cheuk wwych...@gmail.com:
Please add new directives for decimal-number month, day and hour that have
neither leading zero nor leading space. Currently %m, %d and %I are used, but
they have leading zeroes and are not suitable for some languages such as
Chinese. GNOME
R. David Murray rdmur...@bitdance.com added the comment:
We pretty much follow the posix standard on strftime. I doubt that we would
introduce non-standard specifiers. Are there any in widespread use for your
use case?
--
nosy: +belopolsky, r.david.murray
Changes by Martin v. Löwis mar...@v.loewis.de:
Removed file: http://bugs.python.org/file25064/stringByteLiteralBR.docx
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13744
___
Walter Cheuk wwych...@gmail.com added the comment:
Yes, this is standard in all Chinese locales, including China, Taiwan, Hong
Kong, Macau and Singapore.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14441
R. David Murray rdmur...@bitdance.com added the comment:
I'm asking if there are specific % codes commonly used for this case. (Even if
there are there is no guarantee we are going to add them, but it makes it
possible to make a case for it.)
--
New submission from Pino Toscano toscano.p...@tiscali.it:
In Lib/test/test_smtplib.py, there's a try ... except which checks the errno of
the IOError exception; though, the errno module is not imported, eventually
causing
| NameError: global name 'errno' is not defined
in such case.
Matt Joiner anacro...@gmail.com added the comment:
It could in fact be necessary, if the inheritance cannot be juggled to give
the right MRO. Fortunately this is not the case, I should have a patch using
TestCase inheritance for discovery tomorrow.
--
Roger Serwy roger.se...@gmail.com added the comment:
IDLE contains keyboard configuration in config-keys.def (Mac, Windows, UNIX)
and in configHandler.py.
GetCoreKeys contains the keyBindings dict which has fall-back values in case
the given key set is missing values (a warning is printed).
1 - 100 of 187 matches
Mail list logo