Re: choice of web-framework

2017-10-22 Thread Patrick Vrijlandt
Op 22-10-2017 om 14:05 schreef Tim Chase: > I'm not sure what "version control is required" means in this > context. Is this version-control of the users' answers? Or > version-control of the source code. If it's the source code, the web > framework won't help you there, but git, mercurial, or

choice of web-framework

2017-10-22 Thread Patrick Vrijlandt
Hello list, I would like your recommendation on the choice of a web framework. The project is completely new, there are no histories to take into account (current solutions are paper-based). The website involves questionnaires that will be developed, filled out and stored. Users are not

Re: surprise - byte in set

2015-01-03 Thread patrick vrijlandt
Dear all, Many thanks for your responses. I never realised this difference between 'bytes' and 'string'. Thanks, Patrick --- Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

surprise - byte in set

2015-01-03 Thread patrick vrijlandt
Hello list, Let me first wish you all the best in 2015! Today I was trying to test for occurrence of a byte in a set ... sys.version '3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)]' 'b' in 'abc' True b'b' in b'abc' True 'b' in set('abc') True b'b' in

Re: Backward-Iterator - Beginners question

2013-11-01 Thread patrick vrijlandt
Chris Angelico ros...@gmail.com wrote: On Fri, Nov 1, 2013 at 9:18 PM, Ulrich Goebel m...@fam-goebel.de wrote: That gives me the solution. What I have, is an iterator object comming as a SQLite database cursor object. So I could minimize the underliying SELECT and build index = list(cursor).

Re: personal library

2013-10-31 Thread patrick vrijlandt
Chris Angelico ros...@gmail.com wrote: On Thu, Oct 31, 2013 at 7:19 AM, Tim Delaney But yeah. Either git or hg will serve you well, and Bazaar (bzr) also has its advocates. Getting to know all three (or at least git/hg) to at least some extent will serve you well - at least be comfortable

Re: personal library

2013-10-30 Thread patrick vrijlandt
Chris Angelico ros...@gmail.com wrote: On Wed, Oct 30, 2013 at 3:33 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Chris Angelico ros...@gmail.com writes: *Definitely* use source control. +1, but prefer to call it a “version control system” which is (a) more easily searched on the

personal library

2013-10-29 Thread patrick vrijlandt
Hello list, Python has been a hobby for me since version 1.5.2. Over the years I accumulated quite a lot of reusable code. It is nicely organised in modules, directories and subdirectories. With every project, the library grows and is developed further. I would like to ask your advice for two

Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-19 Thread patrick vrijlandt
John Gordon gor...@panix.com wrote: In 22b99b0a-598f-4500-9de9-5041c2ce2...@googlegroups.com William Bryant gogobe...@gmail.com writes: the word 'def' has squiggily lines but the program works fine. It says: Syntax Error: expected an indented block. - why? def restart(): This may be

[issue12323] ElementPath 1.3 expressions

2013-01-22 Thread patrick vrijlandt
patrick vrijlandt added the comment: Dear Eli, According to the XPath spec, the 'position' as can be used in xpath expressions, should be positive. However, the current implementation (example below from 3.3.0) accepts some values that should not be ok. Therefore, I do not agree

[issue12322] ElementPath 1.3 expressions documentation

2012-10-08 Thread patrick vrijlandt
patrick vrijlandt added the comment: To be complete: an xpath 'above' the start element returns None Thanks for the patch! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12322

[issue15564] cgi.FieldStorage should not call read_multi on files

