New submission from Konstantin :
In [18]: class Str(str):
...: pass
In [19]: class Class:
...: Str: str
...:
...:
...: Class.__annotations__
Out[19]: {'Str': str}
In [20]: class Class:
...: Str: str = ""
...:
...:
...: Class.__ann
New submission from Konstantin Ryabitsev :
When using as_string(unixfrom=True), the "From " line is not always printed.
The behaviour is correct for as_bytes().
Test case:
import email.message
msg = email.message.EmailMessage()
msg.set_payload('Hello World\n')
msg.set_unix
New submission from Konstantin Ryabitsev :
What it currently does:
>>> import email.utils
>>> email.utils.getaddresses(['Shuming [范書銘] '])
[('', 'Shuming'), ('', ''), ('', '范書銘'), ('', ''), ('', 'shumi...@realtek.com')]
What it should do:
>>> import email.utils
&
konstantin danilov added the comment:
Same error, python3.7. I have attached minifyed code version. It runs into
infinite recursion due to __setattr__ call inside 'with' statement on top of
same object. As result:
> python /tmp/text.py
Fatal Python error: Cannot recover from stack overf
New submission from Konstantin Enchant :
Very strange case but https://www.ietf.org/rfc/rfc2109.txt (see 4.1 Syntax:
General) defines that "= value" is optional for attribute-value pairs for
header Cookie.
And SimpleCookie fully broken if meets attribute without valu
Konstantin Zemlyak added the comment:
Terry J. Reedy wrote:
> Is this still relevant or should it be closed?
Should be closed.
> On Win10, I created a short script юникод.py using Save As from IDLE.
>
> py -2 юникод.py produces
> C:\Programs\Python27\python.exe: can't open
Konstantin Enchant added the comment:
The problem happens only when "nonlocal __something" in a class method. In your
case f2() isn't class method.
More interesting behavior with underscores -
https://gist.github.com/sirkonst/6eff694c45
New submission from Konstantin Enchant:
Code:
# ---
__obj = object()
class Foo:
def f1(self):
nonlocal __obj
f = Foo()
f.f1() # <-- segmentation fault
# ---
--
messages: 257174
nosy: Konstantin Enchant
prior
Konstantin Enchant added the comment:
Yes. Case:
# ---
class A:
def f(self):
nonlocal __x
# ---
must raises SyntaxError like case:
# ---
class A:
def f(self):
nonlocal x
>> SyntaxError: no binding for nonlocal 'x'
Konstantin Molchanov added the comment:
Although I agree that specifying type with store_true or store_false is
unnecessary, this shouldn't really be an error like this. Why not just ignore
type if it can't be utilized?
The error message implies the usage of add_argument is erroneous, however
Changes by Konstantin Molchanov moiga...@live.com:
Added file: http://bugs.python.org/file39919/replace_sequence_with_iterable.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24136
Konstantin Molchanov added the comment:
I've updated the Calls syntax reference in reference/expressions and the
assignment object description in reference/simple_stmts.
Please tell me if I'm generally doing OK. If I'm not, please guide me to the
right direction.
--
Added file: http
Konstantin Molchanov added the comment:
@vadmium thanks for the assistance! I'll kick off with the reference then.
P.S. Am I the only one who doesn't receive any emails from the tracker? I never
got the registration link or a follow-up notification from this issue. Am I
missing something
Konstantin S. Solnushkin added the comment:
Hi, I am curious about the fate of this issue -- whether it will be recognised
as a bug (possibly a regression bug). Remember, it worked in Python 3.3 but
stopped working in 3.4.
--
___
Python tracker rep
Konstantin Tretyakov added the comment:
Do note that things are not as simple as slices with negative indices are
treated differently from scalar negative indicies.
Namely, behaviour differs whether you use [] or .__getitem__, and whether you
use [a:b] or [slice(a,b)]. This does not make
Konstantin Tretyakov added the comment:
Aha, I see. I knew I'd get bitten by not explicitly subclassing (object) one
day.
In any case, adding a reference to this issue into the docs of __getitem__ and
__setitem__ would probably save someone some hours of utter confusion in the
future
New submission from Konstantin Tretyakov:
Consider the following example:
class A:
def __getitem__(self, index):
return True
If you invoke A()[-1], everything is fine. However, if you invoke A()[-1:2],
you get an AttributeError: A instance has no attribute '__len__'.
Moreover
New submission from Konstantin S. Solnushkin:
Somewhere between Python 3.3 and 3.4, a bug was introduced that forbids the
http.server module, working in CGI server mode, to run scripts residing in
subdirectories.
This will break existing software that relies on this feature.
How to reproduce
Konstantin Zemlyak added the comment:
To clarify few things:
- Yes, I know that 256 doesn't fit into byte. I was checking how
bytes/bytearray are handling overflow.
- I know that range() is a half-open interval.
Yet this error message still gave me a wtf moment because I didn't realize
New submission from Konstantin Zemlyak:
Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit
(AMD64)] on win32
Type help, copyright, credits or license for more information.
bytearray([256])
Traceback (most recent call last):
File stdin, line 1, in module
ValueError
New submission from Konstantin Zemlyak:
Running `py.exe юникод.py` in cmd window fails:
E:\set PYLAUNCH_DEBUG=1
E:\py юникод.py
launcher build: 32bit
launcher executable: Console
File 'C:\Users\Zart\AppData\Local\py.ini' non-existent
Using global configuration file 'C:\Windows\py.ini'
Called
Changes by Konstantin Zemlyak z...@zartsoft.ru:
Removed file:
http://bugs.python.org/file33247/pylauncher-fix-launcing-unicode-filenames.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20042
Konstantin Zemlyak added the comment:
Sorry, fixed whitespaces in the patch.
--
Added file:
http://bugs.python.org/file33248/pylauncher-fix-launcing-unicode-filenames.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20042
Konstantin Zemlyak added the comment:
I don't care much about debug output though it probably should be fixed.
The point is that changing text mode of stdout has a weird side effect of
fixing command-line arguments when invoking interactively from cmd.exe
Konstantin Zemlyak added the comment:
There is something weird with my proposed fix. Right after submitting a bug
with patch I've updated pythons on my system - 2.7.5 to 2.7.6, 3.3.2 to 3.3.3,
and installed 3.4.0b1 - both 32- and 64-bit. Then my fixed py.exe stopped
working.
Then I've added
Konstantin Zemlyak added the comment:
Some more fun stuff with command-line (I'm cutting output to few essential
lines for easier reading):
e:\cpython\PCbuild\py.exe юникод.py
...
Called with command line: .py
run_child: about to run 'C:\Program Files (x86)\Python33\python.exe .py'
C:\Program
New submission from Konstantin:
LinkedIn
I'd like to add you to my professional network on LinkedIn.
- Konstantin
Konstantin Aslanidi
Author of opentradingsystem.com
Greater New York City Area
Confirm that you know Konstantin Aslanidi:
https://www.linkedin.com/e/-3qcne3-hesyzdls
Changes by Konstantin Zemlyak z...@zartsoft.ru:
--
title: Decoding error at install time when byte-compiling venv scripts -
Decoding error due to byte-compiling venv scripts at install time
___
Python tracker rep...@bugs.python.org
http
New submission from Konstantin Zemlyak:
When installing python 3.3 under windows and checking Compile .py files to
byte code after installation Lib/venv/scripts/nt/pydoc.py gets precompiled as
well. This causes venv module to abort with Error: 'utf-8' codec can't decode
byte 0x9e in position
Konstantin Zemlyak added the comment:
If option to precompile python files is checked in installer, pydoc.py gets
compiled into binary files Lib\venv\scripts\nt\__pycache__\pydoc.cpython33.pyc
and Lib\venv\scripts\nt\__pycache__\pydoc.cpython33.pyo
Konstantin Zemlyak added the comment:
Also current title is a bit wrong, since decoding error happens in runtime each
time venv is invoked, while the source of the problem happens while
byte-compiling stdlib at install time once.
--
___
Python
Konstantin Zemlyak added the comment:
Not at all. I have installed Python into C:\Program Files (x86)\Python33.
Also made a copy into D:\Python33 and got the same results.
The problem is in file contents (pyc/pyo files are binary, utf-8 fails to
decode them), not in filenames
Changes by Konstantin Nikitin n...@ya.ru:
--
nosy: +stromsund
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11397
___
___
Python-bugs-list mailing
New submission from Konstantin Osipov kostja.osi...@gmail.com:
I'm using a 64 bit system, but the issue is as well repeatable on 32 bit
systems:
kostja@shmita:~$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type help, copyright, credits or license for more
Konstantin Osipov kostja.osi...@gmail.com added the comment:
I was able to observe the same issue:
I'm using Python 2.6.5 on Ubuntu 10.0.4 LTS. My system is 64 bit Intel Core I7,
Quad core, Linux kernel 2.6.32-generic x86_64, Ubuntu EGLIBC 2.11.1-0ubuntu7.5.
A simple client TCP socket, which
Konstantin Svist fry@gmail.com added the comment:
This issue sounds very interesting to me for a somewhat different reason.
My problem is that I'm trying to run multiple processes on separate CPUs/cores
with os.fork(). In short, the data set is the same (~2GB) and the separate
processes do
Konstantin Zemlyak z...@zartsoft.ru added the comment:
Environment variables have always been process-wide. It doesn't deserve any
special mention in threads documentation.
--
nosy: +zart
___
Python tracker rep...@bugs.python.org
http
New submission from Konstantin kaslan...@yahoo.com:
In [12]: def func(x=[]) :
: L=x
: L.append('a')
: return L
:
In [13]: func()
Out[13]: ['a']
In [14]: func()
Out[14]: ['a', 'a']
In [15]: func()
Out[15]: ['a', 'a', 'a']
In [16]: func()
Out[16
Konstantin Pelepelin konstantin.pelepe...@gmail.com added the comment:
Did you test it against server-side form-data parser implementation? It will be
useless if it won't work with most widespread implementations: PHP's and at
least some others (consider some popular python web frameworks
Konstantin Zemlyak z...@zartsoft.ru added the comment:
Win2003 x64, VS2008, vanilla python 2.7rc1 amd64 from python.org.
Building python packages with C extensions works fine. Tested on simplejson,
jinja2 (with enabled speedups) and PIL.
--
nosy: +zart
Konstantin Zemlyak z...@zartsoft.ru added the comment:
64-bit Windows, 64-bit cmd.exe, 64-bit python, not patched::
D:\c:\Program Files\Python27\python.exe
Python 2.7rc1 (r27rc1:81787, Jun 6 2010, 20:03:36) [MSC v.1500 64 bit
(AMD64)]
on win32
Type help
Konstantin Zemlyak z...@zartsoft.ru added the comment:
Tried msvc9compiler-py27.patch. find_vcvarsall() still works with the same
result, while distutils.msvc9compiler.VS_BASE has been changed.
::
distutils.msvc9compiler.find_vcvarsall(9.0)
u'c:\\Program Files (x86
Konstantin Zemlyak z...@zartsoft.ru added the comment:
Using the remote shell, those VS2008 env vars are not set and
so the build fails.
Seems it doesn't load user profile.
The output is:
VS2008 product dir: None - Software\Microsoft\VisualStudio\9.0
VS2008 product dir: None - Software
On Sep 3, 2:21 pm, Olli Virta llvi...@gmail.com wrote:
Hi!
So I got this big textfile. It's full of data from a database. About
150 or
more rows or lines in a textfile.
There's three first rows that belong to the same subject. And then
next
three rows belong to another subject and so on,
Hi,
I wonder if there is a safe way to download page with urllib2. I've
constructed following method to catch all possible exceptions.
def retrieve(url):
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
headers = {'User-Agent':user_agent}
request = urllib2.Request(url,
I mean I don't want to catch all unexpected errors with empty
except: :).
--
http://mail.python.org/mailman/listinfo/python-list
On 14 нояб, 18:12, Steven D'Aprano [EMAIL PROTECTED]
cybersource.com.au wrote:
On Fri, 14 Nov 2008 06:35:27 -0800, konstantin wrote:
Hi,
I wonder if there is a safe way to download page with urllib2. I've
constructed following method to catch all possible exceptions.
See here:
http
('somefile', 'r', 'utf-8')
# ... do the job
handler.close()
I prefer this way to deal with russian in utf-8.
Konstantin.
--
http://mail.python.org/mailman/listinfo/python-list
/RGyupcs5f09UdKxOljhbFKEw46CHDkd9lE+cqy2yhetEwyx3c3+
AVC11sjcO54=
=Oxo3
-END PGP SIGNATURE-
Congratulations!
Konstantin
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I've write a class that actually is data structure with items that
automatically removed from collection when timeout expires. Interface
is pretty simple. First public method is to make a record. And second
(__contains__) is to define if record is actually in table. I prefer
async way to
And if you change the deque for a Queue.Queue, you don't even need a
Lock...
Cheers,
Maxime
Maxime,
thanks, sched module could be a nice solution. I've never used it
before
but it seems to be the right way.
You guessed right. I want to used it in Queue. But this implementation
does
not
Now it's clear.
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I'm not a newbie in python, but recently faced a problem in simple
expression:
some_string[i:j:k]
What does it mean? I believe this grammar (http://docs.python.org/ref/
slicings.html) describes the syntax. But I can't grasp it.
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 22, 9:18 am, alex23 [EMAIL PROTECTED] wrote:
On Jul 22, 3:10 pm, konstantin [EMAIL PROTECTED] wrote:
some_string[i:j:k]
What does it mean?
i = start position, j = end position, k = step size
s = ABABABABABABAB
s[0:6:2]
'AAA'
s = ABCABCABCABCABC
s[0:6:3]
'AA'
Hope
On Tue, Apr 8, 2008 at 4:18 PM, [EMAIL PROTECTED] wrote:
Hallo,
I've a problem getting makepy running. When I start the tool on my
machine with doubleclick everything is fine.
But when I try this in my Code:
makepy.py -i Microsoft Excel 11.0 Object Library(1.5)
This syntax is used to
On Sun, Apr 6, 2008 at 7:43 AM, Jesse Aldridge [EMAIL PROTECTED] wrote:
In an effort to experiment with open source, I put a couple of my
utility files up a href=http://github.com/jessald/python_data_utils/
tree/masterhere/a. What do you think?
Would you search for, install, learn and use
On Fri, Apr 4, 2008 at 6:51 PM, [EMAIL PROTECTED] wrote:
Hello,
Do you know a free software witch can compute a UML class diagram from a
python code. I tested many free UML softwares like BoUML, ArgoUML, Dia,
PNSource (not found) ...
Did you mean /PyNSource/ ?
On Thu, Apr 3, 2008 at 9:21 PM, kc [EMAIL PROTECTED] wrote:
If this has value, do I submit a bug report or does
someone else?
You do :) (http://bugs.python.org)
--
kv
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Apr 2, 2008 at 5:23 PM, [EMAIL PROTECTED] wrote:
Still no luck:
Traceback (most recent call last):
File C:\Python24\Lib\site-packages\pythonwin\pywin\framework
\scriptutils.py, line 310, in RunScript
exec codeObject in __main__.__dict__
File C:\text analysis\pickle_test2.py,
On Wed, Apr 2, 2008 at 9:32 PM, Maurizio Vitale
[EMAIL PROTECTED] wrote:
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] writes:
On Wed, 02 Apr 2008 16:01:59 +, Maurizio Vitale wrote:
And yes, I'm a total beginner when it comes to Python, but it seems
very strange to me that a regex
On Wed, Apr 2, 2008 at 4:52 PM, nnp [EMAIL PROTECTED] wrote:
Is there any other way for data to get onto a queue
Yes, by manipulating Queue.Queue's internal queue attribute directly.
or are there any known bugs with Python's Queue module that could lead to
this kind of behaviour?
Much
On Wed, Apr 2, 2008 at 10:59 PM, [EMAIL PROTECTED] wrote:
I ran into a similar situation like the following (ipython session).
Can anyone please explain why the behavior?
Of course.
From http://docs.python.org/ref/function.html:
Default parameter values are evaluated when the function
On Tue, Apr 1, 2008 at 12:04 PM, Gabriel Genellina [EMAIL PROTECTED]
wrote:
En Tue, 01 Apr 2008 04:15:57 -0300, Jorge Vargas [EMAIL PROTECTED]
escribió:
as for the original question, the point of going unicode is not to
make code unicode, but to make code's output unicode. thin of print
Backward compatibility is important. C++ could break all ties with
C
to clean up as well, but it would be a braindead move that would
break existing code bases upon upgrade.
C++ is not C. No one upgrades from C to C++.
You misunderstand. C++ has a lot of warts to maintain
On Tue, Apr 1, 2008 at 10:42 PM, Alok Kothari [EMAIL PROTECTED]
wrote:
Hello,
I am new to XML parsing.Could you kindly tell me whats the
problem with the following code:
import xml.dom.minidom
import xml.parsers.expat
document = token pos=nnLetterman/tokentoken pos=bezis/
On Mon, Mar 31, 2008 at 11:52 PM, Christian Bird [EMAIL PROTECTED] wrote:
Is it possible to import multiple modules with the same name from
different locations?
This might work:
import imp
util1 = imp.load_source('util1', 'mod1/util.py')
util2 = imp.load_source('util2', 'mod2/util.py')
But
On Sat, Mar 29, 2008 at 3:23 PM, [EMAIL PROTECTED] wrote:
Hello,
Is there any example how can I create executable ... with py2exe
Check out PyBuilder's source code (http://pybuilder.sourceforge.net/).
--
kv
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Mar 29, 2008 at 3:57 PM, Doran, Harold [EMAIL PROTECTED] wrote:
I am a python neophyte who has used python to parse through text files
using basic functions and no OOP experience. I have a need to process some
xml files and from what I am now reading python is the exact tool I need to
)
Do not forget to launch new console (cmd.exe) after editing registry.
Alternatively you can use following command
cat file | python script.py
instead of
cat file | python script.py
Regards,
Konstantin
On Jan 22, 1:02 pm, Rolf van de Krol [EMAIL PROTECTED] wrote:
Well, that's at least
Sorry, I meant:
Alternatively you can use following command
cat file | python script.py
instead of
cat file | script.py
On Jan 22, 1:54 pm, Konstantin Shaposhnikov [EMAIL PROTECTED]
wrote:
Hi,
This is Windows bug that is described
here:http://support.microsoft.com/default.aspx
Hi all
In my MFC application I need to call Python IDLE, pass some terms (or
scripts or values - they are simple strings or memo fields) there so
that user may modify/evaluate/interpret it and then return the
modified terms back to the application.
How can I do it the best way (MFC-IDLE)?
As for
IDLE is a Tkinter/TK IDE for Python... Why would you invoke a whole
IDE to manipulate application data?
It was just an idea. I have never dealt with python before...
I need some hints to understand where the answer to my problem is.
If you already have MFC in the mix,
Hello,
I'm having hard time trying to justify this decimal quirk to my coworker
(he calls it a bug):
ActivePython 2.4.1 Build 247 (ActiveState Corp.) based on
Python 2.4.1 (#65, Jun 20 2005, 17:01:55) [MSC v.1310 32 bit (Intel)] on win32
Type help, copyright, credits or license for more
On 25 Jun 2005 12:17:20 -0700, George Sakkis [EMAIL PROTECTED] wrote:
If they go to itertools, they can simply be:
def map(f, *iterables):
return list(imap(f,*iterables))
def filter(f, seq):
return list(ifilter(f,seq))
from itertools import ifilter
def filter(f, seq):
...
On 6/26/05, Matt Hollingsworth [EMAIL PROTECTED] wrote:
Seems like an _extremely_ elegent language that is very easy to read, so
I suppose it's not really as much of an issue as it is with other
languages. Still, I would like to see what other people do and what are
some good ideas for this
On 6/24/05, Austin [EMAIL PROTECTED] wrote:
def __init__(self,args):
win32serviceutil.ServiceFramework.__init__(self,args)
self.hWaitStop = win32event.CreateEvent(None, 0, 0, None)
self.check = 1
Change last two lines to
self.check = 1
self.hWaitStop =
On 6/25/05, Stephen Prinster [EMAIL PROTECTED] wrote:
guy lateur wrote:
If you are new to Python and want to use it with COM, definitely get
yourself a copy of _Python Programming on Win32_ by Mark Hammond and
Andy Robinson.
...or at least read the chapter available online:
On 6/25/05, Josef Meile [EMAIL PROTECTED] wrote:
You could try to do an addin/addon for Word, Excel, and Outlook. You
don't need to code with VBA. Here you just need a language from where
you can access the microsoft interop assemblies (ie: C++ or C#;
IronPython maybe?)
Hmm... Why jump
On 6/25/05, Uwe Mayer [EMAIL PROTECTED] wrote:
AFAIK super only works with new-style classes, so I checked:
from qtcanvas import *
isinstance(QCanvasItem, object)
True
AFAIK, this is not the right way to check for new-styledness:
class X: i'm an old-styler
isinstance(X(), object)
True
On 6/25/05, Mandus [EMAIL PROTECTED] wrote:
It is really a consensus on this; that
removing map, filter, reduce is a good thing? It will render a whole lot
of my software unusable :(
I think you'll be able to use from __past__ import map, filter,
reduce or something like that :) They don't
On 6/25/05, Steven D'Aprano [EMAIL PROTECTED] wrote:
On Fri, 24 Jun 2005 14:29:37 -0700, James wrote:
2.) Contracts
Explain please.
James probably meant Eiffel's Design by Contract. My favourite Python
implementation is Terence Way's http://www.wayforward.net/pycontract/
;-)
- kv
--
On 6/25/05, Steven D'Aprano [EMAIL PROTECTED] wrote:
On Sat, 25 Jun 2005 17:41:58 +0200, Konstantin Veretennicov wrote:
On 6/25/05, Mandus [EMAIL PROTECTED] wrote:
It is really a consensus on this; that
removing map, filter, reduce is a good thing? It will render a whole lot
of my
On 6/24/05, Lowell Kirsh [EMAIL PROTECTED] wrote:
Is there a module or library anyone knows of that will print html code
indented?
Depends on whether you have to deal with xhtml, valid html or just
any, possibly invalid, pseudo-html that abounds on the net.
Here's an example of (too) simple
On 22 Jun 2005 17:50:49 -0700, Paul Rubin
http://phr.cx@nospam.invalid wrote:
Even on a multiprocessor
system, CPython (because of the GIL) doesn't allow true parallel
threads, ... .
Please excuse my ignorance, do you mean that python threads are always
scheduled to run on the same single
On 6/22/05, Riccardo Galli [EMAIL PROTECTED] wrote:
I propose to add an 'abs' keyword which would make os.listdir return the
absolute path of files instead of a relative path.
What about os.listdir(dir='relative/path', abs=True)? Should listdir
call abspath on results? Should we add another
On 6/24/05, dimitri pater [EMAIL PROTECTED] wrote:
a = 'harry is a strange guy. so is his sister, but at least she is not a
guy. i am.'
b = a.replace('. ', '.')
splitlist = b.split('.')
newlist = []
for i in range(len(splitlist)):
i = ''.join(splitlist[i].capitalize() + '.'
On 23 Jun 2005 12:30:27 -0700, Aditi [EMAIL PROTECTED] wrote:
Thanks for ur effort... And I apologise for being sloppy in writing.
Well I agree the whole project sounds fictitious because it has been
assigned to me in that spirit. The project was explained to me in
just 5 minutes and so these
On 22 Jun 2005 02:47:06 -0700, Aditi [EMAIL PROTECTED] wrote:
i have to make a system used by the IT department of a company which
contains 31 applications and their details which are being used in a
company ...the details are...
Application sub application catagoryplatform
On 6/22/05, Doug Ly [EMAIL PROTECTED] wrote:
Is there a good IDE for Python?
See http://tinyurl.com/8jqjc
- kv
--
http://mail.python.org/mailman/listinfo/python-list
On 6/22/05, Peter Maas [EMAIL PROTECTED] wrote:
Isaac Rodriguez schrieb:
Does anyone know of a Python API to manipulate CAB files?
I guess you'll have to interface with setupapi.dll
(SetupIterateCabinet) via ctypes, or with Microsoft Cabinet utilities
via subprocess module. Neither is what
On 6/23/05, Steve Horsley [EMAIL PROTECTED] wrote:
It is my understanding that Pythons multithreading is done at the
interpteter level and that the interpreter itself is single
threaded. In this case, you cannot have multiple threads running
truly concurrently even on a multi-CPU machine
On 6/22/05, Austin [EMAIL PROTECTED] wrote:
My program is running on windows and it is wrritten by Python and wxPython,
...
Is there any way to dectect windows shutdown or reboot?
Will wx.EVT_END_SESSION or wx.EVT_QUERY_END_SESSION help?
- kv
--
On 20 Jun 2005 22:24:09 -0700, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hello all,
...
I hope somebody will help
me in this regard to unfold this mystery.Bye.
I hope you will explain how this is related to Python.
- kv
--
http://mail.python.org/mailman/listinfo/python-list
On 20 Jun 2005 23:56:50 -0700, Sabin.A.K [EMAIL PROTECTED] wrote:
Will the COM Object be a total solution for my problems? I just try to
make a dll to encapsulate some 'icon and text' files for my
application.
Are you trying to create a windows resource dll? I believe Python
isn't the tool
On 6/21/05, Alexander Eisenhuth [EMAIL PROTECTED] wrote:
Hello alltogether,
I hope somebody can help me in that case. I bet I have overseen s.th..
I have a VC++ IDispatch Com-Server (ATL) and include for error handling
issues a enumeration in the IDL-File.
[...]
enum PROG_ERROR {
On 6/21/05, Chinook [EMAIL PROTECTED] wrote:
When I create the code objects though, it seems a couple different ways work
and I'm wondering which is better and why (or is there a more correct
technique in this situation)?
The two different ways are illustrated below:
...
obj1 =
On 6/21/05, Charles Krug [EMAIL PROTECTED] wrote:
Related question:
What if I need to create/modify MS-Access or SQL Server dbs?
You could use ADO + adodbapi for both.
http://adodbapi.sourceforge.net/
- kv
--
http://mail.python.org/mailman/listinfo/python-list
On 6/21/05, Magnus Lycka [EMAIL PROTECTED] wrote:
I don't know anything about the Python compiler internals,
but it doesn't seem very hard to identify simple literals following
while and if, and to skip the runtime test. (Perhaps it's done
already?)
True doesn't seem to be a literal, it is
On 6/21/05, Jeff Epler [EMAIL PROTECTED] wrote:
If you want to work with unicode, then write
us = u\N{COPYRIGHT SIGN} some text
...and you can get unicode character names like that from unicodedata module:
import unicodedata
unicodedata.name(unichr(169))
'COPYRIGHT SIGN'
See also
On 6/20/05, skn [EMAIL PROTECTED] wrote:
Hello,
I have written a very simple java class file, which invokes a Python script
using JEP.
. . .
Now inside this Python script I want to make Java calls using JPype.
I am not familiar with either Jepp or JPype, but I spotted this
snippet on Jepp
1 - 100 of 111 matches
Mail list logo