I don't know much about fortran+python, but I work with someone who does,
and he absolutely loves this tool:
http://cens.ioc.ee/projects/f2py2e/
http://cens.ioc.ee/projects/f2py2e/Daniel
On Tue, Dec 7, 2010 at 10:19 PM, Dennis Lee Bieber wlfr...@ix.netcom.comwrote:
On Tue, 07 Dec 2010 12:52:54
If I have a medium to large python code base to browse/study, what are the
class browsers available?
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 7, 9:03 pm, utabintarbo utabinta...@gmail.com wrote:
I am using tempfile.mkdtemp() to create a working directory on a
remote *nix system through a Samba share. When I use this on a Windows
box, it works, and I have full access to the created dir. When used on
a Linux box (through the
On Wed, 08 Dec 2010 11:58:03 +1100, Ben Finney wrote:
Carl Banks pavlovevide...@gmail.com writes:
On Dec 6, 4:17 pm, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
Nevertheless, I agree that in hindsight, the ability to sort such
lists is not as important as the consistency
On Wed, 08 Dec 2010 00:47:37 +0100, Steve Holden wrote:
On 12/6/2010 8:00 PM, Antoine Pitrou wrote:
On Sun, 05 Dec 2010 14:47:38 -0500
Terry Reedy tjre...@udel.edu wrote:
On 12/5/2010 3:31 AM, Greg wrote:
For future reference,
1) At http://docs.python.org/py3k/reference/datamodel.html: 2)
Hi Steve,
I may put some stupid questions because I am very new to Python, but... I heard
about pypi/pip. Aren't all these Python libraries (like cxFreeze) provided on a
central archive where we can get them and also report the bugs using a single
request/issue tracker?
Octavian
-
Am 08.12.2010 03:23, schrieb Yingjie Lan:
Hi,
According to the doc, group(0) is the entire match.
m = re.match(r(\w+) (\w+), Isaac Newton, physicist)
m.group(0) # The entire match 'Isaac Newton'
But if you do this:
import re
re.sub(r'(\d{3})(\d{3})', r'\0 to \1-\2', '757234')
On Tue, 07 Dec 2010 15:08:23 -0800, John Nagle wrote:
If you're thinking hard about this, I recommend viewing Alexander
Stepanov's talk at Stanford last month:
http://www.stanford.edu/class/ee380/Abstracts/101103.html
He makes the point that, for generic programs to work right,
Is there any way by which configParser's get() function can be made
case insensitive?
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 7, 3:11 am, Alex van der Spek zd...@xs4all.nl wrote:
Does anyone know how to call functions from FORTRAN dlls in Python? Is it
even possible? I browsed the documentation for Python 2.6.1 and the Python/C
API comes close to what I would like to do but it is strictly limited to C.
On Dec 8, 10:09 am, Octavian Rasnita orasn...@gmail.com wrote:
Hi Steve,
I may put some stupid questions because I am very new to Python, but... I
heard about pypi/pip. Aren't all these Python libraries (like cxFreeze)
provided on a central archive where we can get them and also report the
On Dec 8, 10:09 am, Octavian Rasnita orasn...@gmail.com wrote:
Hi Steve,
I may put some stupid questions because I am very new to Python, but... I
heard about pypi/pip. Aren't all these Python libraries (like cxFreeze)
provided on a central archive where we can get them and also report the
On Tue, 07 Dec 2010 07:52:06 -0800, gst wrote:
Hi,
I met a situation where I was passing an object created in/with an upper
level module class to a lower level module class' instance in one of its
__init__ argument and saving a ref of the upper object in that lower
level class' new
On 8 Dic, 11:32, RedBaron dheeraj.gup...@gmail.com wrote:
Is there any way by which configParser's get() function can be made
case insensitive?
If you don't care about the case of the config parameter values, you
could pre-convert the input to
configParser all in UPPER or lower letter with a
Rustom Mody wrote:
If I have a medium to large python code base to browse/study, what are
the class browsers available?
vim + ctags is one of them.
JM
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 8, 10:32 am, RedBaron dheeraj.gup...@gmail.com wrote:
Is there any way by which configParser's get() function can be made
case insensitive?
I would probably subclass dict to create a string specific, case
insensitive version, and supply it as the dict_type. See
On 8 déc, 11:45, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Tue, 07 Dec 2010 07:52:06 -0800, gst wrote:
Hi,
But in my IDE I want the completion to also work from within the lower
level module when it's refering to the object passed from the upper
level:
The
On 12/08/2010 03:47 AM, Steven D'Aprano wrote:
Or a list that needs to be presented to a human reader in some arbitrary
but consistent order.
Or a doctest that needs to show the keys in a dict:
d = myfunction()
sorted(d.keys())
['ham', 'spam', 42, None]
[snip]
Agreed,
Hello,
On Mon, Dec 06, 2010 at 04:08:16AM +, MRAB wrote:
I'm looking for examples of regexes which are
slow (especially those which seem never to
finish) but whose results are known.
does it have anything to do with
http://swtch.com/~rsc/regexp/regexp1.html?
--
With best regards,
xrgtn
Hi all,
I wonder if anyone can explain some weird behaviour in Python.
What I'm trying to do is to execute a string of python code through
the 'exec' statement. I pass an instance of my Global class, which
acts like a dict. By overriding the __getitem__ method, the Global
should pretend that a
Thanks for the reply.
The relevant function (in a module) is as follows:
def createWorkDir(pathdir=k:\\):
import tempfile, os
if os.name == 'posix':
pathdir = os.path.join(config.get('paths', 'MOUNTPOINT'),
'subdir1')
else:
pathdir =
On 12/8/2010 1:01 PM, gst wrote:
As I told I try to have some kind of ultimate autocompletion, always
working for this kind of case (I know exactly that a certain member of
a certain class' instance will always have the same type but my IDE
doesn't seem to guess/know it.. ; I guess the best
On 8 déc, 14:09, Steve Holden st...@holdenweb.com wrote:
If you'd told us which IDE you were using we might have offered better
advice, but you seem to want to keep that a secret (my IDE tells us
nothing).
sorry it was totally bottom of my first message :
note: I'm using Eclipse 3.5.2 with
I am trying to understand how much memory is available to a 64 bit python
process running under Windows XP 64 bit.
When I run tests just creating a series of large dictionaries containing
string keys and float values I do not seem to be able to grow the process
beyond the amount of RAM present.
gst wrote:
greg.
nb: so this hack is only relevant during dev ; once the project
would be finished the hack could be removed (i.e : in class2 init I
would directly do : self.object1 = object1)
Expect some bugs then on the 'release' version.
I'm not sure I understood everything you
On 8 déc, 15:51, Jean-Michel Pichavant jeanmic...@sequans.com wrote:
Hi,
gst wrote:
nb: so this hack is only relevant during dev ; once the project
would be finished the hack could be removed (i.e : in class2 init I
would directly do : self.object1 = object1)
Expect some bugs then on
On 8 déc, 16:20, gst g.sta...@gmail.com wrote:
On 8 déc, 15:51, Jean-Michel Pichavant jeanmic...@sequans.com wrote:
Hi,
gst wrote:
nb: so this hack is only relevant during dev ; once the project
would be finished the hack could be removed (i.e : in class2 init I
would directly do :
On 8 déc, 16:20, gst g.sta...@gmail.com wrote:
even with the assert(self is _self) in the if _self: condition in
the new and/or init methods of the class1 ?
damn : in the init method only of course..
--
http://mail.python.org/mailman/listinfo/python-list
quoting eclipse page:
Pydev [...] uses advanced type inference techniques to provide features
such code completion and code analysis
I don't know exactly what's hidden behind this marketing stuff. Did you
try to document your method with a markup language supported by Eclipse
(if there is
On Dec 7, 10:52 am, gst g.sta...@gmail.com wrote:
Hi,
I met a situation where I was passing an object created in/with an
upper level module class to a lower level module class' instance in
one of its __init__ argument and saving a ref of the upper object in
that lower level class' new
On 08/12/2010 12:42, Alexander Gattin wrote:
Hello,
On Mon, Dec 06, 2010 at 04:08:16AM +, MRAB wrote:
I'm looking for examples of regexes which are
slow (especially those which seem never to
finish) but whose results are known.
does it have anything to do with
On Tue, Dec 7, 2010 at 11:11 AM, Alex van der Spek zd...@xs4all.nl wrote:
Does anyone know how to call functions from FORTRAN dlls in Python? Is it
even possible? I browsed the documentation for Python 2.6.1 and the Python/C
API comes close to what I would like to do but it is strictly limited
Couple of things:
I don't think this is what you want:
def __getitem__(self, key):
import __builtin__
if key == 'xx':
return 'xx'
I won't return a KeyError for any string you give g[]
It will return 'xx' only if you supply key='xx' and ignore every other
key=???
Shouldn't
return 'xx'
be
return self['xx']
--
http://mail.python.org/mailman/listinfo/python-list
Shouldn't
return 'xx'
be
return self['xx'
I don't know why precisely you're using a class as a global namespace,
not that I personally find fault with it. But here are some other
things you can do.
Idea one:
==
class NS(object): place
Hi,
I recently got caught on tempfiles with respect to
urllib.urlretrieve, which can create a tmpfile. Ah, but the file
simply could not be found on the file system, even as root. But
within the program that created the tmpfile, you could do useful
things with the tmpfile. So the discussion
Hello,
Can somebody explain this strange (to me) effect please.
In this program it is impossible to access a global variable within a
function:
$ cat /tmp/test.py
x='xxx'
def f():
print x
del x
f()
$ python /tmp/test.py
Traceback (most recent call last):
File /tmp/test.py, line
Am 08.12.2010 19:05, schrieb astar:
Hi,
I recently got caught on tempfiles with respect to
urllib.urlretrieve, which can create a tmpfile. Ah, but the file
simply could not be found on the file system, even as root. But
within the program that created the tmpfile, you could do useful
Hi all,
i remember i've found somewhere (i think here but i'm not sure) a
signature of a user with a strange python code that, if runned on
terminal, reveal the email of the contact
Can anyone help me finding it?
thanks
Nico
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 2010-12-08 at 13:18 +0530, Rustom Mody wrote:
If I have a medium to large python code base to browse/study, what are
the class browsers available?
Monodevelop has good Python support which includes a working Python
class browser for Python projects solutions.
Am 08.12.2010 10:31, schrieb Alex Willmer:
2. When you say I am unable to access. Do you mean another script/
process is unable to access? If so, that is the point of mkdtemp() -
to make a temporary directory that _only_ the creating process can
access. If you want to share it then tempfile is
On 08/12/2010 18:06, alust wrote:
Hello,
Can somebody explain this strange (to me) effect please.
In this program it is impossible to access a global variable within a
function:
$ cat /tmp/test.py
x='xxx'
def f():
print x
del x
f()
$ python /tmp/test.py
Traceback (most recent
I'm a bit late to the discussion, but remembering that raise takes an
expression, I can break it up like this:
raise (
... Exception (
... Long
... exception
... text.
... )
... )
Traceback (most recent call last):
File stdin, line 3, in module
Exception: Long exception text
Then, you can
Please try adding global x to the beginning of f().
On Wed, Dec 8, 2010 at 10:06 AM, alust al...@alust.homeunix.com wrote:
Hello,
Can somebody explain this strange (to me) effect please.
In this program it is impossible to access a global variable within a
function:
$ cat /tmp/test.py
On 12/08/2010 11:53 PM, Tracubik wrote:
Hi all,
i remember i've found somewhere (i think here but i'm not sure) a
signature of a user with a strange python code that, if runned on
terminal, reveal the email of the contact
Can anyone help me finding it?
thanks
Nico
import base64
encoded =
I have a simple type derived from bytes...
class atom(bytes):
pass
... that I cannot deepcopy(). The session below demonstrates how
deepcopy() of bytes works fine, but deepcopy() of atom does not.
What's going wrong?
Thanks,
Dan.
Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC
On 12/8/2010 8:01 AM, Jonathan S wrote:
class Global(dict):
def __init__(self):
pass
def __getitem__(self, key):
import __builtin__
if key == 'xx':
return 'xx'
if hasattr(__builtin__, key):
return getattr(__builtin__, key)
Mark Wooding wrote:
Any code called from within the `with handler' context will (unless
overridden) cause a call `toy(x, 0)' to return 42. Even if the `with
handler' block calls other functions and so on. Note also that the
expression of this is dynamically further from where the error is
OKB (not okblacke) brennospamb...@nobrenspambarn.net writes:
This is an interesting setup, but I'm not sure I see why you need
it. If you know that, in a particular context, you want toy(x, 0) to
result in 42 instead of ZeroDivisionError,
... and that's the point. You don't know
On 12/7/2010 3:59 PM, Mark Wooding wrote:
Exactly one of
a b
a = b
a b
is true, or an type exception must be raised.
This will get the numerical people screaming. Non-signalling NaNs are
useful, and they don't obey these axioms.
As a sometime numerical person, I've been
On 12/8/2010 2:42 PM, Dan wrote:
I have a simple type derived from bytes...
class atom(bytes):
pass
... that I cannot deepcopy(). The session below demonstrates how
deepcopy() of bytes works fine, but deepcopy() of atom does not.
What's going wrong?
Thanks,
Dan.
Python 3.1.2
On 12/8/2010 1:47 AM, Steven D'Aprano wrote:
On Wed, 08 Dec 2010 11:58:03 +1100, Ben Finney wrote:
Carl Bankspavlovevide...@gmail.com writes:
On Dec 6, 4:17 pm, Steven D'Apranosteve
+comp.lang.pyt...@pearwood.info wrote:
Nevertheless, I agree that in hindsight, the ability to sort such
In article idosir$45...@dough.gmane.org,
Terry Reedy tjre...@udel.edu wrote:
On 12/8/2010 2:42 PM, Dan wrote:
I have a simple type derived from bytes...
class atom(bytes):
pass
... that I cannot deepcopy(). The session below demonstrates how
deepcopy() of bytes works fine, but
On Dec 8, 2010, at 5:09 AM, Octavian Rasnita wrote:
Hi Steve,
I may put some stupid questions because I am very new to Python, but... I
heard about pypi/pip. Aren't all these Python libraries (like cxFreeze)
provided on a central archive where we can get them and also report the bugs
I manually log into a remote shell and so some stuff. After I do some
stuff, I want the rest of the session to be automated. I've tried
pexpect using the interact() function. However, I don't see any way to
go into non-interactive mode going this route. Ideas?
--
On 12/8/2010 7:11 PM, Ned Deily wrote:
In articleidosir$45...@dough.gmane.org, Terry
Reedytjre...@udel.edu wrote:
On 12/8/2010 2:42 PM, Dan wrote:
I have a simple type derived from bytes...
class atom(bytes): pass
... that I cannot deepcopy(). The session below demonstrates
how deepcopy()
On Wed, 08 Dec 2010 13:01:28 -0800, John Nagle wrote:
On 12/7/2010 3:59 PM, Mark Wooding wrote:
Exactly one of
a b
a = b
a b
is true, or an type exception must be raised.
This will get the numerical people screaming. Non-signalling NaNs are
useful, and they don't obey
On Wed, Dec 8, 2010 at 1:01 PM, John Nagle na...@animats.com wrote:
On 12/7/2010 3:59 PM, Mark Wooding wrote:
Exactly one of
a b
a = b
a b
is true, or an type exception must be raised.
This will get the numerical people screaming. Non-signalling NaNs are
Greetings gurus.
I'm faced with the challenge of having a single-threaded proprietary
Win32
language wanting to do multiple calls against a Python COM object.
Something like...
loObj = CREATEOBJECT(map_maker)
loObj.report( params, filename)
do while .True.
yadda yadda
enddo
RETURN
I.e. the
On 12/8/2010 7:56 PM, geremy condra wrote:
On Wed, Dec 8, 2010 at 1:01 PM, John Naglena...@animats.com wrote:
On 12/7/2010 3:59 PM, Mark Wooding wrote:
Exactly one of
a b
a = b
a b
is true, or an type exception must be raised.
Here's an example where this
Thanks for that help. I really appriciate it.
My next question is how do I code or what is the checksum? The sum of
opcode and arguments in hex and then mod 256? Does it include the
compliment opcode and arguments as well? Is the checksum compliment
equal to the sum of the opcode (and arguments)
I am unable to get trace to not trace system modules.
I tried:
$ python -m trace --listfuncs tt.py --ignore-module 'bdb' tracefile
$ python -m trace --listfuncs --ignore-dir /usr/lib/python2.6 tt.py
tracefile
and many other combinations
But anyhow my tracefile contains lines like this:
Any ideas would be great on this, including pitfalls that people see
in implementing it.
http://docs.python.org/library/string.html#template-strings
regards
Steve
Steve,
Thanks for the tip, I did look at templates and decided that they
weren't quite completely what I was looking for,
On 12/8/2010 11:42 PM, Dennis Lee Bieber wrote:
The page file can be larger than physical memory because it contains
memory images for multiple processes. However, all those images have
to map into the physically addressable memory -- so a process is likely
limited to physical memory,
Senthil Kumaran orsent...@gmail.com added the comment:
py3k fixed in r87128
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8194
___
___
Ronald Oussoren ronaldousso...@mac.com added the comment:
Yet another prove of how much Tk sucks on OSX.
I'm not too happy about only binding Ctrl+button-1, because users will expect
that this is means that button-2 works as well. But if we cannot disable the
default button-2 binding we'll
Ronald Oussoren ronaldousso...@mac.com added the comment:
Oops, 's/prove/proof/'
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10404
___
___
Ned Deily n...@acm.org added the comment:
It could be worse. As I noted in Issue10405, the IDLE breakpoint facility
appears to be officially undocumented on any platform so it's hard to know what
users' expectations are. And there are still Macs out there with only one
button. As a side
diekmann diekm...@in.tum.de added the comment:
The Documentation states:
socket.sendall(bytes[, flags])¶
Send data to the socket. The socket must be connected to a remote socket.
The optional flags argument has the same meaning as for recv() above. Unlike
send(), this method continues to
Michael Foord mich...@voidspace.org.uk added the comment:
Well, the original report is here:
http://code.google.com/p/unittest-ext/issues/detail?id=21
I copied all the details provided into this issue though. Obviously the
original reporter feels that they have a genuine use case.
There is
Antoine Pitrou pit...@free.fr added the comment:
This is not consistent with the results reproduced above, however, the
results from above are exactly what should happen. Maybe there should
be a remark, that the return value of sendall (and send) may be system
dependent.
Pretty much all the
diekmann diekm...@in.tum.de added the comment:
How could it work?
Before sending the actual data to the socket, send an empty packet to the
socket and check if it is still alive. This may be a large performance issue on
a lower level (if the connection is TCP, we want to wait for the ACK),
R. David Murray rdmur...@bitdance.com added the comment:
Here is a patch that causes _assert_python to remove the refcount lines from
stderr.
--
keywords: +patch
Added file: http://bugs.python.org/file19975/script_helper_del_refcount.patch
___
R. David Murray rdmur...@bitdance.com added the comment:
Hmm. Having posted that it occurs to me that it could be useful to have the
_remove_refcount function in test.support as remove_refcount instead.
--
___
Python tracker rep...@bugs.python.org
New submission from Stefan Krah stefan-use...@bytereef.org:
I'm not sure if this is a documentation issue or a bug. If watchexp=0,
quantize() also allows any number of digits:
x = Decimal(6885998238912213556789006667970467609814)
y = Decimal(1e2)
x.quantize(y)
Traceback (most recent call
Ray.Allen ysj@gmail.com added the comment:
Couldn't repro this on my debian 5.
--
nosy: +ysj.ray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10517
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Well, can this go into Python3.2?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8533
___
Dave Malcolm dmalc...@redhat.com added the comment:
This is very interesting work - thank you!
Sorry for not commenting earlier (very busy), so here are my thoughts so far.
The baseline for the diff appears to be against the py3k branch, in that it
adds back in classes from 2.*: PyIntObject.
Stefan Krah stefan-use...@bytereef.org added the comment:
NaNs, however, are decapitated:
x = Decimal(NaN5357671565858315212612021522416387828577)
y = 0
x.quantize(y, watchexp=0)
Decimal('NaN8315212612021522416387828577')
--
___
Python tracker
New submission from Vladimir K kzm...@yahoo.com:
The following code (see attached file) was intended to remove chr(13) from
end-of-lines under Windows to make the file Unix-compliant but it always
appends chr(13) before chr(10).
I'm under Windows XP.
--
components: IO, Windows
files:
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
On official Python3.2 beta1 windows binary, I noticed following
command fails. (test_tcl alone won't fail)
I couldn't reproduce this on binary built from source without
installation.
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
On Windows, newlines in text files are always translated. Please read
http://docs.python.org/tutorial/inputoutput.html#reading-and-writing-files
--
nosy: +amaury.forgeotdarc
resolution: - invalid
status: open - closed
Changes by Dave Malcolm dmalc...@redhat.com:
--
nosy: +dmalcolm
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1705520
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
More info:
http://docs.python.org/dev/reference/datamodel#special-method-names
http://docs.python.org/dev/reference/datamodel#special-method-lookup-for-new-style-classes
--
nosy: +eric.araujo
___
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
Following tests fails on official Python3.2 Windows binary.
I cannot reproduce this on VC6.
/
C:\Python32.\python -m test.regrtest -v test_time test_strptime
[1/2] test_time
Éric Araujo mer...@netwok.org added the comment:
Oops, that second links has been renamed:
http://docs.python.org/dev/reference/datamodel#special-method-lookup
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10649
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
test___all__ imports a lot of modules, but I found one of
following modules can bring same error.
# just import one of these in test_main(test___all__)
#import idlelib.AutoComplete
#import tkinter.scrolledtext
#import
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I think this happens because
1. test___all__.py imports tkinter module, and it
imports tkinter/_fix.py
2. _fix.py sets TCL_LIBRARY etc as top level routine
3. regrtest.py resets os.environ after test___all__.py ends.
so
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
How about this patch? Is this kind of *fix* acceptable?
# I hope this works.
--
keywords: +patch
Added file:
http://bugs.python.org/file19977/py3k_restore_sys_modules_in_regrtest.patch
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
I'm not sure why this happens, I can see this on
official python3.2 beta1 windows binary.
C:\Python32.\python -m test.regrtest test_datetime
[1/1] test_datetime
test test_datetime failed -- Traceback (most recent call last):
Brian Curtin cur...@acm.org added the comment:
I don't see this on a US/English version of Windows 7 with 3.2b1 installed.
cp932 is the default on a Japanese version, correct?
(I'm not very good with all of this encoding stuff so I don't know how much
help I can be)
--
nosy:
Brian Curtin cur...@acm.org added the comment:
I don't see this on a US/English version of Windows 7 with 3.2b1 installed.
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10654
Michael Foord mich...@voidspace.org.uk added the comment:
So from the stackframe you can only get to the code object not to the function
object and although the code object is also reachable from a decorator it isn't
mutable so we can't mark it in any way. We could in theory 're-build' the
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10654
___
___
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10653
___
___
R. David Murray rdmur...@bitdance.com added the comment:
I'm still working on this, making sure the remaining options that aren't
currently tested have tests and work.
--
assignee: eric.araujo - r.david.murray
___
Python tracker
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Hirokazu,
Please rerun the test with a -v flag like this:
C:\Python32.\python -m test.regrtest -v test_datetime
This should tell us whether the failure comes from C (Fast) implementation or
Python (Pure) one. The test
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I think this is locale problem. With C locale on windows,
wcsftime doesn't return UTF16. (when non ascii characters
are contained)
It is just like
char cbuf[] = ; /* contains non ascii chars in MBCS */
wchar_t
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I'll attach workaround. I used to confirm this works on
VS8, but I don't have VS8 now. I hope this still works.
--
keywords: +patch
Added file: http://bugs.python.org/file19978/py3k_workaround_for_wcsftime.patch
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
ValueError: time data '2010 14 58 01 3 342 \x93\x8c\x8b\x9e
(\x95W\x8f\x80\x8e\x9e)' does not match format '%Y %H %M %S %w %j %Z'
This looks like valid cp932 data to me
b'2010 14 58 01 3 342 \x93\x8c\x8b\x9e
1 - 100 of 154 matches
Mail list logo