Ok, seems it's my console setting. Tried console with koi8-r (from
http://vak.ru/doku.php/macosx-russian), and it looks ok there. Mean the
satndard output, but still getting "D" chars instead of russian when trying
to convert it to html via HTMLTestRunner (see
http://tungwaiyip.info/software/HTMLTe
OK, your console is set to 'ascii' ('cp437' was my example and is the
Windows console encoding). 'ascii' won't be able to display Russian.
It shouldn't have displayed the "ИзвениÑ" characters either.
Are you still running on the same terminal that display those
characters? Can you change yo
And in case:
# coding: utf-8
import traceback
try:
raise Exception(u'Зрегиться')
except Exception,e:
print traceback.format_exc().decode('utf-8').encode('cp437', 'replace')
Getting
beryl:~ oleg$ python ./wish/newaccount/reg.py
Traceback (most recent call last):
File "./wish/newaccount
The Exception is output in the encoding of the source file. If the terminal
you are displaying the exception on is in a different encoding, it will be
garbled. I'm not familiar with OS X's terminal. Try running python and
printing sys.stdout.encoding.
Alternatively, wrap your code in a try/e
I am trying to save a Tkinter canvas to a postscript file.
This script creates an image on screen and it creates a postscript file. But
the image in the file seems to be trashed.
I'm working on OSX, but similar problems in a larger program failed (same way)
in unix.
JL
#DwV_p
>
> The code
# -*- coding: utf-8 -*-
#!/usr/bin/python
"""
This test case check how system works in the situation, when user tries to
use already
used username (domain)
We are creating two accounts with such parameters:
1. Sex = Femle
2. Name1=Name2 = foobar%S
3. Pass1 = Name
4. Pass2 = Name
In [1]: import sys
In [2]: sys.getdefaultencoding()
Out[2]: 'ascii'
In [3]: sys.stdout.encoding
Out[3]: 'US-ASCII'
On Thu, Jul 17, 2008 at 6:29 AM, Oleg Oltar <[EMAIL PROTECTED]> wrote:
> Seems need help there. Start getting
>
> Traceback (most recent call last):
> File "./newaccount/Same_dom
Seems need help there. Start getting
Traceback (most recent call last):
File "./newaccount/Same_domain_name.py", line 56, in
test_create_account_to_check
print sel.get_text("check_username_block")
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4:
ordinal not in range
On 17/07/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Okay so i have a list of lists just as you describe below...I hate to make
> myself look really stupid...but I don't see how this converts to a tree
> structure...I was looking at this earlier and I guess what's confusing me
> are th
John--
Thanks again - I so appreciate your direction!
Okay so i have a list of lists just as you describe below...I hate to make
myself look really stupid...but I don't see how this converts to a tree
structure...I was looking at this earlier and I guess what's confusing me
are the duplicates...d
On Wed, 16 Jul 2008, Terry Carroll wrote:
> The obvious thing to do is to also filter by PID, which is the second
> element; Of course that opens a new question: how to find one's own PID
> from within Python. More googling awaits.
And, while searching for that, I found out hwo to find mem
Another possibility - do you have a coding declaration in your source
file, something like
# -*- coding: -*-
If so, does the coding declaration match the actual encoding of the file?
Kent
On Wed, Jul 16, 2008 at 5:11 PM, Kent Johnson <[EMAIL PROTECTED]> wrote:
> On Wed, Jul 16, 2008 at 2:40 PM,
On Wed, Jul 16, 2008 at 8:10 PM, Alan Gauld <[EMAIL PROTECTED]> wrote:
>
> "Dick Moores" <[EMAIL PROTECTED]> wrote
>
> Caveat: I have no experience with IPython whatsoever.
>
>> I have a big, 2000-line module, mycalc.py that is a collection of
>> useful functions, most written by myself. I often i
On Thu, 17 Jul 2008, John Fouhy wrote:
> tasklist is the Windows version of ps. You could try something like
> 'tasklist /FI "IMAGENAME eq python.exe"', though you'd then have to
> parse the output.
Thanks! I just found that too! (Alan's suggestiom made me thing of
googling for "ps equivalent
On 17/07/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Do you have any pointers on how to get from here
>
> continent = ["australia", "europe", "america", "asia"]
> country = [["spain", "germany", "belgium"], ["united states", "canada"]]
> state = ["california", "oregon", "arizona"]
>
>
On 17/07/2008, Terry Carroll <[EMAIL PROTECTED]> wrote:
> ps doesn't show memory usage as far as I can tell (that may be a cygwin
> thing; I see some references online that suggest it can in some
> environments). I don't have top or vmstat, but I'll look into those.
Hmm, yeah, cygwin ps seems q
Thanks also for your help!
So taking into account that tree data structures can be created as a
nested tuples...
Do you have any pointers on how to get from here
continent = ["australia", "europe", "america", "asia"]
country = [["spain", "germany", "belgium"], ["united states", "canada"]]
state
On Thu, 17 Jul 2008, Alan Gauld wrote:
> With cygwin you should have top, vmstat and of course ps.
> All of these can monitor system status,. top being very similar to
> XPs Task Manager process view but in a text window. vmstat will
> not tell you process IDs, just report total usage. And ps is s
"Terry Carroll" <[EMAIL PROTECTED]> wrote
Is there anything within Python (I'm on 2.5) that can check this?
Failing
that, are there any Windows/XP line-oriented commands that I could
invoke
and parse the output of? (I also have Cygwin installed, in case
there are
any gnu-based commands that
"Dick Moores" <[EMAIL PROTECTED]> wrote
Caveat: I have no experience with IPython whatsoever.
I have a big, 2000-line module, mycalc.py that is a collection of
useful functions, most written by myself. I often import one or
another function from it and use it in the Ulipad shell. Then I see
t
Hi!
Thanks for much for your reply! I'm sorry my posting was so
confusing...It's partially because my understanding is so hazy right now.
I'm trying to piece together what I should do next...
Based on your example...
My understanding is that if I desire the following tree control structure
in m
Is there any way of having my program see how much memory it's using?
I'm iterating through a vey large tarfile (uncompressed, it would be about
2.4G, with about 2.5 million files in it) and I can see from some external
monitors that its virtual storage usage just grows and grows, until my
whole s
At 02:07 PM 7/16/2008, Kent Johnson wrote:
On Wed, Jul 16, 2008 at 4:31 PM, Dick Moores <[EMAIL PROTECTED]> wrote:
> At 10:31 AM 7/16/2008, Kent Johnson wrote:
>>
>> Just quit and relaunch?
>>
>> Kent
>
> Well, if that what Kent, a long-time IPython user does, I guess I'm stuck
> with doing that,
On Wed, Jul 16, 2008 at 2:40 PM, Oleg Oltar <[EMAIL PROTECTED]> wrote:
> Hi I am using unittest framework with selenium.
>
> When I tried this code (my verification point)
>
> self.assertEqual(True, sel.is_text_present(u"Извените пароли не
> совпадают"), "System didn't give a correct warnin
On Wed, Jul 16, 2008 at 4:31 PM, Dick Moores <[EMAIL PROTECTED]> wrote:
> At 10:31 AM 7/16/2008, Kent Johnson wrote:
>>
>> Just quit and relaunch?
>>
>> Kent
>
> Well, if that what Kent, a long-time IPython user does, I guess I'm stuck
> with doing that, but I don't like it.
Actually I don't do th
At 10:31 AM 7/16/2008, Kent Johnson wrote:
Just quit and relaunch?
Kent
Well, if that what Kent, a long-time IPython user does, I guess I'm
stuck with doing that, but I don't like it.
Dick
___
Tutor maillist - Tutor@python.org
http://mail.pyth
2008/7/16 Neven Goršić <[EMAIL PROTECTED]>:
> On Wed, Jul 16, 2008 at 2:02 PM, Tim Golden <[EMAIL PROTECTED]> wrote:
>> Neven Goršić wrote:
>>>
>>> Hi!
>>>
>>> I am using Python 2.5.2 on WinXP Pro and I want to detect all disk drives.
>>> I have C:, D: and E: hard disks and F: DVD ROM.
>>
>> Use WM
Hi I am using unittest framework with selenium.
When I tried this code (my verification point)
self.assertEqual(True, sel.is_text_present(u"Извените пароли не
совпадают"), "System didn't give a correct warning about the password
misstype")
Where u"Извените пароли не совпадают" is russian
Just quit and relaunch?
Kent
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I mean something equivalent to what you get when you do a Ctrl+F6 in IDLE:
>>> import math
>>> math.log(3)
1.0986122886681098
>>> === RESTART
===
>>> math.log(3)
Traceback (most recent call last):
File ""
On Wed, Jul 16, 2008 at 2:02 PM, Tim Golden <[EMAIL PROTECTED]> wrote:
> Neven Goršić wrote:
>>
>> Hi!
>>
>> I am using Python 2.5.2 on WinXP Pro and I want to detect all disk drives.
>> I have C:, D: and E: hard disks and F: DVD ROM.
>
> Use WMI:
>
> http://timgolden.me.uk/python/wmi_cookbook.html
Neven Goršić wrote:
That is OK. But when I run program with that single command
from Windows Explorer I get Windows alert Window:
"No disk! Please insert a disk into drive F:"
That alert stops program and I must respond with: Cancel, Try again or Continue.
The alert remains even with try, excep
Neven Goršić wrote:
Hi!
I am using Python 2.5.2 on WinXP Pro and I want to detect all disk drives.
I have C:, D: and E: hard disks and F: DVD ROM.
Use WMI:
http://timgolden.me.uk/python/wmi_cookbook.html#find-drive-types
(mutatis mutandis)
When I try to use os.access method with writing c
On Wed, Jul 16, 2008 at 2:58 AM, Oleg Oltar <[EMAIL PROTECTED]> wrote:
> Is that possible to run test cases independently (without unittest.main) and
> how to do it
>
> E.g. I tried it this way:
>
> import random
> import unittest
>
> class TestSequenceFunctions(unittest.TestCase):
>
> def setU
Hi!
I am using Python 2.5.2 on WinXP Pro and I want to detect all disk drives.
I have C:, D: and E: hard disks and F: DVD ROM.
When I try to use os.access method with writing checking I get True
testing DVD ROM Drive with DVD media inside (which is not writable).
1. Why? DVD disk is not writable!
Is that possible to run test cases independently (without unittest.main) and
how to do it
E.g. I tried it this way:
import random
import unittest
class TestSequenceFunctions(unittest.TestCase):
def setUp(self):
self.seq = range(10)
def testshuffle(self):
# make sure the
36 matches
Mail list logo