On Thu, Mar 30, 2017 at 4:11 PM, bruce wrote:
> sent a question earlier.. and got a reply saying it was in the
> moderation process???
You've made it through the process. See the bottom of
https://mail.python.org/pipermail/tutor/2017-March/thread.html
to see your original question and the answ
sent a question earlier.. and got a reply saying it was in the
moderation process???
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On Sat, Feb 11, 2017 at 01:00:11PM +1100, Ben Finney wrote:
> boB Stepp writes:
>
> > I was playing around with type() tonight. If I type (pun intended), I get:
> >
> > py3: type(5)
> >
>
> Ceci n'est pas un ‘int’.
[...]
> https://en.wikipedia.org/wiki/The_Treachery_of_Images>
For anyone int
On Fri, Feb 10, 2017 at 07:34:35PM -0600, boB Stepp wrote:
> I was playing around with type() tonight. If I type (pun intended), I get:
>
> py3: type(5)
>
>
> So I naively thought a test for type int should go like:
>
> py3: type(5) == ""
> False
The interactive intepreter is great, but you
On Sat, Feb 11, 2017 at 7:35 AM, boB Stepp wrote:
> Has this PEP been implemented yet? I am running Python 3.5.2 and it
> appears not to work. Also, in "What's New In Python 3.6"
> (https://docs.python.org/3/whatsnew/3.6.html) I did not see a mention
> of it.
You can see in the document header
On Sat, Feb 11, 2017 at 12:57 AM, eryk sun wrote:
>
> The '/' syntax for positional-only arguments is documented in PEP 457.
>
> https://www.python.org/dev/peps/pep-0457
At https://www.python.org/dev/peps/pep-0457/#id14 in PEP 457 it says:
>From the "ten-thousand foot view", and ignoring *arg
On Sat, Feb 11, 2017 at 6:22 AM, boB Stepp wrote:
> On Fri, Feb 10, 2017 at 11:49 PM, eryk sun wrote:
>
>> It's from the function's __text_signature__.
>>
>> >>> repr.__text_signature__
>> '($module, obj, /)'
>>
>> It means "obj" is a positional-only argument that cannot be passed as a
>
On Fri, Feb 10, 2017 at 11:49 PM, eryk sun wrote:
> On Sat, Feb 11, 2017 at 3:22 AM, boB Stepp wrote:
>>
>> py3: help(repr)
>> Help on built-in function repr in module builtins:
>>
>> repr(obj, /)
>> Return the canonical string representation of the object.
>>
>> For many object types, in
On Sat, Feb 11, 2017 at 3:22 AM, boB Stepp wrote:
>
> py3: help(repr)
> Help on built-in function repr in module builtins:
>
> repr(obj, /)
> Return the canonical string representation of the object.
>
> For many object types, including most builtins, eval(repr(obj)) == obj.
>
> Question:
Thanks for the detailed information. I have a final really nitpicky question.
On Fri, Feb 10, 2017 at 11:27 PM, eryk sun wrote:
> On Sat, Feb 11, 2017 at 4:32 AM, boB Stepp wrote:
>>
>> This bit got me experimenting. Since the integer "5" is an integer
>> object instance, I am wondering why I
On Sat, Feb 11, 2017 at 4:32 AM, boB Stepp wrote:
>
> This bit got me experimenting. Since the integer "5" is an integer
> object instance, I am wondering why I can't do:
>
> py3: 5.__repr__()
> File "", line 1
> 5.__repr__()
> ^
> SyntaxError: invalid syntax
>
> , but I can do
On Fri, Feb 10, 2017 at 8:05 PM, eryk sun wrote:
> Speaking of classes and metaclasses, note that you can't call
> int.__repr__(int) to get this representation, because the __repr__
> special method of int is meant for instances of int such as int(5).
This bit got me experimenting. Since the in
On Fri, Feb 10, 2017 at 7:50 PM, Zachary Ware
wrote:
> Try `help(repr)` and `int` on its own at the interactive prompt, and
py3: help(repr)
Help on built-in function repr in module builtins:
repr(obj, /)
Return the canonical string representation of the object.
For many object types, i
On Sat, Feb 11, 2017 at 1:34 AM, boB Stepp wrote:
> I was playing around with type() tonight. If I type (pun intended), I get:
>
> py3: type(5)
>
`type` is a metaclass that either creates a new class (given 3
arguments: name, bases, and dict) or returns a reference to the class
of an existing o
boB Stepp writes:
> I was playing around with type() tonight. If I type (pun intended), I get:
>
> py3: type(5)
>
Ceci n'est pas un ‘int’.
> So I naively thought a test for type int should go like:
>
> py3: type(5) == ""
> False
>
> Hmm.
The output from the REPL can only be text. But a type,
On 2017-02-10 17:34, boB Stepp wrote:
I was playing around with type() tonight. .
I've also "played around" with this subject-
Here's a source:
http://stackoverflow.com/questions/152580/whats-the-canonical-way-to-check-for-type-in-python
... and a successful experiment:
alex@X301n3:~$
On Fri, Feb 10, 2017 at 7:34 PM, boB Stepp wrote:
> So my question is why does "type(5)" result in "", but
> the correct Boolean test is "type(5) == int"? I suspect it has
> something to do with the built-in attributes of Python objects that I
> currently know so very little about.
Try `help(rep
I was playing around with type() tonight. If I type (pun intended), I get:
py3: type(5)
So I naively thought a test for type int should go like:
py3: type(5) == ""
False
Hmm. So I tried these other failing tests:
py3: type(5) ==
File "", line 1
type(5) ==
^
SyntaxErro
boB Stepp wrote:
> On Thu, Aug 20, 2015 at 2:37 AM, Peter Otten <__pete...@web.de> wrote:
>
>> Assuming E:/Projects/mcm/src is in the PYTHONPATH mcm_db_mgr.py (what an
>> alphabet soup!)...
>
> Written out in full, this would be
>
> montessori_classroom_manager_database_manager.py
> Hmm. Perh
On Thu, Aug 20, 2015 at 2:37 AM, Peter Otten <__pete...@web.de> wrote:
> Assuming E:/Projects/mcm/src is in the PYTHONPATH mcm_db_mgr.py (what an
> alphabet soup!)...
Written out in full, this would be
montessori_classroom_manager_database_manager.py
Hmm. Perhaps just db_manager.py?
> ...is p
boB Stepp wrote:
> W7 64-bit. Py 3.4.3
>
> unittest result:
>
> E:\Projects\mcm>python -m unittest
> E
> ==
> ERROR: test.db.test_mcm_db_mgr (unittest.loader.ModuleImportFailure)
> --
W7 64-bit. Py 3.4.3
unittest result:
E:\Projects\mcm>python -m unittest
E
==
ERROR: test.db.test_mcm_db_mgr (unittest.loader.ModuleImportFailure)
--
Traceback (
Jignesh Sutar wrote:
> I needed to test if the values of all entries in a dictionary were equal
> but since the values themselves were dictionaries I couldn't simply take a
> set of the values and test if this equated to one. So I ended up taking
> all combination of the keys and testing pairs of
I needed to test if the values of all entries in a dictionary were equal
but since the values themselves were dictionaries I couldn't simply take a
set of the values and test if this equated to one. So I ended up taking all
combination of the keys and testing pairs of sub dictionaries. I just want
Many thanks, everyone. Great answers. I decided to read the manual
properly. May take some time but well worth it.
On Mon, Jul 1, 2013 at 2:40 PM, Steven D'Aprano wrote:
> On 01/07/13 19:58, John Steedman wrote:
>
>> Good morning all,
>>
>> A question that I am unsure about. I THINK I have t
On 01/07/13 19:58, John Steedman wrote:
Good morning all,
A question that I am unsure about. I THINK I have the basics, but I am not
sure and remain curious.
1. What does this mean?
if my_object in my_sequence:
...
Others have already answered this, but for completion, it is testing wheth
On 01/07/13 22:15, Oscar Benjamin wrote:
On 1 July 2013 12:01, Dave Angel wrote:
Third if my_object is something that doesn't equal anything else, such as a
floating point NAN. Two NANs are not equal, and a NAN is not even equal to
itself.
Many builtin collection types do an identity 'is' ch
On Mon, Jul 1, 2013 at 1:01 PM, Dave Angel wrote:
> On 07/01/2013 05:58 AM, John Steedman wrote:
>
>>
>> I believe that "my_sequence" might be a either container class or a
>> sequence type. An effective __hash__ function would be required for each
>> "my_object".
>>
>
> "in" doesn't care if ther
On 07/01/2013 05:58 AM, John Steedman wrote:
Good morning all,
A question that I am unsure about. I THINK I have the basics, but I am not
sure and remain curious.
1. What does this mean?
if my_object in my_sequence:
...
We can be sure what 'if' and 'in' mean, but not the other two items.
Good morning all,
A question that I am unsure about. I THINK I have the basics, but I am not
sure and remain curious.
1. What does this mean?
>>> if my_object in my_sequence:
...
2. What can go wrong with this? What should a code review pick up on?
I believe that "my_sequence" might be a eithe
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
i see you.
did you change your settings so you don't get e-mails?
On Tue, Jan 11, 2011 at 12:17 PM, wrote:
> hmmm, wonder if my membership went belly up... no traffic arriving...
> hmmm...
>
> ___
> Tutor maillist - tu...@python.org
> To unsubscribe
hmmm, wonder if my membership went belly up... no traffic arriving... hmmm...
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Chrystal wrote:
Hi guys
I'll be happy if someone can help evaluate the result of this statement:
for n in range (3, 20):
for x in range (2, n):
print (n)
I tried but couldn't figure out why the loop returned such a result
It would help if you told us what result you get, what result you
Il 27/12/2010 14.44, Chrystal ha scritto:
> Hi guys
>
> I'll be happy if someone can help evaluate the result of this statement:
>
> for n in range (3, 20):
> for x in range (2, n):
> print (n)
>
>
> I tried but couldn't figure out why the loop returned such a result
>
> Merry Chri
Hi guys
I'll be happy if someone can help evaluate the result of this statement:
for n in range (3, 20):
> for x in range (2, n):
> print (n)
>
I tried but couldn't figure out why the loop returned such a result
Merry Christmas
Thanks
___
Tutor maill
Thanks all here. I'm asked UML and UI tools for python in the other thread.
I'm looking for any suggestions to build test automation system, from
the test plan management, test execution, python scripting management.
Testplan: Testlink is a good example and I used it for the small
project, but it
On Sat, Nov 06, 2010 at 04:20:54PM +1100, Steven D'Aprano wrote:
> Luke Paireepinart wrote:
> >You don't get your own e-mails back.
>
> I do.
>
> Perhaps it's an option when you sign up?
I think it is an irritating gmail-only "feature". I
use a google apps domain and face the same issue. I see
On 6 November 2010 16:20, Steven D'Aprano wrote:
> Luke Paireepinart wrote:
>>
>> You don't get your own e-mails back.
>
> I do.
>
> Perhaps it's an option when you sign up?
For any list (like this one) hosted by mailman, the default is set by
list administrator, but every user can customise this
Luke Paireepinart wrote:
You don't get your own e-mails back.
I do.
Perhaps it's an option when you sign up?
--
Steven
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/
You don't get your own e-mails back.
On Fri, Nov 5, 2010 at 11:37 PM, Danyelle Davis wrote:
> im wondering if im able to mail this list. I sent an email asking for good
> newbie projects but never saw it post. All i got was the welcome/ info
> email.
> LN
> _
im wondering if im able to mail this list. I sent an email asking for good
newbie projects but never saw it post. All i got was the welcome/ info
email.
LN
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://ma
> The lines between doc tests, blackbox testing, whitebox testing, and
> regression testing is blurry. People may legitimately disagree on
> whether a specific test is documentation, testing the interface,
> testing the implementation, or all three.
>
Wow!!! Ok that clears up a lot. Thank you
On Wed, 22 Sep 2010 09:44:17 pm Tino Dai wrote:
> > The *primary* purpose of doctests are to be executable examples.
> > When you write documentation, including example code is the most
> > natural thing in the world. doctest lets you execute those
> > examples, to ensure that they work. They're ce
On Wed, Sep 22, 2010 at 3:53 AM, Walter Prins wrote:
> You might also have a look at some of the other popular testing frameworks
> e.g. Nose (http://somethingaboutorange.com/mrl/projects/nose/0.11.2/) and
> py.test (http://wiki.python.org/moin/PyTest) Both of these have the
> advantage that the
>
> The *primary* purpose of doctests are to be executable examples. When
> you write documentation, including example code is the most natural
> thing in the world. doctest lets you execute those examples, to ensure
> that they work. They're certainly not meant as an exhaustive test of
> every sin
You might also have a look at some of the other popular testing frameworks
e.g. Nose (http://somethingaboutorange.com/mrl/projects/nose/0.11.2/) and
py.test (http://wiki.python.org/moin/PyTest) Both of these have the
advantage that they're discovery based, so they'll go and sniff out tests
from yo
On Wed, 22 Sep 2010 01:37:42 am Tino Dai wrote:
> I am
> torn between the DocTest and UnitTest. I like the one "fileness" of
> the DocTest, but am concerned
> about the length of my tests being several orders of magnitude bigger
> than the actual code. I
> like the UnitTest having a separate file
Hi All,
In my journey from a hacker to a professional software developer, I
have started to learn
the finer points of Test Drive Development via Django (no questions about
Django though). I am
torn between the DocTest and UnitTest. I like the one "fileness" of the
DocTest, but am concerned
ab
ook, thi new thunderbird 3.foo is... different, takes some getting used to.
Sorry about the noise on the channel.
On 2/25/2010 5:31 PM, Kirk Bailey wrote:
test- where is the list, nothing is coming to me!
--
Cheers!
-Kirk D Bailey
THINK
+-+
.*.
test- where is the list, nothing is coming to me!
--
Cheers!
-Kirk D Bailey
THINK
+-+
.*.| BOX |
..*+-+
*** THINK
___
Tutor maillist - Tutor@python.org
To unsubscribe or cha
On Thu, Feb 25, 2010 at 4:03 PM, Kirk Bailey wrote:
> test
> --
>
>
> Cheers!
> -Kirk D Bailey
>
> THINK
> +-+
> .*.| BOX |
> ..*+-+
> *** THINK
> ___
> Tutor maillist - Tutor@python.
test
--
Cheers!
-Kirk D Bailey
THINK
+-+
.*.| BOX |
..*+-+
*** THINK
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.o
Nope.
Kirk Bailey wrote:
is my
posting getting through?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
yup
On Mon, Aug 25, 2008 at 11:47 AM, Kirk Bailey <[EMAIL PROTECTED]>wrote:
> is my posting getting through?
> --
>
>
> Cheers!
> -Kirk D Bailey
>
> THINK
> +-+
> .*.| BOX |
> ..*+-+
> *** THINK
> ___
is my posting getting through?
--
Cheers!
-Kirk D Bailey
THINK
+-+
.*.| BOX |
..*+-+
*** THINK
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/t
Just testing as recently I'm not seeing my posts even though Receive
your own posts to the list? is Yes.
--
Bob Gailer
919-636-4239 Chapel Hill, NC
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
It's just a test message
--
http://ekd.tolosano.info
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hey, my messages don't seem to be showing up on the list...
So if this one works, sorry for the test message, everybody!
My school just decided not to allow any outgoing email to any SMTP
server but their own *grumble* So I've been sending my tutor messages
through that server but with this address
I got a bounce... but have been on this list for months...
S.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Dnia piątek, 17 marca 2006 19:22, Bill Campbell napisał:
> If you're sure it's a Linux system, fine. Like /etc/mtab, this isn't
> portable. Looking at some of the systems we have here:
Fortezza mentioned it the way I assumed he has Linux:
>> If there a semi-standard way to test if a file syste
On Fri, Mar 17, 2006, Pawel Kraszewski wrote:
>Dnia piÄ
tek, 17 marca 2006 18:41, Adam napisaÅ:
>
>> > The more general problem is to get a list of mounted file systems.
>
>> How about just reading the mtab? That's usually /etc/mtab it should be
>> readable as a user and it means you don't have to
On Fri, Mar 17, 2006, Adam wrote:
>On 17/03/06, Bill Campbell <[EMAIL PROTECTED]> wrote:
>> On Fri, Mar 17, 2006, Michael Lange wrote:
>> >On Fri, 17 Mar 2006 00:36:35 -0700
>> >fortezza-pyt <[EMAIL PROTECTED]> wrote:
>> >
>> >> If there a semi-standard way to test if a file system has been mounted
Dnia piątek, 17 marca 2006 18:41, Adam napisał:
> > The more general problem is to get a list of mounted file systems.
> How about just reading the mtab? That's usually /etc/mtab it should be
> readable as a user and it means you don't have to rely on any other
> programs.
Or always-up-to-date &
On 17/03/06, Bill Campbell <[EMAIL PROTECTED]> wrote:
> On Fri, Mar 17, 2006, Michael Lange wrote:
> >On Fri, 17 Mar 2006 00:36:35 -0700
> >fortezza-pyt <[EMAIL PROTECTED]> wrote:
> >
> >> If there a semi-standard way to test if a file system has been mounted
> >> or not using Python? In the Linux
On Fri, Mar 17, 2006, Michael Lange wrote:
>On Fri, 17 Mar 2006 00:36:35 -0700
>fortezza-pyt <[EMAIL PROTECTED]> wrote:
>
>> If there a semi-standard way to test if a file system has been mounted
>> or not using Python? In the Linux command line, I can type "mount" and
>> see all mounted file sys
On Fri, 17 Mar 2006 00:36:35 -0700
fortezza-pyt <[EMAIL PROTECTED]> wrote:
> If there a semi-standard way to test if a file system has been mounted
> or not using Python? In the Linux command line, I can type "mount" and
> see all mounted file system, and then see if the one I am looking for is
On Fri, March 17, 2006 1:06 pm, fortezza-pyt wrote:
> If there a semi-standard way to test if a file system has been mounted
> or not using Python? In the Linux command line, I can type "mount" and
> see all mounted file system, and then see if the one I am looking for is
> in the list. While I co
If there a semi-standard way to test if a file system has been mounted
or not using Python? In the Linux command line, I can type "mount" and
see all mounted file system, and then see if the one I am looking for is
in the list. While I could replicate this with
Python, I am curious if there is a
Willi Richert wrote:
> Hi,
>
> for some time I try to find the best test code organization. I've come
> up with the following solution, which I guess is not optimal. Please
> comment.
OK I'll take a stab at it.
>
> In the code directory there is a special tests directory, which contains
> all
Hi,
for some time I try to find the best test code organization. I've come
up with the following solution, which I guess is not optimal. Please
comment.
In the code directory there is a special tests directory, which contains
all the unit test files. There is the file alltests.py which collect
Hi,
for some time I try to find the best test code organization. I've come up with
the following solution, which I guess is not optimal. Please comment.
In the code directory there is a special tests directory, which contains all
the unit test files. There is the file alltests.py which collects
On Fri, 2 Sep 2005, Jack Anema wrote:
> TEST
Hi Jack,
We're here. Do you have a question about learning Python?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
TEST
Jack Anema
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
TEST
Jack Anema
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Asif Iqbal wrote:
>On Fri, Jun 17, 2005 at 07:41:17AM, Chad Crabtree wrote:
>
>
>>How about this.
>> >>> from random import choice
>> >>> alist=[choice(range(100)) for x in range(1000)] #just making a
>>
>>
>
>How do I do this in python?
> alist < /tmp/logfile
>
>The logfile has the list of
On Fri, Jun 17, 2005 at 07:41:17AM, Chad Crabtree wrote:
> How about this.
> >>> from random import choice
> >>> alist=[choice(range(100)) for x in range(1000)] #just making a
How do I do this in python?
alist < /tmp/logfile
The logfile has the list of entries.
--
Asif Iqbal
PGP Key: 0xE6269
How about this.
>>> from random import choice
>>> alist=[choice(range(100)) for x in range(1000)] #just making a
list
to look at pretend this is a file
>>>
>>> counter={}
>>> for item in alist:
... if item in counter.keys():
... counter[item]+=1
... else:
... counter[i
Hi All
I have a very simple problem and I am looking for the simplest solution.
I have a list of elements in a file. I like to find the total occurance
of each element in the list like this
10 string1
7 string2
1 string3
from a list which has only string1,string2 and string3 like this
string1
test!
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Test, please disregard.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
test
Jason Christopher Child
Computer Network Services Professionals
Tech Support
505-986-1669
1-877-321-9165
[EMAIL PROTECTED]
VOZ Online
VOIP Install Tech
505-428-7500
1-877-428-7550
___
Tutor maillist - [EMAIL PROTECTED]
http://mail.python.org/m
Jason Christopher Child
Computer Network Services Professionals
Tech Support
505-986-1669
1-877-321-9165
[EMAIL PROTECTED]
VOZ Online
VOIP Install Tech
505-428-7500
1-877-428-7550
___
Tutor maillist - [EMAIL PROTECTED]
http://mail.python.org/mailm
83 matches
Mail list logo