[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2020-02-19 Thread Henning von Bargen
Henning von Bargen added the comment: As a side-note: In my case I am embedding Python in a C program for several reasons: - Added an additional module (generated with SWIG) - This module needs a licence key, which I supply in the C program (to make it more difficult to extract it). - I need

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2020-02-19 Thread Henning von Bargen
Change by Henning von Bargen : -- nosy: +Henning.von.Bargen ___ Python tracker <https://bugs.python.org/issue22213> ___ ___ Python-bugs-list mailing list Unsub

[issue37921] Improve zipfile: add support for symlinks

2020-02-18 Thread Henning von Bargen
Henning von Bargen added the comment: If I understand correctly, this bug is about supporting symlinks on *creating* ZIP files. Please see also https://bugs.python.org/issue27318 for a proposal to support symlinks while *unpacking* ZIP files. Maybe a preserve_symlinks optional argument

help install on Win 7

2018-06-28 Thread Andrew von Bevern
I have tried to install python on my home laptop several times, using 3.6 or 3.7. Each time I get the following error - anyone know what I am doing wrong? [image: image.png] thanks in advance Andrew -- https://mail.python.org/mailman/listinfo/python-list

[issue22139] python windows 2.7.8 64-bit did not install

2016-12-19 Thread Henning von Bargen
Henning von Bargen added the comment: A belated update... What I'm trying is similar to virtualenv: My application should not depend on any pre-installed Python and not have any influence on it (and it should not modify the registry or the system environment variables). It should be noted

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-18 Thread Henning von Bargen
Henning von Bargen added the comment: I think Eric's To-Do list sums it up pretty well. I just wanted to say how much I appreciate the Python community. It seems that every little detail is very well-thought-out. -- ___ Python tracker <

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2016-12-16 Thread Henning von Bargen
Henning von Bargen added the comment: OK, I understand the arguments. If I understand correctly, this will be fixed in one way or another in Python 3.6 or 3.7. For Python 2.7, this will not be fixed (so I have to work around this somehow, should be quite easy). I think that at least

[issue28879] smtplib RFC 5322 date header missing

2016-12-06 Thread Henning von Bargen
Henning von Bargen added the comment: I can give a little more information. First, I created a very simple stand-alone test script (for Python >= 2.6): #!/bin/env python # -*- coding: utf-8 -*- import smtplib # Adjust these! HOST = "smtp.nowhere.local" PORT = 25 from_name =

[issue28879] smtplib RFC 5322 date header missing

2016-12-05 Thread Henning von Bargen
New submission from Henning von Bargen: I'm using CPython 2.7 with the smtplib and email modules to send emails with SMTP. Today, one of our clients complained that the email sent is not RFC 5322 compliant because the required Date header is missing. The RFC states in section 3.6.: "The

[issue27972] Confusing error during cyclic yield

2016-10-10 Thread Max von Tettenborn
Max von Tettenborn added the comment: You are very welcome, glad I could help. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27972] Confusing error during cyclic yield

2016-09-06 Thread Max von Tettenborn
New submission from Max von Tettenborn: Below code reproduces the problem. The resulting error is a RecursionError and it is very hard to trace that to the cause of the problem, which is the runner task and the stop task yielding from each other, forming a deadlock. I think, an easy to make

[issue26018] documentation of ZipFile file name encoding

2016-01-05 Thread Martin von Gagern
New submission from Martin von Gagern: https://docs.python.org/3/library/zipfile.html#zipfile.ZipFile.write writes: “Note: There is no official file name encoding for ZIP files. If you have unicode file names, you must convert them to byte strings in your desired encoding before passing them

[issue24603] New update of OpenSSL

