Re: [Tutor] test

2017-03-30 Thread boB Stepp
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

[Tutor] test

2017-03-30 Thread bruce
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

Re: [Tutor] Test for type(object) == ???

2017-02-11 Thread Steven D'Aprano
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

Re: [Tutor] Test for type(object) == ???

2017-02-11 Thread Steven D'Aprano
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

Re: [Tutor] Test for type(object) == ???

2017-02-11 Thread eryk sun
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

Re: [Tutor] Test for type(object) == ???

2017-02-10 Thread boB Stepp
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

Re: [Tutor] Test for type(object) == ???

2017-02-10 Thread eryk sun
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 >

Re: [Tutor] Test for type(object) == ???

2017-02-10 Thread boB Stepp
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

Re: [Tutor] Test for type(object) == ???

2017-02-10 Thread eryk sun
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:

Re: [Tutor] Test for type(object) == ???

2017-02-10 Thread boB Stepp
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

Re: [Tutor] Test for type(object) == ???

2017-02-10 Thread eryk sun
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

Re: [Tutor] Test for type(object) == ???

2017-02-10 Thread boB Stepp
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

Re: [Tutor] Test for type(object) == ???

2017-02-10 Thread boB Stepp
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

Re: [Tutor] Test for type(object) == ???

2017-02-10 Thread eryk sun
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

Re: [Tutor] Test for type(object) == ???

2017-02-10 Thread Ben Finney
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,

Re: [Tutor] Test for type(object) == ???

2017-02-10 Thread Alex Kleider
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:~$

Re: [Tutor] Test for type(object) == ???

2017-02-10 Thread Zachary Ware
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

[Tutor] Test for type(object) == ???

2017-02-10 Thread boB Stepp
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

Re: [Tutor] Test discovery not locating module to test

2015-08-20 Thread Peter Otten
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

Re: [Tutor] Test discovery not locating module to test

2015-08-20 Thread boB Stepp
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

Re: [Tutor] Test discovery not locating module to test

2015-08-20 Thread Peter Otten
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) > --

[Tutor] Test discovery not locating module to test

2015-08-19 Thread boB Stepp
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 (

Re: [Tutor] Test to check if values of dictionary are all equal (which happen to be dictionaries)

2014-11-09 Thread Peter Otten
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

[Tutor] Test to check if values of dictionary are all equal (which happen to be dictionaries)

2014-11-09 Thread Jignesh Sutar
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

Re: [Tutor] Test Question

2013-07-01 Thread John Steedman
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

Re: [Tutor] Test Question

2013-07-01 Thread Steven D'Aprano
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

Re: [Tutor] Test Question

2013-07-01 Thread Steven D'Aprano
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

Re: [Tutor] Test Question

2013-07-01 Thread Hugo Arts
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

Re: [Tutor] Test Question

2013-07-01 Thread Dave Angel
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.

[Tutor] Test Question

2013-07-01 Thread John Steedman
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] Test - please ignore

2011-12-15 Thread pierre dagenais
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] test- why no traffic?

2011-01-11 Thread Luke Paireepinart
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

[Tutor] test- why no traffic?

2011-01-11 Thread kbailey
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

Re: [Tutor] test

2010-12-27 Thread Steven D'Aprano
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

Re: [Tutor] test

2010-12-27 Thread Paolino Gianrossi
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

Re: [Tutor] test

2010-12-27 Thread Chrystal
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

[Tutor] Test Automation framework recommendation....

2010-12-15 Thread cajsdy
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

Re: [Tutor] test

2010-11-07 Thread Sandip Bhattacharya
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

Re: [Tutor] test

2010-11-05 Thread David
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

Re: [Tutor] test

2010-11-05 Thread Steven D'Aprano
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/

Re: [Tutor] test

2010-11-05 Thread Luke Paireepinart
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 > _

[Tutor] test

2010-11-05 Thread Danyelle Davis
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

Re: [Tutor] Test Drive Development, DocTest, UnitTest

2010-09-23 Thread Tino Dai
> 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

Re: [Tutor] Test Drive Development, DocTest, UnitTest

2010-09-22 Thread Steven D'Aprano
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

