ious as to how you would be dealing with
Unicode file names. How to access file attributes is also
an interesting question (e.g. how to find out whether it is
a symlink, whether it is a hidden file, what the POSIX ACL
is, and what the 8.3 short name is)
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
efore, the documentation must be complete and consistent,
and there should be an agreement as to what this library can do and
what it cannot do.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
name__', 'a0', 'a1', 'a2',
'a3', 'a4', 'a5', 'a6', 'a7', 'a8', 'a9', 'count']
>>> a5
5
(you can put additional parentheses around the string, but not
additional quotation marks)
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
it from Python because of the unicode error
> :-(
You should not do that. In SQLite 3, TEXT fields should always be
UTF-8. That .import did not reject your data sounds like a bug in
.import.
So if you make your input data UTF-8, you should be able to fetch
them easily, and receive Unicode strings
Sybren Stuvel wrote:
> Martin P. Hellwig enlightened us with:
>
>>Personal transportation sucks in the Netherlands, if you live in the
>>Randstad (the area of the above mentioned cities) and you have to
>>travel across the Randstad, you go with the bike and/or
>>bus
Trent Mick wrote:
>>I used the python2.4.MSI from python.org site (dated 3-6-05). I think this
>>was the first time they went to MSI verses an exe based installer.
>>
>>it says Python 2.4 (#60 November 30th, 2004) when I start it.
>
>
> I think Martin has been d
Hi,
I am looking for the reg path that is modified/created by the pyton
installer to associate *.pyc with python.exe as I wish to associate *.pyc
with pythonw.exe
Regards,
Philippe
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am looking for the reg path that is modified/created by the pyton
installer to associate *.pyc with python.exe as I wish to associate *.pyc
with pythonw.exe
Regards,
Philippe
--
http://mail.python.org/mailman/listinfo/python-list
Keir,
I forgot to mention that I want to do it automatically from my application's
installer.
Regards,
Philippe
keirr wrote:
> Philippe,
>
> You wrote: I wish to associate *.pyc with pythonw.exe
>
> is there some reason why Tools->Folder Options->File Types (from a
> Windows Explorer me
Yes Keir, Thanks a lot.
Regards;
Philippe
keirr wrote:
> Philippe,
>
> Windows file associations are in
>
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
>
> Hope that helps you.
>
> All the best,
>
> Keir.
--
http://mail.python.org/mailman/listinfo/python
Lars Gustäbel wrote:
> [Fredrik Lundh]
>
>>han har försökt, men hans tourette tog överhanden:
>
>
> IMHO it's more likely an Asperger's syndrome.
>
> http://en.wikipedia.org/wiki/Asperger_Syndrome
>
I disagree, in his writings I found no evidence of autisme.
Actually most of it can be classif
Peter Hansen wrote:
> Martin P. Hellwig wrote:
>
>> The only thing I am disappointed at his writing style, most likely he
>> has a disrupted view on social acceptable behavior and communication.
>> These skills might be still in development, so perhaps it is
>> r
Stefano Masini wrote:
Although I'm not experienced enough to comment on python stuff itself I
do know that in general there are 2 reasons that people reinvent the wheel:
- They didn't know of the existence of the first wheel
- They have different roads
Those reasons can even be combined.
The m
icode strings?
You tried to explain what "UTF8 encoded in UCS4" might be, but I'm
not sure I understand the explanation: what precise sequence of
statements did you use to create such a thing, and what precisely
does it look like (what exact byte is first, what is second, and so
on)?
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Why not just releasing the *.pyc ?
Regards,
Philippe
Frank Millman wrote:
> Hi all
>
> I am writing a multi-user accounting/business system. Data is stored in
> a database (PostgreSQL on Linux, SQL Server on Windows). I have written
> a Python program to run on the client, which uses w
on the client side, or on the server side? In either case, what
precisely are you trying to do *with Python*?
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
he
> defaultencoding to utf-8?
For Unicode things, you should avoid using byte strings - especially
when it comes to regular expressions. Use Unicode strings instead.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
reate what I need, but I'm hoping there is
> someone out there who can help me (or at least save me a lot of time).
You need two days to figure out the Makefile? Just changing
LDFLAGS/LINKFORSHARED should do the trick.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
he
Python modules as well).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
IShellLinkW. You need to use the *W version to pass characters outside
the ANSI code page.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
literals:
Just try the -U option of the interpreter some time,
which makes all string literals Unicode. If you manage
to get the standard library working this way, you
won't need a per-file decision anymore: just start
your program with 'python -U'.
Regards,
Martin
--
http://
Florian Lindner wrote:
> is there a python lib (preferably in the std lib) to monitor a directory for
> changes (adding / deleting files) for Linux 2.6?
I recommend to use the python-fam library: sf.net/projects/python-fam.
On Debian, just install the python-fam package.
Regards,
Martin
--
ilippe
On Sun, 06 Feb 2005 02:20:34 -0500, Adam DePrince wrote:
> On Sat, 2005-02-05 at 17:04, Tim Peters wrote:
>> [Philippe C. Martin]
>> > I am looking into using the pickle format to store object/complex data
>> > structures into a smart card as it would make
ss that I can ping but has no
name.
How can I do that ?
Regards,
Philippe
--
***
Philippe C. Martin
SnakeCard LLC
www.snakecard.com
***
--
http://mail.python.org/mailman/listinfo/python-list
Thanks you! that did it.
PS: the 'wrong' info I got seems to be in the official howtos
http://www.amk.ca/python/howto/sockets/
Regards,
Philippe
On Mon, 07 Feb 2005 18:23:28 +0100, Diez B. Roggisch wrote:
>> A couple things to notice: we used socket.gethostname() so that the
>> socket woul
Yes it was.
Regards,
Philippe
On Mon, 07 Feb 2005 21:30:28 +, Steve Horsley wrote:
> Philippe C. Martin wrote:
>> Thanks you! that did it.
>>
>
> That makes me wonder what socket.gethostname() was returning.
> It wasn't 'localhost', was it?
Thanks, it was a bind problem: socket.gethostname() returns 'localhost'
where '' is was was needed.
Regards,
Philippe
On Mon, 07 Feb 2005 11:02:13 -0800, Kartic wrote:
>
> Philippe C. Martin wrote:
>> >> My problem is that I cannot connect to my serv
Any clue!
Regards,
Philippe
--
*******
Philippe C. Martin
SnakeCard LLC
www.snakecard.com
***
--
http://mail.python.org/mailman/listinfo/python-list
I'll check, thanks.
Philippe
On Tue, 08 Feb 2005 18:03:11 +, wes weston wrote:
> Philippe C. Martin wrote:
>> Hi,
>>
>> I decided to clean my system and rebuild python from scratch.
>>
>> I downloaded tk8.4.9, tcl8.4.9 and Python2-4.tar.bz2
should make sure to use the DLL version of the C runtime. Otherwise,
you will be mixing multiple C runtimes (one that python24.dll links
with, and one linked statically into your extension); this might cause
troubles (such as memory leaks and crashes).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
program on
Debian sarge later.
In Linux, make sure that LANG is set to a value that allows Python to
infer the encoding of the terminal.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
interfaces
(menus etc) might be displayed as moji-bake, as the user interface
will likely assume CP1252, not CP850.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
, upgrading VisualBasic helped, see
http://www.python.org/2.4/bugs.html
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
jmdeschamps wrote:
Hello
Having cx_Oracle (an Oracle database connector for Python) used it
here where I teach for the last couple of years, and finding it so
easy to use (and install) I was taken aback when I got an error
message telling me it could not load the DLL (complete message below)
Third
denote
two "a" characters. Instead, it is a single character
U+6161.
Is there a trick to read UTF8 encoded file with BOM not decoded?
It's very easy: just drop the first character if it is the BOM.
The UTF-8 codec will never do this on its own.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
on of UCS-2
came along. So while the BOM is now part of all relevant specifications,
it is still "Microsoft crap".
For more details, see:
http://www.unicode.org/faq/utf_bom.html#BOM
"some higher level protocols", "can be useful" - not
"is inherent part of all byte-l
portable
character set is defined here:
http://www.opengroup.org/onlinepubs/007908799/xbd/charset.html
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
For a few months now, I have been used .pyc script under XP without
getting the "DOS" box.
I just re-installed the scripts on another XP box and am now getting the
DOS box !
Something to do with the registry ?
Regards,
Philippe
--
***
Philippe
implementation can use to indicate that wchar_t uses
Unicode (aka ISO 10646) in all locales. Very few
implementations define this constant at this time, though.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
uot; is 1024, "mebi" is
1024*1024 and so forth. "kilo" is 1000.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
t it isn't in glibc 2.3.2.
Again, I suggest to ask the glibc developers as to why
this is so.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
s why it bombed.
How do I fix this?
Most likely, by not installing Python into a path that has spaces in it.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Thomas Guettler wrote:
Is there a way to import a file without creating
a .pyc file?
That is part of PEP 304, which is not implemented
yet, and apparently currently stalled due to lack
of interest.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Scott wrote:
I'm specifically trying to perform step 6. Creating a brand
new project using VC6.
The instructions are outdated. Don't use VC6 to build
extension modules for Python 2.4.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
m, which allows to add Unicode support
to libraries as the need arises. This transition is still in
progress.
Eventually, the primary string type should be the Unicode
string. If you are curious how far we are still off that goal,
just try running your program with the -U option.
Regards,
Martin
--
http://groups-beta.google.com/group/comp.lang.python/msg/dc3474e6c8053336
The official statement is that the MingW compiler is supported, indeed.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
m_rw.books, I see my 'appends' in there, yet the
pickled object does not change.
Any clue ?
Thanks
Philippe
--
*******
Philippe C. Martin
SnakeCard LLC
www.snakecard.com
***
--
http://mail.python.org/mailman/listinfo/python-list
Yes, and that is my initial problem: I seem to write correctly that
'pickle string' to a device, by when I read it back, the appended
information is gone.
On Sat, 19 Feb 2005 19:13:58 +0100, Fredrik Lundh wrote:
> Philippe C. Martin wrote:
>
>> print 'LEN OF
You are correct and I still don't know Python (sigh).
Thanks
Philippe
On Sat, 19 Feb 2005 15:51:18 -0500, Kent Johnson wrote:
> Philippe C. Martin wrote:
>> If I do this:
>>
>>
>>
>> print 'LEN OF BOOK BEFORE APPEND: ', len(pickle.dumps(se
Ilias Lazaridis wrote:
Should a professional developer take python serious?
Yes.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
e of Latin-1:
bytes = "GIOP\x01\0".encode("l1")
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
y
difficult to implement on a per-module basis. The errors typically
don't occur in the module itself, but in some function called by
the module (e.g. a builtin method of the string type). So the
callee would have to know whether the caller has a future
import...
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
automated-build-process, a professional developer
*might* take python serious.
[a false premise can imply anything]
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
support that
strings have.
The main point being, the replacement for 'str' needs to be immutable or
the upgrade process is going to be a serious PITA.
Somebody really needs to take this in his hands, completing the PEP,
writing a patch, checking applications to find out what breaks.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
gs is (as you failed to give a definition when I
last asked), but atleast I would have realized that I
don't understand the question, and refrained from answering
it. Perhaps the question was meant rhetoric.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
e PEP will
be needed. So you should indicate from the beginning whether you
are also willing to work on the implementation. If not, there is
a good chance that the PEP again goes dormant after the
specification is complete.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
atively, a more detailed warning if import _tkinter
failed and TCL_LIBRARY is set could be produced (instead
of silently "fixing" the problem for the user).
Patches in this direction are welcome.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
characters;
a Japanese term for the problem, as Japanese users are familiar with
the problem for a long time)
The Python Unicode type solves these problems for good, but you
need to use it correctly.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
SCII characters in string literals is not deprecated
(assuming there is an encoding declaration in the source); trusting
then that the string literals are utf-8-encoded (and decoding
them such) is fine.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
e (i.e. one with an
incorrect magic), Python will silently ignore the .pyc
file, use the source, and attempt to regenerate the
.pyc file.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ignore the
encoding argument for the case that the object was str() converted,
why should the errors argument not be ignored? It is inconsistent
to ignore one parameter to the decoding but not the other.
Regards,
Martin
(*) I admit that the reasoning for ignoring the encoding is
somewhat flawed. There
other post. UTF-8 might be the wrong choice: the path might be
encoded as, say, ISO-8859-1 on disk, in which case an UTF-8-encoded
path would not be found.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
;Invalid path name", repr(path)
sys.exit(1)
Ultimately, all I'm trying to do is copy some files
around. I'd really prefer to find a programmatic way to make this work
that was independent of the user's configured locale, if possible.
As long as you manage to get a byte st
e the only (one of a very
few?) occasion where Python combines byte+unicode => byte.
Furthermore, it might be that the conversion of the Unicode
string to a file name fails as well.
That said, I still think it is a good idea, so contributions
are welcome.
Regards,
Martin
--
http://mail.python.org
calls to it.
One thing that hasn't been pointed out in this thread yet is that the OP
could just define __unicode__() on his class to do what he wants...
Actually, Steven Bethard wrote "You should either define __unicode__ or
call str() manually on the object."
Regards,
icode coercions are turned off. In such an environment, it
is probably desirable that os.path.join performs no coercion as well,
so this might need to get special-cased.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
e, and therefore st_ino,
has no meaning in the FAT, HPFS, or NTFS file systems.
"""
So we know it has no meaning, but they won't tell us what its value is.
Fortunately, MS ships the source of the CRT in VC, so we know st_ino
is always 0 (as are st_uid and st_gid).
Regards,
Martin
;t anything wrong with taking a
vacation from a project for some time, not even if the vacation
takes a few years :-)
Enough ranting.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
32 bits).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ims that you need an open file to support the
notion of a file identifier).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ur OS
documentation for what valid locale names are; most likely,
"en_US" or "en_US.ISO-8859-1" are supported.
also my second question. once i have this working how do i set the
thousands_sep character to be a "," ?
You don't directly set it. It is a property of
Timothy Smith wrote:
something strange is happening, no matter what i try nothing is a
supported locale and yes it's freebsd 4.10
Sounds like a problem with your operating system. AFAICT, you ought
to have a directory /usr/share/locale on your disk. What is its
contents?
Regards,
Martin
--
?
UTF-16
Why should I need these constants if codecs decoder can handle them without my
help, only specifying the encoding ?
Well, because the codecs don't. It might be useful to add a
"utf-8-signature" codec some day, which generates the signature on
encoding, and removes it on decoding.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
rename the C library (CRT) between
2002 (msvcr7.dll) and 2003 (msvcr71.dll), and you need to make sure
your extension uses the same CRT as the one used to build Python.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ystem to invoke that command, make sure you get the quoting
right in case pathname might contain spaces. attrib.exe is located
in the system folder (windows\system32), so it should be on the PATH.
HTH,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
the individual characters is formed by
the unichr and ord builtin functions, which expect and return integers
between 0 and sys.maxunicode.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
t;stop supporting Py 2.2". Unless you have the
time machine, you can't fix the bugs in old Python releases, and it is
a waste of time (IMO) to uglify the code just to work around limitations
in older interpreter versions.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
return orig(name.encode(sys.getfilesystemencoding(), mode))
os.access=access
Apparently, access is used so rarely that nobody has noticed yet (or
didn't bother to report). os.path.isfile() builds on os.stat(), which
does support Unicode file names.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
s really surprising that you get this, as the only occurrence of
the string "string/unicode conversion" in Python was *removed* in
Python 2.4. It was present in 2.3, and occurred if strtoul returned
an overflow error.
Are you sure you are using Python 2.4?
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
(more specifically, the
build_py command), or you modify the relevant bdist_* command to not
include the "built" .py files into the binary distribution.
Once you have implemented the derived commands, you pass them to the
setup function in the cmdclass keyword argument.
Regards,
Mart
processing, and both
simply dropping it, or reporting an error are both acceptable behaviour.
Applications that need the ZWNBSP behaviour (i.e. want to indicate that
there should be no break at this point) should use U+2060 (WORD JOINER).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
might to
replace extract.c largely with Python source code, and run this in
an interpreter...
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
) for details of
the bugs squished in this release.
I'd like to encourage feedback on whether the Windows installer works
for people. It replaces the VBScript part in the MSI package with native
code, which ought to drop the dependency on VBScript, but might
introduce new incompatibilities.
Regar
oding. On most systems, this encoding is
good for usage on the file system API, except for MacOS X, which
uses UTF-8 to encode file names regardless of user or system
settings.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ing that's displayed on tk widgets should be ok (I hope).
So do I.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
), but the installer didn't say
anything about being unable to write the file.
Ah, ok. I'll see whether I can reproduce this.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
(but then, it doesn't allow to select a target directory,
so you can have only as many installations as you find in the
registry).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
uninstall
first, then install the new package, as installer will then
quickly detect that all files are new.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
that locale.CODESET raises
an AttributeError.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
imes do so in a surprising manner (*).
I've been picking on the BSD license because I can remember
the complaints Larry has about its text.
Regards,
Martin
(*) If you are curious: Larry argues that, while the permission to
use is meaningless in copyright law, it is meaningful in patent
law. To us
into the
Python CVS, but they are requested to avoid adding new features to
Python 2.4.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
,
and this applies to Java only, so it should be irrelevant.
Of course, if 4.3 would fix a serious bug that affects Python users,
it might be necessary to reconsider. From the huge change list of bug
fixes in 4.3, I cannot tell which of these fixes affect Python users.
Regards,
Martin
--
http://mail
nect, but then the
application rejects its service because of missing credentials or
some such should be different.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
, a license should state
what jurisdiction it applies to.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ing both in add-and-remove programs.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
s only one python24.dll - atleast if this is an "allusers" installation.
I'll see what I can do wrt. telling the user, but I may not find the
time; contributions are welcome.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ython24.dll first
in the directory of python.exe (where no DLL should have been found),
and would only fallback to system32 then (which it didn't in your case).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
eeze a little extra time
out of the startup, perhaps sorting the list at build-time,
rather than when Python starts would be good. Although probably
not worth the trouble. ;-)
Probably not. config.c is hand-written in some (embedded Python)
environments, and expecting it to be sorted would break
Richie Hindle wrote:
Yes, that's what's happened. I've copied the new python24.dll into
C:\python24, and everything now thinks it's 2.4.1c1. Sorry about that.
Is there a reason to keep in c:\python24? Just removing it there should
work as well.
Regards,
Martin
--
http://mai
1801 - 1900 of 4331 matches
Mail list logo