While it is true that sorted(iterable) is essentially
def sorted(iterable):
tem = list(iterable)
tem.sort
return tem
the body is not an expression and cannot be substituted in an
expression. The need for the short form was thought common enough to be
worth, *on balance*, a new builtin
Rick Johnson:
The Ruby language attempted to save the programmer from the scourge of obtaining a four year degree
in linguistics just to create intuitive identifiers on-the-fly, and they tried to
remove this ambiguity by employing post-fix-punctuation of the exclamation mark as a
visual cue
On 09.02.2013 12:04, Joshua Robinson wrote:
Hi *Monte-Pythons*,
x = this is a simple : text: that has colon
s = x.replace(string.punctuation, ); OR
s = x.replace(string.punctuation, );
print x # 'this is a simple : text: that has colon'
# The colon is still in the text
Is this a
Neil Hodgson wrote:
Rick Johnson:
The Ruby language attempted to save the programmer from the scourge of
obtaining a four year degree in linguistics just to create intuitive
identifiers on-the-fly, and they tried to remove this ambiguity by
employing post-fix-punctuation of the exclamation
Rick Johnson wrote:
On Friday, February 8, 2013 9:36:52 PM UTC-6, Steven D'Aprano wrote:
Rick Johnson wrote:
The solution is simple. Do not offer the copy-mutate methods and
force all mutation to happen in-place:
py l = [1,2,3]
py l.reverse
py l
[3,2,1]
If the user wants a
Hello.
I've done the following in CPython 2.7.3 and 3.3.0 (and also in PyPy 2.0b1):
import weakref
x = set()
y = weakref.proxy(x)
x.__class__, type(x), isinstance(x, set)
(class 'set', class 'set', True)
y.__class__, type(y), isinstance(y, set)
(class 'set', class 'weakproxy', True)
So,
Rick Johnson wrote:
IMO Set Types should only exists as a concequence of freezing an
array,
Sets are not frozen lists.
and should have NO literal syntax avaiable.
Unfortunately, Python has a minor design flaw. One of the most common
use-cases for sets is for membership testing of literal
On Sun, Feb 10, 2013 at 10:29 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
inserted is called addition, together with list slicing when needed.
newlist = [item_to_insert] + oldlist
newlist = oldlist[0:5] + [item_to_insert] + oldlist[5:]
Really? Wouldn't it be easier to use
On 10 February 2013 04:53, Mark Janssen dreamingforw...@gmail.com wrote:
On Sat, Feb 9, 2013 at 8:20 PM, Chris Angelico ros...@gmail.com wrote:
On Sun, Feb 10, 2013 at 2:54 PM, Rick Johnson
rantingrickjohn...@gmail.com wrote:
My point was this: All mutate methods should mutate in-place, if the
On Sun, 10 Feb 2013 22:29:54 +1100, Steven D'Aprano wrote:
Rick Johnson wrote:
map, mapped
filter, filtered
reduce, reduced
Those are nonsense. None of those are in-place mutator methods.
Especially reduce, which reduces a list to a single item. You might
as well have suggested len,
Ivan Yurchenko wrote:
Hello.
I've done the following in CPython 2.7.3 and 3.3.0 (and also in PyPy
2.0b1):
import weakref
x = set()
y = weakref.proxy(x)
x.__class__, type(x), isinstance(x, set)
(class 'set', class 'set', True)
y.__class__, type(y), isinstance(y, set)
(class 'set',
Chris Angelico wrote:
On Sun, Feb 10, 2013 at 10:29 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
inserted is called addition, together with list slicing when needed.
newlist = [item_to_insert] + oldlist
newlist = oldlist[0:5] + [item_to_insert] + oldlist[5:]
Really?
Mark Janssen wrote:
On Sat, Feb 9, 2013 at 8:20 PM, Chris Angelico ros...@gmail.com wrote:
On Sun, Feb 10, 2013 at 2:54 PM, Rick Johnson
rantingrickjohn...@gmail.com wrote:
My point was this: All mutate methods should mutate in-place, if the
programmer wishes to create a mutated copy of the
Steven D'Aprano於 2013年2月9日星期六UTC+8上午11時36分52秒寫道:
Rick Johnson wrote:
The solution is simple. Do not offer the copy-mutate methods and force
all mutation to happen in-place:
py l = [1,2,3]
py l.reverse
py l
[3,2,1]
If the user wants a mutated copy he
In article 5117868b$0$29998$c3e8da3$54964...@news.astraweb.com,
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
Sets are not frozen lists.
Right. Tuples are frozen lists (ducking and running).
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Thanks for your suggestion. This is a great forum for Python. :)
On Sun, Feb 10, 2013 at 4:12 PM, inq1ltd inq1...@inqvista.com wrote:
**
On Saturday, February 09, 2013 03:27:16 PM Morten Engvoldsen wrote:
Hi Team,
I Have saved my output in .doc file and want to format the output
On Saturday, February 09, 2013 03:27:16 PM Morten Engvoldsen wrote:
Hi Team,
I Have saved my output in .doc file and want to format the output with
*Start the File
Some data here
***End of File*
Can
Hi Dave,
This is good code, simple but makes the Coding Standard better.. Thanks to
all again
On Sun, Feb 10, 2013 at 5:01 PM, David Hutto dwightdhu...@gmail.com wrote:
Kind of like below:
david@david-HP-Compaq-dc7600-Convertible-Minitower:~$ python
Python 2.7.3 (default, Aug 1 2012,
I haven't looked at text wrapper, but it would probably look
something like this in a function, untested:
def text_wrapper(file_name = None, pre_text = None, text = None,
post_text = None):
f = open(file, 'a')
f.write(%s\n%s\n%s\n % (pre_text = None, text, post_text = None)
f.close()
Oops, I mean :
def text_wrapper(file_name = None, pre_text = None, text = None,
post_text = None):
f = open(file, 'a')
f.write(%s\n%s\n%s\n % (pre_text, text, post_text)
f.close()
--
http://mail.python.org/mailman/listinfo/python-list
Hi Dave,
Thanks again for suggestion
On Sun, Feb 10, 2013 at 5:30 PM, David Hutto dwightdhu...@gmail.com wrote:
I haven't looked at text wrapper, but it would probably look
something like this in a function, untested:
def text_wrapper(file_name = None, pre_text = None, text = None,
Here is the full function with an instance using the function:
def text_wrapper(file_name = None, pre_text = None, text = None,
post_text = None):
f = open(file_name, 'a')
f.write(%s\n%s\n%s\n % (pre_text, text, post_text))
f.close()
text_wrapper(file_name =
On Sun, Feb 10, 2013 at 11:45 AM, Morten Engvoldsen
mortene...@gmail.com wrote:
Hi Dave,
Thanks again for suggestion
No problem. I haven't used my python skills in a while, so I went
ahead and went through it fully.
--
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com
--
Hi Dave,
Thanks for your reply with full function :) Great forum.. :)
On Sun, Feb 10, 2013 at 5:46 PM, David Hutto dwightdhu...@gmail.com wrote:
Here is the full function with an instance using the function:
def text_wrapper(file_name = None, pre_text = None, text = None,
post_text = None):
How do i make something with python that will ask the user for input, and then
use the random.choice function to select a random choice from what the user
entered.
--
http://mail.python.org/mailman/listinfo/python-list
Am 10.02.2013 12:37 schrieb Steven D'Aprano:
So, in Python 4000, my vote is for set literals { } to create frozensets,
and if you want a mutable set, you have to use the set() type directly.
4000 sounds about long future.
In the meanwhile, a new syntax element could be introduced fpr
I'm new to Python with a new windows 8 machine (64-bit OS). Learning
programming mainly for fun. Naturally I downloaded Python 3.3 (who doesn't
want the latest and greatest). What I want involves functions related to the
normal distribution. Based on my google research, it appears that SCIPY
On Sun, Feb 10, 2013 at 12:43 PM, Joel Goldstick
joel.goldst...@gmail.com wrote:
On Sun, Feb 10, 2013 at 12:01 PM, eli m techgeek...@gmail.com wrote:
How do i make something with python that will ask the user for input, and
then use the random.choice function to select a random choice from
The first one I sent directly to you, but it used randint with a list.
The second should be what you're looking for. If not, then ask a
little further what you need explained.
--
http://mail.python.org/mailman/listinfo/python-list
On 10/02/2013 17:35, Rex Macey wrote:
I'm new to Python with a new windows 8 machine (64-bit OS). Learning
programming mainly for fun. Naturally I downloaded Python 3.3 (who doesn't
want the latest and greatest). What I want involves functions related to the
normal distribution. Based on
On 02/10/2013 10:35 AM, Rex Macey wrote:
I'm new to Python with a new windows 8 machine (64-bit OS). Learning
programming mainly for fun. Naturally I downloaded Python 3.3 (who
doesn't want the latest and greatest). What I want involves
functions related to the normal distribution. Based on
On 10/02/2013 12:35 PM, Rex Macey wrote:
I'm new to Python with a new windows 8 machine (64-bit OS). Learning
programming mainly for fun. Naturally I downloaded Python 3.3 (who doesn't
want the latest and greatest). What I want involves functions related to the
normal distribution. Based
On Sun, Feb 10, 2013 at 5:30 AM, Oscar Benjamin
oscar.j.benja...@gmail.com wrote:
On 10 February 2013 04:53, Mark Janssen dreamingforw...@gmail.com wrote:
I have to agree with Rick, I think requiring the user to explicitly
create a new object, which is already a good and widely-used practice,
On Sunday, February 10, 2013 2:39:21 AM UTC-6, Terry Reedy wrote:
While it is true that sorted(iterable) is essentially
def sorted(iterable):
tem = list(iterable)
tem.sort
return tem
the body is not an expression and cannot be substituted in an
expression.
Yes but the body
On Sunday, February 10, 2013 3:53:57 AM UTC-6, Neil Hodgson wrote:
Ruby does not use '!' to indicate in-place modification:
Really?
rb a = [1,2,3]
[1, 2, 3]
rb a.reverse
[3, 2, 1]
rb a
[1, 2, 3]
rb a.reverse!
[3, 2, 1]
rb a
[3, 2, 1]
And now we will verify that a.reverse! has not assigned 'a'
On Sun, Feb 10, 2013 at 1:14 PM, Michael Torrie torr...@gmail.com wrote:
On 02/10/2013 10:35 AM, Rex Macey wrote:
A casual google search seems to indicate that for now, SciPy and NumPy
are for Python 2.x (2.7 is the latest). I could be wrong though and
often am. I know a number of popular
On 10 February 2013 18:14, Michael Torrie torr...@gmail.com wrote:
On 02/10/2013 10:35 AM, Rex Macey wrote:
I'm new to Python with a new windows 8 machine (64-bit OS). Learning
programming mainly for fun. Naturally I downloaded Python 3.3 (who
doesn't want the latest and greatest). What I
I am attempting to plot the relative sky positions of several Astronomy images
I'm studying. I want a set of axes that represent a 2-d projection of the sky
(don't want to use polar projection), so my x-axis would be from 0 to 360
(right ascension) and the y-axis from about -35 to 90
On Sun, Feb 10, 2013 at 6:29 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Mark Janssen wrote:
I have to agree with Rick, I think requiring the user to explicitly
create a new object, which is already a good and widely-used practice,
Perhaps so, but consider how you creates
On 2/10/2013 1:45 PM, Rick Johnson wrote:
On Sunday, February 10, 2013 2:39:21 AM UTC-6, Terry Reedy wrote:
While it is true that sorted(iterable) is essentially
def sorted(iterable):
tem = list(iterable)
tem.sort
return tem
the body is not an expression and cannot be substituted
On Mon, Feb 11, 2013 at 8:28 AM, Mark Janssen dreamingforw...@gmail.com wrote:
Yes, I was aware of his sarcasm. But I was actually wanting to agree
with the fundamental idea: that one could reduce all data types to 1
atomic unit and 1 grouping construct, and like set theory in
mathematics,
Rick Johnson:
Really?
Yes.
a = [1,2]
= [1, 2]
a.push(3)
= [1, 2, 3]
a
= [1, 2, 3]
This could be called mutation without exclamation.
require 'WEBrick'
= true
vowels = [aeiou]+
= [aeiou]+
vowels.object_id
= 2234951380
WEBrick::HTTPUtils._make_regex!(vowels)
=
On Sun, Feb 10, 2013 at 1:51 PM, Chris Angelico ros...@gmail.com wrote:
On Mon, Feb 11, 2013 at 8:28 AM, Mark Janssen dreamingforw...@gmail.com
wrote:
Yes, I was aware of his sarcasm. But I was actually wanting to agree
with the fundamental idea: that one could reduce all data types to 1
суббота, 9 февраля 2013 г., 23:22:47 UTC+4 пользователь Terry Reedy написал:
On 2/9/2013 6:23 AM, Vlasov Vitaly wrote:
Hello.
I found strange behavior of curses module, that i can't understand. I
initialize screen with curses.initscr(), then i create subwin of
screen with
The setup of numpy-1.7.0 leads to a Setup window with a message: Python 3.3 is
required for this package. Select installation to use:. Below that is an empty
list box. Below that is an edit box for the Python Directory.
I have Python 3.3 installed on c:\Python33.
On Sunday, February 10,
I should have added that the setup gives an error window Cannot install
Python version 3.3 required, which was not found in the registry.
On Sunday, February 10, 2013 5:11:20 PM UTC-5, Rex Macey wrote:
The setup of numpy-1.7.0 leads to a Setup window with a message: Python 3.3
is required for
Is it considered acceptable practice (e.g. not confusing, not
surprising or not Pythonic) to allow multiple ways to access
the same attributes?
For example, supposing I am providing access to external
devices, that these parameters may vary slightly between
devices (e.g. different models,
On 2013-02-10 22:44, ISE Development wrote:
Is it considered acceptable practice (e.g. not confusing, not
surprising or not Pythonic) to allow multiple ways to access
the same attributes?
For example, supposing I am providing access to external
devices, that these parameters may vary slightly
On 02/10/2013 05:44 PM, ISE Development wrote:
Is it considered acceptable practice (e.g. not confusing, not
surprising or not Pythonic) to allow multiple ways to access
the same attributes?
For example, supposing I am providing access to external
devices, that these parameters may vary
On Sunday, February 10, 2013 5:29:54 AM UTC-6, Steven D'Aprano wrote:
Rick wrote:
And you have missed my point, which is that reversed(), and sorted(), were
not added to the language on a whim, but because they were requested, over
and over and over again.
Well, well, this explains
flatten, flattened
flatten is another often requested, hard to implement correctly,
function. The only reason that Python doesn't have a flatten is
that nobody can agree on precisely what it should do.
Steven, the definition of flatten (as relates to sequences) is
very, VERY
Mark Janssen wrote:
A unified data model as I define it, specifies a canonical atomic unit
(like the unit integer) and an abstract grouping construct in which
these atomic units can be arranged. By themselves, these two can
construct arbitrary levels of data structure complexity. Add the
Dennis Lee Bieber wrote:
On Mon, 11 Feb 2013 01:29:30 +1100, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info declaimed the following in
gmane.comp.python.general:
Oh dear. Chris was being sarcastic. I thought that, even if the sarcasm
wasn't obvious, his Ook. Ook! at the end should
Rick Johnson wrote:
we can get the iterator for free. If however you want to control the
iteration /without/ being locked into a loop, you can explicitly call:
py iter(seq)
Or, if python employed /true/ OOP paradigm:
py Iterator(seq)
Today I learned that the difference between true OOP
On Sunday, February 10, 2013 7:30:00 AM UTC-6, Oscar Benjamin wrote:
On 10 February 2013 04:53, Mark Janssen wrote:
[...]
I have to agree with Rick, I think requiring the user to explicitly
create a new object, which is already a good and widely-used practice,
should be the Only One Way
Rick Johnson wrote:
On Sunday, February 10, 2013 5:29:54 AM UTC-6, Steven D'Aprano wrote:
Rick wrote:
And you have missed my point, which is that reversed(), and sorted(),
were not added to the language on a whim, but because they were
requested, over and over and over again.
Well, well,
Rick Johnson wrote:
On Sunday, February 10, 2013 7:30:00 AM UTC-6, Oscar Benjamin wrote:
On 10 February 2013 04:53, Mark Janssen wrote:
[...]
I have to agree with Rick, I think requiring the user to explicitly
create a new object, which is already a good and widely-used practice,
should
Hi,
I'm implementing a python client connecting to a C-backend server and am
currently stuck to as to how to proceed with receiving variable-length byte
stream coming in from the server.
I have coded the first 4 bytes (in hexadecimal) of message coming in from the
server to specify the length
On Sun, Feb 10, 2013 at 4:10 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Mark Janssen wrote:
A unified data model as I define it, specifies a canonical atomic unit
(like the unit integer) and an abstract grouping construct in which
these atomic units can be arranged. By
On 02/10/2013 07:48 PM, Ihsan Junaidi Ibrahim wrote:
Hi,
I'm implementing a python client connecting to a C-backend server and am
currently stuck to as to how to proceed with receiving variable-length byte
stream coming in from the server.
I have coded the first 4 bytes (in hexadecimal) of
On Sunday, February 10, 2013 6:12:57 PM UTC-6, Tim Chase wrote:
What should you get if you flatten
[[[1,2],[3,4]],[[5,6],[7,8]]]
Should the result be
[[1,2],[3,4],[5,6],[7,8]]
or
[1,2,3,4,5,6,7,8]
I've needed both cases, depending on the situation.
Well providing /every/
Within __init__ I setup a log with self.log = logging.getLogger('foo') then add
a
console and filehandler which requires the formatting to be specified. There a
few
methods I setup a local log object by calling getChild against the global log
object.
This works fine until I need to adjust the
On 10 February 2013 22:14, Rex Macey xer0...@hotmail.com wrote:
I should have added that the setup gives an error window Cannot install
Python version 3.3 required, which was not found in the registry.
Yes, you should have added this information. Are you sure that Python
3.3 is installed? Have
On 2013-02-11 00:48, Ihsan Junaidi Ibrahim wrote:
Hi,
I'm implementing a python client connecting to a C-backend server and am
currently stuck to as to how to proceed with receiving variable-length byte
stream coming in from the server.
I have coded the first 4 bytes (in hexadecimal) of
On Feb 9, 2:51 pm, Chris Angelico ros...@gmail.com wrote:
Rick Johnson rantingrickjohn...@gmail.com wrote:
I really don't like to read docs when learning a language,
especially a so-called high level language. I prefer to learn
the language by interactive sessions and object introspection.
On 2013-02-11 00:36, Steven D'Aprano wrote:
Rick Johnson wrote:
On Sunday, February 10, 2013 5:29:54 AM UTC-6, Steven D'Aprano wrote:
Rick wrote:
And you have missed my point, which is that reversed(), and sorted(),
were not added to the language on a whim, but because they were
requested,
On Feb 11, 9:59 am, Rick Johnson rantingrickjohn...@gmail.com wrote:
We don't add features because of logic, or because of consistency,
or even because of good sense, we simply add them to appease the masses.
When logic or good sense are writing programs, maybe then we'll
listen more to what
On Saturday, February 9, 2013 10:50:25 PM UTC-6, Chris Angelico wrote:
[...]
I don't understand. Wouldn't freezing an array (list) result in a
tuple? And, why should there be no literal syntax for them?
Having a convenient literal notation for every basic type is extremely
handy.
Actually
On Sun, Feb 10, 2013 at 5:14 PM, Rex Macey xer0...@hotmail.com wrote:
I should have added that the setup gives an error window Cannot install
Python version 3.3 required, which was not found in the registry.
I'm guessing that you installed a 64-bit python and are using a 32-bit numpy.
--
In article mailman.1612.1360544258.2939.python-l...@python.org,
Ihsan Junaidi Ibrahim ih...@grep.my wrote:
I'm implementing a python client connecting to a C-backend server and am
currently stuck to as to how to proceed with receiving variable-length byte
stream coming in from the server.
On Feb 8, 4:29 pm, Rick Johnson rantingrickjohn...@gmail.com wrote:
That's a strange thing to say when you go on to provide an example that tests
the validity of the object each and every time:
Here's a tip: context is important. I was referring to not having to
*explicitly* test if a label
On Feb 9, 2:25 pm, Michael Torrie torr...@gmail.com wrote:
Rick seems to know his stuff
about Tk programming, but his knowledge of programming language theory
and formal computing seems quite informal.
Not informal, intuited. If he doesn't already know something, it's
apparently not important.
$ hexdump -n4 -C $(which python) | awk '{print $2 $3 $4 $5 }'
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Feb 11, 2013 at 1:42 PM, alex23 wuwe...@gmail.com wrote:
On Feb 9, 2:25 pm, Michael Torrie torr...@gmail.com wrote:
Rick seems to know his stuff
about Tk programming, but his knowledge of programming language theory
and formal computing seems quite informal.
Not informal, intuited.
On Tuesday, 19 August 2003 15:01:01 UTC+12, Marcus Liddle wrote:
newbie hat
Hi
I'm trying to get a really simple python program to
run a bash testing script and kill itself if its
been running to long (ie infinite loop)
create the thread object - test = TestThread()
run the
On Mon, Feb 11, 2013 at 5:10 PM, Rodrick Brown rodrick.br...@gmail.com wrote:
$ hexdump -n4 -C $(which python) | awk '{print $2 $3 $4 $5 }'
I believe that's used as a file signature. All you're doing is looking
at the first four bytes of the file; 0xCAFEBABE is used as a signature
by Java class
On Sun, Feb 10, 2013 at 10:10 PM, Rodrick Brown rodrick.br...@gmail.com wrote:
Subject: cafebabe python macosx easter egg?
$ hexdump -n4 -C $(which python) | awk '{print $2 $3 $4 $5 }'
cafebabe
~ $ # Huh. Let's google...
http://en.wikipedia.org/wiki/Hexspeak :
0xCAFEBABE (cafe babe) is used by
I have a package (say foo) that I want to rename (say, to bar), and for
compatibility reasons I want to be able to use the old package name to
refer to the new package. Copying files or using filesystem symlinks is
probably not the way to go, since that means any object in the modules of
the
On 11/02/2013 02:05, alex23 wrote:
I highly recommend not reading up on any
modern physics as there'll be plenty there that just makes you angry.
Spoil sport. Fancy not wanting rr's views on string theory :)
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Feb 11, 2013 at 6:19 PM, Mark Lawrence breamore...@yahoo.co.uk wrote:
On 11/02/2013 02:05, alex23 wrote:
I highly recommend not reading up on any
modern physics as there'll be plenty there that just makes you angry.
Spoil sport. Fancy not wanting rr's views on string theory :)
Is
On 11/02/2013 06:50, Isaac To wrote:
I have a package (say foo) that I want to rename (say, to bar), and
for compatibility reasons I want to be able to use the old package name
to refer to the new package.
My apologies for the over engineering, but this is the best I could come
up with.
On Mon, Feb 11, 2013 at 6:28 PM, Mark Lawrence breamore...@yahoo.co.uk wrote:
On 11/02/2013 06:50, Isaac To wrote:
I have a package (say foo) that I want to rename (say, to bar), and
for compatibility reasons I want to be able to use the old package name
to refer to the new package.
My
On 11/02/2013 07:24, Chris Angelico wrote:
On Mon, Feb 11, 2013 at 6:19 PM, Mark Lawrence breamore...@yahoo.co.uk wrote:
On 11/02/2013 02:05, alex23 wrote:
I highly recommend not reading up on any
modern physics as there'll be plenty there that just makes you angry.
Spoil sport. Fancy
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8040
___
___
Python-bugs-list
New submission from Tshepang Lekhonkhobe:
The issue referred to has since been resolved.
--
assignee: docs@python
components: Documentation
files: update.diff
keywords: patch
messages: 181778
nosy: docs@python, tshepang
priority: normal
severity: normal
status: open
title: update PEP
Serhiy Storchaka added the comment:
You can use p format in PyArg_ParseTuple* for boolean parameters.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13773
___
Ramchandra Apte added the comment:
Will attach patch. Coincidentally I'm am a younger programmer.
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17172
___
Ramchandra Apte added the comment:
Should be ... I'm a younger...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17172
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 6ec6dbf787f4 by Serhiy Storchaka in branch '2.7':
Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks
on POSIX platforms.
http://hg.python.org/cpython/rev/6ec6dbf787f4
New changeset c5f4fa02fc86 by Serhiy Storchaka in
Nick Coghlan added the comment:
Agreed on it being a bug that we do it the wrong way around, but Yikes! at
the idea of code where it makes a significant difference.
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
You can use p format in PyArg_ParseTuple* for boolean parameters.
That's what I used, indeed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13773
___
Mark Dickinson added the comment:
Looks good to me. I can confirm that the new formulas are equivalent to the
old, at least for positive kappa. (They're not the same for negative kappa,
but that shouldn't matter in this context.)
Serhiy: do you know how the original formulas arose? I don't
Antoine Pitrou added the comment:
Any other comments on this? If not, I would like to commit soon.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16997
___
Michael Foord added the comment:
Please don't commit I think we still need a discussion as to whether subtests
or paramaterized tests are a better approach. I certainly don't think we need
both and there are a lot of people asking for parameterized tests. I also
haven't had a chance to look
Antoine Pitrou added the comment:
Please don't commit I think we still need a discussion as to whether
subtests or paramaterized tests are a better approach. I certainly
don't think we need both and there are a lot of people asking for
parameterized tests.
I think they don't cater to the
Nick Coghlan added the comment:
You can use subtests to build parameterized tests, you can't use
parameterized tests to build subtests. The standard library can also
be converted to using subtests *far* more readily than it could be
converted to parameterized tests. There's also the fact that
Michael Foord added the comment:
Subtests break the current unittest api of suite.countTests() and I fear they
will also break tools that use the existing test result api to generate junit
xml for continuous integration.
I would like to add a parameterized test mechanism to unittest - but
Michael Foord added the comment:
However, I think you're making a mistaking by seeing them as
*competing* APIs, rather than seeing subtests as a superior
implementation strategy for the possible later introduction of a
higher level parameterized tests API.
Parameterized tests are done at test
Antoine Pitrou added the comment:
Subtests break the current unittest api of suite.countTests() and I
fear they will also break tools that use the existing test result api
to generate junit xml for continuous integration.
It depends how you define countTests(). sub-tests, as the name
Mark Dickinson added the comment:
I suspect that this is simply an error in the original code: the docstring
says that mu should be in the range [0, 2*pi), so reducing mu modulo 2*pi makes
little sense. I guess the lines at the end of the method were intended to be
written:
if u3 =
1 - 100 of 207 matches
Mail list logo