2012-08-13 Thread patrick vrijlandt
patrick vrijlandt added the comment: I must admit my usage case is a hack, but the summary is: view a page on one computer, process it on another computer; like sending the page to a friend, with friend - self and send - upload. I found one other victim in python (https://groups.google.com/d

[issue15564] cgi.FieldStorage should not call read_multi on files

2012-08-11 Thread patrick vrijlandt
patrick vrijlandt added the comment: I would not know how to set the MIME-type of a file during upload. This is apparently set by the browser based on the filename (extension). Even (or: especially) if this is a bug in all the current browsers, python should provide the tools to adapt

[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2012-08-08 Thread patrick vrijlandt
New submission from patrick vrijlandt: quopri.py's functions encodestring and decodestring are documented to handle strings; and this is clearly suggested by their name. However, these functions accept and return bytes, not strings. This should be reflected in the documentation. Even better

[issue15564] cgi.FieldStorage should not call read_multi on files

2012-08-06 Thread patrick vrijlandt
New submission from patrick vrijlandt: .mht is an archive format created by Microsoft IE 8 when saving a webpage. It is essentially a mime multipart message. My problem occurred when I uploaded such a file to a cgi-based server. The posted data would be fed to cgi.FieldStorage. (I can't post

[issue13779] os.walk: bottom-up

2012-02-23 Thread patrick vrijlandt
patrick vrijlandt patrick.vrijla...@gmail.com added the comment: Good solution. +1 for closing. Patrick -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13779

[issue13823] xml.etree.ElementTree.ElementTree.write - argument checking

2012-01-19 Thread patrick vrijlandt
New submission from patrick vrijlandt patrick.vrijla...@gmail.com: (1) The docs say: xml_declaration controls if an XML declaration should be added to the file. Use False for never, True for always, None for only if not US-ASCII or UTF-8 or Unicode (default is None). The method also accepts

[issue13796] use 'text=...' to define the text attribute of and xml.etree.ElementTree.Element

2012-01-17 Thread patrick vrijlandt
patrick vrijlandt patrick.vrijla...@gmail.com added the comment: Hi, Did you look at lxml (http://lxml.de)? from lxml.builder import E from lxml import etree tree = etree.ElementTree( E.Hello( Good morning!, E.World(How do you do, humour = excellent), Fine

[issue13796] use 'text=...' to define the text attribute of and xml.etree.ElementTree.Element

2012-01-16 Thread patrick vrijlandt
patrick vrijlandt patrick.vrijla...@gmail.com added the comment: I agree the Element syntax is sometimes awkward. But how would you represent text or tail attributes within this enhanced element? animal name=cat tail=yes comes to mind ... -- nosy: +patrick.vrijlandt

[issue13779] os.walk: bottom-up

2012-01-16 Thread patrick vrijlandt
patrick vrijlandt patrick.vrijla...@gmail.com added the comment: The documentation of this function is generally ambiguous, because os.walk is a generator. Thus generate means (1) yielded from a generator and (2) prepared for later use within the generator. To avoid the ambiguity, generate

[issue13784] Documentation of xml.sax.xmlreader: Locator.getLineNumber() and Locator.getColumnNumber()

2012-01-14 Thread patrick vrijlandt
New submission from patrick vrijlandt patrick.vrijla...@gmail.com: Problem: Locator methods return the location where the event starts, not where it ends. Locator line numbers start at 1, Locator column numbers can be 0. Proposal: Adapt documentation. From the docs: Instances of Locator

[issue13779] os.walk: bottom-up

2012-01-13 Thread patrick vrijlandt
New submission from patrick vrijlandt patrick.vrijla...@gmail.com: PythonWin 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32. Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information. import os os.makedirs(g:/a/b/c

[issue13674] crash in datetime.strftime

2011-12-30 Thread patrick vrijlandt
patrick vrijlandt patrick.vrijla...@gmail.com added the comment: Somewhere in the code is also/still a seperate check concerning strftime: PythonWin 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32. Portions Copyright 1994-2008 Mark Hammond - see 'Help/About

[issue13674] crash in datetime.strftime

2011-12-29 Thread patrick vrijlandt
New submission from patrick vrijlandt patrick.vrijla...@gmail.com: This causes a crash in python 3.2.2 and 3.2, but not in 2.7.2 C:\Python32python Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information

[issue13674] crash in datetime.strftime

2011-12-29 Thread patrick vrijlandt
patrick vrijlandt patrick.vrijla...@gmail.com added the comment: Is it relevant that 2.7.2 _does_ throw a correct exception? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13674

[issue12321] documentation of ElementTree.find

2011-06-19 Thread patrick vrijlandt
patrick vrijlandt patrick.vrijla...@gmail.com added the comment: [...] Same as getroot().find(match). [...] - [...] For a relative path, this is equivalent to getroot().find(match). Additionally, this form accepts an absolute path. [...] This is easy, but might not be a very good solution

[issue12321] documentation of ElementTree.find

2011-06-13 Thread patrick vrijlandt
New submission from patrick vrijlandt patrick.vrijla...@gmail.com: From the python docs for version 3.2: 19.12.3. ElementTree Objects find(match) [...] Same as getroot().find(match). [...] This is not true: tree.find accepts an absolute path (like /*) , whereas element.find doesn't. Also

[issue12322] ElementPath 1.3 expressions documentation

2011-06-13 Thread patrick vrijlandt
New submission from patrick vrijlandt patrick.vrijla...@gmail.com: Python 3.2 supports ElementPath version 1.3. The relevant documentation is http://effbot.org/zone/element-xpath.htm. It says: .. (New in 1.3) Selects the parent element. However, a CHANGES document says: The engine also

[issue12323] ElementPath 1.3 expressions

2011-06-13 Thread patrick vrijlandt
New submission from patrick vrijlandt patrick.vrijla...@gmail.com: From http://effbot.org/zone/element-xpath.htm: [position] (New in 1.3) Selects all elements that are located at the given position. The position can be either an integer (1 is the first position), the expression “last

[issue11987] queue.Queue.put should acquire mutex for unfinished_tasks

2011-05-04 Thread patrick vrijlandt
patrick vrijlandt patrick.vrijla...@gmail.com added the comment: I agree. Please close the ticket. Thanks, Patrick 2011/5/3 Raymond Hettinger rep...@bugs.python.org Raymond Hettinger raymond.hettin...@gmail.com added the comment: This line should be protected by acquiring

Re: ctypes and twain_32.dll

2011-05-03 Thread Patrick Vrijlandt
On 2 mei, 20:56, Michel Claveau - MVPenleverlesx_xx...@xmclavxeaux.com.invalid wrote: Hi! On my system, thera are not twain32.dll or twain_32.dll, but twain.dll @+ -- Michel Claveau Hi, I have both. They are correctly installed and working. ctypes gives a different response if it cannot

[issue11987] queue.Queue.put should acquire mutex for unfinished_tasks

2011-05-03 Thread patrick vrijlandt
New submission from patrick vrijlandt patrick.vrijla...@gmail.com: Line 154 in standard library's queue.py, in the definition of Queue.put() is: self.unfinished_tasks += 1 This line should be protected by acquiring the all_tasks_done lock. Theoretically, the increment could occur somewhere

ctypes and twain_32.dll

2011-04-30 Thread Patrick Vrijlandt
Hi, I'm trying to access TWAIN from python 3.2 on Vista, using ctypes. I'm stuck at line 2: PythonWin 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32. from ctypes import * windll.twain_32 Traceback (most recent call last): File interactive input, line 1, in module

RE: Python COM Outlook Question

2007-03-21 Thread Patrick Vrijlandt
Hi, It seems that space.Folders[DailyGoodEmails] might be a valid expression; otherwise you might have experiment with space.GetSharedDefaultFolder() HTH, Patrick -Oorspronkelijk bericht- On Mar 21, 2:15 pm, liam_herron [EMAIL PROTECTED] wrote: Say I want to open a shared email inbox