2015-07-10 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: The developers of OpenSSL have published a new update. It fixes a bug marked as severe (https://www.openssl.org/news/secadv_20150709.txt). It seems that we are using a vulnerable version. Could someone who knows the relevant files' locations

[issue23139] syntax diagram after EBNF description?

2014-12-31 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: In our full grammar specification (10th chapter of the language reference, https://docs.python.org/3/reference/grammar.html), the grammar of Python is comprehensively notated. What would you think of adding a picture with an equivalent syntax

[issue22950] ASLR and DEP protection

2014-11-26 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: Are all binary files of a Python installation protected with techniques like Adress Space Layout Randomization and Data Execution Prevention? How can someone check this with an PE Editor or something similar? I know that this seems

[issue22743] Specify supported XML version

2014-10-27 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: The W3C has published two versions of the standard specification for the Extensible Markup Language (XML) [version 1.0 and 1.1]. I know that the W3C expects all parsers to understand both versions. I propose to state here (https

[issue22558] Missing hint to source code - complete

2014-10-05 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: As mentioned in Issue22528, in some modules´ documentation, the link to their source code is missing. To check the stdlib, I´ve written the script missing_hint.py. It seems that in the following module entries, there aren´t a link

[issue22558] Missing hint to source code - complete

2014-10-05 Thread Friedrich Spee von Langenfeld
Friedrich Spee von Langenfeld added the comment: I decremented the shown number of modules by 25. Here is the new list: https://docs.python.org/3/library/base64.html https://docs.python.org/3/library/binhex.html https://docs.python.org/3/library/bz2.html https://docs.python.org/3/library

[issue1284316] Win32: Security problem with default installation directory

2014-10-04 Thread Friedrich Spee von Langenfeld
Friedrich Spee von Langenfeld added the comment: As mentioned before, many packages can not handle paths with spaces. I suppose that it is because of lacking knowledge on how to prevent such bugs. What would you think? Should this piece of information be in our documentation? Or is it already

[issue22528] Missing hint to source code

2014-10-01 Thread Friedrich Spee von Langenfeld
Friedrich Spee von Langenfeld added the comment: Excuse me, but it would be nice to fix the documentation of the modules symtable and compileall too. Thanks. -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org

[issue22528] Missing hint to source code

2014-09-30 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: Nearly every module entry in the documentation has a headline with the pattern module name -- description, followed (in the second line) by Source code: directory. In the entry concerning pdb (https://docs.python.org/3/library/pdb.html

[issue22529] Why copyright only 1990-2013 and not 2014

2014-09-30 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: In the legal statements (https://www.python.org/about/legal) you can read the following sentence: [...] the contents of this website are copyright © 1990-2013, Python Software Foundation, [...]. Why is the year 2014 not covered? The message

[issue22514] incomplete programming example on python.org

2014-09-29 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: When I open www.python.org, there are some examples to demonstrate the look and feel of Python. I´ve tested an example (example number 1). Online, the following is shown: # Python 3: Fibonacci series up to n def fib(n): a, b = 0, 1

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-27 Thread Henning von Bargen
Henning von Bargen added the comment: Martin, while I technically understand your anwers, I have to say that from an ordinary developer's perspective, the behavior is actually *not* expected. It may be expected for python-dev experts, but not for those who are just programming _with_ python

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-15 Thread Henning von Bargen
Henning von Bargen added the comment: Perhaps this issue should be re-opened. I stumbled across a similar issue today, and made some potentially useful observations. On a machine with an existing c:\python27 directory (Python 2.7.5), I installed Python 2.7.8 with the install just for me

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-15 Thread Henning von Bargen
Henning von Bargen added the comment: The online help says: When Python is hosted in another .exe (different directory, embedded via COM, etc), the “Python Home” will not be deduced, so the core path from the registry is used. Other “application paths” in the registry are always read

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-15 Thread Henning von Bargen
Henning von Bargen added the comment: Sorry, of course it's NOT OK, because there's still C:\WINDOWS\system32\python27.zip as the second entry. BTW the relevant environment variables: Path=c:\python278;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\lisa\Kronos\reporting\lib\win32

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-15 Thread Henning von Bargen
Henning von Bargen added the comment: I don't see how this sys.path is related to the online help section 3.3.3. Finding modules. Where does c:\windows\python27.zip come from? And why does Python have to install anything in the Windows directory at all

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-15 Thread Henning von Bargen
Henning von Bargen added the comment: The only solution I could find was to give up running 2.7.8 next to 2.7.5, then uninstall 2.7.8, then install 2.7.8 with the install for all users option selected. -- ___ Python tracker rep...@bugs.python.org

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-15 Thread Henning von Bargen
Henning von Bargen added the comment: Installing different 2.7 versions on the same machine isn't really supported, although it should work if they are all installed just for me. Sigh... I've come to the same conclusion. Nevertheless it seems to me that the actual behavior is different from

[issue20699] Behavior of ZipFile with file-like object and BufferedWriter.

2014-02-20 Thread Henning von Bargen
New submission from Henning von Bargen: Regression: Behavior of ZipFile with file-like object and BufferedWriter. The following code worked with Python 2.6: LOB_BLOCKSIZE = 1024*1024 # 1 MB class UnbufferedBlobWriter(io.RawIOBase): A file-like wrapper for a write-only cx_Oracle BLOB

[issue20397] distutils --record option does not validate existance of byte-compiled files

2014-01-26 Thread Marcus von Appen
New submission from Marcus von Appen: Using the --record argument with distutils' install command currently assumes that all .py files can be compiled (and optimized) successfully. If this is not the case for whatever reason, you end up with invalid entries in the record list. install_lib

New user's initial thoughts / criticisms of Python

2013-11-09 Thread John von Horn
Hi Everyone, I'm Mr. Noobie here, I've just started easing into Python (2.7.4) and am enjoying working along to some youtube tutorials. I've done a little programming in the past. I've just got a few thoughts I'd like to share and ask about: * Why not allow floater=float(int1/int2) - rather

Re: New user's initial thoughts / criticisms of Python

2013-11-09 Thread John von Horn
On Sat, 09 Nov 2013 07:08:25 -0600, John von Horn wrote: Thanks so much for the replies. I'll get my head down and keep on going. Sometimes it's great to be wrong. I have a good feeling about this language. It's also nice that I can tap into this pool of knowledge that is comp.lang.python

[issue18397] Python with MinGW

2013-07-09 Thread Friedrich Spee von Langenfeld
Friedrich Spee von Langenfeld added the comment: @ Christian Heimes Thank you for your hint. Martin v. Löwis made an interesting commend, if his way succeed, it would be worth considering to make a paragraph in the devguide how to build Python with MinGW. The way Forward depends on the results

[issue18397] Python with MinGW

2013-07-09 Thread Friedrich Spee von Langenfeld
Friedrich Spee von Langenfeld added the comment: I've installed the MSYS gawk Utility and configure succeeded (thank you!), but now make failed. Should I upload the entire log file or ony the error messages? -- Added file: http://bugs.python.org/file30876/make_test.txt

[issue18397] Python with MinGW

2013-07-07 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: I think, there are some users which are going to compile Python, but disagree with the restriction of Visual Studio (use only with account after 90 days). Should we provide makefiles to compile Python with MinGW (this could be easily done

[issue18253] make standard library PEP8 compliant

2013-06-18 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: The modules in the standard library aren´t PEP( compliant. I´ve written a script to change this. It uses autopep8.py (must be in the path) and is written for Windows users. -- components: Library (Lib) files: autopepframework.py

[issue18246] tkinter.Text() add a newline to the content - bug?

2013-06-17 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit (AMD64)] on win32 Type copyright, credits or license() for more information. from tkinter import* root = Tk() text = Text() text.pack() text.insert(1.0, Hello

[issue18008] python33-3.3.2 Parser/pgen: Permission denied

2013-05-18 Thread Marcus von Appen
Marcus von Appen added the comment: This is a FreeBSD-specific problem with the Python 3.3 port. Using pmake (BSD's make implementation) leads to random errors on either generating pgen or executing pgen. This seems to happen since Python 3.3.1 randomly and is quite hard to reproduce

Re: io.BytesIO

2013-03-25 Thread Fabian von Romberg
use io.BufferedWriter instead. Just one question, what has better performance: BufferedWriter or BytesIO? Thanks and regards, Fabian On 03/25/2013 01:54 AM, Steven D'Aprano wrote: On Mon, 25 Mar 2013 00:10:04 -0500, Fabian von Romberg wrote: Hi Steven, actually why I need is to know how much

import in Python3.3

2013-03-24 Thread Fabian von Romberg
Hi, I have a package name collections and inside of my package I want to import the collections package from the standard library, but there is name conflicts. How do I import explicitly from the standard library? Im working on Python3.3 Thanks in advance and regards, Fabian --

Re: import in Python3.3

2013-03-24 Thread Fabian von Romberg
Hi Steven, thanks a lot for the explanation. I will keep in mind not to use names for my modules that can shadow the standard library. Regards, Fabian On 03/24/2013 07:27 PM, Steven D'Aprano wrote: On Sun, 24 Mar 2013 18:12:49 -0500, Fabian von Romberg wrote: Hi, I have a package name

io.BytesIO

2013-03-24 Thread Fabian von Romberg
Hi, is there any way to get the allocated memory size from a io.BytesIO object? Thanks and regards, Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: io.BytesIO

2013-03-24 Thread Fabian von Romberg
an attribute or method? Regards, Fabian On 03/24/2013 11:47 PM, Steven D'Aprano wrote: On Sun, 24 Mar 2013 22:56:12 -0500, Fabian von Romberg wrote: Hi, is there any way to get the allocated memory size from a io.BytesIO object? The same as for any object: py import io, sys py obj

addressof object with id()

2013-03-23 Thread Fabian von Romberg
Hi, I have a single questions regarding id() built-in function. example 1: var1 = some string var2 = some string if use the id() function on both, it returns exactly the same address. example 2: data = some string var1 = data var2 = data if use the id() function on var1 and var2, it

[issue16283] ctypes.util.find_library does not find all DLLs anymore

2012-10-19 Thread Marcus von Appen
New submission from Marcus von Appen: ctypes.util.find_library does not seem to be able to find certain libraries in Python3.3 on Win32 platforms anymore, if the library suffix is omitted. For some reason, os.path.isfile() in ctypes.util.find_library returns False in those cases. Please try

[issue15018] Incomplete Python LDFLAGS and CPPFLAGS used for extension modules on posix

2012-06-06 Thread Marcus von Appen
New submission from Marcus von Appen m...@sysfault.org: If CPython is built and installed with additional CPPFLAGS and/or LDFLAGS on a posix platform, those flags are not passed to C extension modules, leaving users (in the worst case) lost without the ability to build and install C extension

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: I'm attaching a patch to better explain what I'm suggesting. As you can see, this patch doesn't change the signature of discover, nor does it change the semantics for any code that doesn't pass pattern, or that passes some pattern

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: Michael wrote: […] the real pattern being passed in. I wonder, what would be the real pattern? In the code I originally pasted, the load_tests function would be invoked by loadTestsFromModule (for module __main__). There is nothing

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-09 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: Rik, I don't follow your argument on not changing discover. Currently, if code calls discover with pattern=None, there will be an exception. So there cannot be any working code out there which passes pattern=None. Therefore, it should

[issue13702] relative symlinks in tarfile.extract broken (windows)

2012-01-05 Thread Patrick von Reth
Patrick von Reth patrick.vonr...@gmail.com added the comment: to ignore the bug I also tried dereference=True, but it looks like python3 is ignoring it for extraction. Is this the normal behavior or just another bug? -- ___ Python tracker rep

[issue13702] relative symlinks in tarfile.extract broken

2012-01-03 Thread Patrick von Reth
New submission from Patrick von Reth patrick.vonr...@gmail.com: when extracting http://www.openssl.org/source/openssl-1.0.0d.tar.gz with python3.2 on windows 7 extraction fails with File C:\python32\lib\tarfile.py, line 2175, in extract set_attrs=set_attrs) File C:\python32\lib

[issue13702] relative symlinks in tarfile.extract broken (windows)

2012-01-03 Thread Patrick von Reth
Changes by Patrick von Reth patrick.vonr...@gmail.com: -- title: relative symlinks in tarfile.extract broken - relative symlinks in tarfile.extract broken (windows) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13702

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-19 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: As people keep stating how easy the change from sys.platform == 'linux2' to sys.platform.startswith('linux') is, e.g. msg142385, please also keep in mind cases like someDict.get(sys.platform) where the comparison is implicit

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-19 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: Marc-Andre Lemburg wrote: Both Python and the application will make certain assumptions about the platform depending on the compile time environment. Can you give examples for this? So you need both the compile and the runtime

[issue12719] Direct access to tp_dict can lead to stale attributes

2011-08-09 Thread Martin von Gagern
New submission from Martin von Gagern martin.vgag...@gmx.net: The attached C extension provides a way to manually set an element in the dict of an extension type. As the test case exposes, this can result in a discrepancy between cls.__dict__['key'] and cls.key. Please tell me up front if my

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-05 Thread Martin von Gagern
Changes by Martin von Gagern martin.vgag...@gmx.net: -- nosy: +gagern ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12326 ___ ___ Python-bugs-list

[issue12695] subprocess.Popen: OSError: [Errno 9] Bad file descriptor

2011-08-05 Thread Martin von Gagern
New submission from Martin von Gagern martin.vgag...@gmx.net: suprocess.Popen on POSIX (using _posixsubprocess Module) has a good chance of repeatedly closing the same file descriptor if the descriptor for stdin is also used for stdout and/or stderr. Only stdout and stderr are checked

[issue12695] subprocess.Popen: OSError: [Errno 9] Bad file descriptor

2011-08-05 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: Sorry, this is a duplicate of issue #11432. Failed to find that, and also failed to realize that python is now using hg and my svn checkout might be outdated. Sorry there. -- resolution: - duplicate status: open - closed

[issue12696] pydoc error page due to lacking permissions on ./*

2011-08-05 Thread Martin von Gagern
New submission from Martin von Gagern martin.vgag...@gmx.net: I'd like to be able to run pydoc -b in whatever directory I'm currently in. Most of the time that would be the root of my home directory, which is an ext4fs mount. So it has a subdirectory called lost+found for which I don't have

[issue12696] pydoc error page due to lacking permissions on ./*

2011-08-05 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: The server continues all right. It's the browser window which displays the error message. Not much better in my opinion, though. To be completely accurate: currently the -b option doens't work as it should due to issue #11432

[issue4934] tp_del and tp_version_tag undocumented

2011-05-19 Thread Martin von Gagern
Changes by Martin von Gagern martin.vgag...@gmx.net: -- nosy: +gagern ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4934 ___ ___ Python-bugs-list

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2011-02-15 Thread Martin von Gagern
New submission from Martin von Gagern martin.vgag...@gmx.net: If I follow the documentation at http://docs.python.org/library/unittest.html#unittest.main by putting the following two snippets of code in my module file: def load_tests(loader, standard_tests, pattern='test*.py'): # top

[issue10680] argparse: titles and add_mutually_exclusive_group don't mix (even with workaround)

2011-01-27 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: I've added a unit test for this nested mutex scenario. The attached patch includes the original fix as well, as for some reason the patch by loewis wouldn't apply to my tree automatically. -- nosy: +gagern Added file: http

[issue8989] email.utils.make_msgid: specify domain

2010-12-03 Thread Adrian von Bidder
Adrian von Bidder avbid...@fortytwo.ch added the comment: On Thursday 02 December 2010 22.51:51 you wrote: Committed to py3k in r86936 with minor fixups. thanks, great! (Wheee! my first patch to Python ;-) cheers -- vbi -- ___ Python tracker rep

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
New submission from Felix Laurie von Massenbach fantasi...@gmail.com: If the config file has a boolean formatted as either True or False, python raises an attribute error when doing str.lower() on it. In my code I've worked around this in the following way: class MyConfigParser

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
Felix Laurie von Massenbach fantasi...@gmail.com added the comment: Oops, that was the broken first version. Let's try again: class MyConfigParser(ConfigParser.RawConfigParser): def getboolean(self, section, option): result = self.get(section, option) try: trues

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
Felix Laurie von Massenbach fantasi...@gmail.com added the comment: Perhaps I don't understand fully, but I am reading, for example, option = True from a config file. When doing this getboolean raises: AttributeError: 'bool' object has no attribute 'lower' Is it intended that you cannot store

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
Felix Laurie von Massenbach fantasi...@gmail.com added the comment: Ok, so I understand the issue, but why doesn't the set method simply convert to a string? from ConfigParser import RawConfigParser from StringIO import StringIO parser = RawConfigParser() config = [section] test = True

Re: asyncore.poll() question

2010-10-17 Thread Von
The urlparse module is load only when this module run as main entry. Its for test purpose of modules. 2010/10/17, chad cdal...@gmail.com: On Oct 16, 11:02 am, Felipe Bastos Nunes felipe.bast...@gmail.com wrote: You edited the source of asyncore.py puttin the print statments and nothing

Re: I don't get why sys.exit(1) doesn't exit the while loop in the follow case

2010-10-04 Thread Von
Try to use sys.exit(0) Maybe you should print out the error in your except block. 2010/10/5, chad cdal...@gmail.com: Given the following.. #!/usr/bin/python import urllib2 import sys import time while 1: try: con = urllib2.urlopen(http://www.google.com;) data =

python call a procedure at the specified time

2010-09-15 Thread Von
Hi, I have a python script running behind the scene,and I need it to call a method on sunday 9 o'clock. I get an idea,that I get the current time,and calculate the seconds to sunday 9 o'clock, then sleep these seconds and call my method,I think there could be an elegant way to resolve this.

Re: python call a procedure at the specified time

2010-09-15 Thread Von
Hi Nitin,I need a python solution for that. On Wed, Sep 15, 2010 at 2:15 PM, Nitin Pawar nitinpawar...@gmail.comwrote: are you looking for something like cron? On Wed, Sep 15, 2010 at 11:43 AM, Von von...@gmail.com wrote: Hi, I have a python script running behind the scene,and I need

Re: python call a procedure at the specified time

2010-09-15 Thread Von
running only once a day or say timely manner daemon will be a costly affair for system resources To schedule crons for python, this might be useful (using yaml) http://code.google.com/appengine/docs/python/config/cron.html#About_cron_yaml Thanks, Nitin On Wed, Sep 15, 2010 at 11:54 AM, Von von

Re: python call a procedure at the specified time

2010-09-15 Thread Von
I have read the cron man page just now,It says that cron wakes up every minute to check task. I will try install/uninstall with cron. Cheers, On Wed, Sep 15, 2010 at 3:25 PM, Von von...@gmail.com wrote: Thanks Nitin,I wonder how cron works,does it create a timer thread for each task

python cxfreeze package pyqt app lost icon and tray icon

2010-09-15 Thread Von
Hi, Here is my command: cxfreeze --target-dir=AutoOrder gui.py --base-name=D:\Python31\Lib\site-packages\cx_Freeze\bases\Win32GUI.exe --include-path=. -z icon.jpg Both app icon and tray icon used icon.jpg Regards, -- http://mail.python.org/mailman/listinfo/python-list

Re: python call a procedure at the specified time

2010-09-15 Thread Von
time, you can schedule it for the same if you need any help, ping on gtalk, can help you out Thanks, Nitin On Wed, Sep 15, 2010 at 1:05 PM, Von von...@gmail.com wrote: I have read the cron man page just now,It says that cron wakes up every minute to check task. I will try install

python datetime

2010-09-14 Thread Von
Hi, How to determine a date is just the 7th day after today ie: today is 14 Sep the 7th day is 14+7 = 21,but assume today is 28 Sep the 7th day is 5 Oct,is there simple way to do this work? I wish I explained clear Bests, -- http://mail.python.org/mailman/listinfo/python-list

Re: python datetime

2010-09-14 Thread Von
is datetime.timedelta type. #(You can extract days diff) # Determine date in 7 days import datetime now = datetime.date(2010, 9, 28) delta = datetime.timedelta(days=7) next = now + delta Le Tue, 14 Sep 2010 14:41:09 +0800, Von von...@gmail.com a écrit : Hi, How to determine a date

python tkinter Listbox

2010-09-14 Thread Von
Hi all, I am building a simple tool using tkinter,and need multiselection checklist.I find that Listbox with option selectmode=tkinter.MULTIPLE could do this for me. But when I have two Listboxs,I do some selection with one,then do selection with another one,the previous listbox get cleared.I

[issue843590] 'macintosh' encoding alias for 'mac_roman'

2010-08-30 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: Maybe I'm missing something here, but r84229 looks to me like aliasing 'macintosh' to itself, instead of to 'mac_roman'. 'csmacintosh' and 'mac' are not included at all, without any comment as to why they have been omitted. Makes me

[issue8989] email.utils.make_msgid: specify domain

2010-06-14 Thread Adrian von Bidder
Adrian von Bidder avbid...@fortytwo.ch added the comment: Thanks for the positive feedback. I'll try to do the diff against top of tree and the unit test soon-ish. Use case: * In my specific case, I'm writing a sort of cross between mailing list and blog system and I'd like to use a static

[issue8989] email.utils.make_msgid: specify domain

2010-06-14 Thread Adrian von Bidder
Adrian von Bidder avbid...@fortytwo.ch added the comment: I'm sure several of you have worked with the Python source code before and know by heart how to run the testsuite. In other words: I admit that I've only written the code and have not tried it. Given how trivial the patch is, I have

[issue8989] email.utils.make_msgid: specify domain

2010-06-13 Thread Adrian von Bidder
New submission from Adrian von Bidder avbid...@fortytwo.ch: Using the hostname for the domain part of a Message-Id is probably the right thing usually but users may want to override this. Please consider this rather trivial patch: = --- utils.py.orig 2010-06-13 16:59:30.533861099

Help with suds: HTTP Error 401

2010-06-11 Thread Eric von Horst
Hi, I am trying to do a very simple thing with SUDS but I think I am missing the obvious (first time I use suds) I have small program that tries to open a wsdl. When I execute the program I am getting 'suds.transport.TransportError: HTTP Error 401: Unauthorized' Seems obvious but I specify

[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-18 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: Wrong issue number again, or did you deliberately try to catch me in an infinite see-also loop? ;-) I've tried to work out what issue you meant, but failed so far. -- ___ Python tracker rep

[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-16 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: Here is the corresponding path for python3 (py3k branch). It's mostly the same, except for one additional test which ensures header preservation even if the maxheaderlen argument to Message.as_string is greater than 0. It's called

[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-16 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: You missed a digit in the test comment: s/See issue 96843/See issue 968430/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1670765

[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-15 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: Let's get some traction here, please! Attached is a test case which will demonstrate the issue. It includes the content of test5.eml as a string so that it won't require additional files. It produces both human-readable output

[issue1670765] email.Generator: no header wrapping for multipart/signed

2010-01-15 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: OK, here is a patch providing both two test cases and the fix for current trunk. Will probably hack something for python 3 as well, although there the Message.as_string approach works due to the new headerlength argument defaulting

[issue843590] 'macintosh' encoding alias for 'mac_roman'

2010-01-15 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: Find attached (issue843590_rfc.patch) an implementation of the macintosh encoding as the RFC defines it. I don't suggest its inclusion; I would prefer the alias of this implementation, but either one is better than no 'macintosh

[issue843590] 'macintosh' encoding alias for 'mac_roman'

2010-01-15 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: And this patch (issue84359_alias.patch) is the alternative, 'macintosh' as an alias to 'mac_roman' as originally requested, along with a bunch of aliases registered with IANA. I'd prefer this approach over the preceding one, and hope

Re: Collection console output

2009-09-17 Thread Esben von Buchwald
MRAB wrote: Esben von Buchwald wrote: Hello Are there any simple ways to collect the data, python prints to the console when running an app? I'm doing som apps for S60 mobile phones and can't see the console, when the UI is running, but i'd like to collect the output, to look for eventual

Collection console output

2009-09-16 Thread Esben von Buchwald
Hello Are there any simple ways to collect the data, python prints to the console when running an app? I'm doing som apps for S60 mobile phones and can't see the console, when the UI is running, but i'd like to collect the output, to look for eventual exceptions etc. Cant it be redirected

Re: Protecting against callbacks queuing up?

2009-08-28 Thread Esben von Buchwald
It seems to solve the problem. What I did: def contextDataHandler(self): self.contextdata.process_busy=True self.services.findServices() self.drawDisplay() self.contextdata.process_busy=False def doCallback(self): self.at.cancel() if

Re: Protecting against callbacks queuing up?

2009-08-26 Thread Esben von Buchwald
Hendrik van Rooyen wrote: would that be usable? Probably If so, how? This is a guess, for your device, but I suspect something along these lines: t = Ao_timer() cb = t.after(100,thing_that_does_the_work(with_its_arguments)) Lots of assumptions here - the 100 should give you a tenth of a

Re: Protecting against callbacks queuing up?

2009-08-26 Thread Esben von Buchwald
Dennis Lee Bieber wrote: On Tue, 25 Aug 2009 15:21:16 +0200, Esben von Buchwald find@paa.google declaimed the following in gmane.comp.python.general: This is how the accelerometer is accessed http://pys60.garage.maemo.org/doc/s60/node59.html I found this called after... http://pys60

Re: Protecting against callbacks queuing up?

2009-08-25 Thread Esben von Buchwald
Dennis Lee Bieber wrote: On Mon, 24 Aug 2009 17:32:23 +0200, Esben von Buchwald find@paa.google declaimed the following in gmane.comp.python.general: I'm new to python, what is an after function and an after call? Couldn't find excact answer on google...? Do you have a link to some docs

Re: Protecting against callbacks queuing up?

2009-08-24 Thread Esben von Buchwald
Hendrik van Rooyen wrote: see if there is an after method somewhere. What you have to do is to break the link between the callback and the processing. Your code above is all in the callback thread, despite the fact that you call another function to do the processing. So if you replace the

  1   2   >