Re: [Tutor] Test Drive Development, DocTest, UnitTest

2010-09-22 Thread Tino Dai
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

Re: [Tutor] Test Drive Development, DocTest, UnitTest

2010-09-22 Thread Tino Dai
> > 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

Re: [Tutor] Test Drive Development, DocTest, UnitTest

2010-09-22 Thread Walter Prins
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

Re: [Tutor] Test Drive Development, DocTest, UnitTest

2010-09-21 Thread Steven D'Aprano
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

[Tutor] Test Drive Development, DocTest, UnitTest

2010-09-21 Thread Tino Dai
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

Re: [Tutor] test again

2010-02-25 Thread Kirk Bailey
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 +-+ .*.

[Tutor] test again

2010-02-25 Thread Kirk Bailey
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

Re: [Tutor] test

2010-02-25 Thread vince spicer
On Thu, Feb 25, 2010 at 4:03 PM, Kirk Bailey wrote: > test > -- > > > Cheers! > -Kirk D Bailey > > THINK > +-+ > .*.| BOX | > ..*+-+ > *** THINK > ___ > Tutor maillist - Tutor@python.

[Tutor] test

2010-02-25 Thread Kirk Bailey
test -- Cheers! -Kirk D Bailey THINK +-+ .*.| BOX | ..*+-+ *** THINK ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.o

Re: [Tutor] test

2008-08-25 Thread Robert Berman
Nope. Kirk Bailey wrote: is my posting getting through? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] test

2008-08-25 Thread W W
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 > ___

[Tutor] test

2008-08-25 Thread Kirk Bailey
is my posting getting through? -- Cheers! -Kirk D Bailey THINK +-+ .*.| BOX | ..*+-+ *** THINK ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/t

[Tutor] Test - please ignore

2008-04-15 Thread bob gailer
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

[Tutor] Test

2008-01-03 Thread PyProg PyProg
It's just a test message -- http://ekd.tolosano.info ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Test

2006-11-28 Thread Jordan Greenberg
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

[Tutor] Test

2006-07-06 Thread Steve Nelson
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

Re: [Tutor] Test If File System is mounted in Linux

2006-03-18 Thread Pawel Kraszewski
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

Re: [Tutor] Test If File System is mounted in Linux

2006-03-17 Thread Bill Campbell
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

Re: [Tutor] Test If File System is mounted in Linux

2006-03-17 Thread Bill Campbell
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

Re: [Tutor] Test If File System is mounted in Linux

2006-03-17 Thread Pawel Kraszewski
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 &

Re: [Tutor] Test If File System is mounted in Linux

2006-03-17 Thread Adam
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

Re: [Tutor] Test If File System is mounted in Linux

2006-03-17 Thread Bill Campbell
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

Re: [Tutor] Test If File System is mounted in Linux

2006-03-17 Thread Michael Lange
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

Re: [Tutor] Test If File System is mounted in Linux

2006-03-17 Thread Noufal Ibrahim
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

[Tutor] Test If File System is mounted in Linux

2006-03-17 Thread fortezza-pyt
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

Re: [Tutor] Test code organization

2006-03-11 Thread Kent Johnson
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

[Tutor] Test code organization

2006-03-09 Thread Willi Richert
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

[Tutor] Test code organization

2006-03-09 Thread Willi Richert
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

Re: [Tutor] TEST to see if this gets out

2005-09-02 Thread Danny Yoo
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

[Tutor] Test to see if this gets out

2005-09-01 Thread Jack Anema
TEST   Jack Anema ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] TEST to see if this gets out

2005-09-01 Thread Jack Anema
TEST   Jack Anema ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] test

2005-06-17 Thread Chad Crabtree
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

Re: [Tutor] test

2005-06-17 Thread Asif Iqbal
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

Re: [Tutor] test

2005-06-17 Thread Chad Crabtree
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

[Tutor] test

2005-06-17 Thread Asif Iqbal
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

[Tutor] test

2005-03-31 Thread Bernard Lebel
test! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Test

2005-02-01 Thread Mark Brown
Test, please disregard. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] test

2004-12-09 Thread Jason Child
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

[Tutor] test

2004-12-07 Thread Jason Child
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